Commit 76026a7d authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes #2919 Fixed admin and invisible department migrations

Showing with 308 additions and 165 deletions
+308 -165
This diff is collapsed.
<div>
<div class="default">
<h2>User migration</h2>
<h2>{$infos.title}</h2>
<p>{t}The listed users are currently invisible in the FusionDirectory user interface. If you want to change this for a couple of users, just select them and use the 'Migrate' button below.{/t}</p>
<p>{t}The listed entries are currently invisible in the FusionDirectory interface. If you want to change this for a couple of entries only, just select them and use the 'Migrate' button below.{/t}</p>
<p>{t}If you want to know what will be done when migrating the selected entries, use the 'Show changes' button to see the LDIF.{/t}</p>
{foreach from=$infos item=user key=key}
{if $user.checked}
<input type='checkbox' name='migrate_{$key}' checked id='migrate_{$key}'>
{$user.dn}
{if $user.after != ""}
{foreach from=$infos.entries item=entry key=key}
{if $entry.checked}
<input type="checkbox" name="migrate_{$key}" checked="checked" id="migrate_{$key}"/>
<label for="migrate_{$key}">{$entry.dn}</label>
{if $entry.after != ""}
<div class="step2_entry_container_info" id="sol_8">
{t}Current{/t}
<div style='padding-left:20px;'>
<pre>
dn: {$user.dn}
{$user.before}
</pre>
<div style="padding-left:20px;">
<pre>
dn: {$entry.dn}
{$entry.before}
</pre>
</div>
{t}After migration{/t}
<div style='padding-left:20px;'>
<pre>
dn: {$user.dn}
{$user.after}
</pre>
<div style="padding-left:20px;">
<pre>
dn: {$entry.dn}
{$entry.after}
</pre>
</div>
</div>
{/if}
{else}
<input type='checkbox' name='migrate_{$key}' id='migrate_{$key}'>
{$user.dn}
<input type="checkbox" name="migrate_{$key}" id="migrate_{$key}"/>
<label for="migrate_{$key}">{$entry.dn}</label>
{/if}
<br>
{/foreach}
<input type='checkbox' id='toggle_calue' onClick="toggle_all_('^migrate_','toggle_calue')">
{t}Select all{/t}
<input type="checkbox" id="toggle_calue" onClick="toggle_all_('^migrate_','toggle_calue')"/>
<label for="toggle_calue">{t}Select all{/t}</label>
<br/>
{if $user_details}
<input type='submit' name='dialog_hidechanges' value='{t}Hide changes{/t}'>
<input type="submit" name="dialog_hidechanges" value="{t}Hide changes{/t}"/>
{else}
<input type='submit' name='dialog_showchanges' value='{t}Show changes{/t}'>
<input type="submit" name="dialog_showchanges" value="{t}Show changes{/t}"/>
{/if}
<hr/>
<div style='width:99%; text-align:right; padding-top:5px;'>
<input type='submit' name='dialog_confirm' value='{t}Apply{/t}'>
<div style="width:99%; text-align:right; padding-top:5px;">
<input type="submit" name="dialog_confirm" value="{t}Apply{/t}"/>
&nbsp;
<input type='submit' name='dialog_cancel' value='{t}Cancel{/t}'>
<input type="submit" name="dialog_cancel" value="{t}Cancel{/t}"/>
</div>
</div>
</div>
  • bmortier @bmortier

    mentioned in issue #1001

    By Côme Chilliet on 2017-09-02T15:07:59 (imported from GitLab)

    ·

    mentioned in issue #1001

    By Côme Chilliet on 2017-09-02T15:07:59 (imported from GitLab)

    Toggle commit list
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment