Sha256: d9b6c43f3f527d0df024d0e0ed065c01e676599fd3a3fb48efbd4bf4cae6f067

Contents?: true

Size: 1.63 KB

Versions: 16

Compression:

Stored size: 1.63 KB

Contents

<div class="row">
  <div class="col-6">
    <%= simple_form_for([:admin, @form_element.becomes(FormElement)]) do |f| %>
      <%= f.error_notification %>
      <%= f.error_notification message: f.object.errors[:base].to_sentence if f.object.errors[:base].present? %>

      <div class="form-inputs">
        <%= f.input :choose_type do %>
          <%= f.select :type, [["Control", "FormControl"], ["Header", "FormHeader"], ["Group", "FormGroup"], ["Feature", "FormFeature"]], {}, { class: "form-control", autofocus: true } %>
        <% end %>

        <%= f.input :element do %>
          <%= f.select :element_solr_field, Element.all.order(:position => :asc).map{ |e| [e.label, e.solr_field] }, { include_blank: true }, { class: "form-control" } %>
        <% end %>

        <%= f.input :label %>
      </div>

      <div class="form-actions">
        <%= f.button :submit, class: "btn btn-primary" %>
      </div>
    <% end %>
  </div>
  <div class="col-6">
    <h3>Field Definitions</h3>
    <dl>
      <dt>Choose type</dd>
      <dd>
        <dl class="ml-3">
          <dt>Control</dt>
          <dd>A field on the Document data entry form.</dd>
          <dt>Header</dt>
          <dd>A top-level heading on the Document data entry form.</dd>
          <dt>Group</dt>
          <dd>A group heading on the Document data entry form.</dd>
          <dt>Feature</dt>
          <dd>References a related data-collection feature.</dd>
        </dl>
      </dd>
      <dt>Element</dt>
      <dd>If adding a Control, choose the associated Element.</dd>
      <dt>Label</dt>
      <dd>If adding a Header or Group or Feature, set a text value.</dd>
    </dl>
  </div>
</div>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
geoblacklight_admin-0.7.1 app/views/admin/form_elements/_form.html.erb
geoblacklight_admin-0.7.0 app/views/admin/form_elements/_form.html.erb
geoblacklight_admin-0.6.3 app/views/admin/form_elements/_form.html.erb
geoblacklight_admin-0.6.2 app/views/admin/form_elements/_form.html.erb
geoblacklight_admin-0.6.1 app/views/admin/form_elements/_form.html.erb
geoblacklight_admin-0.6.0 app/views/admin/form_elements/_form.html.erb
geoblacklight_admin-0.5.1 app/views/admin/form_elements/_form.html.erb
geoblacklight_admin-0.5.0 app/views/admin/form_elements/_form.html.erb
geoblacklight_admin-0.4.2 app/views/admin/form_elements/_form.html.erb
geoblacklight_admin-0.4.1 app/views/admin/form_elements/_form.html.erb
geoblacklight_admin-0.4.0 app/views/admin/form_elements/_form.html.erb
geoblacklight_admin-0.3.2 app/views/admin/form_elements/_form.html.erb
geoblacklight_admin-0.3.1 app/views/admin/form_elements/_form.html.erb
geoblacklight_admin-0.3.0 app/views/admin/form_elements/_form.html.erb
geoblacklight_admin-0.2.1 app/views/admin/form_elements/_form.html.erb
geoblacklight_admin-0.1.0 app/views/admin/form_elements/_form.html.erb