Skip to content

Commit

Permalink
option selected disabled without value
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasCARPi committed Dec 5, 2017
1 parent d9bcc9b commit cd00b0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions app/tpl/admin.html
Expand Up @@ -351,7 +351,7 @@ <h3>{{ 'Import a CSV File'|trans }}</h3>

<label class='block' for='item_selector_csv'>{{ '1. Select a type of item to import to:'|trans }}</label>
<select class='clean-form col-3-form item-selector' id='item_selector_csv'>
<option value='' selected disabled>--------</option>
<option selected disabled>--------</option>
{% for itemsType in itemsTypesArr %}
<option value='{{ itemsType.category_id }}' name='type'>{{ itemsType.category }}</option>
{% endfor %}
Expand Down Expand Up @@ -382,12 +382,12 @@ <h3>{{ 'Import a ZIP File'|trans }}</h3>

<label class='block' for='item_selector_zip'>{{ '1. Select where to import:'|trans }}</label>
<select class='clean-form col-3-form item-selector' id='item_selector_zip'>
<option value='' selected disabled>-------</option>
<option class='disabled-input' value='' disabled>Import items</option>
<option selected disabled>-------</option>
<option class='disabled-input' disabled>Import items</option>
{% for itemsType in itemsTypesArr %}
<option value='{{ itemsType.category_id }}' name='type'>{{ itemsType.category }}</option>
{% endfor %}
<option class='disabled-input' value='' disabled>Import experiments</option>
<option class='disabled-input' disabled>Import experiments</option>

{% for user in usersArr %}
<option value='{{ user.userid }}' name='type'>{{ user.fullname|raw }}</option>
Expand Down
2 changes: 1 addition & 1 deletion app/tpl/register.html
Expand Up @@ -19,7 +19,7 @@ <h2>{{ 'Create your account'|trans }}</h2>
<div class='col-md-4'>
<label class='block' for='team'>{{ 'Team'|trans }}</label>
<select name='team' id='team' required>
<option value=''>{{ '------ Select a team ------'|trans }}</option>
<option selected disabled>{{ '------ Select a team ------'|trans }}</option>
{% for team in teamsArr %}
<option value = '{{ team['team_id'] }}'>{{ team['team_name'] }}</option>
{% endfor %}
Expand Down

0 comments on commit cd00b0b

Please sign in to comment.