Skip to content

Commit

Permalink
Adds UI for tagging signlanguages on urls (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
henrinie authored Feb 17, 2024
1 parent 096a50a commit 548bf91
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions signbank/dictionary/templates/dictionary/gloss_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -363,14 +363,19 @@ <h4 class="modal-title" id="glossvideo{{glossvideo.pk}}-ModalLabel">{% blocktran
{% for url in glossurls %}
<p><a href="{{url.url}}" id="glossurl-{{url.id}}" class="edit edit_url" target="_blank"
data-glossurl-id="{{url.id}}">{{url.url}}</a>
{% if url.sign_language %}<span class="label label-default">{{url.sign_language.language_code_3char}}</span>{% endif %}
<a href="{% url 'dictionary:delete_glossurl' glossurl=url.id %}"
class="glossurl-delete" style="display:none;">
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
<span class="glyphicon glyphicon-remove" aria-hidden="true" title="{% blocktrans %}Remove URL{% endblocktrans %}"></span>
</a></p>
{% endfor %}
<form method="POST" action="{% url 'dictionary:update_gloss' glossid=gloss.id %}" class="glossurlform" style="display:none;">{% csrf_token %}
<input type="hidden" name="id" value="glossurl-create">
<input type="text" name="value">
<input type="text" name="value" title="{% blocktrans %}URL{% endblocktrans %}">
<select name="sign-language" id="sign-language-dropdown" title="{% blocktrans %}Sign language{% endblocktrans %}">
<option value="">--</option>
{% for sign_language in sign_languages %}<option value="{{sign_language.id}}">{{sign_language.language_code_3char}}</option>{% endfor %}
</select>
<input type="submit" value="{% blocktrans %}Add new URL{% endblocktrans %}">
</form>
</td>
Expand Down

0 comments on commit 548bf91

Please sign in to comment.