enju_message 0.0.7 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/message.rb +1 -1
- 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/db/migrate/20120125050502_add_depth_to_message.rb +6 -0
- data/lib/enju_message/engine.rb +1 -1
- data/lib/enju_message/version.rb +1 -1
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20120213092115_add_queue_to_delayed_jobs.rb +9 -0
- data/spec/dummy/db/production.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +3 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +189 -69
- data/spec/dummy/log/production.log +20 -0
- data/spec/dummy/log/sunspot-solr-test.log +222 -232
- data/spec/dummy/log/test.log +36026 -126145
- data/spec/dummy/script/delayed_job +5 -0
- data/spec/dummy/solr/data/test/index/segments_1 +0 -0
- data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
- data/spec/fixtures/users.yml +2 -0
- metadata +179 -51
@@ -0,0 +1,19 @@
|
|
1
|
+
<%= form_for(@manifestation_reserve_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_reserve_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_reserve_stat -%></li>
|
11
|
+
<li><%= link_to t('page.back'), manifestation_reserve_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_reserve_stat')) -%></h1>
|
3
|
+
<div id="content_list">
|
4
|
+
|
5
|
+
<table class="index">
|
6
|
+
<tr>
|
7
|
+
<th><%= t('activerecord.attributes.manifestation_reserve_stat.start_date') -%></th>
|
8
|
+
<th><%= t('activerecord.attributes.manifestation_reserve_stat.end_date') -%></th>
|
9
|
+
<th><%= t('activerecord.attributes.manifestation_reserve_stat.state') -%></th>
|
10
|
+
<th></th>
|
11
|
+
</tr>
|
12
|
+
|
13
|
+
<%- @manifestation_reserve_stats.each do |manifestation_reserve_stat| -%>
|
14
|
+
<tr class="line<%= cycle("0", "1") -%>">
|
15
|
+
<td><%= l(manifestation_reserve_stat.start_date) -%></td>
|
16
|
+
<td><%= l(manifestation_reserve_stat.end_date) -%></td>
|
17
|
+
<td><%= manifestation_reserve_stat.state -%></td>
|
18
|
+
<td>
|
19
|
+
<%= link_to t('page.show'), manifestation_reserve_stat -%>
|
20
|
+
<%= link_to t('page.edit'), edit_manifestation_reserve_stat_path(manifestation_reserve_stat) -%>
|
21
|
+
<%= link_to t('page.destroy'), manifestation_reserve_stat, :confirm => t('page.are_you_sure'), :method => :delete -%>
|
22
|
+
</td>
|
23
|
+
</tr>
|
24
|
+
<%- end -%>
|
25
|
+
</table>
|
26
|
+
|
27
|
+
<%= will_paginate(@manifestation_reserve_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_reserve_stat')), new_manifestation_reserve_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_reserve_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_reserve_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_reserve_stat')) -%></h1>
|
3
|
+
<div id="content_list">
|
4
|
+
<p id="notice"><%= notice %></p>
|
5
|
+
|
6
|
+
<p>
|
7
|
+
<strong><%= t('activerecord.attributes.manifestation_reserve_stat.start_date') -%>:</strong>
|
8
|
+
<%= l(@manifestation_reserve_stat.start_date) -%>
|
9
|
+
</p>
|
10
|
+
|
11
|
+
<p>
|
12
|
+
<strong><%= t('activerecord.attributes.manifestation_reserve_stat.end_date') -%>:</strong>
|
13
|
+
<%= l(@manifestation_reserve_stat.end_date) -%>
|
14
|
+
</p>
|
15
|
+
|
16
|
+
<p>
|
17
|
+
<strong><%= t('activerecord.attributes.manifestation_reserve_stat.state') -%>:</strong>
|
18
|
+
<%= @manifestation_reserve_stat.state -%>
|
19
|
+
</p>
|
20
|
+
|
21
|
+
<p>
|
22
|
+
<strong><%= t('activerecord.attributes.manifestation_reserve_stat.note') -%>:</strong>
|
23
|
+
<%= @manifestation_reserve_stat.note -%>
|
24
|
+
</p>
|
25
|
+
|
26
|
+
<table class="index">
|
27
|
+
<tr>
|
28
|
+
<th><%= t('activerecord.models.manifestation') -%></th>
|
29
|
+
<th><%= t('activerecord.attributes.reserve_stat_has_manifestation.reserves_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.reserves_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_reserve_stat_path(@manifestation_reserve_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_reserve_stat_path(@manifestation_reserve_stat, :format => :csv, :locale => @locale.to_s) -%></li>
|
54
|
+
</ul>
|
55
|
+
</div>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<%= form_for(@reserve_stat_has_manifestation) do |f| -%>
|
2
|
+
<%= f.error_messages -%>
|
3
|
+
|
4
|
+
<div class="field">
|
5
|
+
<%= f.label t('activerecord.models.manifestation_reserve_stat') -%><br />
|
6
|
+
<%= f.text_field :manifestation_reserve_stat_id -%>
|
7
|
+
</div>
|
8
|
+
<div class="field">
|
9
|
+
<%= f.label t('activerecord.models.manifestation') -%><br />
|
10
|
+
<%= f.text_field :manifestation_id -%>
|
11
|
+
</div>
|
12
|
+
<div class="actions">
|
13
|
+
<%= f.submit %>
|
14
|
+
</div>
|
15
|
+
<%- 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.reserve_stat_has_manifestation')) -%></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'), @reserve_stat_has_manifestation -%></li>
|
11
|
+
<li><%= link_to t('page.back'), reserve_stat_has_manifestations_path -%></li>
|
12
|
+
</ul>
|
13
|
+
</div>
|
@@ -0,0 +1,33 @@
|
|
1
|
+
<div id="content_detail" class="ui-corner-all">
|
2
|
+
<h1 class="title"><%= t('activerecord.models.reserve_stat_has_manifestation') -%></h1>
|
3
|
+
<div id="content_list">
|
4
|
+
|
5
|
+
<table class="index">
|
6
|
+
<tr>
|
7
|
+
<th><%= t('activerecord.models.manifestation_reserve_stat') -%></th>
|
8
|
+
<th><%= t('activerecord.models.manifestation') -%></th>
|
9
|
+
<th><%= t('activerecord.attributes.reserve_stat_has_manifestation.reserves_count') -%></th>
|
10
|
+
</tr>
|
11
|
+
|
12
|
+
<%- @reserve_stat_has_manifestations.each do |reserve_stat_has_manifestation| -%>
|
13
|
+
<tr class="line<%= cycle("0", "1") -%>">
|
14
|
+
<td><%= link_to reserve_stat_has_manifestation.manifestation_reserve_stat.id, reserve_stat_has_manifestation.manifestation_reserve_stat -%></td>
|
15
|
+
<td><%= link_to reserve_stat_has_manifestation.manifestation.original_title, reserve_stat_has_manifestation.manifestation -%></td>
|
16
|
+
<td><%= reserve_stat_has_manifestation.reserves_count -%></td>
|
17
|
+
<td><%= link_to t('page.show'), reserve_stat_has_manifestation -%></td>
|
18
|
+
<td><%= link_to t('page.edit'), edit_reserve_stat_has_manifestation_path(reserve_stat_has_manifestation) -%></td>
|
19
|
+
<td><%= link_to t('page.destroy'), reserve_stat_has_manifestation, :confirm => t('page.are_you_sure'), :method => :delete -%></td>
|
20
|
+
</tr>
|
21
|
+
<%- end -%>
|
22
|
+
</table>
|
23
|
+
|
24
|
+
<%= will_paginate(@reserve_stat_has_manifestations) -%>
|
25
|
+
|
26
|
+
</div>
|
27
|
+
</div>
|
28
|
+
|
29
|
+
<div id="submenu" class="ui-corner-all">
|
30
|
+
<ul>
|
31
|
+
<li><%= link_to t('page.new', :model => t('activerecord.models.reserve_stat_has_manifestation')), new_reserve_stat_has_manifestation_path -%></li>
|
32
|
+
</ul>
|
33
|
+
</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.reserve_stat_has_manifestation')) -%></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'), reserve_stat_has_manifestations_path -%></li>
|
11
|
+
</ul>
|
12
|
+
</div>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<div id="content_detail" class="ui-corner-all">
|
2
|
+
<h1 class="title"><%= t('page.showing', :model => t('activerecord.models.reserve_stat_has_manifestation')) -%></h1>
|
3
|
+
<div id="content_list">
|
4
|
+
<p id="notice"><%= notice %></p>
|
5
|
+
|
6
|
+
<p>
|
7
|
+
<strong><%= t('activerecord.models.manifestation_reserve_stat') -%></strong>
|
8
|
+
<%= link_to @reserve_stat_has_manifestation.manifestation_reserve_stat.id, @reserve_stat_has_manifestation.manifestation_reserve_stat -%>
|
9
|
+
</p>
|
10
|
+
|
11
|
+
<p>
|
12
|
+
<strong><%= t('activerecord.models.manifestation') -%>:</strong>
|
13
|
+
<%= link_to @reserve_stat_has_manifestation.manifestation.original_title, @reserve_stat_has_manifestation.manifestation -%>
|
14
|
+
</p>
|
15
|
+
|
16
|
+
<p>
|
17
|
+
<strong><%= t('activerecord.attributes.reserve_stat_has_manifestation.reserves_count') -%></strong>
|
18
|
+
<%= @reserve_stat_has_manifestation.reserves_count -%>
|
19
|
+
</p>
|
20
|
+
</div>
|
21
|
+
</div>
|
22
|
+
|
23
|
+
<div id="submenu" class="ui-corner-all">
|
24
|
+
<ul>
|
25
|
+
<li><%= link_to t('page.edit'), edit_reserve_stat_has_manifestation_path(@reserve_stat_has_manifestation) -%></li>
|
26
|
+
<li><%= back_to_index(flash[:page_info]) -%></li>
|
27
|
+
</ul>
|
28
|
+
</div>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<%= form_for(@reserve_stat_has_user) do |f| -%>
|
2
|
+
<%= f.error_messages -%>
|
3
|
+
|
4
|
+
<div class="field">
|
5
|
+
<%= f.label t('activerecord.models.user_reserve_stat') -%><br />
|
6
|
+
<%= f.text_field :user_reserve_stat_id -%>
|
7
|
+
</div>
|
8
|
+
<div class="field">
|
9
|
+
<%= f.label t('activerecord.models.user') -%><br />
|
10
|
+
<%= f.text_field :user_id -%>
|
11
|
+
</div>
|
12
|
+
<div class="actions">
|
13
|
+
<%= f.submit %>
|
14
|
+
</div>
|
15
|
+
<%- 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.reserve_stat_has_user')) -%></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'), @reserve_stat_has_user -%></li>
|
11
|
+
<li><%= link_to t('page.back'), reserve_stat_has_users_path -%></li>
|
12
|
+
</ul>
|
13
|
+
</div>
|
@@ -0,0 +1,33 @@
|
|
1
|
+
<div id="content_detail" class="ui-corner-all">
|
2
|
+
<h1 class="title"><%= t('activerecord.models.reserve_stat_has_user') -%></h1>
|
3
|
+
<div id="content_list">
|
4
|
+
|
5
|
+
<table class="index">
|
6
|
+
<tr>
|
7
|
+
<th><%= t('activerecord.models.user_reserve_stat') -%></th>
|
8
|
+
<th><%= t('activerecord.models.user') -%></th>
|
9
|
+
<th><%= t('activerecord.attributes.reserve_stat_has_user.reserves_count') -%></th>
|
10
|
+
</tr>
|
11
|
+
|
12
|
+
<%- @reserve_stat_has_users.each do |reserve_stat_has_user| -%>
|
13
|
+
<tr class="line<%= cycle("0", "1") -%>">
|
14
|
+
<td><%= link_to reserve_stat_has_user.user_reserve_stat.id, reserve_stat_has_user.user_reserve_stat -%></td>
|
15
|
+
<td><%= link_to reserve_stat_has_user.user.username, reserve_stat_has_user.user -%></td>
|
16
|
+
<td><%= reserve_stat_has_user.reserves_count -%></td>
|
17
|
+
<td><%= link_to t('page.show'), reserve_stat_has_user -%></td>
|
18
|
+
<td><%= link_to t('page.edit'), edit_reserve_stat_has_user_path(reserve_stat_has_user) -%></td>
|
19
|
+
<td><%= link_to t('page.destroy'), reserve_stat_has_user, :confirm => 'Are you sure?', :method => :delete -%></td>
|
20
|
+
</tr>
|
21
|
+
<%- end -%>
|
22
|
+
</table>
|
23
|
+
|
24
|
+
<%= will_paginate(@reserve_stat_has_users) -%>
|
25
|
+
|
26
|
+
</div>
|
27
|
+
</div>
|
28
|
+
|
29
|
+
<div id="submenu" class="ui-corner-all">
|
30
|
+
<ul>
|
31
|
+
<li><%= link_to t('page.new', :model => t('activerecord.models.reserve_stat_has_user')), new_reserve_stat_has_user_path -%></li>
|
32
|
+
</ul>
|
33
|
+
</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.reserve_stat_has_user')) -%></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'), reserve_stat_has_users_path -%></li>
|
11
|
+
</ul>
|
12
|
+
</div>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<div id="content_detail" class="ui-corner-all">
|
2
|
+
<h1 class="title"><%= t('page.showing', :model => t('activerecord.models.reserve_stat_has_user')) -%></h1>
|
3
|
+
<div id="content_list">
|
4
|
+
<p id="notice"><%= notice %></p>
|
5
|
+
|
6
|
+
<p>
|
7
|
+
<strong><%= t('activerecord.models.user_reserve_stat') -%></strong>
|
8
|
+
<%= link_to @reserve_stat_has_user.user_reserve_stat.id, @reserve_stat_has_user.user_reserve_stat -%>
|
9
|
+
</p>
|
10
|
+
|
11
|
+
<p>
|
12
|
+
<strong><%= t('activerecord.models.user') -%></strong>
|
13
|
+
<%= link_to @reserve_stat_has_user.user.username, @reserve_stat_has_user.user -%>
|
14
|
+
</p>
|
15
|
+
|
16
|
+
<p>
|
17
|
+
<strong><%= t('activerecord.attributes.reserve_stat_has_user.reserves_count') -%></strong>
|
18
|
+
<%= @reserve_stat_has_user.reserves_count -%>
|
19
|
+
</p>
|
20
|
+
</div>
|
21
|
+
</div>
|
22
|
+
|
23
|
+
<div id="submenu" class="ui-corner-all">
|
24
|
+
<ul>
|
25
|
+
<li><%= link_to t('page.edit'), edit_reserve_stat_has_user_path(@reserve_stat_has_user) -%></li>
|
26
|
+
<li><%= back_to_index(flash[:page_info]) -%></li>
|
27
|
+
</ul>
|
28
|
+
</div>
|
@@ -0,0 +1,49 @@
|
|
1
|
+
<%= form_for(@reserve) do |f| %>
|
2
|
+
<% if @reserve.errors.any? %>
|
3
|
+
<div id="errorExplanation">
|
4
|
+
<h2><%= pluralize(@reserve.errors.count, "error") %> prohibited this reserve from being saved:</h2>
|
5
|
+
<ul>
|
6
|
+
<% @reserve.errors.full_messages.each do |msg| %>
|
7
|
+
<li><%= msg %></li>
|
8
|
+
<% end %>
|
9
|
+
</ul>
|
10
|
+
</div>
|
11
|
+
<% end %>
|
12
|
+
|
13
|
+
<div class="field">
|
14
|
+
<%= f.label :user_id %><br />
|
15
|
+
<%= f.text_field :user_id %>
|
16
|
+
</div>
|
17
|
+
<div class="field">
|
18
|
+
<%= f.label :manifestation_id %><br />
|
19
|
+
<% if @reserve.manifestation %>
|
20
|
+
<%= render 'manifestations/title', :manifestation => @reserve.manifestation -%>
|
21
|
+
<%= f.hidden_field :manifestation_id %>
|
22
|
+
<% else %>
|
23
|
+
<%= f.text_field :manifestation_id %>
|
24
|
+
<% end %>
|
25
|
+
</div>
|
26
|
+
<div class="field">
|
27
|
+
<%= f.label :item_id %><br />
|
28
|
+
<%= f.text_field :item_id %>
|
29
|
+
</div>
|
30
|
+
<div class="field">
|
31
|
+
<%= f.label :state %><br />
|
32
|
+
<%= f.text_field :state %>
|
33
|
+
</div>
|
34
|
+
<div class="field">
|
35
|
+
<%= f.label :checked_out_at %><br />
|
36
|
+
<%= f.datetime_select :checked_out_at %>
|
37
|
+
</div>
|
38
|
+
<div class="field">
|
39
|
+
<%= f.label :canceled_at %><br />
|
40
|
+
<%= f.datetime_select :canceled_at %>
|
41
|
+
</div>
|
42
|
+
<div class="field">
|
43
|
+
<%= f.label :expired_at %><br />
|
44
|
+
<%= f.datetime_select :expired_at %>
|
45
|
+
</div>
|
46
|
+
<div class="actions">
|
47
|
+
<%= f.submit %>
|
48
|
+
</div>
|
49
|
+
<% end %>
|
@@ -0,0 +1,44 @@
|
|
1
|
+
<div id="content_detail" class="ui-corner-all">
|
2
|
+
<h1 class="title"><%= t('page.new', :model => t('activerecord.models.reserve')) -%></h1>
|
3
|
+
<div id="content_list">
|
4
|
+
|
5
|
+
<%= form_for(@reserve) do |f| -%>
|
6
|
+
<%= f.error_messages -%>
|
7
|
+
|
8
|
+
<div class="field">
|
9
|
+
<%- if @reserve.manifestation -%>
|
10
|
+
<%= render 'manifestations/title', :manifestation => @reserve.manifestation -%>
|
11
|
+
<%= f.hidden_field :manifestation_id -%>
|
12
|
+
<%- else -%>
|
13
|
+
<%= f.label t('activerecord.models.manifestation') -%><br />
|
14
|
+
<%= f.text_field :manifestation_id -%>
|
15
|
+
<%- end -%>
|
16
|
+
</div>
|
17
|
+
|
18
|
+
<div class="field">
|
19
|
+
<%= f.label :expired_at -%><br />
|
20
|
+
<%= f.text_field :expired_at, :value => @reserve.expired_at.try(:strftime, "%Y-%m-%d"), :class => 'date_field', :placeholder => "#{t('page.example')}: 2011-04-12"-%>
|
21
|
+
</div>
|
22
|
+
|
23
|
+
<div class="field">
|
24
|
+
<%= f.label t('activerecord.attributes.user.user_number') -%><br />
|
25
|
+
<%= f.text_field :user_number, :class => 'resource_user_number' -%>
|
26
|
+
</div>
|
27
|
+
|
28
|
+
<div class="actions">
|
29
|
+
<%= f.submit t('page.create') -%>
|
30
|
+
</div>
|
31
|
+
<%- end -%>
|
32
|
+
<%= javascript_tag("$('#reserve_user_number').focus()") -%>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
|
36
|
+
<div id="submenu" class="ui-corner-all">
|
37
|
+
<%= render 'manifestations/book_jacket', :manifestation => @reserve.manifestation -%>
|
38
|
+
<ul>
|
39
|
+
<li><%= link_to t('page.listing', :model => t('activerecord.models.reserve')), reserves_path -%></li>
|
40
|
+
<%- if @reserve.manifestation -%>
|
41
|
+
<li><%= link_to t('page.showing', :model => t('activerecord.models.manifestation')), @reserve.manifestation -%></li>
|
42
|
+
<%- end -%>
|
43
|
+
</ul>
|
44
|
+
</div>
|