Commit b63f023c authored by Gabriel Monnerat's avatar Gabriel Monnerat

- add form to create new user via UNG

- improve css

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43914 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 45083079
...@@ -73,6 +73,23 @@ ...@@ -73,6 +73,23 @@
</tr>\n </tr>\n
</tbody>\n </tbody>\n
</table>\n </table>\n
<p>\n
<table id="create-new-user">\n
<tbody>\n
<tr>\n
<td>\n
<table width="100%">\n
<tr><td>First name:</td><td><input type="text" name="firstname"/></td></tr>\n
<tr><td>Last name:</td><td><input type="text" name="lastname"/></td></tr>\n
<tr><td>Login name:</td><td><input type="text" name="login"/></td></tr>\n
<tr><td>Password:</td><td><input type="password" name="password"/></td></tr>\n
<tr><td>Confirm Password:</td><td><input type="password" name="confirm"/></td></tr>\n
<td align="center" colspan="2"><input type="submit" name="logged_in:method" class="submit" value="Create Account"></td>\n
</table>\n
</td>\n
</tr>\n
</tbody>\n
</table>\n
</div> </div>
]]></unicode> </value> ]]></unicode> </value>
......
...@@ -1037,25 +1037,26 @@ a.your_listbox_title {\n ...@@ -1037,25 +1037,26 @@ a.your_listbox_title {\n
display: none;\n display: none;\n
}\n }\n
\n \n
div#login-box table#field_table,\n table#field_table,\n
div#login-box table#new-account-table {\n table#new-account-table,\n
table#create-new-user {\n
border: 1px solid #C3D9FF;\n border: 1px solid #C3D9FF;\n
width: 100%;\n
}\n }\n
\n \n
div#login-box table#field_table tbody,\n table#field_table tbody,\n
div#login-box table#new-account-table tbody {\n table#new-account-table tbody,\n
table#create-new-user 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
float: right;\n
}\n }\n
\n \n
div#login-box table#new-account-table {\n div#login-box table#new-account-table table td,\n
width: 100%;\n table#create-new-user td {\n
}\n
\n
div#login-box table#new-account-table table td {\n
font-size: 10pt;\n font-size: 10pt;\n
}\n }\n
\n \n
...@@ -1063,6 +1064,11 @@ td#new-account-form {\n ...@@ -1063,6 +1064,11 @@ td#new-account-form {\n
text-decoration: underline;\n text-decoration: underline;\n
color: #00C;\n color: #00C;\n
font-weight: bold;\n font-weight: bold;\n
cursor: pointer;\n
}\n
\n
table#create-new-user {\n
display:none;\n
} }
]]></string> </value> ]]></string> </value>
......
...@@ -427,6 +427,10 @@ $().ready(function(){\n ...@@ -427,6 +427,10 @@ $().ready(function(){\n
event.preventDefault();\n event.preventDefault();\n
displayLoginForm();\n displayLoginForm();\n
});\n });\n
$("td#new-account-form").click(function(event){\n
$("table#field_table, table#new-account-table").hide();\n
$("table#create-new-user").show();\n
});\n
$("input.listbox-check-all").click(function(event){\n $("input.listbox-check-all").click(function(event){\n
event.preventDefault();\n event.preventDefault();\n
changeCheckBoxValue(true);\n changeCheckBoxValue(true);\n
......
264 265
\ 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