Skip to content

Commit

Permalink
CONCD-869 retain status filters when switching between radio button s…
Browse files Browse the repository at this point in the history
…ettings (#2451)
  • Loading branch information
rasarkar authored Jul 15, 2024
1 parent de1def2 commit c2c64ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions concordia/templates/transcriptions/item_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ <h3>Filter pages:</h2>
</div>
{% if user.is_authenticated and user.is_staff %}
<div class="mt-4">
<input type="radio" {% if filter_assets %}onclick="window.location='{% url 'transcriptions:item-detail' campaign.slug project.slug item.item_id %}'"{% else %}checked{% endif %}>
<input type="radio" {% if filter_assets %}onclick="window.location='{% url 'transcriptions:item-detail' campaign.slug project.slug item.item_id %}?{{ sublevel_querystring }}'"{% else %}checked{% endif %}>
<label>Show all</label>
<input type="radio" {% if filter_assets %}checked{% else %}onclick="window.location='{% url 'transcriptions:filtered-item-detail' campaign.slug project.slug item.item_id %}'"{% endif %}>
<input type="radio" {% if filter_assets %}checked{% else %}onclick="window.location='{% url 'transcriptions:filtered-item-detail' campaign.slug project.slug item.item_id %}?{{ sublevel_querystring }}'"{% endif %}>
<label>Show only reviewable by me</label>
</div>
{% endif %}
Expand Down
4 changes: 2 additions & 2 deletions concordia/templates/transcriptions/project_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ <h3>Filter pages:</h2>
</div>
{% if user.is_authenticated and user.is_staff %}
<div class="mt-4">
<input type="radio" onclick="window.location='{% url 'transcriptions:project-detail' campaign.slug project.slug %}'" {% if not filter_assets %}checked{% endif %}>
<input type="radio" onclick="window.location='{% url 'transcriptions:project-detail' campaign.slug project.slug %}?{{ sublevel_querystring }}'" {% if not filter_assets %}checked{% endif %}>
<label>Show all</label>
<input type="radio" onclick="window.location='{% url 'transcriptions:filtered-project-detail' campaign.slug project.slug %}'" {% if filter_assets %}checked{% endif %}>
<input type="radio" onclick="window.location='{% url 'transcriptions:filtered-project-detail' campaign.slug project.slug %}?{{ sublevel_querystring }}'" {% if filter_assets %}checked{% endif %}>
<label>Show only reviewable by me</label>
</div>
{% endif %}
Expand Down

0 comments on commit c2c64ee

Please sign in to comment.