Selaa lähdekoodia

fixing bug with resources without any linked resources

joel
Simon Bowie 2 vuotta sitten
vanhempi
commit
1db5b850f4
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      web/app/templates/edit.html

+ 1
- 1
web/app/templates/edit.html Näytä tiedosto

@@ -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…
Peruuta
Tallenna