enju_message 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (231) hide show
  1. data/config/locales/translation_en.yml +51 -0
  2. data/config/locales/translation_ja.yml +51 -0
  3. data/lib/enju_message/version.rb +1 -1
  4. data/spec/controllers/message_requests_controller_spec.rb +275 -0
  5. data/spec/controllers/message_templates_controller_spec.rb +443 -0
  6. data/spec/controllers/messages_controller_spec.rb +439 -0
  7. data/{test → spec}/dummy/Rakefile +0 -0
  8. data/{test → spec}/dummy/app/assets/javascripts/application.js +0 -0
  9. data/{test → spec}/dummy/app/assets/stylesheets/application.css +0 -0
  10. data/spec/dummy/app/controllers/application_controller.rb +45 -0
  11. data/{test → spec}/dummy/app/helpers/application_helper.rb +0 -0
  12. data/spec/dummy/app/mailers/notifier.rb +28 -0
  13. data/spec/dummy/app/models/ability.rb +30 -0
  14. data/spec/dummy/app/models/library_group.rb +86 -0
  15. data/spec/dummy/app/models/patron.rb +167 -0
  16. data/spec/dummy/app/models/patron_type.rb +19 -0
  17. data/spec/dummy/app/models/role.rb +8 -0
  18. data/spec/dummy/app/models/user.rb +53 -0
  19. data/spec/dummy/app/models/user_group.rb +2 -0
  20. data/spec/dummy/app/models/user_has_role.rb +4 -0
  21. data/{test → spec}/dummy/app/views/layouts/application.html.erb +0 -0
  22. data/spec/dummy/app/views/page/403.html.erb +9 -0
  23. data/spec/dummy/app/views/page/403.mobile.erb +5 -0
  24. data/spec/dummy/app/views/page/403.xml.erb +4 -0
  25. data/spec/dummy/app/views/page/404.html.erb +9 -0
  26. data/spec/dummy/app/views/page/404.mobile.erb +5 -0
  27. data/spec/dummy/app/views/page/404.xml.erb +4 -0
  28. data/{test → spec}/dummy/config/application.rb +1 -0
  29. data/{test → spec}/dummy/config/boot.rb +0 -0
  30. data/{test → spec}/dummy/config/database.yml +0 -0
  31. data/{test → spec}/dummy/config/environment.rb +0 -0
  32. data/{test → spec}/dummy/config/environments/development.rb +0 -0
  33. data/{test → spec}/dummy/config/environments/production.rb +0 -0
  34. data/{test → spec}/dummy/config/environments/test.rb +0 -0
  35. data/{test → spec}/dummy/config/initializers/backtrace_silencers.rb +0 -0
  36. data/spec/dummy/config/initializers/devise.rb +209 -0
  37. data/{test → spec}/dummy/config/initializers/inflections.rb +0 -0
  38. data/{test → spec}/dummy/config/initializers/mime_types.rb +1 -0
  39. data/{test → spec}/dummy/config/initializers/secret_token.rb +0 -0
  40. data/{test → spec}/dummy/config/initializers/session_store.rb +0 -0
  41. data/{test → spec}/dummy/config/initializers/wrap_parameters.rb +0 -0
  42. data/{test → spec}/dummy/config/locales/en.yml +0 -0
  43. data/{test → spec}/dummy/config/routes.rb +2 -0
  44. data/{test → spec}/dummy/config.ru +0 -0
  45. data/{test/dummy/public/favicon.ico → spec/dummy/db/development.sqlite3} +0 -0
  46. data/spec/dummy/db/migrate/001_create_patrons.rb +62 -0
  47. data/spec/dummy/db/migrate/080_create_library_groups.rb +25 -0
  48. data/spec/dummy/db/migrate/20080905191442_create_patron_types.rb +16 -0
  49. data/spec/dummy/db/migrate/20100211105551_add_admin_networks_to_library_group.rb +9 -0
  50. data/spec/dummy/db/migrate/20100222124420_add_allow_bookmark_external_url_to_library_group.rb +9 -0
  51. data/spec/dummy/db/migrate/20100527113752_create_delayed_jobs.rb +21 -0
  52. data/spec/dummy/db/migrate/20110115022329_add_position_to_library_group.rb +9 -0
  53. data/spec/dummy/db/migrate/20110222073537_add_url_to_library_group.rb +9 -0
  54. data/spec/dummy/db/migrate/20111020063828_remove_dsbl_from_library_group.rb +11 -0
  55. data/spec/dummy/db/migrate/20111201121636_create_languages.rb +16 -0
  56. data/spec/dummy/db/migrate/20111201121844_create_roles.rb +12 -0
  57. data/spec/dummy/db/migrate/20111201155456_create_users.rb +14 -0
  58. data/spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb +31 -0
  59. data/spec/dummy/db/migrate/20111201163342_create_user_groups.rb +12 -0
  60. data/spec/dummy/db/migrate/20111201163718_create_user_has_roles.rb +10 -0
  61. data/spec/dummy/db/schema.rb +225 -0
  62. data/spec/dummy/db/test.sqlite3 +0 -0
  63. data/spec/dummy/lib/enju_leaf/localized_name.rb +13 -0
  64. data/spec/dummy/lib/enju_leaf/master_model.rb +41 -0
  65. data/spec/dummy/lib/enju_leaf/url_validator.rb +10 -0
  66. data/spec/dummy/lib/enju_leaf.rb +4 -0
  67. data/spec/dummy/log/development.log +106 -0
  68. data/spec/dummy/log/sunspot-solr-test.log +232 -0
  69. data/spec/dummy/log/test.log +145040 -0
  70. data/{test → spec}/dummy/public/404.html +0 -0
  71. data/{test → spec}/dummy/public/422.html +0 -0
  72. data/{test → spec}/dummy/public/500.html +0 -0
  73. data/spec/dummy/public/favicon.ico +0 -0
  74. data/{test → spec}/dummy/script/rails +0 -0
  75. data/spec/dummy/solr/conf/admin-extra.html +31 -0
  76. data/spec/dummy/solr/conf/elevate.xml +36 -0
  77. data/spec/dummy/solr/conf/mapping-ISOLatin1Accent.txt +246 -0
  78. data/spec/dummy/solr/conf/protwords.txt +21 -0
  79. data/spec/dummy/solr/conf/schema.xml +238 -0
  80. data/spec/dummy/solr/conf/scripts.conf +24 -0
  81. data/spec/dummy/solr/conf/solrconfig.xml +934 -0
  82. data/spec/dummy/solr/conf/spellings.txt +2 -0
  83. data/spec/dummy/solr/conf/stopwords.txt +58 -0
  84. data/spec/dummy/solr/conf/synonyms.txt +31 -0
  85. data/spec/dummy/solr/data/test/index/segments.gen +0 -0
  86. data/spec/dummy/solr/data/test/index/segments_1 +0 -0
  87. data/spec/dummy/solr/data/test/spellchecker/segments.gen +0 -0
  88. data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
  89. data/spec/factories/message.rb +8 -0
  90. data/spec/factories/message_request.rb +7 -0
  91. data/spec/factories/message_template.rb +7 -0
  92. data/spec/factories/user.rb +34 -0
  93. data/spec/fixtures/library_groups.yml +34 -0
  94. data/spec/fixtures/message_requests.yml +30 -0
  95. data/spec/fixtures/message_templates.yml +65 -0
  96. data/spec/fixtures/messages.yml +62 -0
  97. data/spec/fixtures/patrons.yml +338 -0
  98. data/spec/fixtures/roles.yml +21 -0
  99. data/spec/fixtures/user_groups.yml +25 -0
  100. data/spec/fixtures/user_has_roles.yml +41 -0
  101. data/spec/fixtures/users.yml +69 -0
  102. data/spec/models/message_request_spec.rb +24 -0
  103. data/spec/models/message_spec.rb +59 -0
  104. data/spec/models/message_template_spec.rb +24 -0
  105. data/spec/spec_helper.rb +46 -0
  106. data/spec/support/controller_macros.rb +48 -0
  107. data/spec/support/devise.rb +4 -0
  108. metadata +273 -220
  109. data/app/views/baskets/edit.html.erb +0 -30
  110. data/app/views/baskets/index.html.erb +0 -31
  111. data/app/views/baskets/new.html.erb +0 -29
  112. data/app/views/baskets/show.html.erb +0 -23
  113. data/app/views/carrier_type_has_checkout_types/_form.html.erb +0 -19
  114. data/app/views/carrier_type_has_checkout_types/edit.html.erb +0 -13
  115. data/app/views/carrier_type_has_checkout_types/index.html.erb +0 -33
  116. data/app/views/carrier_type_has_checkout_types/new.html.erb +0 -12
  117. data/app/views/carrier_type_has_checkout_types/show.html.erb +0 -29
  118. data/app/views/checked_items/_checkouts.html.erb +0 -20
  119. data/app/views/checked_items/_list.html.erb +0 -39
  120. data/app/views/checked_items/edit.html.erb +0 -21
  121. data/app/views/checked_items/index.html.erb +0 -32
  122. data/app/views/checked_items/index.js.erb +0 -1
  123. data/app/views/checked_items/new.html.erb +0 -20
  124. data/app/views/checked_items/show.html.erb +0 -24
  125. data/app/views/checkins/_form.html.erb +0 -24
  126. data/app/views/checkins/_list.html.erb +0 -51
  127. data/app/views/checkins/edit.html.erb +0 -26
  128. data/app/views/checkins/index.html.erb +0 -16
  129. data/app/views/checkins/index.js.erb +0 -1
  130. data/app/views/checkins/new.html.erb +0 -14
  131. data/app/views/checkins/show.html.erb +0 -24
  132. data/app/views/checkout_stat_has_manifestations/_form.html.erb +0 -15
  133. data/app/views/checkout_stat_has_manifestations/edit.html.erb +0 -13
  134. data/app/views/checkout_stat_has_manifestations/index.html.erb +0 -33
  135. data/app/views/checkout_stat_has_manifestations/new.html.erb +0 -12
  136. data/app/views/checkout_stat_has_manifestations/show.html.erb +0 -28
  137. data/app/views/checkout_stat_has_users/_form.html.erb +0 -15
  138. data/app/views/checkout_stat_has_users/edit.html.erb +0 -13
  139. data/app/views/checkout_stat_has_users/index.html.erb +0 -33
  140. data/app/views/checkout_stat_has_users/new.html.erb +0 -12
  141. data/app/views/checkout_stat_has_users/show.html.erb +0 -28
  142. data/app/views/checkout_types/_form.html.erb +0 -19
  143. data/app/views/checkout_types/edit.html.erb +0 -13
  144. data/app/views/checkout_types/index.html.erb +0 -50
  145. data/app/views/checkout_types/new.html.erb +0 -12
  146. data/app/views/checkout_types/show.html.erb +0 -38
  147. data/app/views/checkouts/_form.html.erb +0 -28
  148. data/app/views/checkouts/_index.html.erb +0 -23
  149. data/app/views/checkouts/_index_overdue.html.erb +0 -33
  150. data/app/views/checkouts/_index_user.html.erb +0 -44
  151. data/app/views/checkouts/_list.html.erb +0 -45
  152. data/app/views/checkouts/edit.html.erb +0 -51
  153. data/app/views/checkouts/index.atom.builder +0 -14
  154. data/app/views/checkouts/index.csv.erb +0 -4
  155. data/app/views/checkouts/index.html.erb +0 -11
  156. data/app/views/checkouts/index.ics.erb +0 -13
  157. data/app/views/checkouts/index.rss.builder +0 -38
  158. data/app/views/checkouts/new.html.erb +0 -20
  159. data/app/views/checkouts/show.html.erb +0 -35
  160. data/app/views/circulation_statuses/_form.html.erb +0 -19
  161. data/app/views/circulation_statuses/edit.html.erb +0 -13
  162. data/app/views/circulation_statuses/index.html.erb +0 -43
  163. data/app/views/circulation_statuses/new.html.erb +0 -12
  164. data/app/views/circulation_statuses/show.html.erb +0 -29
  165. data/app/views/item_has_use_restrictions/edit.html.erb +0 -27
  166. data/app/views/item_has_use_restrictions/index.html.erb +0 -32
  167. data/app/views/item_has_use_restrictions/new.html.erb +0 -25
  168. data/app/views/item_has_use_restrictions/show.html.erb +0 -29
  169. data/app/views/lending_policies/_form.html.erb +0 -41
  170. data/app/views/lending_policies/edit.html.erb +0 -13
  171. data/app/views/lending_policies/index.html.erb +0 -42
  172. data/app/views/lending_policies/new.html.erb +0 -12
  173. data/app/views/lending_policies/show.html.erb +0 -50
  174. data/app/views/manifestation_checkout_stats/_form.html.erb +0 -19
  175. data/app/views/manifestation_checkout_stats/edit.html.erb +0 -13
  176. data/app/views/manifestation_checkout_stats/index.html.erb +0 -35
  177. data/app/views/manifestation_checkout_stats/new.html.erb +0 -12
  178. data/app/views/manifestation_checkout_stats/show.csv.erb +0 -4
  179. data/app/views/manifestation_checkout_stats/show.html.erb +0 -55
  180. data/app/views/manifestation_reserve_stats/_form.html.erb +0 -19
  181. data/app/views/manifestation_reserve_stats/edit.html.erb +0 -13
  182. data/app/views/manifestation_reserve_stats/index.html.erb +0 -35
  183. data/app/views/manifestation_reserve_stats/new.html.erb +0 -12
  184. data/app/views/manifestation_reserve_stats/show.csv.erb +0 -4
  185. data/app/views/manifestation_reserve_stats/show.html.erb +0 -55
  186. data/app/views/reserve_stat_has_manifestations/_form.html.erb +0 -15
  187. data/app/views/reserve_stat_has_manifestations/edit.html.erb +0 -13
  188. data/app/views/reserve_stat_has_manifestations/index.html.erb +0 -33
  189. data/app/views/reserve_stat_has_manifestations/new.html.erb +0 -12
  190. data/app/views/reserve_stat_has_manifestations/show.html.erb +0 -28
  191. data/app/views/reserve_stat_has_users/_form.html.erb +0 -15
  192. data/app/views/reserve_stat_has_users/edit.html.erb +0 -13
  193. data/app/views/reserve_stat_has_users/index.html.erb +0 -33
  194. data/app/views/reserve_stat_has_users/new.html.erb +0 -12
  195. data/app/views/reserve_stat_has_users/show.html.erb +0 -28
  196. data/app/views/reserves/_form.html.erb +0 -49
  197. data/app/views/reserves/_new.html.erb +0 -44
  198. data/app/views/reserves/_new_user.html.erb +0 -50
  199. data/app/views/reserves/_title.html.erb +0 -19
  200. data/app/views/reserves/edit.html.erb +0 -42
  201. data/app/views/reserves/index.atom.builder +0 -14
  202. data/app/views/reserves/index.csv.erb +0 -4
  203. data/app/views/reserves/index.html.erb +0 -75
  204. data/app/views/reserves/index.rss.builder +0 -41
  205. data/app/views/reserves/new.html.erb +0 -5
  206. data/app/views/reserves/show.html.erb +0 -61
  207. data/app/views/use_restrictions/_form.html.erb +0 -19
  208. data/app/views/use_restrictions/edit.html.erb +0 -13
  209. data/app/views/use_restrictions/index.html.erb +0 -43
  210. data/app/views/use_restrictions/new.html.erb +0 -12
  211. data/app/views/use_restrictions/show.html.erb +0 -29
  212. data/app/views/user_checkout_stats/_form.html.erb +0 -19
  213. data/app/views/user_checkout_stats/edit.html.erb +0 -13
  214. data/app/views/user_checkout_stats/index.html.erb +0 -35
  215. data/app/views/user_checkout_stats/new.html.erb +0 -12
  216. data/app/views/user_checkout_stats/show.csv.erb +0 -4
  217. data/app/views/user_checkout_stats/show.html.erb +0 -55
  218. data/app/views/user_group_has_checkout_types/edit.html.erb +0 -63
  219. data/app/views/user_group_has_checkout_types/index.html.erb +0 -32
  220. data/app/views/user_group_has_checkout_types/new.html.erb +0 -62
  221. data/app/views/user_group_has_checkout_types/show.html.erb +0 -64
  222. data/app/views/user_reserve_stats/_form.html.erb +0 -19
  223. data/app/views/user_reserve_stats/edit.html.erb +0 -13
  224. data/app/views/user_reserve_stats/index.html.erb +0 -35
  225. data/app/views/user_reserve_stats/new.html.erb +0 -12
  226. data/app/views/user_reserve_stats/show.csv.erb +0 -4
  227. data/app/views/user_reserve_stats/show.html.erb +0 -54
  228. data/test/dummy/app/controllers/application_controller.rb +0 -3
  229. data/test/enju_message_test.rb +0 -7
  230. data/test/integration/navigation_test.rb +0 -10
  231. data/test/test_helper.rb +0 -10
