aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-04-07 20:50:34 +0200
committerMario <mario@mariovavti.com>2021-04-07 20:50:34 +0200
commit806f50eee3c8d63c8c8bceb89a3595e14cc303c5 (patch)
tree8053f007858c21d0cba79bbf62b17d8dc58a0ee6 /view
parent6956eadaad637561561fad83727043f56f36f1b4 (diff)
downloadvolse-hubzilla-806f50eee3c8d63c8c8bceb89a3595e14cc303c5.tar.gz
volse-hubzilla-806f50eee3c8d63c8c8bceb89a3595e14cc303c5.tar.bz2
volse-hubzilla-806f50eee3c8d63c8c8bceb89a3595e14cc303c5.zip
register: more ui/ux work
Diffstat (limited to 'view')
-rw-r--r--view/css/mod_admin.css19
-rw-r--r--view/js/mod_register.js8
-rw-r--r--view/tpl/admin_site.tpl8
-rw-r--r--view/tpl/register.tpl38
4 files changed, 42 insertions, 31 deletions
diff --git a/view/css/mod_admin.css b/view/css/mod_admin.css
index 8f1b98b61..fa8f84d83 100644
--- a/view/css/mod_admin.css
+++ b/view/css/mod_admin.css
@@ -1,4 +1,4 @@
-
+
/**
* ADMIN
@@ -9,7 +9,7 @@
font-weight: bold;
background-color: #FF0000;
padding: 0em 0.3em;
-
+
}
#adminpage dl {
clear: left;
@@ -74,3 +74,18 @@
tr.zebra9 { background-color: #eafaf1; }
tr.zebra0 { background-color: #fbeee6; }
tr.zebra1 { background-color: #fef9e7; }
+
+.zuiqmid {
+ font-weight: normal;
+ font-family: monospace;
+}
+
+.zui_n {
+ width: 5em;
+ text-align: center;
+}
+
+.zuia {
+ cursor: pointer;
+ font-weight: bold;
+}
diff --git a/view/js/mod_register.js b/view/js/mod_register.js
index 16f9b6da1..1b61e2b3d 100644
--- a/view/js/mod_register.js
+++ b/view/js/mod_register.js
@@ -14,11 +14,11 @@ $(document).ready(function() {
//ano
} else {
if (tao.zar.patema.test(tao.zar.form.email) == false ) {
- $('#help_email').removeClass('text-muted').addClass('zuirise').html(tao.zar.msg.ZAR0239E);
+ $('#help_email').removeClass('text-muted').addClass('text-danger').html(tao.zar.msg.ZAR0239E);
zFormError('#help_email',true);
} else {
$.get('register/email_check.json?f=&email=' + encodeURIComponent(tao.zar.form.email), function(data) {
- $('#help_email').removeClass('text-muted').addClass('zuirise').html(data.message);
+ $('#help_email').removeClass('text-muted').addClass('text-danger').html(data.message);
zFormError('#help_email',data.error);
});
}
@@ -30,7 +30,7 @@ $(document).ready(function() {
$('#id_password').change(function() {
if(($('#id_password').val()).length < 6 ) {
- $('#help_password').removeClass('text-muted').addClass('zuirise').html(aStr.pwshort);
+ $('#help_password').removeClass('text-muted').addClass('text-danger').html(aStr.pwshort);
zFormError('#help_password', true);
}
else {
@@ -42,7 +42,7 @@ $(document).ready(function() {
});
$('#id_password2').change(function() {
if($('#id_password').val() != $('#id_password2').val()) {
- $('#help_password2').removeClass('text-muted').addClass('zuirise').html(aStr.pwnomatch);
+ $('#help_password2').removeClass('text-muted').addClass('text-danger').html(aStr.pwnomatch);
zFormError('#help_password2', true);
$('#id_password').focus();
}
diff --git a/view/tpl/admin_site.tpl b/view/tpl/admin_site.tpl
index e5717a907..b6fd2348d 100644
--- a/view/tpl/admin_site.tpl
+++ b/view/tpl/admin_site.tpl
@@ -127,12 +127,4 @@
}
});
});
- // [hilmar->
- $('head').append(
- '<style> '+
- ' .zuiqmid { font-weight: normal; font-family: monospace; }'+
- ' .zui_n { width: 5em; text-align: center; }'+
- ' .zuia { cursor: pointer; font-weight: bold; }'+
- '</style>');
- // <-hilmar]
</script>
diff --git a/view/tpl/register.tpl b/view/tpl/register.tpl
index 119c47bd8..d6f70d118 100644
--- a/view/tpl/register.tpl
+++ b/view/tpl/register.tpl
@@ -7,7 +7,7 @@
<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
{{if $reg_is || $other_sites || $now || $msg}}
<div class="section-content-warning-wrapper">
- <h3>{{$now}}</h3>
+ <div class="h3">{{$now}}</div>
<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,6 +19,26 @@
</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}}
+ </div>
+ {{include file="field_select_grouped.tpl" field=$role}}
+ {{/if}}
+
+ <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>
+ <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>
+ {{/if}}
+
<div>
{{if $invitations}}
<a id="zar014" href="javascript:;" style="display: inline-block;">{{$haveivc}}</a>
@@ -34,22 +54,6 @@
{{include file="field_password.tpl" field=$pass2}}
- {{if $auto_create}}
- {{if $default_role}}
- <input type="hidden" name="permissions_role" value="{{$default_role}}" />
- {{else}}
- <div class="section-content-info-wrapper">
- {{$help_role}}
- </div>
- {{include file="field_select_grouped.tpl" field=$role}}
- {{/if}}
-
- {{include file="field_input.tpl" field=[$name.0,$name.1,"","","",$atform]}}
- <div id="name-spinner" class="spinner-wrapper"><div class="spinner m"></div></div>
-
- {{include file="field_input.tpl" field=[$nickname.0,$nickname.1,"","","",$atform]}}
- <div id="nick-spinner" class="spinner-wrapper"><div class="spinner m"></div></div>
- {{/if}}
{{if $enable_tos}}
{{include file="field_checkbox.tpl" field=[$tos.0,$tos.1,"","","",$atform]}}