aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
Diffstat (limited to 'view')
-rw-r--r--view/js/mod_settings.js3
-rw-r--r--view/theme/redbasic/css/style.css6
-rw-r--r--view/tpl/settings_tokens.tpl4
3 files changed, 13 insertions, 0 deletions
diff --git a/view/js/mod_settings.js b/view/js/mod_settings.js
index 640c154dd..0f45e0d16 100644
--- a/view/js/mod_settings.js
+++ b/view/js/mod_settings.js
@@ -5,6 +5,9 @@
$(document).ready(function() {
$('form').areYouSure({'addRemoveFieldsMarksDirty':true, 'message': aStr['leavethispage'] }); // Warn user about unsaved settings
+ $('.token-mirror').html($('#id_token').val());
+ $('#id_token').keyup( function() { $('.token-mirror').html($('#id_token').val()); });
+
$("#id_permissions_role").change(function() {
var role = $("#id_permissions_role").val();
if(role == 'custom')
diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css
index 06d72588b..eeaf021c1 100644
--- a/view/theme/redbasic/css/style.css
+++ b/view/theme/redbasic/css/style.css
@@ -2046,4 +2046,10 @@ dl.bb-dl > dd > li {
}
.atoken-text {
margin: 5px 10px 5px 10px;
+}
+.atoken-example {
+ margin-left: 20px;
+}
+.zat-example {
+ color: red;
} \ No newline at end of file
diff --git a/view/tpl/settings_tokens.tpl b/view/tpl/settings_tokens.tpl
index a81d65dfc..6819a2e58 100644
--- a/view/tpl/settings_tokens.tpl
+++ b/view/tpl/settings_tokens.tpl
@@ -4,6 +4,10 @@
<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}}