@@ -1,19 +0,0 @@
1
- <%= form_for(@circulation_status, :validate => true) do |f| %>
2
- <%= f.error_notification %>
3
-
4
- <div class="field">
5
- <%= f.label :name %><br />
6
- <%= f.text_field :name %>
7
- </div>
8
- <div class="field">
9
- <%= f.label :display_name %><br />
10
- <%= f.text_area :display_name %>
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 %>
@@ -1,13 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.editing', :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.show'), @circulation_status -%></li>
11
- <li><%= link_to t('page.back'), circulation_statuses_path -%></li>
12
- </ul>
13
- </div>
@@ -1,43 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.circulation_status')) -%></h1>
3
- <div id="content_list">
4
-
5
- <table class="index">
6
- <tr>
7
- <th id="position"></th>
8
- <th><%= t('activerecord.attributes.circulation_status.name') -%></th>
9
- <th><%= t('activerecord.attributes.circulation_status.display_name') -%></th>
10
- <th></th>
11
- </tr>
12
-
13
- <%- @circulation_statuses.each do |circulation_status| -%>
14
- <tr class="line<%= cycle("0", "1") -%>">
15
- <td>
16
- <%- if can? :update, circulation_status -%>
17
- <%= move_position(circulation_status) -%>
18
- <%- end -%>
19
- </td>
20
- <td><%= link_to circulation_status.name, circulation_status -%></td>
21
- <td><%= link_to circulation_status.display_name.localize, circulation_status -%></td>
22
- <td>
23
- <%- if can? :update, circulation_status -%>
24
- <%= link_to t('page.edit'), edit_circulation_status_path(circulation_status) -%>
25
- <% end %>
26
- <%- if can? :destroy, circulation_status -%>
27
- <%= link_to t('page.destroy'), circulation_status, :confirm => t('page.are_you_sure'), :method => :delete -%>
28
- <%- end -%>
29
- </td>
30
- </tr>
31
- <%- end -%>
32
- </table>
33
-
34
- </div>
35
- </div>
36
-
37
- <div id="submenu" class="ui-corner-all">
38
- <ul>
39
- <%- if can? :create, CirculationStatus -%>
40
- <li><%= link_to t('page.new', :model => t('activerecord.models.circulation_status')), new_circulation_status_path -%></li>
41
- <%- end -%>
42
- </ul>
43
- </div>
@@ -1,12 +0,0 @@
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>
@@ -1,29 +0,0 @@
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>
@@ -1,27 +0,0 @@
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 -%>
@@ -1,32 +0,0 @@
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
-
@@ -1,25 +0,0 @@
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 -%>
@@ -1,29 +0,0 @@
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>
@@ -1,41 +0,0 @@
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 -%>
@@ -1,13 +0,0 @@
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>
@@ -1,42 +0,0 @@
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>
@@ -1,12 +0,0 @@
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>
@@ -1,50 +0,0 @@
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>
@@ -1,19 +0,0 @@
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 -%>
@@ -1,13 +0,0 @@
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>
@@ -1,35 +0,0 @@
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>
@@ -1,12 +0,0 @@
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>
@@ -1,4 +0,0 @@
1
- <%=h @manifestation_checkout_stat.start_date -%>,<%=h @manifestation_checkout_stat.end_date -%><%= "\n" -%>
2
- <%- @stats.each do |stat| -%>
3
- "<%=h stat.user.username -%>","<%=h stat.checkouts_count -%>"<%= "\n" -%>
4
- <%- end -%>
@@ -1,55 +0,0 @@
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>
@@ -1,19 +0,0 @@
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 -%>
@@ -1,13 +0,0 @@
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>
@@ -1,35 +0,0 @@
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>
@@ -1,12 +0,0 @@
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>
@@ -1,4 +0,0 @@
1
- <%=h @manifestation_reserve_stat.start_date -%>,<%=h @manifestation_reserve_stat.end_date -%><%= "\n" -%>
2
- <%- @stats.each do |stat| -%>
3
- "<%=h stat.user.username -%>","<%=h stat.reserves_count -%>"<%= "\n" -%>
4
- <%- end -%>