Skip to content
This repository has been archived by the owner on Nov 26, 2019. It is now read-only.

feat: Designation field changed to a dropdown list #22

Open
wants to merge 3 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions app/templates/app/approving_authority_profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,21 @@ <h4>Your profile</h4>
<div class="form-group row">
<label for="designation" class="col-4 col-form-label">Designation</label>
<div class="col-8">
<input id="designation" name="designation"
placeholder="Designation" value="{% for k, v in designation_type.items %}{% if k == authority.designation %}{{ v }}{% endif %}{% endfor %}"
<select id="designation" name="designation"
placeholder="Designation"
class="form-control here" type="text">
{% for k, v in designation_type.items %}{% if k == authority.designation %}<option selected="" value = "{{ k }}">{{ v }}{% endif %}
</option>
{% endfor %}
<!--<option value="Assistant Professor">Assistant Professor</option>
<option value="ASOP">Associate Professor</option>
<option value="PROF">Professor</option>
<option value="OTH">Other</option>-->

{% for k, v in designation_type.items %}{% if k != authority.designation %}<option value"{{ k }}">{{ v }}{% endif %}
</option>
{% endfor %}
</select>
</div>
</div>
<div class="form-group row">
Expand Down
8 changes: 4 additions & 4 deletions users/templates/users/signup.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ <h2>Sign Up for OLM IIT Patna</h2>
empIdField.style.display = 'none';
rollNumberField.style.display = 'block';
yearOfJoiningField.style.display = 'block';
programField.style.display = 'block';
disciplineField.style.display = 'block';
genderField.style.display = 'block';
hostelField.style.display = 'block';
programField.style.display = '';
disciplineField.style.display = '';
genderField.style.display = '';
hostelField.style.display = '';
} else if (this.value === 'AA') {
empIdField.style.display = 'block';
rollNumberField.style.display = 'none';
Expand Down