enju_message 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- data/app/views/baskets/edit.html.erb +30 -0
- data/app/views/baskets/index.html.erb +31 -0
- data/app/views/baskets/new.html.erb +29 -0
- data/app/views/baskets/show.html.erb +23 -0
- data/app/views/carrier_type_has_checkout_types/_form.html.erb +19 -0
- data/app/views/carrier_type_has_checkout_types/edit.html.erb +13 -0
- data/app/views/carrier_type_has_checkout_types/index.html.erb +33 -0
- data/app/views/carrier_type_has_checkout_types/new.html.erb +12 -0
- data/app/views/carrier_type_has_checkout_types/show.html.erb +29 -0
- data/app/views/checked_items/_checkouts.html.erb +20 -0
- data/app/views/checked_items/_list.html.erb +39 -0
- data/app/views/checked_items/edit.html.erb +21 -0
- data/app/views/checked_items/index.html.erb +32 -0
- data/app/views/checked_items/index.js.erb +1 -0
- data/app/views/checked_items/new.html.erb +20 -0
- data/app/views/checked_items/show.html.erb +24 -0
- data/app/views/checkins/_form.html.erb +24 -0
- data/app/views/checkins/_list.html.erb +51 -0
- data/app/views/checkins/edit.html.erb +26 -0
- data/app/views/checkins/index.html.erb +16 -0
- data/app/views/checkins/index.js.erb +1 -0
- data/app/views/checkins/new.html.erb +14 -0
- data/app/views/checkins/show.html.erb +24 -0
- data/app/views/checkout_stat_has_manifestations/_form.html.erb +15 -0
- data/app/views/checkout_stat_has_manifestations/edit.html.erb +13 -0
- data/app/views/checkout_stat_has_manifestations/index.html.erb +33 -0
- data/app/views/checkout_stat_has_manifestations/new.html.erb +12 -0
- data/app/views/checkout_stat_has_manifestations/show.html.erb +28 -0
- data/app/views/checkout_stat_has_users/_form.html.erb +15 -0
- data/app/views/checkout_stat_has_users/edit.html.erb +13 -0
- data/app/views/checkout_stat_has_users/index.html.erb +33 -0
- data/app/views/checkout_stat_has_users/new.html.erb +12 -0
- data/app/views/checkout_stat_has_users/show.html.erb +28 -0
- data/app/views/checkout_types/_form.html.erb +19 -0
- data/app/views/checkout_types/edit.html.erb +13 -0
- data/app/views/checkout_types/index.html.erb +50 -0
- data/app/views/checkout_types/new.html.erb +12 -0
- data/app/views/checkout_types/show.html.erb +38 -0
- data/app/views/checkouts/_form.html.erb +28 -0
- data/app/views/checkouts/_index.html.erb +23 -0
- data/app/views/checkouts/_index_overdue.html.erb +33 -0
- data/app/views/checkouts/_index_user.html.erb +44 -0
- data/app/views/checkouts/_list.html.erb +45 -0
- data/app/views/checkouts/edit.html.erb +51 -0
- data/app/views/checkouts/index.atom.builder +14 -0
- data/app/views/checkouts/index.csv.erb +4 -0
- data/app/views/checkouts/index.html.erb +11 -0
- data/app/views/checkouts/index.ics.erb +13 -0
- data/app/views/checkouts/index.rss.builder +38 -0
- data/app/views/checkouts/new.html.erb +20 -0
- data/app/views/checkouts/show.html.erb +35 -0
- data/app/views/circulation_statuses/_form.html.erb +19 -0
- data/app/views/circulation_statuses/edit.html.erb +13 -0
- data/app/views/circulation_statuses/index.html.erb +43 -0
- data/app/views/circulation_statuses/new.html.erb +12 -0
- data/app/views/circulation_statuses/show.html.erb +29 -0
- data/app/views/item_has_use_restrictions/edit.html.erb +27 -0
- data/app/views/item_has_use_restrictions/index.html.erb +32 -0
- data/app/views/item_has_use_restrictions/new.html.erb +25 -0
- data/app/views/item_has_use_restrictions/show.html.erb +29 -0
- data/app/views/lending_policies/_form.html.erb +41 -0
- data/app/views/lending_policies/edit.html.erb +13 -0
- data/app/views/lending_policies/index.html.erb +42 -0
- data/app/views/lending_policies/new.html.erb +12 -0
- data/app/views/lending_policies/show.html.erb +50 -0
- data/app/views/manifestation_checkout_stats/_form.html.erb +19 -0
- data/app/views/manifestation_checkout_stats/edit.html.erb +13 -0
- data/app/views/manifestation_checkout_stats/index.html.erb +35 -0
- data/app/views/manifestation_checkout_stats/new.html.erb +12 -0
- data/app/views/manifestation_checkout_stats/show.csv.erb +4 -0
- data/app/views/manifestation_checkout_stats/show.html.erb +55 -0
- data/app/views/manifestation_reserve_stats/_form.html.erb +19 -0
- data/app/views/manifestation_reserve_stats/edit.html.erb +13 -0
- data/app/views/manifestation_reserve_stats/index.html.erb +35 -0
- data/app/views/manifestation_reserve_stats/new.html.erb +12 -0
- data/app/views/manifestation_reserve_stats/show.csv.erb +4 -0
- data/app/views/manifestation_reserve_stats/show.html.erb +55 -0
- data/app/views/reserve_stat_has_manifestations/_form.html.erb +15 -0
- data/app/views/reserve_stat_has_manifestations/edit.html.erb +13 -0
- data/app/views/reserve_stat_has_manifestations/index.html.erb +33 -0
- data/app/views/reserve_stat_has_manifestations/new.html.erb +12 -0
- data/app/views/reserve_stat_has_manifestations/show.html.erb +28 -0
- data/app/views/reserve_stat_has_users/_form.html.erb +15 -0
- data/app/views/reserve_stat_has_users/edit.html.erb +13 -0
- data/app/views/reserve_stat_has_users/index.html.erb +33 -0
- data/app/views/reserve_stat_has_users/new.html.erb +12 -0
- data/app/views/reserve_stat_has_users/show.html.erb +28 -0
- data/app/views/reserves/_form.html.erb +49 -0
- data/app/views/reserves/_new.html.erb +44 -0
- data/app/views/reserves/_new_user.html.erb +50 -0
- data/app/views/reserves/_title.html.erb +19 -0
- data/app/views/reserves/edit.html.erb +42 -0
- data/app/views/reserves/index.atom.builder +14 -0
- data/app/views/reserves/index.csv.erb +4 -0
- data/app/views/reserves/index.html.erb +75 -0
- data/app/views/reserves/index.rss.builder +41 -0
- data/app/views/reserves/new.html.erb +5 -0
- data/app/views/reserves/show.html.erb +61 -0
- data/app/views/use_restrictions/_form.html.erb +19 -0
- data/app/views/use_restrictions/edit.html.erb +13 -0
- data/app/views/use_restrictions/index.html.erb +43 -0
- data/app/views/use_restrictions/new.html.erb +12 -0
- data/app/views/use_restrictions/show.html.erb +29 -0
- data/app/views/user_checkout_stats/_form.html.erb +19 -0
- data/app/views/user_checkout_stats/edit.html.erb +13 -0
- data/app/views/user_checkout_stats/index.html.erb +35 -0
- data/app/views/user_checkout_stats/new.html.erb +12 -0
- data/app/views/user_checkout_stats/show.csv.erb +4 -0
- data/app/views/user_checkout_stats/show.html.erb +55 -0
- data/app/views/user_group_has_checkout_types/edit.html.erb +63 -0
- data/app/views/user_group_has_checkout_types/index.html.erb +32 -0
- data/app/views/user_group_has_checkout_types/new.html.erb +62 -0
- data/app/views/user_group_has_checkout_types/show.html.erb +64 -0
- data/app/views/user_reserve_stats/_form.html.erb +19 -0
- data/app/views/user_reserve_stats/edit.html.erb +13 -0
- data/app/views/user_reserve_stats/index.html.erb +35 -0
- data/app/views/user_reserve_stats/new.html.erb +12 -0
- data/app/views/user_reserve_stats/show.csv.erb +4 -0
- data/app/views/user_reserve_stats/show.html.erb +54 -0
- data/lib/enju_message.rb +3 -0
- data/lib/enju_message/user.rb +28 -0
- data/lib/enju_message/version.rb +1 -1
- data/spec/dummy/app/models/user.rb +2 -13
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/production.sqlite3 +0 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/solr/data/test/index/_0.fdt +0 -0
- data/spec/dummy/solr/data/test/index/_0.fdx +0 -0
- data/spec/dummy/solr/data/test/index/_0.fnm +3 -0
- data/spec/dummy/solr/data/test/index/_0.frq +1 -0
- data/spec/dummy/solr/data/test/index/_0.nrm +1 -0
- data/spec/dummy/solr/data/test/index/_0.prx +0 -0
- data/spec/dummy/solr/data/test/index/_0.tii +0 -0
- data/spec/dummy/solr/data/test/index/_0.tis +0 -0
- data/spec/dummy/solr/data/test/index/segments.gen +0 -0
- data/spec/dummy/solr/data/test/index/segments_2 +0 -0
- data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
- metadata +144 -4
- data/spec/dummy/solr/data/test/index/segments_1 +0 -0
@@ -0,0 +1,12 @@
|
|
1
|
+
<div id="content_detail" class="ui-corner-all">
|
2
|
+
<h1 class="title"><%= t('page.new', :model => t('activerecord.models.circulation_status')) -%></h1>
|
3
|
+
<div id="content_list">
|
4
|
+
<%= render 'form' %>
|
5
|
+
</div>
|
6
|
+
</div>
|
7
|
+
|
8
|
+
<div id="submenu" class="ui-corner-all">
|
9
|
+
<ul>
|
10
|
+
<li><%= link_to t('page.back'), circulation_statuses_path -%></li>
|
11
|
+
</ul>
|
12
|
+
</div>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<div id="content_detail" class="ui-corner-all">
|
2
|
+
<h1 class="title"><%= t('page.showing', :model => t('activerecord.models.circulation_status')) -%></h1>
|
3
|
+
<div id="content_list">
|
4
|
+
<p id="notice"><%= notice %></p>
|
5
|
+
|
6
|
+
<p>
|
7
|
+
<strong><%= t('activerecord.attributes.circulation_status.name') -%>:</strong>
|
8
|
+
<%= @circulation_status.name -%>
|
9
|
+
</p>
|
10
|
+
|
11
|
+
<p>
|
12
|
+
<strong><%= t('activerecord.attributes.circulation_status.display_name') -%>:</strong>
|
13
|
+
<%= @circulation_status.display_name.localize -%>
|
14
|
+
</p>
|
15
|
+
|
16
|
+
<p>
|
17
|
+
<strong><%= t('activerecord.attributes.circulation_status.note') -%>:</strong>
|
18
|
+
<%= @circulation_status.note -%>
|
19
|
+
</p>
|
20
|
+
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
|
24
|
+
<div id="submenu" class="ui-corner-all">
|
25
|
+
<ul>
|
26
|
+
<li><%= link_to t('page.edit'), edit_circulation_status_path(@circulation_status) -%></li>
|
27
|
+
<li><%= back_to_index(flash[:page_info]) -%></li>
|
28
|
+
</ul>
|
29
|
+
</div>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<h1 class="title"><%= t('page.editing', :model => t('activerecord.models.item_has_use_restriction')) -%></h1>
|
2
|
+
|
3
|
+
<%= form_for(@item_has_use_restriction) do |f| -%>
|
4
|
+
<%= f.error_messages -%>
|
5
|
+
<div class="field">
|
6
|
+
<%= f.label t('activerecord.models.item') -%><br />
|
7
|
+
<%- if @item_has_use_restriction.item -%>
|
8
|
+
<%= link_to @item_has_use_restriction.item.item_identifier, @item_has_use_restriction.item -%>
|
9
|
+
(<%= link_to @item_has_use_restriction.item.manifestation.original_title, @item_has_use_restriction.item.manifestation -%>)
|
10
|
+
<%= f.hidden_field :item_id -%>
|
11
|
+
<%- else -%>
|
12
|
+
<%= f.text_field :item_id -%>
|
13
|
+
<%- end -%>
|
14
|
+
</div>
|
15
|
+
|
16
|
+
<div class="field">
|
17
|
+
<%= f.label t('activerecord.models.use_restriction') -%><br />
|
18
|
+
<%= f.select(:use_restriction_id, @use_restrictions.collect{|u| [u.name, u.id]}) -%>
|
19
|
+
</div>
|
20
|
+
|
21
|
+
<div class="actions">
|
22
|
+
<%= f.submit %>
|
23
|
+
</div>
|
24
|
+
<%- end -%>
|
25
|
+
|
26
|
+
<%= link_to t('page.show'), @item_has_use_restriction -%> |
|
27
|
+
<%= link_to t('page.back'), item_has_use_restrictions_path -%>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
<h1 class="title"><%= t('page.listing', :model => t('activerecord.models.item_has_use_restriction')) -%></h1>
|
2
|
+
|
3
|
+
<table>
|
4
|
+
<tr>
|
5
|
+
<th><%= t('activerecord.models.item') -%></th>
|
6
|
+
<th><%= t('activerecord.attributes.item.item_identifier') -%></th>
|
7
|
+
<th><%= t('activerecord.models.manifestation') -%></th>
|
8
|
+
<th><%= t('activerecord.models.use_restriction') -%></th>
|
9
|
+
</tr>
|
10
|
+
|
11
|
+
<%- @item_has_use_restrictions.each do |item_has_use_restriction| -%>
|
12
|
+
<tr>
|
13
|
+
<td><%= link_to item_has_use_restriction.item_id, item_has_use_restriction.item -%></td>
|
14
|
+
<td><%= link_to item_has_use_restriction.item.item_identifier, item_has_use_restriction.item -%></td>
|
15
|
+
<td><%= link_to item_has_use_restriction.item.manifestation.original_title, item_has_use_restriction.item.manifestation -%></td>
|
16
|
+
<td><%= link_to item_has_use_restriction.use_restriction.display_name.localize, item_has_use_restriction.use_restriction -%></td>
|
17
|
+
<td><%= link_to t('page.show'), item_has_use_restriction -%></td>
|
18
|
+
<td><%= link_to t('page.edit'), edit_item_has_use_restriction_path(item_has_use_restriction) -%></td>
|
19
|
+
<td><%= link_to t('page.destroy'), item_has_use_restriction, :confirm => t('page.are_you_sure'), :method => :delete -%></td>
|
20
|
+
</tr>
|
21
|
+
<%- end -%>
|
22
|
+
</table>
|
23
|
+
|
24
|
+
<%= will_paginate(@item_has_use_restrictions) -%>
|
25
|
+
<br />
|
26
|
+
|
27
|
+
<%- if @item -%>
|
28
|
+
<%= link_to t('page.new', :model => t('activerecord.models.item_has_use_restriction')), new_item_item_has_use_restriction_path(@item) -%>
|
29
|
+
<%- else -%>
|
30
|
+
<%= link_to t('page.new', :model => t('activerecord.models.item_has_use_restriction')), new_item_has_use_restriction_path -%>
|
31
|
+
<%- end -%>
|
32
|
+
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<h1 class="title"><%= t('page.new', :model => t('activerecord.models.item_has_use_restriction')) -%></h1>
|
2
|
+
|
3
|
+
<%= form_for(@item_has_use_restriction) do |f| -%>
|
4
|
+
<%= f.error_messages -%>
|
5
|
+
<div class="field">
|
6
|
+
<%= f.label t('activerecord.models.item') -%><br />
|
7
|
+
<%- if @item -%>
|
8
|
+
<%= link_to @item.item_identifier, @item -%> (<%= link_to @item.manifestation.original_title, @item.manifestation -%>)
|
9
|
+
<%= f.hidden_field :item_id, :value => @item.id -%>
|
10
|
+
<%- else -%>
|
11
|
+
<%= f.text_field :item_id -%>
|
12
|
+
<%- end -%>
|
13
|
+
</div>
|
14
|
+
|
15
|
+
<div class="field">
|
16
|
+
<%= f.label t('activerecord.models.use_restriction') -%><br />
|
17
|
+
<%= f.select(:use_restriction_id, @use_restrictions.collect{|u| [u.name, u.id]}) -%>
|
18
|
+
</div>
|
19
|
+
|
20
|
+
<div class="actions">
|
21
|
+
<%= f.submit %>
|
22
|
+
</div>
|
23
|
+
<%- end -%>
|
24
|
+
|
25
|
+
<%= link_to t('page.back'), item_has_use_restrictions_path -%>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<div id="content_detail" class="ui-corner-all">
|
2
|
+
<h1 class="title"><%= t('page.showing', :model => t('activerecord.models.item_has_use_restriction')) -%></h1>
|
3
|
+
<div id="content_list">
|
4
|
+
<p id="notice"><%= notice %></p>
|
5
|
+
|
6
|
+
<p>
|
7
|
+
<strong><%= t('activerecord.models.item') -%>:</strong>
|
8
|
+
<%= link_to @item_has_use_restriction.item.item_identifier, @item_has_use_restriction.item -%>
|
9
|
+
</p>
|
10
|
+
|
11
|
+
<p>
|
12
|
+
<strong><%= t('activerecord.attributes.item.item_identifier') -%>:</strong>
|
13
|
+
<%= 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 -%>)
|
14
|
+
</p>
|
15
|
+
|
16
|
+
<p>
|
17
|
+
<strong><%= t('activerecord.models.use_restriction') -%>:</strong>
|
18
|
+
<%= link_to @item_has_use_restriction.use_restriction.display_name.localize, @item_has_use_restriction.use_restriction -%>
|
19
|
+
</p>
|
20
|
+
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
|
24
|
+
<div id="submenu" class="ui-corner-all">
|
25
|
+
<ul>
|
26
|
+
<li><%= link_to t('page.edit'), edit_item_has_use_restriction_path(@item_has_use_restriction) -%></li>
|
27
|
+
<li><%= back_to_index(flash[:page_info]) -%></li>
|
28
|
+
</ul>
|
29
|
+
</div>
|
@@ -0,0 +1,41 @@
|
|
1
|
+
<%= form_for(@lending_policy) do |f| -%>
|
2
|
+
<%= f.error_messages -%>
|
3
|
+
|
4
|
+
<div class="field">
|
5
|
+
<%= f.label :item_id, t('activerecord.models.item') -%><br />
|
6
|
+
<% if @lending_policy.item %>
|
7
|
+
<%= link_to @lending_policy.item.item_identifier, @lending_policy.item -%>
|
8
|
+
(<%= link_to @lending_policy.item.manifestation.try(:original_title), @lending_policy.item.manifestation %>)
|
9
|
+
<%= f.hidden_field :item_id -%>
|
10
|
+
<% else %>
|
11
|
+
<%= f.text_field :item_id -%>
|
12
|
+
<% end %>
|
13
|
+
</div>
|
14
|
+
<div class="field">
|
15
|
+
<%= f.label :user_group_id, t('activerecord.models.user_group') -%><br />
|
16
|
+
<%= f.select :user_group_id, @user_groups.collect{|u| [u.display_name.localize, u.id]} -%>
|
17
|
+
</div>
|
18
|
+
<div class="field">
|
19
|
+
<%= f.label :loan_period -%><br />
|
20
|
+
<%= f.text_field :loan_period -%>
|
21
|
+
</div>
|
22
|
+
<div class="field">
|
23
|
+
<%= f.label :fixed_due_date -%><br />
|
24
|
+
<%= f.text_field :fixed_due_date, :value => @lending_policy.fixed_due_date.try(:strftime, "%Y-%m-%d"), :class => 'date_field', :placeholder => "#{t('page.example')}: 2011-04-12"-%>
|
25
|
+
</div>
|
26
|
+
<div class="field">
|
27
|
+
<%= f.label :renewal -%><br />
|
28
|
+
<%= f.text_field :renewal -%>
|
29
|
+
</div>
|
30
|
+
<div class="field">
|
31
|
+
<%= f.label :fine -%><br />
|
32
|
+
<%= f.text_field :fine -%>
|
33
|
+
</div>
|
34
|
+
<div class="field">
|
35
|
+
<%= f.label :note -%><br />
|
36
|
+
<%= f.text_area :note -%>
|
37
|
+
</div>
|
38
|
+
<div class="actions">
|
39
|
+
<%= f.submit %>
|
40
|
+
</div>
|
41
|
+
<%- end -%>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<div id="content_detail" class="ui-corner-all">
|
2
|
+
<h1 class="title"><%= t('page.editing', :model => t('activerecord.models.lending_policy')) -%></h1>
|
3
|
+
<div id="content_list">
|
4
|
+
<%= render 'form' %>
|
5
|
+
</div>
|
6
|
+
</div>
|
7
|
+
|
8
|
+
<div id="submenu" class="ui-corner-all">
|
9
|
+
<ul>
|
10
|
+
<li><%= link_to t('page.show'), @lending_policy -%></li>
|
11
|
+
<li><%= link_to t('page.back'), lending_policies_path -%></li>
|
12
|
+
</ul>
|
13
|
+
</div>
|
@@ -0,0 +1,42 @@
|
|
1
|
+
<div id="content_detail" class="ui-corner-all">
|
2
|
+
<h1 class="title"><%= t('page.listing', :model => t('activerecord.models.lending_policy')) -%></h1>
|
3
|
+
<div id="content_list">
|
4
|
+
|
5
|
+
<table class="index">
|
6
|
+
<tr>
|
7
|
+
<th><%= t('activerecord.models.item') -%></th>
|
8
|
+
<th><%= t('activerecord.models.user_group') -%></th>
|
9
|
+
<th><%= t('activerecord.attributes.lending_policy.loan_period') -%></th>
|
10
|
+
<th><%= t('activerecord.attributes.lending_policy.fixed_due_date') -%></th>
|
11
|
+
<th><%= t('activerecord.attributes.lending_policy.renewal') -%></th>
|
12
|
+
<th><%= t('activerecord.attributes.lending_policy.fine') -%></th>
|
13
|
+
<th></th>
|
14
|
+
</tr>
|
15
|
+
|
16
|
+
<%- @lending_policies.each do |lending_policy| -%>
|
17
|
+
<tr class="line<%= cycle("0", "1") -%>">
|
18
|
+
<td>
|
19
|
+
<%= link_to lending_policy.item.item_identifier, lending_policy.item -%><br />
|
20
|
+
(<%= link_to lending_policy.item.manifestation.original_title, lending_policy.item.manifestation -%>)
|
21
|
+
</td>
|
22
|
+
<td><%= link_to lending_policy.user_group.display_name.localize, lending_policy.user_group -%></td>
|
23
|
+
<td><%= lending_policy.loan_period -%></td>
|
24
|
+
<td><%= lending_policy.fixed_due_date -%></td>
|
25
|
+
<td><%= lending_policy.renewal -%></td>
|
26
|
+
<td><%= lending_policy.fine -%></td>
|
27
|
+
<td>
|
28
|
+
<%= link_to t('page.show'), lending_policy -%>
|
29
|
+
<%= link_to t('page.edit'), edit_lending_policy_path(lending_policy) -%>
|
30
|
+
<%= link_to t('page.destroy'), lending_policy, :confirm => t('page.are_you_sure'), :method => :delete -%>
|
31
|
+
</td>
|
32
|
+
</tr>
|
33
|
+
<%- end -%>
|
34
|
+
</table>
|
35
|
+
|
36
|
+
<%= will_paginate(@lending_policies) -%>
|
37
|
+
|
38
|
+
</div>
|
39
|
+
</div>
|
40
|
+
|
41
|
+
<div id="submenu" class="ui-corner-all">
|
42
|
+
</div>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<div id="content_detail" class="ui-corner-all">
|
2
|
+
<h1 class="title"><%= t('page.new', :model => t('activerecord.models.lending_policy')) -%></h1>
|
3
|
+
<div id="content_list">
|
4
|
+
<%= render 'form' %>
|
5
|
+
</div>
|
6
|
+
</div>
|
7
|
+
|
8
|
+
<div id="submenu" class="ui-corner-all">
|
9
|
+
<ul>
|
10
|
+
<li><%= link_to t('page.back'), lending_policies_path -%></li>
|
11
|
+
</ul>
|
12
|
+
</div>
|
@@ -0,0 +1,50 @@
|
|
1
|
+
<div id="content_detail" class="ui-corner-all">
|
2
|
+
<h1 class="title"><%= t('page.showing', :model => t('activerecord.models.lending_policy')) -%></h1>
|
3
|
+
<div id="content_list">
|
4
|
+
<p id="notice"><%= notice %></p>
|
5
|
+
|
6
|
+
<p>
|
7
|
+
<strong><%= t('activerecord.models.item') -%>:</strong>
|
8
|
+
<%= link_to @lending_policy.item.item_identifier, @lending_policy.item -%>
|
9
|
+
(<%= link_to @lending_policy.item.manifestation.original_title, @lending_policy.item.manifestation -%>)
|
10
|
+
</p>
|
11
|
+
|
12
|
+
<p>
|
13
|
+
<strong><%= t('activerecord.models.user_group') -%>:</strong>
|
14
|
+
<%= link_to @lending_policy.user_group.display_name.localize, @lending_policy.user_group -%>
|
15
|
+
</p>
|
16
|
+
|
17
|
+
<p>
|
18
|
+
<strong><%= t('activerecord.attributes.lending_policy.loan_period') -%>:</strong>
|
19
|
+
<%= @lending_policy.loan_period -%>
|
20
|
+
</p>
|
21
|
+
|
22
|
+
<p>
|
23
|
+
<strong><%= t('activerecord.attributes.lending_policy.fixed_due_date') -%>:</strong>
|
24
|
+
<%= l(@lending_policy.fixed_due_date, :format => :only_date) if @lending_policy.fixed_due_date -%>
|
25
|
+
</p>
|
26
|
+
|
27
|
+
<p>
|
28
|
+
<strong><%= t('activerecord.attributes.lending_policy.renewal') -%>:</strong>
|
29
|
+
<%= @lending_policy.renewal -%>
|
30
|
+
</p>
|
31
|
+
|
32
|
+
<p>
|
33
|
+
<strong><%= t('activerecord.attributes.lending_policy.fine') -%>:</strong>
|
34
|
+
<%= @lending_policy.fine -%>
|
35
|
+
</p>
|
36
|
+
|
37
|
+
<p>
|
38
|
+
<strong><%= t('activerecord.attributes.lending_policy.note') -%>:</strong>
|
39
|
+
<%= @lending_policy.note -%>
|
40
|
+
</p>
|
41
|
+
|
42
|
+
</div>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<div id="submenu" class="ui-corner-all">
|
46
|
+
<ul>
|
47
|
+
<li><%= link_to t('page.edit'), edit_lending_policy_path(@lending_policy) -%></li>
|
48
|
+
<li><%= back_to_index(flash[:page_info]) -%></li>
|
49
|
+
</ul>
|
50
|
+
</div>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<%= form_for(@manifestation_checkout_stat) do |f| -%>
|
2
|
+
<%= f.error_messages -%>
|
3
|
+
|
4
|
+
<div class="field">
|
5
|
+
<%= f.label :start_date -%><br />
|
6
|
+
<%= f.datetime_select :start_date -%>
|
7
|
+
</div>
|
8
|
+
<div class="field">
|
9
|
+
<%= f.label :end_date -%><br />
|
10
|
+
<%= f.datetime_select :end_date -%>
|
11
|
+
</div>
|
12
|
+
<div class="field">
|
13
|
+
<%= f.label :note -%><br />
|
14
|
+
<%= f.text_area :note -%>
|
15
|
+
</div>
|
16
|
+
<div class="actions">
|
17
|
+
<%= f.submit %>
|
18
|
+
</div>
|
19
|
+
<%- end -%>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<div id="content_detail" class="ui-corner-all">
|
2
|
+
<h1 class="title"><%= t('page.editing', :model => t('activerecord.models.manifestation_checkout_stat')) -%></h1>
|
3
|
+
<div id="content_list">
|
4
|
+
<%= render 'form' %>
|
5
|
+
</div>
|
6
|
+
</div>
|
7
|
+
|
8
|
+
<div id="submenu" class="ui-corner-all">
|
9
|
+
<ul>
|
10
|
+
<li><%= link_to t('page.show'), @manifestation_checkout_stat -%></li>
|
11
|
+
<li><%= link_to t('page.back'), manifestation_checkout_stats_path -%></li>
|
12
|
+
</ul>
|
13
|
+
</div>
|
@@ -0,0 +1,35 @@
|
|
1
|
+
<div id="content_detail" class="ui-corner-all">
|
2
|
+
<h1 class="title"><%= t('page.listing', :model => t('activerecord.models.manifestation_checkout_stat')) -%></h1>
|
3
|
+
<div id="content_list">
|
4
|
+
|
5
|
+
<table class="index">
|
6
|
+
<tr>
|
7
|
+
<th><%= t('activerecord.attributes.manifestation_checkout_stat.start_date') -%></th>
|
8
|
+
<th><%= t('activerecord.attributes.manifestation_checkout_stat.end_date') -%></th>
|
9
|
+
<th><%= t('activerecord.attributes.manifestation_checkout_stat.state') -%></th>
|
10
|
+
<th></th>
|
11
|
+
</tr>
|
12
|
+
|
13
|
+
<%- @manifestation_checkout_stats.each do |manifestation_checkout_stat| -%>
|
14
|
+
<tr class="line<%= cycle("0", "1") -%>">
|
15
|
+
<td><%= l(manifestation_checkout_stat.start_date) -%></td>
|
16
|
+
<td><%= l(manifestation_checkout_stat.end_date) -%></td>
|
17
|
+
<td><%= manifestation_checkout_stat.state -%></td>
|
18
|
+
<td>
|
19
|
+
<%= link_to t('page.show'), manifestation_checkout_stat -%>
|
20
|
+
<%= link_to t('page.edit'), edit_manifestation_checkout_stat_path(manifestation_checkout_stat) -%>
|
21
|
+
<%= link_to t('page.destroy'), manifestation_checkout_stat, :confirm => t('page.are_you_sure'), :method => :delete -%>
|
22
|
+
</td>
|
23
|
+
</tr>
|
24
|
+
<%- end -%>
|
25
|
+
</table>
|
26
|
+
|
27
|
+
<%= will_paginate(@manifestation_checkout_stats) -%>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<div id="submenu" class="ui-corner-all">
|
32
|
+
<ul>
|
33
|
+
<li><%= link_to t('page.new', :model => t('activerecord.models.manifestation_checkout_stat')), new_manifestation_checkout_stat_path -%></li>
|
34
|
+
</ul>
|
35
|
+
</div>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<div id="content_detail" class="ui-corner-all">
|
2
|
+
<h1 class="title"><%= t('page.new', :model => t('activerecord.models.manifestation_checkout_stat')) -%></h1>
|
3
|
+
<div id="content_list">
|
4
|
+
<%= render 'form' %>
|
5
|
+
</div>
|
6
|
+
</div>
|
7
|
+
|
8
|
+
<div id="submenu" class="ui-corner-all">
|
9
|
+
<ul>
|
10
|
+
<li><%= link_to t('page.back'), manifestation_checkout_stats_path -%></li>
|
11
|
+
</ul>
|
12
|
+
</div>
|
@@ -0,0 +1,55 @@
|
|
1
|
+
<div id="content_detail" class="ui-corner-all">
|
2
|
+
<h1 class="title"><%= t('page.showing', :model => t('activerecord.models.manifestation_checkout_stat')) -%></h1>
|
3
|
+
<div id="content_list">
|
4
|
+
<p id="notice"><%= notice %></p>
|
5
|
+
|
6
|
+
<p>
|
7
|
+
<strong><%= t('activerecord.attributes.manifestation_checkout_stat.start_date') -%>:</strong>
|
8
|
+
<%= l(@manifestation_checkout_stat.start_date) -%>
|
9
|
+
</p>
|
10
|
+
|
11
|
+
<p>
|
12
|
+
<strong><%= t('activerecord.attributes.manifestation_checkout_stat.end_date') -%>:</strong>
|
13
|
+
<%= l(@manifestation_checkout_stat.end_date) -%>
|
14
|
+
</p>
|
15
|
+
|
16
|
+
<p>
|
17
|
+
<strong><%= t('activerecord.attributes.manifestation_checkout_stat.state') -%>:</strong>
|
18
|
+
<%= @manifestation_checkout_stat.state -%>
|
19
|
+
</p>
|
20
|
+
|
21
|
+
<p>
|
22
|
+
<strong><%= t('activerecord.attributes.manifestation_checkout_stat.note') -%>:</strong>
|
23
|
+
<%= @manifestation_checkout_stat.note -%>
|
24
|
+
</p>
|
25
|
+
|
26
|
+
<table class="index">
|
27
|
+
<tr>
|
28
|
+
<th><%= t('activerecord.models.manifestation') -%></th>
|
29
|
+
<th><%= t('activerecord.attributes.checkout_stat_has_manifestation.checkouts_count') -%></th>
|
30
|
+
</tr>
|
31
|
+
<%- @stats.each do |stat| -%>
|
32
|
+
<tr class="line<%= cycle("0", "1") -%>">
|
33
|
+
<td>
|
34
|
+
<%= render 'manifestations/show_index', :manifestation => stat.manifestation -%>
|
35
|
+
</td>
|
36
|
+
<td><%= stat.checkouts_count -%></td>
|
37
|
+
</tr>
|
38
|
+
<%- end -%>
|
39
|
+
</table>
|
40
|
+
|
41
|
+
<%= will_paginate(@stats) -%>
|
42
|
+
|
43
|
+
</div>
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<div id="submenu" class="ui-corner-all">
|
47
|
+
<ul>
|
48
|
+
<li><%= link_to t('page.edit'), edit_manifestation_checkout_stat_path(@manifestation_checkout_stat) -%></li>
|
49
|
+
<li><%= back_to_index(flash[:page_info]) -%></li>
|
50
|
+
</ul>
|
51
|
+
<h4><%= t('page.export') -%></h4>
|
52
|
+
<ul>
|
53
|
+
<li><%= link_to 'CSV', manifestation_checkout_stat_path(@manifestation_checkout_stat, :format => :csv, :locale => @locale.to_s) -%></li>
|
54
|
+
</ul>
|
55
|
+
</div>
|