Skip to content

Commit

Permalink
Recruitment info
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldickison committed Sep 26, 2024
1 parent 867a002 commit 0cb54aa
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions templates/heya.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ <h2>Members</h2>
{% for score in member.recent_scores %}
<td class="numeric wide-only">{{score}}</td>
{% endfor %}
{% if !member.is_oyakata && (is_oyakata || member.is_self) %}
<td>
<td>
{% if !member.is_oyakata && (is_oyakata || member.is_self) %}
<form
class="expel"
method="POST"
Expand All @@ -79,22 +79,27 @@ <h2>Members</h2>
{% endif %}
</button>
</form>
</td>
{% endif %}
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</section>

{% if let Some(player) = base.player %}
{% if player.is_admin() %}
{% if is_oyakata || player.is_admin() %}
<section>
<h2>Admin</h2>
<form method="POST">
<label>player id: <input type="text" name="add_player_id"></label>
<button>Recruit</button>
</form>
<h2>Recruitment</h2>

<p>To recruit members, click the <em>Recruit</em> button on players’ profile pages.</p>

{% if player.is_admin() %}
<form method="POST">
<label>player id: <input type="text" name="add_player_id"></label>
<button>Recruit</button>
</form>
{% endif %}
</section>
{% endif %}
{% endif %}
Expand Down

0 comments on commit 0cb54aa

Please sign in to comment.