Sha256: 9a1381a9bd130da70371d4ee96a5b3f9323772970dd62f466a3b412cab2a72ea

Contents?: true

Size: 1023 Bytes

Versions: 4

Compression:

Stored size: 1023 Bytes

Contents

<div class="modal fade" id="modal-columns">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">×</button>
        <h3><%= t(:select_columns, :default => "Select Columns") %></h3>
      </div>
      <div class="modal-body">
        <% for field in model_columns %>
          <label class="checkbox">
            <input type="checkbox" name="field[]" value="<%= field %>" <%= "checked" if session[:fields][model_name].include?(field) %>> <%= t("app.models.#{model_name}.bs_attributes.#{field}", :default => field.capitalize) %>
          </label><br />
        <% end %>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-primary" id="filter-columns" data-url="/<%= model_name %>/select_fields">Ok</button>
        <button type="button" class="btn btn-default" id="cancel-filter-columns"><%= t(:cancel, :default => "Cancel") %></button>
      </div>
    </div>
  </div>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
beautiful_scaffold-1.0.0.pre lib/generators/templates/app/views/_modal_columns.html.erb
beautiful_scaffold-0.3.6 lib/generators/templates/app/views/_modal_columns.html.erb
beautiful_scaffold-0.3.5 lib/generators/templates/app/views/_modal_columns.html.erb
beautiful_scaffold-0.3.4 lib/generators/templates/app/views/_modal_columns.html.erb