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_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_library-0.2.1/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
enju_library-0.2.2 app/views/shelves/_form.html.erb
enju_library-0.2.1 app/views/shelves/_form.html.erb
enju_library-0.2.0 app/views/shelves/_form.html.erb
enju_library-0.2.0.beta.10 app/views/shelves/_form.html.erb
enju_library-0.2.0.beta.9 app/views/shelves/_form.html.erb
enju_library-0.2.0.beta.8 app/views/shelves/_form.html.erb
enju_library-0.2.0.beta.7 app/views/shelves/_form.html.erb
enju_library-0.2.0.beta.6 app/views/shelves/_form.html.erb
enju_library-0.2.0.beta.5 app/views/shelves/_form.html.erb
enju_library-0.2.0.beta.4 app/views/shelves/_form.html.erb
enju_library-0.2.0.beta.3 app/views/shelves/_form.html.erb
enju_library-0.2.0.beta.2 app/views/shelves/_form.html.erb
enju_library-0.2.0.beta.1 app/views/shelves/_form.html.erb
enju_library-0.1.2 app/views/shelves/_form.html.erb
enju_library-0.1.1 app/views/shelves/_form.html.erb
enju_library-0.1.0 app/views/shelves/_form.html.erb
enju_library-0.1.0.pre45 app/views/shelves/_form.html.erb
enju_library-0.1.0.pre44 app/views/shelves/_form.html.erb