From e35ab97b7ecbd96e11883bc194bfe9fb5a72e7f2 Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 14 Apr 2021 19:40:51 +0000 Subject: register: provide a possibility to leave a message id registration is by approval --- view/tpl/admin_accounts.tpl | 38 +++++++++++++++++++------------------- view/tpl/register.tpl | 12 +++--------- 2 files changed, 22 insertions(+), 28 deletions(-) (limited to 'view/tpl') diff --git a/view/tpl/admin_accounts.tpl b/view/tpl/admin_accounts.tpl index 9c78dbe54..70606010d 100644 --- a/view/tpl/admin_accounts.tpl +++ b/view/tpl/admin_accounts.tpl @@ -18,14 +18,11 @@ {{foreach $pending as $n => $u}} - {{$u.reg_created}}
{{$u.reg_n}} - - - {{$u.status}} - - {{$u.reg_startup}}
{{$u.reg_expires}} + {{$u.reg_created}} {{$u.reg_did2}} - {{$u.reg_email}}
{{$u.reg_atip}} + {{$u.reg_email}} + {{$u.reg_atip}} + {{$u.reg_atip_n}} @@ -33,6 +30,9 @@ + + {{$u.msg}} + {{/foreach}} @@ -43,8 +43,8 @@ *}}
{{$sel_tall}} - {{$sel_aprv}} - {{$sel_deny}} + {{$sel_aprv}} + {{$sel_deny}}
{{else}}

{{$no_pending}}

@@ -84,13 +84,13 @@ {{/foreach}} - +
{{$select_all}}
- {{* + {{*
{{$select_all}}
*}}
- +
{{else}} @@ -98,7 +98,7 @@ {{/if}} -{{* +{{* COMMENTS for this template: hilmar, 2020.01 script placed at the end @@ -119,17 +119,17 @@ tao.zar = { vsn: '2.0.0', c2s: {}, t: {} }; {{$tao}} $('#adminpage').on( 'click', '#zar2sat', function() { - $('input.pending_ckbx:checkbox').each( function() { this.checked = ! this.checked; }); + $('input.pending_ckbx:checkbox').each( function() { this.checked = ! this.checked; }); }); $('#adminpage').on( 'click', '.zar2xas', function() { tao.zar.c2s.x = $(this).attr('id').substr(4,1); - $('input.pending_ckbx:checkbox:checked').each( function() { - //if (this.checked) + $('input.pending_ckbx:checkbox:checked').each( function() { + //if (this.checked) // take the underscore with to prevent numeric 0 headdage tao.zar.c2s.n = $(this).attr('id').substr(10); $('#zarreax'+tao.zar.c2s.n).html(tao.zar.zarax); zarCSC(); - }); + }); }); $('.zar2s').click( function() { tao.zar.c2s.ix=$(this).attr('id'); @@ -142,12 +142,12 @@ function zarCSC() { $.ajax({ - type: 'POST', url: 'admin/accounts', + type: 'POST', url: 'admin/accounts', data: { zarat: tao.zar.c2s.n, zardo: tao.zar.c2s.x, zarse: tao.zar.zarar[(tao.zar.c2s.n).substr(1)], - form_security_token: $("input[name='form_security_token']").val() + form_security_token: $("input[name='form_security_token']").val() } }).done( function(r) { tao.zar.r = JSON.parse(r); diff --git a/view/tpl/register.tpl b/view/tpl/register.tpl index 03cead08f..3dba25706 100644 --- a/view/tpl/register.tpl +++ b/view/tpl/register.tpl @@ -43,23 +43,17 @@ {{include file="field_input.tpl" field=[$nickname.0,$nickname.1,"","","",$atform]}} {{/if}} - -
- {{include file="field_input.tpl" field=$email}} -
- {{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]}} {{else}} {{/if}} -
-- cgit v1.2.3