aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-07-14 22:41:53 -0700
committerredmatrix <git@macgirvin.com>2016-07-14 22:41:53 -0700
commit7ee7f00bf34b11d0427f03df9494088cf56ef9ee (patch)
treeeea7b4b07c143848e83bca6c1ef6e5ee5d483031 /view/tpl
parent397a23499dc64e2abdd2c27ccdf7e059a23dcfff (diff)
downloadvolse-hubzilla-7ee7f00bf34b11d0427f03df9494088cf56ef9ee.tar.gz
volse-hubzilla-7ee7f00bf34b11d0427f03df9494088cf56ef9ee.tar.bz2
volse-hubzilla-7ee7f00bf34b11d0427f03df9494088cf56ef9ee.zip
Here's the basic UI for the Zot Access Tokens, requires some minor cleanup
Diffstat (limited to 'view/tpl')
-rw-r--r--view/tpl/settings_tokens.tpl28
1 files changed, 28 insertions, 0 deletions
diff --git a/view/tpl/settings_tokens.tpl b/view/tpl/settings_tokens.tpl
new file mode 100644
index 000000000..8763a681c
--- /dev/null
+++ b/view/tpl/settings_tokens.tpl
@@ -0,0 +1,28 @@
+<div class="generic-content-wrapper">
+ <div class="section-title-wrapper">
+ <h2>{{$title}}</h2>
+ <div class="clear"></div>
+ </div>
+ <form action="settings/tokens" id="settings-account-form" method="post" autocomplete="off" >
+ <input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
+ {{if $atoken}}<input type="hidden" name="atoken_id" value="{{$atoken.atoken_id}}" />{{/if}}
+ <div class="section-content-tools-wrapper">
+ {{include file="field_input.tpl" field=$name}}
+ {{include file="field_input.tpl" field=$token}}
+ {{include file="field_input.tpl" field=$expires}}
+ <div class="settings-submit-wrapper" >
+ <button type="submit" name="submit" class="btn btn-primary">{{$submit}}</button>
+ </div>
+ </div>
+ </form>
+ {{if $tokens}}
+ <div>
+ <ul>
+ {{foreach $tokens as $t}}
+ <li><a href="settings/tokens/{{$t.atoken_id}}">{{$t.atoken_name}}</a> <a href="settings/tokens/{{$t.atoken_id}}/drop"><i class="fa fa-remove btn btn-xs btn-default pull-right"></i></a></li>
+ {{/foreach}}
+ </ul>
+ </div>
+ {{/if}}
+
+</div>