Sha256: 5c572ae63f28a457878b66ab9f280fa65fdc8076e9e294d2e3349c0728bf0059

Contents?: true

Size: 1.2 KB

Versions: 49

Compression:

Stored size: 1.2 KB

Contents

<%= form_tag url_for(controller: controller_name, action: "sms"),
             data: { blacklight_modal: 'trigger' },
             id: 'sms_form',
             class: "modal_form",
             method: :post do %>
<div class="modal-body">
  <%= render '/shared/flash_msg' %>
    <div class="form-group row">
      <label class="control-label col-sm-2" for="to">
        <%= t('blacklight.sms.form.to') %>
      </label>
      <div class="col-sm-10">
        <%= telephone_field_tag :to, params[:to], class: 'form-control', required: true %>
      </div>
    </div>
    <div class="form-group row">
      <label class="control-label col-sm-2" for="carrier">
        <%= t('blacklight.sms.form.carrier') %>
      </label>
      <div class="col-sm-10">
          <%= select_tag(:carrier, options_for_select(sms_mappings.to_a.sort.unshift([t('blacklight.sms.form.carrier_prompt'),'']), params[:carrier]), class: 'form-control') %><br/>
      </div>

    </div>
    <% @documents&.each do |doc| %>
       <%=hidden_field_tag "id[]", doc.id %>
    <% end %>
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-primary"> <%= t('blacklight.sms.form.submit') %></button>
</div>
  <% end %>

Version data entries

49 entries across 48 versions & 2 rubygems

Version Path
blacklight-8.6.1 app/views/catalog/_sms_form.html.erb
blacklight-7.40.0 app/views/catalog/_sms_form.html.erb
blacklight-8.6.0 app/views/catalog/_sms_form.html.erb
blacklight-8.5.1 app/views/catalog/_sms_form.html.erb
blacklight-8.5.0 app/views/catalog/_sms_form.html.erb
blacklight-7.39.0 app/views/catalog/_sms_form.html.erb
blacklight-8.4.0 app/views/catalog/_sms_form.html.erb
blacklight-7.38.0 app/views/catalog/_sms_form.html.erb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-8.3.0/app/views/catalog/_sms_form.html.erb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-7.37.0/app/views/catalog/_sms_form.html.erb
blacklight-8.3.0 app/views/catalog/_sms_form.html.erb
blacklight-8.2.2 app/views/catalog/_sms_form.html.erb
blacklight-8.2.1 app/views/catalog/_sms_form.html.erb
blacklight-8.2.0 app/views/catalog/_sms_form.html.erb
blacklight-7.37.0 app/views/catalog/_sms_form.html.erb
blacklight-7.36.2 app/views/catalog/_sms_form.html.erb
blacklight-7.36.1 app/views/catalog/_sms_form.html.erb
blacklight-7.36.0 app/views/catalog/_sms_form.html.erb
blacklight-7.35.0 app/views/catalog/_sms_form.html.erb
blacklight-8.1.0 app/views/catalog/_sms_form.html.erb