diff options
author | Max Kostikov <max@kostikov.co> | 2021-04-17 23:46:40 +0200 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2021-04-17 23:46:40 +0200 |
commit | 200d3577fa32bb5107e0376dfd5ee9b3bc8b8721 (patch) | |
tree | 29be82bc3b5e67986d503ec2c37d05eb38b32db2 /view/tpl/register.tpl | |
parent | b5620cb79443fcbf1820341bce05fadbb0b124be (diff) | |
parent | 8ab99747f55e60448d4468e99d97ae6c0fa566c0 (diff) | |
download | volse-hubzilla-200d3577fa32bb5107e0376dfd5ee9b3bc8b8721.tar.gz volse-hubzilla-200d3577fa32bb5107e0376dfd5ee9b3bc8b8721.tar.bz2 volse-hubzilla-200d3577fa32bb5107e0376dfd5ee9b3bc8b8721.zip |
Merge branch 'dev' of https://framagit.org/kostikov/core into dev
Diffstat (limited to 'view/tpl/register.tpl')
-rw-r--r-- | view/tpl/register.tpl | 71 |
1 files changed, 23 insertions, 48 deletions
diff --git a/view/tpl/register.tpl b/view/tpl/register.tpl index d6f70d118..8e1530eb4 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> @@ -19,69 +23,40 @@ </div> {{/if}} - {{if $auto_create}} - {{if $default_role}} - <input type="hidden" name="permissions_role" value="{{$default_role}}" /> - {{else}} - <div class="section-content-info-wrapper"> - {{$help_role}} + {{if $invitations}} + <a id="zar014" href="javascript:;" style="display: inline-block;">{{$haveivc}}</a> + <div id="zar015" style="display: none;"> + <div class="position-relative"> + <div id="invite-spinner" class="spinner-wrapper position-absolute" style="top: 2.5rem; right: 0.5rem;"><div class="spinner s"></div></div> + {{include file="field_input.tpl" field=[$invite_code.0,$invite_code.1,"","",""]}} + </div> </div> - {{include file="field_select_grouped.tpl" field=$role}} {{/if}} + {{if $auto_create}} <div class="position-relative"> - <div id="name-spinner" class="spinner-wrapper position-absolute" style="top: 2.5rem; right: 0.5rem;"><div class="spinner s"></div></div> - {{include file="field_input.tpl" field=[$name.0,$name.1,"","","",$atform]}} + <div id="name-spinner" class="spinner-wrapper position-absolute" style="top: 2.5rem; right: 0.75rem;"><div class="spinner s"></div></div> + {{include file="field_input.tpl" field=$name}} </div> <div class="position-relative"> - <div id="nick-spinner" class="spinner-wrapper position-absolute" style="top: 2.5rem; right: 0.5rem;"><div class="spinner s"></div></div> - {{include file="field_input.tpl" field=[$nickname.0,$nickname.1,"","","",$atform]}} + <div id="nick-hub" class="position-absolute" style="top: 2.3rem; right: 0.75rem;"><span class="text-muted">{{$nickhub}}</span></div> + <div id="nick-spinner" class="spinner-wrapper position-absolute" style="top: 2.5rem; right: 0.75rem;"><div class="spinner s"></div></div> + {{include file="field_input.tpl" field=$nickname}} </div> {{/if}} - - <div> - {{if $invitations}} - <a id="zar014" href="javascript:;" style="display: inline-block;">{{$haveivc}}</a> - <div id="zar015" style="display: none;"> - {{include file="field_input.tpl" field=[$invite_code.0,$invite_code.1,"","",""]}} - </div> - {{/if}} - {{include file="field_input.tpl" field=$email}} - </div> - {{include file="field_password.tpl" field=$pass1}} - {{include file="field_password.tpl" field=$pass2}} - - + {{if $reg_is}} + {{include file="field_textarea.tpl" field=$register_msg}} + {{/if}} {{if $enable_tos}} - {{include file="field_checkbox.tpl" field=[$tos.0,$tos.1,"","","",$atform]}} + {{include file="field_checkbox.tpl" field=$tos}} {{else}} <input type="hidden" name="tos" value="1" /> {{/if}} - <button class="btn btn-primary" type="submit" name="submit" id="newchannel-submit-button" value="{{$submit}}" {{$atform}}>{{$submit}}</button> <div id="register-submit-end" class="register-field-end"></div> </form> </div> </div> -{{* - COMMENTS for this template: - hilmar, 2020.02 -*}} -<script> - $('head').append( - '<style> '+ - ' .zuiqmid { font-weight: normal; font-family: monospace; }'+ - ' .zuirise { font-weight: bold; font-size: 100%; color: red; }'+ - '</style>'); - - {{$tao}} - - 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'})); - }); -</script> |