Sha256: f8d54a33df76f2650a69ad5e36c99531ec1b35dee3c5852d20bab3a617b7697f

Contents?: true

Size: 1.33 KB

Versions: 49

Compression:

Stored size: 1.33 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', required: true %>
      </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

49 entries across 48 versions & 2 rubygems

Version Path
blacklight-7.34.0 app/views/catalog/_email_form.html.erb
blacklight-8.0.1 app/views/catalog/_email_form.html.erb
blacklight-8.0.0 app/views/catalog/_email_form.html.erb
blacklight-8.0.0.beta8 app/views/catalog/_email_form.html.erb
blacklight-8.0.0.beta7 app/views/catalog/_email_form.html.erb
blacklight-8.0.0.beta6 app/views/catalog/_email_form.html.erb
blacklight-8.0.0.beta5 app/views/catalog/_email_form.html.erb
blacklight-7.33.1 app/views/catalog/_email_form.html.erb
blacklight-8.0.0.beta4 app/views/catalog/_email_form.html.erb
blacklight-8.0.0.beta3 app/views/catalog/_email_form.html.erb
blacklight-8.0.0.beta2 app/views/catalog/_email_form.html.erb
blacklight-8.0.0.beta1 app/views/catalog/_email_form.html.erb
blacklight-7.33.0 app/views/catalog/_email_form.html.erb
blacklight-7.32.0 app/views/catalog/_email_form.html.erb
blacklight-7.31.0 app/views/catalog/_email_form.html.erb
blacklight-7.30.0 app/views/catalog/_email_form.html.erb
blacklight-7.29.0 app/views/catalog/_email_form.html.erb
blacklight-7.28.0 app/views/catalog/_email_form.html.erb
blacklight-7.27.1 app/views/catalog/_email_form.html.erb
blacklight-7.27.0 app/views/catalog/_email_form.html.erb