aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/settings_tokens.tpl
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-07-17 11:29:37 +0200
committerMario Vavti <mario@mariovavti.com>2016-07-17 11:29:37 +0200
commitf39d20ac978e6ea8a0d2993f9953d051e5f31254 (patch)
treea792efbd9efa8da4de811b7699e7b6529550c958 /view/tpl/settings_tokens.tpl
parentf396b1bf735a7dc9eb3632e49c1269de54777c6d (diff)
downloadvolse-hubzilla-f39d20ac978e6ea8a0d2993f9953d051e5f31254.tar.gz
volse-hubzilla-f39d20ac978e6ea8a0d2993f9953d051e5f31254.tar.bz2
volse-hubzilla-f39d20ac978e6ea8a0d2993f9953d051e5f31254.zip
some work on guest access token ui
Diffstat (limited to 'view/tpl/settings_tokens.tpl')
-rw-r--r--view/tpl/settings_tokens.tpl45
1 files changed, 26 insertions, 19 deletions
diff --git a/view/tpl/settings_tokens.tpl b/view/tpl/settings_tokens.tpl
index 6819a2e58..7e4b19507 100644
--- a/view/tpl/settings_tokens.tpl
+++ b/view/tpl/settings_tokens.tpl
@@ -3,31 +3,38 @@
<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">
+ <div class="section-content-tools-wrapper">
+ <div class="section-content-info-wrapper">
+ {{$desc}}
+ </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}}
{{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" >
+ <div class="settings-submit-wrapper form-group">
<button type="submit" name="submit" class="btn btn-primary">{{$submit}}</button>
</div>
- </div>
- </form>
+ </form>
+ <div class="descriptive-text">{{$desc2}}</div>
+ <ul>
+ <li>{{$url1}}<span class="zat-example">&f=&zat=<span class="token-mirror"></span></span></li>
+ <li>{{$url2}}<span class="zat-example">&f=&zat=<span class="token-mirror"></span></span></li>
+ </ul>
+ </div>
{{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 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="settings/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('/settings/tokens/{{$t.atoken_id}}/drop', '#atoken-index-{{$t.atoken_id}}')"></i></td>
+ </tr>
+ {{/foreach}}
+ </table>
+
</div>
{{/if}}
-
</div>