aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
Diffstat (limited to 'view/tpl')
-rwxr-xr-xview/tpl/abook_edit.tpl3
-rw-r--r--view/tpl/settings_permcats.tpl13
2 files changed, 16 insertions, 0 deletions
diff --git a/view/tpl/abook_edit.tpl b/view/tpl/abook_edit.tpl
index 231841659..ebc69c5f8 100755
--- a/view/tpl/abook_edit.tpl
+++ b/view/tpl/abook_edit.tpl
@@ -473,8 +473,11 @@
{{if $self}}{{$permnote_self}}{{/if}}
</div>
+ {{if $permcat_enable}}
<div class="loading-role-rotator"></div>
+ <a href="settings/permcats" class="pull-right"><i class="fa fa-plus"></i>&nbsp;{{$permcat_new}}</a>
{{include file="field_select.tpl" field=$permcat}}
+ {{/if}}
<table id="perms-tool-table" class=form-group>
<tr>
diff --git a/view/tpl/settings_permcats.tpl b/view/tpl/settings_permcats.tpl
index 597002815..f6bb9b036 100644
--- a/view/tpl/settings_permcats.tpl
+++ b/view/tpl/settings_permcats.tpl
@@ -45,6 +45,19 @@
</div>
</div>
</div>
+ {{if $permcats}}
+ <div class="section-content-wrapper-np">
+ <table id="permcat-index">
+ {{foreach $permcats as $k => $v}}
+ <tr class="permcat-row-{{$k}}">
+ <td width="99%"><a href="settings/permcats/{{$k}}">{{$k}}</a></td>
+ <td width="1%"><i class="fa fa-trash-o drop-icons" onClick="dropItem('/settings/permcats/{{$k}}/drop', '.permcat-row-{{$k}}')"></i></td>
+ </tr>
+ {{/foreach}}
+ </table>
+ </div>
+ {{/if}}
+
</div>
</form>