1 | <div class="block-header2">Hardcoded roles</div> |
---|
2 | <table class="kb-table"> |
---|
3 | <tr class="kb-table-header"><td>Role</td><td>Description</td><td> </td></tr> |
---|
4 | {cycle reset=true print=false name=ccl values="kb-table-row-even,kb-table-row-odd"} |
---|
5 | {foreach from=$hroles item=role key=name} |
---|
6 | <tr class="{cycle name=ccl}"><td>{$name}</td><td>{$role}</td><td><form method="post" action="?a=admin_roles"> |
---|
7 | <input type="hidden" name="a" value="admin_roles"/> |
---|
8 | <input type="hidden" name="role" value="{$name}"/> |
---|
9 | <input type="hidden" name="action" value="search"/> |
---|
10 | <input type="text" name="search" size="8"/> |
---|
11 | <input type="submit" value="Assign to"/></form></td></tr> |
---|
12 | {/foreach} |
---|
13 | </table> |
---|
14 | <br/><br/> |
---|
15 | <div class="block-header2">Softcoded roles</div> |
---|
16 | <table class="kb-table"> |
---|
17 | <tr class="kb-table-header"><td>Role</td><td>Description</td><td> </td></tr> |
---|
18 | {cycle reset=true print=false name=ccl values="kb-table-row-even,kb-table-row-odd"} |
---|
19 | {foreach from=$sroles item=role key=name} |
---|
20 | <tr class="{cycle name=ccl}"><td>{$name}</td><td>{$role}</td><td><form method="post" action="?a=admin_roles"> |
---|
21 | <input type="hidden" name="a" value="admin_roles"/> |
---|
22 | <input type="hidden" name="role" value="{$role}"/> |
---|
23 | <input type="text" name="search" size="8"/> |
---|
24 | <input type="submit" value="Assign to"/></form></td></tr> |
---|
25 | {/foreach} |
---|
26 | <tr class="{cycle name=ccl}"><td colspan="3" align="center"><form method="post" action="?a=admin_roles"> |
---|
27 | <input type="hidden" name="a" value="admin_roles"/> |
---|
28 | <input type="hidden" name="action" value="create"/><input type="submit" value="Create Role"></form></td></tr> |
---|
29 | </table> |
---|