aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
Diffstat (limited to 'view/tpl')
-rw-r--r--view/tpl/regate.tpl45
-rw-r--r--view/tpl/regate_pre.tpl58
-rw-r--r--view/tpl/register.tpl8
3 files changed, 68 insertions, 43 deletions
diff --git a/view/tpl/regate.tpl b/view/tpl/regate.tpl
index 6eaac1478..b9239ee46 100644
--- a/view/tpl/regate.tpl
+++ b/view/tpl/regate.tpl
@@ -1,25 +1,38 @@
-<h2>{{$title}}</h2>
+<div class="generic-content-wrapper">
+ <div class="section-title-wrapper">
+ <h2>{{$title}}</h2>
+ </div>
+ <div class="section-content-wrapper">
+ {{if $now}}
+ <div class="section-content-danger-wrapper">
+ <div class="h3">{{$now}}</div>
+ </div>
+ {{else}}
+ <div class="section-content-info-wrapper">
+ {{$desc}} {{$id}}
+ <div class="h3">{{$pin}}</div>
+ </div>
-<div class="descriptive-paragraph" style="font-size: 1.2em;"><p>{{$desc}}</p></div>
+ <form action="regate/{{$did2}}" method="post">
+ <input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
+ {{include file="field_input.tpl" field=[$acpin.0,$acpin.1,"","","",$atform]}}
-<form action="regate/{{$did2}}" method="post">
-<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
-{{include file="field_input.tpl" field=[$acpin.0,$acpin.1,"","","",$atform]}}
+ <div class="pull-right submit-wrapper">
+ <button type="submit" name="submit" class="btn btn-primary" {{$atform}}>{{$submit}}</button>
+ </div>
-<div class="pull-right submit-wrapper">
- <button type="submit" name="submit" class="btn btn-primary"{{$atform}}>{{$submit}}</button>
-</div>
+ {{if $resend}}
+ <div class="resend-email" >
+ <button type="submit" name="resend" class="btn btn-warning" {{$atform}}>{{$resend}}</button>
+ </div>
+ {{/if}}
-{{if $resend > ''}}
-<div class="resend-email" >
- <button type="submit" name="resend" class="btn btn-warning"{{$atform}}>{{$resend}}</button>
+ </form>
+ {{/if}}
+ <div class="clearfix"></div>
+ </div>
</div>
-{{/if}}
-
-</form>
-<div class="clear"></div>
<script>
- var week_days = ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'];
$('.register_date').each( function () {
var date = new Date($(this).data('utc'));
$(this).html(date.toLocaleString(undefined, {weekday: 'short', hour: 'numeric', minute: 'numeric'}));
diff --git a/view/tpl/regate_pre.tpl b/view/tpl/regate_pre.tpl
index adc63b181..7596f6846 100644
--- a/view/tpl/regate_pre.tpl
+++ b/view/tpl/regate_pre.tpl
@@ -1,41 +1,49 @@
-<h2>{{$title}}</h2>
-
-{{$delay_desc.0}}
-<div id="countdown" class="h3"></div>
-
-{{$desc.0}}<br>
-<br>
-{{$desc.1}}<br>
-{{$id}}<br>
-<br>
-{{$desc.2}}<br>
-{{$pin}}<br>
-<br>
-<div class="">
- {{$delay_desc.1}}<br>
- <span id="register_start" data-utc="{{$regdelay}}" class="register_date">
- {{$regdelay}}
- </span>
- &nbsp;&dash;&nbsp;
- <span data-utc="{{$regexpire}}" class="register_date">
- {{$regexpire}}
- </span>
+<div class="generic-content-wrapper">
+ <div class="section-title-wrapper">
+ <h2>{{$title}}</h2>
+ </div>
+ <div class="section-content-wrapper">
+ {{if $now}}
+ <div class="section-content-danger-wrapper">
+ <div class="h3">{{$now}}</div>
+ </div>
+ {{else}}
+ <div class="section-content-warning-wrapper">
+ {{$strings.0}}
+ <div id="countdown" class="h3"></div>
+ </div>
+ <div class="section-content-info-wrapper">
+ {{$strings.1}} {{$id}}
+ <div class="h3">{{$pin}}</div>
+ </div>
+ <div class="d-none">
+ {{$strings.2}}<br>
+ <span id="register_start" data-utc="{{$regdelay}}" class="register_date">
+ {{$regdelay}}
+ </span>
+ &nbsp;&dash;&nbsp;
+ <span data-utc="{{$regexpire}}" class="register_date">
+ {{$regexpire}}
+ </span>
+ </div>
+ {{/if}}
+ </div>
</div>
+
<script>
$('.register_date').each( function () {
var date = new Date($(this).data('utc'));
- $(this).html(date.toLocaleString());
+ $(this).html(date.toLocaleString(undefined, {weekday: 'short', hour: 'numeric', minute: 'numeric'}));
});
-
var date = '{{$countdown}}';
-
date = date !== '' ? date : $('#register_start').data('utc');
if(date) {
doCountDown(date, 'countdown');
var x = setInterval(doCountDown, 1000, date, 'countdown');
}
+
function doCountDown(date, id) {
var countDownDate = new Date(date).getTime();
var now = new Date().getTime();
diff --git a/view/tpl/register.tpl b/view/tpl/register.tpl
index 761e48773..03cead08f 100644
--- a/view/tpl/register.tpl
+++ b/view/tpl/register.tpl
@@ -5,9 +5,13 @@
<div class="section-content-wrapper">
<form action="register" method="post" id="register-form">
<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
- {{if $reg_is || $other_sites || $now || $msg}}
- <div class="section-content-warning-wrapper">
+ {{if $now}}
+ <div class="section-content-danger-wrapper">
<div class="h3">{{$now}}</div>
+ </div>
+ {{/if}}
+ {{if $reg_is || $other_sites || $msg}}
+ <div class="section-content-warning-wrapper">
<div id="register-desc" class="descriptive-paragraph">{{$msg}}</div>
<div id="register-desc" class="descriptive-paragraph">{{$reg_is}}</div>
<div id="register-sites" class="descriptive-paragraph">{{$other_sites}}</div>