Skip to content

Commit

Permalink
Moved 'add' & 'remove' buttons below the 'choice' label in launcher's…
Browse files Browse the repository at this point in the history
… editable_select partial.
  • Loading branch information
euler-room committed Oct 21, 2024
1 parent 4d47b5d commit dd15659
Showing 1 changed file with 19 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,25 @@

<li class="<%= li_classes %>">

<button class="btn btn-info float-start" type="button" id="<%= add_id %>"
data-select-toggler="add" data-select-id="<%= field_id %>"
<%= disabled ? nil : 'disabled="true"' %> >
<%= t('dashboard.add') %>
</button>

<span data-select-value><%= choice %></span>

<button class="btn btn-warning float-end" type="button" id="<%= remove_id %>"
data-select-toggler="remove" data-select-id="<%= field_id %>"
<%= disabled || last_option ? 'disabled="true"'.html_safe : nil %> >
<%= t('dashboard.remove') %>
</button>

<span data-select-value><strong><%= choice %></strong></span>
<br/>
<div class="row">
<div class="col">
<button class="btn btn-info float-start w-100" type="button" id="<%= add_id %>"
data-select-toggler="add" data-select-id="<%= field_id %>"
<%= disabled ? nil : 'disabled="true"' %> >
<%= t('dashboard.add') %>
</button>
</div>

<div class="col">
<button class="btn btn-warning float-end w-100" type="button" id="<%= remove_id %>"
data-select-toggler="remove" data-select-id="<%= field_id %>"
<%= disabled || last_option ? 'disabled="true"'.html_safe : nil %> >
<%= t('dashboard.remove') %>
</button>
</div>
</div>
</li>
<%- end -%>
</ol>
Expand Down

0 comments on commit dd15659

Please sign in to comment.