Commit 430fe7c0f81b228c3c8ba6f7550ff2519fb02411
1 parent
4e176c74
Templates to search for, and create, groups from LDAP.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4837 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
2 changed files
with
67 additions
and
0 deletions
templates/ktstandard/authentication/ldapaddgroup.smarty
0 → 100644
| 1 | + | |
| 2 | + <form action="{$smarty.server.PHP_SELF}" method="POST"> | |
| 3 | + <input type="hidden" name="action" value="addGroupFromSource" /> | |
| 4 | + <input type="hidden" name="source_id" value="{$source->getId()}" /> | |
| 5 | + <fieldset> | |
| 6 | + <legend>{i18n}Create a new group{/i18n}</legend> | |
| 7 | + {foreach item=oWidget from=$fields} | |
| 8 | + {$oWidget->render()} | |
| 9 | + {/foreach} | |
| 10 | + <input type="hidden" name="dn" value="{$dn}" /> | |
| 11 | + <div class="form_actions"> | |
| 12 | + <input type="submit" name="submit[create]" value="{i18n}create group{/i18n}" /> | |
| 13 | + <a href="{$smarty.server.PHP_SELF}" class="ktCancelLink">{i18n}Cancel{/i18n}</a> | |
| 14 | + </div> | |
| 15 | + </fieldset> | |
| 16 | + </form> | |
| 17 | + | ... | ... |
templates/ktstandard/authentication/ldapsearchgroup.smarty
0 → 100644
| 1 | +<form method="POST" action="{$smarty.server.PHP_SELF}"> | |
| 2 | +<p class="descriptiveText">{i18n}Since there may be many groups in the | |
| 3 | +system, please provider a few letters from the groups's name to | |
| 4 | +begin.{/i18n}</p> | |
| 5 | + | |
| 6 | +<input type="hidden" name="action" value="addGroupFromSource" /> | |
| 7 | +<input type="hidden" name="source_id" value="{$source->getId()}" /> | |
| 8 | +<fieldset><legend>Search for group</legend> | |
| 9 | +{foreach from=$fields item=oWidget} | |
| 10 | + {$oWidget->render()} | |
| 11 | +{/foreach} | |
| 12 | +<div class="form_actions"> | |
| 13 | + <input type="submit" value="{i18n}search for groups{/i18n}" /> | |
| 14 | +</div> | |
| 15 | +</fieldset> | |
| 16 | +</form> | |
| 17 | + | |
| 18 | +{if !$search_results} | |
| 19 | + <div class="ktInfo"> | |
| 20 | + <!-- never show a very large set, if you can help it. --> | |
| 21 | + <p>{i18n}No search specified, or no results for your search. Please choose some criteria from the list above to find groups.{/i18n}</p> | |
| 22 | + </div> | |
| 23 | +{else} | |
| 24 | +<form method="POST" action="{$smarty.server.PHP_SELF}"> | |
| 25 | +<input type="hidden" name="action" value="addGroupFromSource" /> | |
| 26 | +<input type="hidden" name="source_id" value="{$source->getId()}" /> | |
| 27 | +<table class="listing"> | |
| 28 | +<thead> | |
| 29 | + <tr> | |
| 30 | + <th>{i18n}Group Name{/i18n}</th> | |
| 31 | + <th>{i18n}Distinguished Name (LDAP DN){/i18n}</th> | |
| 32 | + </tr> | |
| 33 | +</thead> | |
| 34 | +<tbody> | |
| 35 | + <!-- do we want to batch here? --> | |
| 36 | + {foreach item=potential_group from=$search_results} | |
| 37 | + <tr> | |
| 38 | + <td><input type="radio" name="id" | |
| 39 | +value="{$potential_group.dn}" />{$potential_group.cn}</td> | |
| 40 | + <td>{$potential_group.dn}</td> | |
| 41 | + </tr> | |
| 42 | + {/foreach} | |
| 43 | +<!-- | |
| 44 | + | |
| 45 | +--> | |
| 46 | +</tbody> | |
| 47 | +</table> | |
| 48 | +<input type="submit" name="submit[chosen]" value="{i18n}Add{/i18n}" /> | |
| 49 | +</form> | |
| 50 | +{/if} | ... | ... |