Skip to content

Commit

Permalink
Arreglos en la página de editar administrador
Browse files Browse the repository at this point in the history
  • Loading branch information
agubelu committed Jun 27, 2017
1 parent 5134b98 commit e487b1d
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
},
},
email: {
admin_email: {
validators: {
notEmpty: {
message: "{% trans 'email_not_empty' %}"
Expand All @@ -48,6 +48,10 @@
notEmpty: {
message: "{% trans 'phone_not_empty' %}"
},
regexp:{
regexp: /^\d{9}$/ig,
message: '{% trans 'admin_phone_error#2' %}'
}
}
},
identifier: {
Expand Down Expand Up @@ -124,6 +128,8 @@
});
});
});

initAjax($("#id_admin_email"), 'email', '/ajax/validate_email_unique/');
</script>
{% endblock %}

Expand Down Expand Up @@ -151,7 +157,7 @@ <h1 align="center"> {% trans 'editAdmin' %} </h1></br>
<form id="form_editar_admin" method="POST" class="form-horizontal" data-toggle="validator" role="form" action="" enctype="multipart/form-data">
{% csrf_token %}

{% show_field form.admin_email "admin_metronus" %}
{% show_field form.admin_email "admin_metronus" "companyRegister_adminEmailNotUnique" %}
{% show_field form.first_name "John" %}
{% show_field form.last_name "Doe" %}
{% show_field form.identifier "admn_mtn" %}
Expand Down

0 comments on commit e487b1d

Please sign in to comment.