Sfoglia il codice sorgente

fixing bug with resources without any linked resources

joel
Simon Bowie 2 anni fa
parent
commit
1db5b850f4
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      web/app/templates/edit.html

+ 1
- 1
web/app/templates/edit.html Vedi File

@@ -100,7 +100,7 @@
<select name="linked_resources" id="linked_resources" aria-label="Linked resources" class="selectpicker" data-live-search="true" multiple>
{% for resource_dropdown in resource_dropdown %}
{% if resource_dropdown['type'] != 'practice' %}
{% if resource_dropdown in links %}
{% if links and resource_dropdown in links %}
<option value="{{ resource_dropdown['id'] }}" selected>{{ resource_dropdown['name'] }}</option>
{% else %}
<option value="{{ resource_dropdown['id'] }}">{{ resource_dropdown['name'] }}</option>

Loading…
Annulla
Salva