Sha256: 1b90ccedd51901a5a7ea7a18ab224ec85694c03f909184459230992f63452eeb

Contents?: true

Size: 1015 Bytes

Versions: 50

Compression:

Stored size: 1015 Bytes

Contents

<%= render 'page/required_field' %>
<%= simple_form_for(@shelf, validate: true) do |f| -%>
  <%= f.error_messages -%>

  <div class="field">
    <%= f.label :name -%><br />
    <%= f.text_field :name, class: 'short_name' -%>
  </div>

  <div class="field">
    <%= f.label :display_name -%><br />
    <%= f.text_area :display_name, class: 'resource_textarea' -%>
  </div>

  <div class="field">
    <%= f.label :closed -%>
    <%= f.check_box :closed %>
  </div>

  <div class="field">
    <%= f.label :note -%><br />
    <%= f.text_area :note, class: 'resource_textarea' -%>
  </div>

  <div class="field">
    <%= f.label t('activerecord.models.library') -%><br />
    <select id="library_id" name="library_id">
      <%- @libraries.each do |library| -%>
        <option value="<%= library.name -%>"<%= " selected='selected'" if @shelf.library == library -%>><%= library.display_name.localize -%></option>
      <%- end -%>
    </select>
  </div>

  <div class="actions">
    <%= f.submit %>
  </div>
<%- end -%>

Version data entries

50 entries across 48 versions & 2 rubygems

Version Path
enju_library-0.3.11 app/views/shelves/_form.html.erb
enju_library-0.3.10 app/views/shelves/_form.html.erb
enju_library-0.3.9 app/views/shelves/_form.html.erb
enju_library-0.3.8 app/views/shelves/_form.html.erb
enju_library-0.3.8.rc.2 app/views/shelves/_form.html.erb
enju_library-0.3.8.rc.1 app/views/shelves/_form.html.erb
enju_library-0.3.7 app/views/shelves/_form.html.erb
enju_library-0.3.6 app/views/shelves/_form.html.erb
enju_library-0.3.5 app/views/shelves/_form.html.erb
enju_library-0.3.4 app/views/shelves/_form.html.erb
enju_library-0.3.3 app/views/shelves/_form.html.erb
enju_library-0.3.2 app/views/shelves/_form.html.erb
enju_library-0.3.1 app/views/shelves/_form.html.erb
enju_library-0.3.0 app/views/shelves/_form.html.erb
enju_library-0.3.0.rc.1 app/views/shelves/_form.html.erb
enju_library-0.3.0.beta.2 app/views/shelves/_form.html.erb
enju_library-0.2.5 app/views/shelves/_form.html.erb
enju_library-0.2.4 app/views/shelves/_form.html.erb
enju_library-0.2.3 app/views/shelves/_form.html.erb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/bundler/gems/enju_library-d36f415e177e/app/views/shelves/_form.html.erb