source: arma2/idCentral/idcentral/templates/nuevo_usuario.html @ 03d5364592543369d35b1ad6fcae67be27c5c4d9

Revision 03d5364592543369d35b1ad6fcae67be27c5c4d9, 4.7 KB checked in by TiN <tin@…>, 3 years ago (diff)

PluginTrac? => daemon_xmlrpc => steroides, conectados

  • Property mode set to 100644
Line 
1<!DOCTYPE html
2    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4<html xmlns="http://www.w3.org/1999/xhtml"
5      xmlns:py="http://genshi.edgewall.org/"
6      xmlns:xi="http://www.w3.org/2001/XInclude">
7  <xi:include href="layout.html" />
8  <xi:include href="macros.html" />
9  <head>
10    <title>Nuevo Usuario IdCentral</title>
11  </head>
12
13<script LANGUAGE="JavaScript">
14<!--
15window.onload = init;
16function init(){
17    checkPasswordStrengh(document.getElementById("password"));
18    checkPasswordStrengh(document.getElementById("confirm_passwd"));
19}
20
21function checkPasswordStrengh(fieldText){
22    var password = fieldText.value;
23    var score = 1;
24    if(password.length < 1){
25        score = 0;
26    }
27    if(password.length < 4 && password.length >= 1){
28        score = 1;
29    }
30    if(password.length >= 8){
31        score += 1;
32    }
33    if(password.length >= 11){
34        score += 1;
35    }
36    if(password.match(/\d+/)){
37        score += 1;
38    }
39    if(password.match(/[a-z]/) && password.match(/[A-Z]/)){
40        score += 1;
41    }
42    if(password.match(/.[!,@,#,$,%,^,&,*,?,_,~,-,£,(,)]/)){
43        score += 1;
44    }
45    fieldText.className = "strength" + score;
46}
47//-->
48</script>
49
50
51  <body>
52
53    <h1>Nuevo Usuario IdCentral</h1>
54
55    <py:if test="error_project_max">
56      <div id="content" class="error">
57        <label class="message">${error_project_max}</label>
58      </div>
59    </py:if>
60
61    <p>${intro}</p>
62
63      <form method="post" id="newuser_form" action="">
64        <fieldset>
65          <legend>Requeridos</legend>
66          <input type="hidden" name="action" value="newuser" />
67
68          <div id="content" class="error">
69            <label>
70              <b>Nombre y Apellido:</b>
71              <input type="text" name="name_lastname" class="textwidget" size="40" value="$name_lastname" />
72              <py:if test="error_name_lastname">
73                <label class="message">${error_name_lastname}</label>
74              </py:if>
75              <div>
76                  <font color="Blue" size="-1">${sug_name_lastname}</font>
77              </div>
78            </label>
79          </div>
80
81          <div id="content" class="error">
82            <label><b>User:</b>
83              <input type="text" name="user_put" class="textwidget" size="20" value="$user_put"/>
84              <py:if test="error_user_put">
85                <label class="message">${error_user_put}</label>
86              </py:if>
87              <div>
88                  <font color="Blue" size="-1">${sug_user_put}</font>
89              </div>
90            </label>
91          </div>
92
93          <div id="content">
94            <label><b>Grupo de Usuario:</b>
95              <select name="lug">
96                <option value="usla" py:attrs="usla">USLA</option>
97                <option value="sluc" py:attrs="sluc">SLUC</option>
98              </select>
99              <div>
100                  <font color="Blue" size="-1">${sug_usergroup}</font>
101              </div>
102            </label>
103          </div>
104
105          <div id="content" class="error">
106            <label><b>TextCha</b>
107              <input type="text" name="texcha_put" class="textwidget" size="20" value="$texcha_put"/>
108              <label><b>$texcha</b></label>
109              <py:if test="error_texcha">
110                <label class="message">${error_texcha}</label>
111              </py:if>
112              <div>
113                  <font color="Blue" size="-1">${sug_texcha}</font>
114              </div>
115            </label>
116          </div>
117
118          <div id="content" class="error">
119            <label><b>Contraseña</b>
120                <input id="password" name="passwd" class="strength0"
121                       size="20" value="$passwd" type="password" onkeyup="javascript:checkPasswordStrengh(this);"/>
122              <py:if test="error_passwd">
123                <label class="message">${error_passwd}</label>
124              </py:if>
125              <div>
126                <font color="Blue" size="-1">${sug_passwd}</font>
127              </div>
128            </label>
129          </div>
130
131          <div id="content" class="error">
132            <label><b>Confirmar contraseña</b>
133                <input id="confirm_passwd" name="confirm_passwd" class="strengh0"
134                       size="20" value="$confirm_passwd" type="password" onkeyup="javascript:checkPasswordStrengh(this);"/>
135              <py:if test="error_confirm_passwd">
136                <label class="message">${error_confirm_passwd}</label>
137              </py:if>
138              <div>
139                <font color="Blue" size="-1">${sug_confirm_passwd}</font>
140              </div>
141            </label>
142          </div>
143
144        </fieldset>
145        <input type="submit" value="Crear Usuario" />
146      </form>
147  </body>
148</html>
149
Note: See TracBrowser for help on using the repository browser.