diff options
author | Mario <mario@mariovavti.com> | 2022-01-06 21:09:18 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-01-06 21:09:18 +0000 |
commit | f1c0034a18482ff85a1979fce94f3abd8622af0b (patch) | |
tree | 6a44d912c4d62ad2908591187bbec5ec4e63623e /view/tpl | |
parent | 7342cb81a3cffc1cd8ae3e32c2035e5c07376b53 (diff) | |
download | volse-hubzilla-f1c0034a18482ff85a1979fce94f3abd8622af0b.tar.gz volse-hubzilla-f1c0034a18482ff85a1979fce94f3abd8622af0b.tar.bz2 volse-hubzilla-f1c0034a18482ff85a1979fce94f3abd8622af0b.zip |
more work on access tokens
Diffstat (limited to 'view/tpl')
-rw-r--r-- | view/tpl/tokens.tpl | 21 | ||||
-rw-r--r-- | view/tpl/widget_menu.tpl | 10 |
2 files changed, 15 insertions, 16 deletions
diff --git a/view/tpl/tokens.tpl b/view/tpl/tokens.tpl index 443fb5392..835c1a6db 100644 --- a/view/tpl/tokens.tpl +++ b/view/tpl/tokens.tpl @@ -16,22 +16,11 @@ {{include file="field_input.tpl" field=$expires}} {{include file="field_select.tpl" field=$permcat}} - <div class="settings-submit-wrapper mb-3"> - <button type="submit" name="submit" class="btn btn-primary">{{$submit}}</button> + <div class="mb-2 clearfix"> + {{if $atoken}} + <button type="submit" name="delete" class="btn btn-outline-danger">{{$delete}}</button> + {{/if}} + <button type="submit" name="submit" class="btn btn-primary float-end">{{$submit}}</button> </div> </div> - - {{if $tokens}} - <div class="section-content-wrapper-np"> - <table id="atoken-index"> - {{foreach $tokens as $t}} - <tr id="atoken-index-{{$t.atoken_id}}" class="atoken-index-row"> - <td width="99%"><a href="tokens/{{$t.atoken_id}}">{{$t.atoken_name}}</a></td> - <td width="1%" class="atoken-index-tool"><i class="fa fa-trash-o drop-icons" onClick="dropItem('tokens/{{$t.atoken_id}}/drop', '#atoken-index-{{$t.atoken_id}}')"></i></td> - </tr> - {{/foreach}} - </table> - - </div> - {{/if}} </div> diff --git a/view/tpl/widget_menu.tpl b/view/tpl/widget_menu.tpl new file mode 100644 index 000000000..86799ff00 --- /dev/null +++ b/view/tpl/widget_menu.tpl @@ -0,0 +1,10 @@ +<div class="widget"> + <h3>{{$title}}</h3> + <ul class="nav nav-pills flex-column"> + {{foreach $menu_items as $menu_item}} + <li class="nav-item"> + <a class="nav-link{{if $menu_item.active}} active{{/if}}" href="{{$menu_item.href}}" title="{{$menu_item.title}}">{{$menu_item.label}}</a> + <li> + {{/foreach}} + </ul> +</div> |