Commit 0384aef9 authored by Leonidas Poulopoulos's avatar Leonidas Poulopoulos
Browse files

Handling of fields according to ertype

parent 8dc8e3a3
......@@ -64,18 +64,22 @@
{% endfor %}
</div>
</div>
{% if instdets.ertype == 2 or instdets.ertype == 3 %}
<div class="control-group">
<label class="control-label" for="id_oper_name">Oper Name</label>
<div class="controls">
{{ institution.institutiondetails.oper_name }}
</div>
</div>
{% endif %}
{% if instdets.ertype == 1 or instdets.ertype == 3 %}
<div class="control-group">
<label class="control-label" for="id_number_user">Number User</label>
<div class="controls">
{{ institution.institutiondetails.number_user }}
</div>
</div>
{% endif %}
<div class="control-group">
<label class="control-label" for="id_number_id">Number Id</label>
<div class="controls">
......
......@@ -141,6 +141,7 @@ function addButton(row){
</tbody></table>
</div>
</div>
{% if instdets.ertype == 2 or instdets.ertype == 3 %}
<div class="control-group {% if form.oper_name.errors %} error {% endif %}">
<label class="control-label" for="id_oper_name">Oper Name</label>
<div class="controls">
......@@ -149,6 +150,8 @@ function addButton(row){
{% endif %} <span class="help-block"> {{ form.oper_name.help_text }}</span>
</div>
</div>
{% endif %}
{% if instdets.ertype == 1 or instdets.ertype == 3 %}
<div class="control-group {% if form.number_user.errors %} error {% endif %}">
<label class="control-label" for="id_number_user">Number User</label>
<div class="controls">
......@@ -157,6 +160,7 @@ function addButton(row){
{% endif %} <span class="help-block"> {{ form.number_user.help_text }}</span>
</div>
</div>
{% endif %}
<div class="control-group {% if form.number_id.errors %} error {% endif %}">
<label class="control-label" for="id_number_id">Number Id</label>
<div class="controls">
......
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