Sha256: 038c9d36b7ee21e5010611db8f750e08ff2e26d2c8efaf64064c8f2c1264427e

Contents?: true

Size: 1.44 KB

Versions: 11

Compression:

Stored size: 1.44 KB

Contents

<% carriers = 
{
'AT&T' => 'att',
'Verizon' => 'verizon',
'T Mobile' => 'tmobile',
'Sprint' => 'sprint',
'Nextel' => 'nextel',
'Virgin Mobile' => 'virgin',
'Alltel' => 'alltel',
'Cricket' => 'cricket'
}
%>
<%- unless flash[:success] %>
  
  <%= form_tag url_for(:controller => "catalog", :action => "sms"), :id => 'sms_form', :class => "form-horizontal ajax_form", :method => :post do %>
<div class="modal-body">
  <%= render :partial=>'/flash_msg' %>
    <div class="control-group">
      <label class="control-label" for="to"> 
        <%= t('blacklight.sms.form.to') %>
      </label>
      <div class="controls">
        <%= text_field_tag :to, params[:to] %>
      </div>
    </div>
    <div class="control-group">
      <label class="control-label" for="carrier">
        <%= t('blacklight.sms.form.carrier') %> 
      </label>
      <div class="controls">
          <%= select_tag(:carrier, options_for_select(carriers.to_a.sort.unshift([t('blacklight.sms.form.carrier_prompt'),'']), params[:carrier])) %><br/>
      </div>

    </div>
    <% @documents.each do |doc| %>
       <%=hidden_field_tag "id[]", doc.get(:id)%>
    <% end %>
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-primary"> <%= t('blacklight.sms.form.submit') %></button>
</div>
  <% end %>
<%- else %>
<div class="modal-body">
  <%= render :partial=>'/flash_msg' %>
    <span class="ajax-close-modal"/>
    </div>
<%- end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
blacklight-4.3.0 app/views/catalog/_sms_form.html.erb
blacklight-4.2.2 app/views/catalog/_sms_form.html.erb
blacklight-4.2.1 app/views/catalog/_sms_form.html.erb
blacklight-4.2.0 app/views/catalog/_sms_form.html.erb
blacklight-4.1.0 app/views/catalog/_sms_form.html.erb
blacklight-4.0.1 app/views/catalog/_sms_form.html.erb
blacklight-4.0.0 app/views/catalog/_sms_form.html.erb
blacklight-4.0.0.rc2 app/views/catalog/_sms_form.html.erb
blacklight-4.0.0.rc1 app/views/catalog/_sms_form.html.erb
blacklight-4.0.0.pre7 app/views/catalog/_sms_form.html.erb
blacklight-4.0.0.pre6 app/views/catalog/_sms_form.html.erb