Commit 491a6d8c743dff74633814632a0e5ff3bc13c512
1 parent
36dafe0a
Exists in
master
and in
5 other branches
Deleting row class into for #14
Showing
1 changed file
with
42 additions
and
44 deletions
Show diff stats
core/templates/register_user.html
@@ -38,53 +38,51 @@ | @@ -38,53 +38,51 @@ | ||
38 | {% csrf_token %} | 38 | {% csrf_token %} |
39 | <legend>{% trans 'User Register' %}</legend> | 39 | <legend>{% trans 'User Register' %}</legend> |
40 | {% for field in form %} | 40 | {% for field in form %} |
41 | - <div class="row"> | ||
42 | - <div class="form-group is-empty {% if form.has_error %} has-error {% endif %} is-fileinput"> | ||
43 | - {% if field.field.required %} | ||
44 | - <label for="{{ field.auto_id }}" class="col-md-2 control-label">{{ field.label }}<span>*</span></label> | ||
45 | - {% else %} | ||
46 | - <label for="{{ field.auto_id }}" class="col-md-2 control-label">{{ field.label }}</label> | ||
47 | - {% endif %} | ||
48 | - <div class="col-md-10"> | ||
49 | - {% if field.auto_id == 'id_birth_date' %} | ||
50 | - {% render_field field class='form-control input-sm date-picker' %} | ||
51 | - | ||
52 | - <span id="helpBlock" class="help-block">{{ field.help_text }}</span> | ||
53 | - {% elif field.auto_id == 'id_image' %} | ||
54 | - {% render_field field class='form-control input-sm' %} | ||
55 | - <div class="input-group"> | ||
56 | - <input type="text" readonly="" class="form-control" placeholder="Choose your photo..."> | ||
57 | - <span class="input-group-btn input-group-sm"> | ||
58 | - <button type="button" class="btn btn-fab btn-fab-mini"> | ||
59 | - <i class="material-icons">attach_file</i> | ||
60 | - </button> | ||
61 | - </span> | ||
62 | - </div> | ||
63 | - {% elif field.auto_id == 'id_cpf' %} | ||
64 | - {% render_field field class='form-control' onkeypress='campoNumerico(this,event); formatarCpf(this,event);' %} | ||
65 | - | ||
66 | - {% elif field.auto_id == 'id_phone' %} | ||
67 | - {% render_field field class='form-control' onkeypress='campoNumerico(this,event); formatarTelefone(this,event);' %} | 41 | + <div class="form-group is-empty {% if form.has_error %} has-error {% endif %} is-fileinput"> |
42 | + {% if field.field.required %} | ||
43 | + <label for="{{ field.auto_id }}" class="col-md-2 control-label">{{ field.label }}<span>*</span></label> | ||
68 | {% else %} | 44 | {% else %} |
69 | - {% render_field field class='form-control' %} | ||
70 | - <span id="helpBlock" class="help-block">{{ field.help_text }}</span> | 45 | + <label for="{{ field.auto_id }}" class="col-md-2 control-label">{{ field.label }}</label> |
46 | + {% endif %} | ||
47 | + <div class="col-md-10"> | ||
48 | + {% if field.auto_id == 'id_birth_date' %} | ||
49 | + {% render_field field class='form-control input-sm date-picker' %} | ||
50 | + | ||
51 | + <span id="helpBlock" class="help-block">{{ field.help_text }}</span> | ||
52 | + {% elif field.auto_id == 'id_image' %} | ||
53 | + {% render_field field class='form-control input-sm' %} | ||
54 | + <div class="input-group"> | ||
55 | + <input type="text" readonly="" class="form-control" placeholder="Choose your photo..."> | ||
56 | + <span class="input-group-btn input-group-sm"> | ||
57 | + <button type="button" class="btn btn-fab btn-fab-mini"> | ||
58 | + <i class="material-icons">attach_file</i> | ||
59 | + </button> | ||
60 | + </span> | ||
61 | + </div> | ||
62 | + {% elif field.auto_id == 'id_cpf' %} | ||
63 | + {% render_field field class='form-control' onkeypress='campoNumerico(this,event); formatarCpf(this,event);' %} | ||
64 | + | ||
65 | + {% elif field.auto_id == 'id_phone' %} | ||
66 | + {% render_field field class='form-control' onkeypress='campoNumerico(this,event); formatarTelefone(this,event);' %} | ||
67 | + {% else %} | ||
68 | + {% render_field field class='form-control' %} | ||
69 | + <span id="helpBlock" class="help-block">{{ field.help_text }}</span> | ||
70 | + {% endif %} | ||
71 | + </div> | ||
72 | + | ||
73 | + {% if field.errors %} | ||
74 | + <div class="alert alert-danger alert-dismissible col-md-offset-1 col-md-10 col-sm-offset-1 col-sm-10 col-xs-offset-1 col-xs-10" role="alert"> | ||
75 | + <button type="button" class="close" data-dismiss="alert" aria-label="Close"> | ||
76 | + <span aria-hidden="true">×</span> | ||
77 | + </button> | ||
78 | + <ul> | ||
79 | + {% for error in field.errors %} | ||
80 | + <li>{{ error }}</li> | ||
81 | + {% endfor %} | ||
82 | + </ul> | ||
83 | + </div> | ||
71 | {% endif %} | 84 | {% endif %} |
72 | </div> | 85 | </div> |
73 | - | ||
74 | - {% if field.errors %} | ||
75 | - <div class="alert alert-danger alert-dismissible col-md-offset-1 col-md-10 col-sm-offset-1 col-sm-10 col-xs-offset-1 col-xs-10" role="alert"> | ||
76 | - <button type="button" class="close" data-dismiss="alert" aria-label="Close"> | ||
77 | - <span aria-hidden="true">×</span> | ||
78 | - </button> | ||
79 | - <ul> | ||
80 | - {% for error in field.errors %} | ||
81 | - <li>{{ error }}</li> | ||
82 | - {% endfor %} | ||
83 | - </ul> | ||
84 | - </div> | ||
85 | - {% endif %} | ||
86 | - </div> | ||
87 | - </div> | ||
88 | {% endfor %} | 86 | {% endfor %} |
89 | <div class="col-md-offset-2 col-md-6 col-sm-offset-2 col-sm-6 col-xs-6 col-xs-offset-2 col-xs-6"> | 87 | <div class="col-md-offset-2 col-md-6 col-sm-offset-2 col-sm-6 col-xs-6 col-xs-offset-2 col-xs-6"> |
90 | <input type="submit" value="{% trans 'Save' %}" class="btn btn-raised btn-primary" /> | 88 | <input type="submit" value="{% trans 'Save' %}" class="btn btn-raised btn-primary" /> |