Commit e93d48f7 authored by Gabriel Monnerat's avatar Gabriel Monnerat

improve login dialog and your css

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43911 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d0ef2af0
...@@ -37,39 +37,42 @@ ...@@ -37,39 +37,42 @@
<value> <unicode encoding="cdata"><![CDATA[ <value> <unicode encoding="cdata"><![CDATA[
<div id="login-box">\n <div id="login-box">\n
<table id="field_table">\n <table id="field_table">\n
<tbody>\n <tbody>\n
<tr>\n <tr>\n
<td>\n <td>\n
<table>\n <table>\n
<tr>\n <tr>\n
<td align="center" colspan="2">\n <td align="center" colspan="2"><font size="-1">Login in</font></td>\n
<font size="-1">Login in</font>\n </tr>\n
</td>\n <tr></tr>\n
</tr>\n <tr>\n
<tr></tr>\n <td><label for="name">Name:</label></td>\n
<tr>\n <td><input type="text" name="__ac_name" id="name" tal:attributes="value python: request.get(\'__ac_name\') or \'\'" /></td>\n
<td>\n </tr>\n
<label for="name">Name:</label>\n <tr>\n
</td>\n <td><label for="password">Password:</label></td>\n
<td>\n <td><input type="password" name="__ac_password" id="password" /></td>\n
<input type="text" name="__ac_name" id="name" tal:attributes="value python: request.get(\'__ac_name\') or \'\'" />\n </tr>\n
</td>\n <td align="center" colspan="2"><input type="submit" name="logged_in:method" class="submit" value="Sign In"></td>\n
</tr>\n </tr>\n
<tr>\n </tbody>\n
<td>\n </table>\n
<label for="password">Password:</label>\n <p>\n
</td>\n <table id="new-account-table">\n
<td>\n <tbody>\n
<input type="password" name="__ac_password" id="password" />\n <tr>\n
</td>\n <td>\n
</tr>\n <table width="100%">\n
<td align="center" colspan="2">\n <tr>\n
<input type="submit" name="logged_in:method" class="submit" value="Sign In">\n <td align="center" colspan="2"><b>Don\'t have an UNG Account?</b></td>\n
</td>\n </tr>\n
</tr>\n <tr>\n
</tbody>\n <td id="new-account-form" align="center" colspan="2">Create an account now</td>\n
</table>\n </tr>\n
</tr>\n
</tbody>\n
</table>\n
</div> </div>
]]></unicode> </value> ]]></unicode> </value>
......
...@@ -854,7 +854,7 @@ div#login-box {\n ...@@ -854,7 +854,7 @@ div#login-box {\n
font-family: Arial,Helvetica,sans-serif;\n font-family: Arial,Helvetica,sans-serif;\n
font-size: 12px;\n font-size: 12px;\n
margin: 0;\n margin: 0;\n
padding: 0 23px 0 0;\n padding: 23px 23px 0 0;\n
float:right;\n float:right;\n
}\n }\n
\n \n
...@@ -1037,16 +1037,32 @@ a.your_listbox_title {\n ...@@ -1037,16 +1037,32 @@ a.your_listbox_title {\n
display: none;\n display: none;\n
}\n }\n
\n \n
div#login-box table#field_table {\n div#login-box table#field_table,\n
div#login-box table#new-account-table {\n
border: 1px solid #C3D9FF;\n border: 1px solid #C3D9FF;\n
}\n }\n
\n \n
div#login-box table#field_table tbody {\n div#login-box table#field_table tbody,\n
div#login-box table#new-account-table tbody {\n
background: #E8EEFA;\n background: #E8EEFA;\n
}\n }\n
\n \n
div#login-box table#field_table tbody label {\n div#login-box table#field_table tbody label {\n
font-size: 10pt;\n font-size: 10pt;\n
}\n
\n
div#login-box table#new-account-table {\n
width: 100%;\n
}\n
\n
div#login-box table#new-account-table table td {\n
font-size: 10pt;\n
}\n
\n
td#new-account-form {\n
text-decoration: underline;\n
color: #00C;\n
font-weight: bold;\n
} }
]]></string> </value> ]]></string> </value>
......
...@@ -105,6 +105,7 @@ function changeCheckBoxValue(value){\n ...@@ -105,6 +105,7 @@ function changeCheckBoxValue(value){\n
}\n }\n
\n \n
function displayLoginForm(){\n function displayLoginForm(){\n
$("a.ung_docs, img[alt=\'calendar_logo_box\']").hide();\n
$("div.header-left div.field input, div.main-right, div.main-left").hide();\n $("div.header-left div.field input, div.main-right, div.main-left").hide();\n
if ($("div#login_form").html() == null){\n if ($("div#login_form").html() == null){\n
$.get("WebSection_loginDialog", function(data){\n $.get("WebSection_loginDialog", function(data){\n
......
262 263
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment