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

Commit

Permalink
[carpentries#2063] Move Instructor Recruitment table to an include te…
Browse files Browse the repository at this point in the history
…mplate
  • Loading branch information
pbanaszkiewicz committed Jan 19, 2022
1 parent dcc58bd commit 45960f2
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 45 deletions.
44 changes: 44 additions & 0 deletions amy/templates/includes/instructorrecruitment.html
@@ -0,0 +1,44 @@
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>Instructor Name</th>
<th>Count workshops taught</th>
<th>Country</th>
<th>Interested in?</th>
<th>Notes from Instructor</th>
<th>Notes from RC</th>
<th>Date conflicts</th>
<th>State</th>
<th>Action</th>
</tr>
</thead>
<tbody>
{% for signup in object.instructorrecruitmentsignup_set.all %}
<tr>
<td><a href="{{ signup.person.get_absolute_url }}">{{ signup.person }}</a></td>
<td>
<span title="Helper: {{ signup.num_helper }}; Supporting Instructor: {{ signup.num_supporting }}; Instructor: {{ signup.num_instructor }}">
{{ signup.num_helper }} H;
{{ signup.num_supporting }} SI;
{{ signup.num_instructor }} I
</span>
</td>
<td>{% include "includes/country_flag.html" with country=signup.person.country %}</td>
<td>{{ signup.get_interest_display }}</td>
<td>{{ signup.user_notes }}</td>
<td>{{ signup.notes }}</td>
<td>TODO</td>
<td>{{ signup.get_state_display }}</td>
<td>
TODO
<a href="" class="btn btn-sm btn-success">Confirm</a>
<a href="" class="btn btn-sm btn-danger">Decline</a>
</td>
</tr>
{% empty %}
<tr>
<td colspan=9><em>No applications yet.</em></td>
</tr>
{% endfor %}
</tbody>
</table>
46 changes: 1 addition & 45 deletions amy/templates/recruitment/instructorrecruitment_details.html
Expand Up @@ -10,49 +10,5 @@ <h3>
</span>
</h3>
<div class="lead">{{ object.notes|linebreaks }}</div>

<table class="table table-bordered table-striped">
<thead>
<tr>
<th>Instructor Name</th>
<th>Count workshops taught</th>
<th>Country</th>
<th>Interested in?</th>
<th>Notes from Instructor</th>
<th>Notes from RC</th>
<th>Date conflicts</th>
<th>State</th>
<th>Action</th>
</tr>
</thead>
<tbody>
{% for signup in object.instructorrecruitmentsignup_set.all %}
<tr>
<td><a href="{{ signup.person.get_absolute_url }}">{{ signup.person }}</a></td>
<td>
<span title="Helper: {{ signup.num_helper }}; Supporting Instructor: {{ signup.num_supporting }}; Instructor: {{ signup.num_instructor }}">
{{ signup.num_helper }} H;
{{ signup.num_supporting }} SI;
{{ signup.num_instructor }} I
</span>
</td>
<td>{% include "includes/country_flag.html" with country=signup.person.country %}</td>
<td>{{ signup.get_interest_display }}</td>
<td>{{ signup.user_notes }}</td>
<td>{{ signup.notes }}</td>
<td>TODO</td>
<td>{{ signup.get_state_display }}</td>
<td>
TODO
<a href="" class="btn btn-sm btn-success">Confirm</a>
<a href="" class="btn btn-sm btn-danger">Decline</a>
</td>
</tr>
{% empty %}
<tr>
<td colspan=9><em>No applications yet.</em></td>
</tr>
{% endfor %}
</tbody>
</table>
{% include "includes/instructorrecruitment.html" with object=object %}
{% endblock %}

0 comments on commit 45960f2

Please sign in to comment.