Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
6 changes: 3 additions & 3 deletions FusionIIIT/applications/gymkhana/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1062,9 +1062,8 @@ def change_head(request):
club = request.POST.get("club")
co_ordinator = request.POST.get('co')
co_coordinator = request.POST.get('coco')
date = request.POST.get("date")
time = request.POST.get("time")
desc = "co-ordinator and co co-ordinator changed on "+date+" at "+time

desc = "co-ordinator and co co-ordinator changed on " + str(timezone.now())
message = ""

# club_name = get_object_or_404(Club_info, club_name=club)
Expand All @@ -1079,6 +1078,7 @@ def change_head(request):
old_co_coordinator = club_info.co_coordinator
club_info.co_ordinator = co_ordinator_student
club_info.co_coordinator = co_coordinator_student
club_info.head_changed_on = timezone.now()
club_info.save()

message += "Successfully changed !!!"
Expand Down
4 changes: 2 additions & 2 deletions FusionIIIT/templates/gymkhanaModule/change_head.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@

</div>

<div class="three fields">
<!-- <div class="three fields">
<div class="eight wide field">
<label>Date</label>
<input class="ui input date" type="date" data-date-format="DD/MM/YYYY" placeholder="From" name="date" id="datefield" min="01/04/2018" required></input>
Expand All @@ -91,7 +91,7 @@
<label>Time</label>
<input class="ui input" type="time" name="time" required></input>
</div>
</div>
</div> -->

<div class="field">
<button class="ui primary button right floated" type="submit" onclick="form_submit('change_head','change_head_form',event)">
Expand Down