aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/tokens.tpl
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-01-06 21:09:18 +0000
committerMario <mario@mariovavti.com>2022-01-06 21:09:18 +0000
commitf1c0034a18482ff85a1979fce94f3abd8622af0b (patch)
tree6a44d912c4d62ad2908591187bbec5ec4e63623e /view/tpl/tokens.tpl
parent7342cb81a3cffc1cd8ae3e32c2035e5c07376b53 (diff)
downloadvolse-hubzilla-f1c0034a18482ff85a1979fce94f3abd8622af0b.tar.gz
volse-hubzilla-f1c0034a18482ff85a1979fce94f3abd8622af0b.tar.bz2
volse-hubzilla-f1c0034a18482ff85a1979fce94f3abd8622af0b.zip
more work on access tokens
Diffstat (limited to 'view/tpl/tokens.tpl')
-rw-r--r--view/tpl/tokens.tpl21
1 files changed, 5 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>