Skip to content

Commit

Permalink
display modal if prefill_templates not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Oglopf committed Nov 2, 2023
1 parent 8e63c7d commit 0d8b53a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<%- if @prefill_templates.key?(:prefill_templates) -%>
<%- unless @prefill_templates.empty? -%>
<div class="form-group">
<label class="control-label"><%= t('dashboard.batch_connect_form_prefill') %></label>
<select class="form-control selectpicker" id="batch_connect_session_prefill_template">
<option selected value> -- <%= t('dashboard.batch_connect_form_select_template') %> -- </option>
<% @prefill_templates.each do |id, template| %>
<option value="<%= template %>"><%= id.humanize %></option>
<option value="<%= template %>"><%= id %></option>
<% end %>
</select>
</div>
Expand Down

0 comments on commit 0d8b53a

Please sign in to comment.