Sha256: 9a0c4033d296d2f89398917ab143378f77832a51a742c3b34743abdc324cf4b9

Contents?: true

Size: 1.01 KB

Versions: 45

Compression:

Stored size: 1.01 KB

Contents

<h1 class="title"><%= t('page.editing', model: t('activerecord.models.item_has_use_restriction')) -%></h1>

<%= form_for(@item_has_use_restriction) do |f| -%>
  <%= f.error_messages -%>
  <div class="field">
    <%= f.label t('activerecord.models.item') -%><br />
    <%- if @item_has_use_restriction.item -%>
      <%= link_to @item_has_use_restriction.item.item_identifier, @item_has_use_restriction.item -%>
      (<%= link_to @item_has_use_restriction.item.manifestation.original_title, @item_has_use_restriction.item.manifestation -%>)
      <%= f.hidden_field :item_id -%>
    <%- else -%>
      <%= f.text_field :item_id -%>
    <%- end -%>
  </div>

  <div class="field">
    <%= f.label t('activerecord.models.use_restriction') -%><br />
    <%= f.select(:use_restriction_id, @use_restrictions.collect{|u| [u.name, u.id]}) -%>
  </div>

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

<%= link_to t('page.show'), @item_has_use_restriction -%> |
<%= link_to t('page.back'), item_has_use_restrictions_path -%>

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
enju_circulation-0.3.11 app/views/item_has_use_restrictions/edit.html.erb
enju_circulation-0.3.10 app/views/item_has_use_restrictions/edit.html.erb
enju_circulation-0.3.9 app/views/item_has_use_restrictions/edit.html.erb
enju_circulation-0.4.0.rc.1 app/views/item_has_use_restrictions/edit.html.erb
enju_circulation-0.3.8 app/views/item_has_use_restrictions/edit.html.erb
enju_circulation-0.3.7 app/views/item_has_use_restrictions/edit.html.erb
enju_circulation-0.4.0.beta.4 app/views/item_has_use_restrictions/edit.html.erb
enju_circulation-0.4.0.beta.3 app/views/item_has_use_restrictions/edit.html.erb
enju_circulation-0.3.6 app/views/item_has_use_restrictions/edit.html.erb
enju_circulation-0.4.0.beta.2 app/views/item_has_use_restrictions/edit.html.erb
enju_circulation-0.4.0.beta.1 app/views/item_has_use_restrictions/edit.html.erb
enju_circulation-0.3.5 app/views/item_has_use_restrictions/edit.html.erb
enju_circulation-0.3.4 app/views/item_has_use_restrictions/edit.html.erb
enju_circulation-0.3.3 app/views/item_has_use_restrictions/edit.html.erb
enju_circulation-0.3.2 app/views/item_has_use_restrictions/edit.html.erb
enju_circulation-0.3.1 app/views/item_has_use_restrictions/edit.html.erb
enju_circulation-0.3.0 app/views/item_has_use_restrictions/edit.html.erb
enju_circulation-0.3.0.rc.1 app/views/item_has_use_restrictions/edit.html.erb
enju_circulation-0.3.0.beta.1 app/views/item_has_use_restrictions/edit.html.erb
enju_circulation-0.2.5 app/views/item_has_use_restrictions/edit.html.erb