Sha256: d44f9838d5dd1aa79da258ab5f099282686c3eef3184615a20f35fdcbdb4cf40

Contents?: true

Size: 1.31 KB

Versions: 32

Compression:

Stored size: 1.31 KB

Contents

<%= form_tag url_for(controller: controller_name, action: "email"),
             data: { blacklight_modal: 'trigger' },
             id: 'email_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.email.form.to') %>
      </label>
      <div class="col-sm-10">
        <%= email_field_tag :to, params[:to], class: 'form-control' %>
      </div>
    </div>

    <div class="form-group row">
      <label class="control-label col-sm-2" for="message">
        <%= t('blacklight.email.form.message') %>
      </label>
      <div class="col-sm-10">
        <%= text_area_tag :message, params[:message], class: 'form-control' %>
      </div>
    </div>

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

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
blacklight-7.22.2 app/views/catalog/_email_form.html.erb
blacklight-7.22.1 app/views/catalog/_email_form.html.erb
blacklight-7.22.0 app/views/catalog/_email_form.html.erb
blacklight-7.21.2 app/views/catalog/_email_form.html.erb
blacklight-7.21.1 app/views/catalog/_email_form.html.erb
blacklight-7.21.0 app/views/catalog/_email_form.html.erb
blacklight-7.20.1 app/views/catalog/_email_form.html.erb
blacklight-7.20.0 app/views/catalog/_email_form.html.erb
blacklight-7.19.2 app/views/catalog/_email_form.html.erb
blacklight-7.19.1 app/views/catalog/_email_form.html.erb
blacklight-7.19.0 app/views/catalog/_email_form.html.erb
blacklight-7.18.1 app/views/catalog/_email_form.html.erb
blacklight-7.18.0 app/views/catalog/_email_form.html.erb
blacklight-7.17.2 app/views/catalog/_email_form.html.erb
blacklight-7.17.1 app/views/catalog/_email_form.html.erb
blacklight-7.17.0 app/views/catalog/_email_form.html.erb
blacklight-7.16.0 app/views/catalog/_email_form.html.erb
blacklight-7.15.2 app/views/catalog/_email_form.html.erb
blacklight-7.15.1 app/views/catalog/_email_form.html.erb
blacklight-7.15.0 app/views/catalog/_email_form.html.erb