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.2.4 app/views/item_has_use_restrictions/edit.html.erb
enju_circulation-0.2.3 app/views/item_has_use_restrictions/edit.html.erb
enju_circulation-0.2.2 app/views/item_has_use_restrictions/edit.html.erb
enju_circulation-0.2.1 app/views/item_has_use_restrictions/edit.html.erb
enju_circulation-0.2.0 app/views/item_has_use_restrictions/edit.html.erb
enju_circulation-0.2.0.beta.4 app/views/item_has_use_restrictions/edit.html.erb
enju_circulation-0.2.0.beta.3 app/views/item_has_use_restrictions/edit.html.erb
enju_circulation-0.2.0.beta.2 app/views/item_has_use_restrictions/edit.html.erb
enju_circulation-0.2.0.beta.1 app/views/item_has_use_restrictions/edit.html.erb
enju_circulation-0.1.2 app/views/item_has_use_restrictions/edit.html.erb
enju_circulation-0.1.1 app/views/item_has_use_restrictions/edit.html.erb
enju_circulation-0.1.0 app/views/item_has_use_restrictions/edit.html.erb
enju_circulation-0.1.0.pre49 app/views/item_has_use_restrictions/edit.html.erb
enju_circulation-0.1.0.pre48 app/views/item_has_use_restrictions/edit.html.erb
enju_circulation-0.1.0.pre47 app/views/item_has_use_restrictions/edit.html.erb
enju_circulation-0.1.0.pre46 app/views/item_has_use_restrictions/edit.html.erb
enju_circulation-0.1.0.pre45 app/views/item_has_use_restrictions/edit.html.erb
enju_circulation-0.1.0.pre44 app/views/item_has_use_restrictions/edit.html.erb
enju_circulation-0.1.0.pre43 app/views/item_has_use_restrictions/edit.html.erb
enju_circulation-0.1.0.pre42 app/views/item_has_use_restrictions/edit.html.erb