Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
djnro
Commits
0384aef9
Commit
0384aef9
authored
Oct 22, 2012
by
Leonidas Poulopoulos
Browse files
Handling of fields according to ertype
parent
8dc8e3a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
templates/edumanage/institution.html
View file @
0384aef9
...
...
@@ -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"
>
...
...
templates/edumanage/institution_edit.html
View file @
0384aef9
...
...
@@ -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"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment