aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/settings_tokens.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'view/tpl/settings_tokens.tpl')
-rw-r--r--view/tpl/settings_tokens.tpl33
1 files changed, 33 insertions, 0 deletions
diff --git a/view/tpl/settings_tokens.tpl b/view/tpl/settings_tokens.tpl
new file mode 100644
index 000000000..6819a2e58
--- /dev/null
+++ b/view/tpl/settings_tokens.tpl
@@ -0,0 +1,33 @@
+<div class="generic-content-wrapper">
+ <div class="section-title-wrapper">
+ <h2>{{$title}}</h2>
+ <div class="clear"></div>
+ </div>
+ <div class="atoken-text descriptive-text">{{$desc}}</div>
+ <div class="atoken-text descriptive-text">{{$desc2}}</div>
+ <div class="atoken-example">{{$url1}}<span class="zat-example">&f=&zat=<span class="token-mirror"></span></span></div>
+ <div class="atoken-example">{{$url2}}<span class="zat-example">&f=&zat=<span class="token-mirror"></span></span></div>
+ <br />
+ <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 class="atoken-list">
+ {{foreach $tokens as $t}}
+ <li><span class="pull-right atoken-drop"><a href="settings/tokens/{{$t.atoken_id}}/drop"><i class="fa fa-trash btn btn-xs btn-default"></i></a></span><a href="settings/tokens/{{$t.atoken_id}}">{{$t.atoken_name}}</a></li>
+ {{/foreach}}
+ </ul>
+ </div>
+ {{/if}}
+
+</div>