From 2456174cc905d2d0ae19d21c94fec2c5552322a8 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 23 Aug 2012 20:00:10 -0700 Subject: back to identity creation form --- view/css/mod_zentity.css | 17 +++++++++++----- view/js/mod_zentity.js | 17 ++++++++++++++++ view/php/default.php | 1 + view/tpl/mood_content.tpl | 20 +++++++++++++++++++ view/tpl/zentity.tpl | 51 +++++++++++++++-------------------------------- 5 files changed, 66 insertions(+), 40 deletions(-) create mode 100644 view/js/mod_zentity.js create mode 100644 view/tpl/mood_content.tpl (limited to 'view') diff --git a/view/css/mod_zentity.css b/view/css/mod_zentity.css index 2edb9e9a9..402572a38 100644 --- a/view/css/mod_zentity.css +++ b/view/css/mod_zentity.css @@ -4,29 +4,36 @@ h2 { margin-top: 15%; } -#zregister-form { +#zentity-form { font-size: 1.4em; margin-left: 15%; margin-top: 5%; + width: 50%; } -.zregister-label { +#zentity-form .descriptive-paragraph { + color: #888; + margin-left: 20px; + margin-bottom: 25px; +} + +.zentity-label { float: left; width: 275px; } -.zregister-input { +.zentity-input { float: left; width: 275px; padding: 5px; } -.zregister-feedback { +.zentity-feedback { float: left; margin-left: 5px; } -.zregister-field-end { +.zentity-field-end { clear: both; margin-bottom: 20px; } diff --git a/view/js/mod_zentity.js b/view/js/mod_zentity.js new file mode 100644 index 000000000..ad78db7d4 --- /dev/null +++ b/view/js/mod_zentity.js @@ -0,0 +1,17 @@ + $(document).ready(function() { + $("#zentity-name").blur(function() { + var zreg_name = $("#zentity-name").val(); + $.get("zentity/autofill.json?f=&name=" + encodeURIComponent(zreg_name),function(data) { + $("#zentity-nickname").val(data); + zFormError("#zentity-name-feedback",data.error); + }); + }); + $("#zentity-nickname").blur(function() { + var zreg_nick = $("#zentity-nickname").val(); + $.get("zentity/checkaddr.json?f=&nick=" + encodeURIComponent(zreg_nick),function(data) { + $("#zentity-nickname").val(data); + zFormError("#zentity-nickname-feedback",data.error); + }); + }); + + }); diff --git a/view/php/default.php b/view/php/default.php index 61f5f6863..80c8070b2 100644 --- a/view/php/default.php +++ b/view/php/default.php @@ -10,6 +10,7 @@
+
diff --git a/view/tpl/mood_content.tpl b/view/tpl/mood_content.tpl new file mode 100644 index 000000000..9349c56ae --- /dev/null +++ b/view/tpl/mood_content.tpl @@ -0,0 +1,20 @@ +

$title

+ +
$desc
+ +
+
+
+ + + + +
+
+ +
+ diff --git a/view/tpl/zentity.tpl b/view/tpl/zentity.tpl index f34042d05..f41578117 100644 --- a/view/tpl/zentity.tpl +++ b/view/tpl/zentity.tpl @@ -1,46 +1,27 @@

$title

-
+ -{{ if $registertext }} -
$registertext
-{{ endif }} +
$desc
-{{ if $invitations }} -

$invite_desc

+ + +
+
- - - -
-
+ + +
+
-{{ endif }} +
$nick_desc
- - -
-
+ + +
- - -
-
- -
-
$label_pass2
-
- -
 
- - - - -
-
- - -
+ +
-- cgit v1.2.3