From f39d20ac978e6ea8a0d2993f9953d051e5f31254 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sun, 17 Jul 2016 11:29:37 +0200 Subject: some work on guest access token ui --- view/css/mod_settings.css | 19 ++++++++++++++++- view/theme/redbasic/css/style.css | 18 +--------------- view/tpl/settings_tokens.tpl | 45 ++++++++++++++++++++++----------------- 3 files changed, 45 insertions(+), 37 deletions(-) (limited to 'view') diff --git a/view/css/mod_settings.css b/view/css/mod_settings.css index e81d115d4..4236b3dff 100644 --- a/view/css/mod_settings.css +++ b/view/css/mod_settings.css @@ -7,5 +7,22 @@ } .channel-menu { - margin-top: 24px; + margin-top: 24px; +} + +.zat-example { + color: red; +} + +#atoken-index { + width: 100%; +} + +#atoken-index td:nth-child(1){ + padding: 7px 3px 7px 10px; + white-space: nowrap; +} + +.atoken-index-tool { + padding: 7px 10px; } diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index eeaf021c1..d61e60dc9 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -1655,6 +1655,7 @@ main.fullscreen .section-content-wrapper-np { display: none; } +.atoken-index-row:hover td, .chatroom-index-row:hover td, .locs-index-row:hover td, [id^="cloud-index-"]:hover td, @@ -2036,20 +2037,3 @@ dl.bb-dl > dd > li { border-style: solid; border-width: 5px; } - -.atoken-list { - margin-right: 5px; - list-style-type: none; -} -.atoken-list li { - margin-bottom: 10px; -} -.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 6819a2e58..7e4b19507 100644 --- a/view/tpl/settings_tokens.tpl +++ b/view/tpl/settings_tokens.tpl @@ -3,31 +3,38 @@

{{$title}}

-
{{$desc}}
-
{{$desc2}}
-
{{$url1}}&f=&zat=
-
{{$url2}}&f=&zat=
-
-
- - {{if $atoken}}{{/if}} -
+
+ + + + + {{if $atoken}}{{/if}} {{include file="field_input.tpl" field=$name}} {{include file="field_input.tpl" field=$token}} {{include file="field_input.tpl" field=$expires}} -
+
-
- + +
{{$desc2}}
+
    +
  • {{$url1}}&f=&zat=
  • +
  • {{$url2}}&f=&zat=
  • +
+
{{if $tokens}} -
- +
+ + {{foreach $tokens as $t}} + + + + + {{/foreach}} +
{{$t.atoken_name}}
+
{{/if}} -
-- cgit v1.2.3