Skip to content

Commit

Permalink
Teams can only edit names when hunt is locked
Browse files Browse the repository at this point in the history
  • Loading branch information
dlareau committed Jul 30, 2018
1 parent 64b38e6 commit d2ce813
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions huntserver/templates/registration.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ <h3>The code to join this team is <b>{{registered_team.join_code}}</b></h3>
<p>
<div>
<span> <b> Team Name: </b> {{ registered_team.team_name }} </span>
{% if registered_team.hunt.is_locked %}
<a href='#' class='edit_button'>[Change Name]</a>
<form method="Post" class="" style="display: none;">
{% csrf_token %}
Expand All @@ -31,6 +32,7 @@ <h3>The code to join this team is <b>{{registered_team.join_code}}</b></h3>
<input name="team_name" value="{{ registered_team.team_name }}" type="text">
<input type="submit" value="Change Name">
</form>
{% endif %}
</div>
<br>
<div>
Expand Down

0 comments on commit d2ce813

Please sign in to comment.