enju_message 0.1.11 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (147) hide show
  1. data/app/controllers/messages_controller.rb +1 -1
  2. data/app/models/message.rb +1 -3
  3. data/app/models/message_request.rb +12 -8
  4. data/app/models/message_template.rb +1 -3
  5. data/app/views/message_requests/index.html.erb +1 -1
  6. data/app/views/message_templates/index.html.erb +1 -1
  7. data/app/views/messages/index.html.erb +1 -1
  8. data/lib/enju_message/version.rb +1 -1
  9. data/lib/generators/enju_message/views_generator.rb +21 -0
  10. data/spec/dummy/db/test.sqlite3 +0 -0
  11. data/spec/dummy/solr/data/test/index/_n.fdt +0 -0
  12. data/spec/dummy/solr/data/test/index/_n.fdx +0 -0
  13. data/spec/dummy/solr/data/test/index/{_f.fnm → _n.fnm} +1 -1
  14. data/spec/dummy/solr/data/test/index/{_f.frq → _n.frq} +0 -0
  15. data/spec/dummy/solr/data/test/index/{_f.nrm → _n.nrm} +0 -0
  16. data/spec/dummy/solr/data/test/index/{_f.prx → _n.prx} +0 -0
  17. data/spec/dummy/solr/data/test/index/{_f.tii → _n.tii} +0 -0
  18. data/spec/dummy/solr/data/test/index/_n.tis +0 -0
  19. data/spec/dummy/solr/data/test/index/segments.gen +0 -0
  20. data/spec/dummy/solr/data/test/index/segments_1d +0 -0
  21. data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
  22. metadata +21 -143
  23. data/app/views/baskets/edit.html.erb +0 -30
  24. data/app/views/baskets/index.html.erb +0 -31
  25. data/app/views/baskets/new.html.erb +0 -29
  26. data/app/views/baskets/show.html.erb +0 -23
  27. data/app/views/carrier_type_has_checkout_types/_form.html.erb +0 -19
  28. data/app/views/carrier_type_has_checkout_types/edit.html.erb +0 -13
  29. data/app/views/carrier_type_has_checkout_types/index.html.erb +0 -33
  30. data/app/views/carrier_type_has_checkout_types/new.html.erb +0 -12
  31. data/app/views/carrier_type_has_checkout_types/show.html.erb +0 -29
  32. data/app/views/checked_items/_checkouts.html.erb +0 -20
  33. data/app/views/checked_items/_list.html.erb +0 -39
  34. data/app/views/checked_items/edit.html.erb +0 -21
  35. data/app/views/checked_items/index.html.erb +0 -32
  36. data/app/views/checked_items/index.js.erb +0 -1
  37. data/app/views/checked_items/new.html.erb +0 -20
  38. data/app/views/checked_items/show.html.erb +0 -24
  39. data/app/views/checkins/_form.html.erb +0 -24
  40. data/app/views/checkins/_list.html.erb +0 -51
  41. data/app/views/checkins/edit.html.erb +0 -26
  42. data/app/views/checkins/index.html.erb +0 -16
  43. data/app/views/checkins/index.js.erb +0 -1
  44. data/app/views/checkins/new.html.erb +0 -14
  45. data/app/views/checkins/show.html.erb +0 -24
  46. data/app/views/checkout_stat_has_manifestations/_form.html.erb +0 -15
  47. data/app/views/checkout_stat_has_manifestations/edit.html.erb +0 -13
  48. data/app/views/checkout_stat_has_manifestations/index.html.erb +0 -33
  49. data/app/views/checkout_stat_has_manifestations/new.html.erb +0 -12
  50. data/app/views/checkout_stat_has_manifestations/show.html.erb +0 -28
  51. data/app/views/checkout_stat_has_users/_form.html.erb +0 -15
  52. data/app/views/checkout_stat_has_users/edit.html.erb +0 -13
  53. data/app/views/checkout_stat_has_users/index.html.erb +0 -33
  54. data/app/views/checkout_stat_has_users/new.html.erb +0 -12
  55. data/app/views/checkout_stat_has_users/show.html.erb +0 -28
  56. data/app/views/checkout_types/_form.html.erb +0 -19
  57. data/app/views/checkout_types/edit.html.erb +0 -13
  58. data/app/views/checkout_types/index.html.erb +0 -50
  59. data/app/views/checkout_types/new.html.erb +0 -12
  60. data/app/views/checkout_types/show.html.erb +0 -38
  61. data/app/views/checkouts/_form.html.erb +0 -28
  62. data/app/views/checkouts/_index.html.erb +0 -23
  63. data/app/views/checkouts/_index_overdue.html.erb +0 -33
  64. data/app/views/checkouts/_index_user.html.erb +0 -44
  65. data/app/views/checkouts/_list.html.erb +0 -45
  66. data/app/views/checkouts/edit.html.erb +0 -51
  67. data/app/views/checkouts/index.atom.builder +0 -14
  68. data/app/views/checkouts/index.csv.erb +0 -4
  69. data/app/views/checkouts/index.html.erb +0 -11
  70. data/app/views/checkouts/index.ics.erb +0 -13
  71. data/app/views/checkouts/index.rss.builder +0 -38
  72. data/app/views/checkouts/new.html.erb +0 -20
  73. data/app/views/checkouts/show.html.erb +0 -35
  74. data/app/views/circulation_statuses/_form.html.erb +0 -19
  75. data/app/views/circulation_statuses/edit.html.erb +0 -13
  76. data/app/views/circulation_statuses/index.html.erb +0 -43
  77. data/app/views/circulation_statuses/new.html.erb +0 -12
  78. data/app/views/circulation_statuses/show.html.erb +0 -29
  79. data/app/views/item_has_use_restrictions/edit.html.erb +0 -27
  80. data/app/views/item_has_use_restrictions/index.html.erb +0 -32
  81. data/app/views/item_has_use_restrictions/new.html.erb +0 -25
  82. data/app/views/item_has_use_restrictions/show.html.erb +0 -29
  83. data/app/views/lending_policies/_form.html.erb +0 -41
  84. data/app/views/lending_policies/edit.html.erb +0 -13
  85. data/app/views/lending_policies/index.html.erb +0 -42
  86. data/app/views/lending_policies/new.html.erb +0 -12
  87. data/app/views/lending_policies/show.html.erb +0 -50
  88. data/app/views/manifestation_checkout_stats/_form.html.erb +0 -19
  89. data/app/views/manifestation_checkout_stats/edit.html.erb +0 -13
  90. data/app/views/manifestation_checkout_stats/index.html.erb +0 -35
  91. data/app/views/manifestation_checkout_stats/new.html.erb +0 -12
  92. data/app/views/manifestation_checkout_stats/show.csv.erb +0 -4
  93. data/app/views/manifestation_checkout_stats/show.html.erb +0 -55
  94. data/app/views/manifestation_reserve_stats/_form.html.erb +0 -19
  95. data/app/views/manifestation_reserve_stats/edit.html.erb +0 -13
  96. data/app/views/manifestation_reserve_stats/index.html.erb +0 -35
  97. data/app/views/manifestation_reserve_stats/new.html.erb +0 -12
  98. data/app/views/manifestation_reserve_stats/show.csv.erb +0 -4
  99. data/app/views/manifestation_reserve_stats/show.html.erb +0 -55
  100. data/app/views/reserve_stat_has_manifestations/_form.html.erb +0 -15
  101. data/app/views/reserve_stat_has_manifestations/edit.html.erb +0 -13
  102. data/app/views/reserve_stat_has_manifestations/index.html.erb +0 -33
  103. data/app/views/reserve_stat_has_manifestations/new.html.erb +0 -12
  104. data/app/views/reserve_stat_has_manifestations/show.html.erb +0 -28
  105. data/app/views/reserve_stat_has_users/_form.html.erb +0 -15
  106. data/app/views/reserve_stat_has_users/edit.html.erb +0 -13
  107. data/app/views/reserve_stat_has_users/index.html.erb +0 -33
  108. data/app/views/reserve_stat_has_users/new.html.erb +0 -12
  109. data/app/views/reserve_stat_has_users/show.html.erb +0 -28
  110. data/app/views/reserves/_form.html.erb +0 -49
  111. data/app/views/reserves/_new.html.erb +0 -44
  112. data/app/views/reserves/_new_user.html.erb +0 -50
  113. data/app/views/reserves/_title.html.erb +0 -19
  114. data/app/views/reserves/edit.html.erb +0 -42
  115. data/app/views/reserves/index.atom.builder +0 -14
  116. data/app/views/reserves/index.csv.erb +0 -4
  117. data/app/views/reserves/index.html.erb +0 -75
  118. data/app/views/reserves/index.rss.builder +0 -41
  119. data/app/views/reserves/new.html.erb +0 -5
  120. data/app/views/reserves/show.html.erb +0 -61
  121. data/app/views/use_restrictions/_form.html.erb +0 -19
  122. data/app/views/use_restrictions/edit.html.erb +0 -13
  123. data/app/views/use_restrictions/index.html.erb +0 -43
  124. data/app/views/use_restrictions/new.html.erb +0 -12
  125. data/app/views/use_restrictions/show.html.erb +0 -29
  126. data/app/views/user_checkout_stats/_form.html.erb +0 -19
  127. data/app/views/user_checkout_stats/edit.html.erb +0 -13
  128. data/app/views/user_checkout_stats/index.html.erb +0 -35
  129. data/app/views/user_checkout_stats/new.html.erb +0 -12
  130. data/app/views/user_checkout_stats/show.csv.erb +0 -4
  131. data/app/views/user_checkout_stats/show.html.erb +0 -55
  132. data/app/views/user_group_has_checkout_types/edit.html.erb +0 -63
  133. data/app/views/user_group_has_checkout_types/index.html.erb +0 -32
  134. data/app/views/user_group_has_checkout_types/new.html.erb +0 -62
  135. data/app/views/user_group_has_checkout_types/show.html.erb +0 -64
  136. data/app/views/user_reserve_stats/_form.html.erb +0 -19
  137. data/app/views/user_reserve_stats/edit.html.erb +0 -13
  138. data/app/views/user_reserve_stats/index.html.erb +0 -35
  139. data/app/views/user_reserve_stats/new.html.erb +0 -12
  140. data/app/views/user_reserve_stats/show.csv.erb +0 -4
  141. data/app/views/user_reserve_stats/show.html.erb +0 -54
  142. data/spec/dummy/db/development.sqlite3 +0 -0
  143. data/spec/dummy/db/production.sqlite3 +0 -0
  144. data/spec/dummy/solr/data/test/index/_f.fdt +0 -0
  145. data/spec/dummy/solr/data/test/index/_f.fdx +0 -0
  146. data/spec/dummy/solr/data/test/index/_f.tis +0 -0
  147. data/spec/dummy/solr/data/test/index/segments_x +0 -0
@@ -1,16 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.checkin')) -%></h1>
3
- <div id="content_list">
4
-
5
- <div id="checkin_list">
6
- <%= render 'list' -%>
7
- </div>
8
-
9
- </div>
10
- </div>
11
-
12
- <div id="submenu" class="ui-corner-all">
13
- <ul>
14
- <li><%= link_to t('page.checkout'), new_basket_path -%></li>
15
- </ul>
16
- </div>
@@ -1 +0,0 @@
1
- $("#checkin_list").html("<%= escape_javascript(render('checkins/list')) %>");
@@ -1,14 +0,0 @@
1
- <h1 class="title"><%= t('page.new', :model => t('activerecord.models.checkin')) -%></h1>
2
-
3
- <%= form_for(@checkin) do |f| -%>
4
- <%= f.error_messages -%>
5
-
6
- <div class="field">
7
- <%= f.label t('activerecord.models.item') -%><br />
8
- <%= f.text_field :item_id -%>
9
- </div>
10
-
11
- <%= f.submit %>
12
- <%- end -%>
13
-
14
- <%= link_to t('page.back'), checkins_path -%>
@@ -1,24 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.showing', :model => t('activerecord.models.checkin')) -%></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 @checkin.item.manifestation.original_title, @checkin.item -%>
9
- </p>
10
-
11
- <p>
12
- <strong><%= ('Librarian') -%>:</strong>
13
- <%= link_to @checkin.librarian.username, @checkin.librarian -%>
14
- </p>
15
-
16
- </div>
17
- </div>
18
-
19
- <div id="submenu" class="ui-corner-all">
20
- <ul>
21
- <li><%= link_to t('page.edit'), edit_checkin_path(@checkin) -%></li>
22
- <li><%= back_to_index(flash[:page_info]) -%></li>
23
- </ul>
24
- </div>
@@ -1,15 +0,0 @@
1
- <%= form_for(@checkout_stat_has_manifestation) do |f| -%>
2
- <%= f.error_messages -%>
3
-
4
- <div class="field">
5
- <%= f.label t('activerecord.models.manifestation_checkout_stat') -%><br />
6
- <%= f.text_field :manifestation_checkout_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 -%>
@@ -1,13 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.editing', :model => t('activerecord.models.checkout_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'), @checkout_stat_has_manifestation -%></li>
11
- <li><%= link_to t('page.back'), checkout_stat_has_manifestations_path -%></li>
12
- </ul>
13
- </div>
@@ -1,33 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.checkout_stat_has_manifestation')) -%></h1>
3
- <div id="content_list">
4
-
5
- <table class="index">
6
- <tr>
7
- <th><%= t('activerecord.models.manifestation_checkout_stat') -%></th>
8
- <th><%= t('activerecord.models.manifestation') -%></th>
9
- <th><%= t('activerecord.attributes.checkout_stat_has_manifestation.checkouts_count') -%></th>
10
- </tr>
11
-
12
- <%- @checkout_stat_has_manifestations.each do |checkout_stat_has_manifestation| -%>
13
- <tr class="line<%= cycle("0", "1") -%>">
14
- <td><%= link_to checkout_stat_has_manifestation.manifestation_checkout_stat.id, checkout_stat_has_manifestation.manifestation_checkout_stat -%></td>
15
- <td><%= link_to checkout_stat_has_manifestation.manifestation.original_title, checkout_stat_has_manifestation.manifestation -%></td>
16
- <td><%= checkout_stat_has_manifestation.checkouts_count -%></td>
17
- <td><%= link_to t('page.show'), checkout_stat_has_manifestation -%></td>
18
- <td><%= link_to t('page.edit'), edit_checkout_stat_has_manifestation_path(checkout_stat_has_manifestation) -%></td>
19
- <td><%= link_to t('page.destroy'), checkout_stat_has_manifestation, :confirm => t('page.are_you_sure'), :method => :delete -%></td>
20
- </tr>
21
- <%- end -%>
22
- </table>
23
-
24
- <%= will_paginate(@checkout_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.checkout_stat_has_manifestation')), new_checkout_stat_has_manifestation_path -%></li>
32
- </ul>
33
- </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.checkout_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'), checkout_stat_has_manifestations_path -%></li>
11
- </ul>
12
- </div>
@@ -1,28 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.showing', :model => t('activerecord.models.checkout_stat_has_manifestation')) -%></h1>
3
- <div id="content_list">
4
- <p id="notice"><%= notice %></p>
5
-
6
- <p>
7
- <strong><%= t('activerecord.models.manifestation_checkout_stat') -%>:</strong>
8
- <%= link_to @checkout_stat_has_manifestation.manifestation_checkout_stat.id, @checkout_stat_has_manifestation.manifestation_checkout_stat -%>
9
- </p>
10
-
11
- <p>
12
- <strong><%= t('activerecord.models.manifestation') -%>:</strong>
13
- <%= link_to @checkout_stat_has_manifestation.manifestation.original_title, @checkout_stat_has_manifestation.manifestation -%>
14
- </p>
15
-
16
- <p>
17
- <strong><%= t('activerecord.attributes.checkout_stat_has_manifestation.checkouts_count') -%>:</strong>
18
- <%= @checkout_stat_has_manifestation.checkouts_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_checkout_stat_has_manifestation_path(@checkout_stat_has_manifestation) -%></li>
26
- <li><%= back_to_index(flash[:page_info]) -%></li>
27
- </ul>
28
- </div>
@@ -1,15 +0,0 @@
1
- <%= form_for(@checkout_stat_has_user) do |f| -%>
2
- <%= f.error_messages -%>
3
-
4
- <div class="field">
5
- <%= f.label t('activerecord.models.user_checkout_stat') -%><br />
6
- <%= f.text_field :user_checkout_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 -%>
@@ -1,13 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.editing', :model => t('activerecord.models.checkout_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'), @checkout_stat_has_user -%></li>
11
- <li><%= link_to t('page.back'), checkout_stat_has_users_path -%></li>
12
- </ul>
13
- </div>
@@ -1,33 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.checkout_stat_has_user')) -%></h1>
3
- <div id="content_list">
4
-
5
- <table class="index">
6
- <tr>
7
- <th><%= t('activerecord.models.user_checkout_stat') -%></th>
8
- <th><%= t('activerecord.models.user') -%></th>
9
- <th><%= t('activerecord.attributes.checkout_stat_has_user.checkouts_count') -%></th>
10
- </tr>
11
-
12
- <%- @checkout_stat_has_users.each do |checkout_stat_has_user| -%>
13
- <tr class="line<%= cycle("0", "1") -%>">
14
- <td><%= link_to checkout_stat_has_user.user_checkout_stat.id, checkout_stat_has_user.user_checkout_stat -%></td>
15
- <td><%= link_to checkout_stat_has_user.user.username, checkout_stat_has_user.user -%></td>
16
- <td><%= checkout_stat_has_user.checkouts_count -%></td>
17
- <td><%= link_to t('page.show'), checkout_stat_has_user -%></td>
18
- <td><%= link_to t('page.edit'), edit_checkout_stat_has_user_path(checkout_stat_has_user) -%></td>
19
- <td><%= link_to t('page.destroy'), checkout_stat_has_user, :confirm => t('page.are_you_sure'), :method => :delete -%></td>
20
- </tr>
21
- <%- end -%>
22
- </table>
23
-
24
- <%= will_paginate(@checkout_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.checkout_stat_has_user')), new_checkout_stat_has_user_path -%></li>
32
- </ul>
33
- </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.checkout_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'), checkout_stat_has_users_path -%></li>
11
- </ul>
12
- </div>
@@ -1,28 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.showing', :model => t('activerecord.models.checkout_stat_has_user')) -%></h1>
3
- <div id="content_list">
4
- <p id="notice"><%= notice %></p>
5
-
6
- <p>
7
- <strong><%= t('activerecord.models.user_checkout_stat') -%>:</strong>
8
- <%= link_to @checkout_stat_has_user.user_checkout_stat.id, @checkout_stat_has_user.user_checkout_stat -%>
9
- </p>
10
-
11
- <p>
12
- <strong><%= t('activerecord.models.user') -%>:</strong>
13
- <%= link_to @checkout_stat_has_user.user.username, @checkout_stat_has_user.user -%>
14
- </p>
15
-
16
- <p>
17
- <strong><%= t('activerecord.attributes.checkout_stat_has_user.checkouts_count') -%>:</strong>
18
- <%= @checkout_stat_has_user.checkouts_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_checkout_stat_has_user_path(@checkout_stat_has_user) -%></li>
26
- <li><%= back_to_index(flash[:page_info]) -%></li>
27
- </ul>
28
- </div>
@@ -1,19 +0,0 @@
1
- <%= simple_form_for(@checkout_type, :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.checkout_type')) -%></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'), @checkout_type -%></li>
11
- <li><%= link_to t('page.back'), checkout_types_path -%></li>
12
- </ul>
13
- </div>
@@ -1,50 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.checkout_type')) -%></h1>
3
- <div id="content_list">
4
-
5
- <table class="index">
6
- <tr>
7
- <th id="position"></th>
8
- <th><%= t('activerecord.attributes.checkout_type.name') -%></th>
9
- <th><%= t('activerecord.attributes.checkout_type.display_name') -%></th>
10
- <th><%= t('activerecord.attributes.checkout_type.note') -%></th>
11
- <th></th>
12
- </tr>
13
-
14
- <%- @checkout_types.each do |checkout_type| -%>
15
- <tr class="line<%= cycle("0", "1") -%>">
16
- <td>
17
- <%- unless @user_group -%>
18
- <%- if can? :update, checkout_type -%>
19
- <%= move_position(checkout_type) -%>
20
- <%- end -%>
21
- <%- end -%>
22
- </td>
23
- <td><%= link_to checkout_type.name, checkout_type -%></td>
24
- <td><%= link_to checkout_type.display_name.localize, checkout_type -%></td>
25
- <td><%= checkout_type.note -%></td>
26
- <td>
27
- <%- if can? :update, checkout_type -%>
28
- <%= link_to t('page.edit'), edit_checkout_type_path(checkout_type) -%>
29
- <% end %>
30
- <%- if can? :destroy, checkout_type -%>
31
- <%= link_to t('page.destroy'), checkout_type, :confirm => t('page.are_you_sure'), :method => :delete -%>
32
- <% end %>
33
- </td>
34
- </tr>
35
- <%- end -%>
36
- </table>
37
-
38
- <%= will_paginate(@checkout_types) -%>
39
- </div>
40
- </div>
41
-
42
- <div id="submenu" class="ui-corner-all">
43
- <ul>
44
- <%- if @user_group -%>
45
- <li><%= link_to t('page.new', :model => t('activerecord.models.user_group_has_checkout_type')), new_user_group_user_group_has_checkout_type_path(@user_group) -%></li>
46
- <%- else -%>
47
- <li><%= link_to t('page.new', :model => t('activerecord.models.checkout_type')), new_checkout_type_path -%></li>
48
- <%- end -%>
49
- </ul>
50
- </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.checkout_type')) -%></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'), checkout_types_path -%></li>
11
- </ul>
12
- </div>
@@ -1,38 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.showing', :model => t('activerecord.models.checkout_type')) -%></h1>
3
- <div id="content_list">
4
- <p id="notice"><%= notice %></p>
5
-
6
- <p>
7
- <strong><%= t('activerecord.attributes.checkout_type.name') -%>:</strong>
8
- <%= @checkout_type.name -%>
9
- </p>
10
-
11
- <p>
12
- <strong><%= t('activerecord.attributes.checkout_type.display_name') -%>:</strong>
13
- <%= @checkout_type.display_name.localize -%>
14
- </p>
15
-
16
- <p>
17
- <strong><%= t('activerecord.models.user_group') -%></strong>
18
- <ul>
19
- <%- @checkout_type.user_group_has_checkout_types.each do |available_user_group| -%>
20
- <li><%= link_to available_user_group.user_group.display_name.localize, available_user_group.user_group -%></li>
21
- <%- end -%>
22
- </ul>
23
-
24
- <p>
25
- <strong><%= t('activerecord.attributes.checkout_type.note') -%>:</strong>
26
- <%= @checkout_type.note -%>
27
- </p>
28
-
29
- </div>
30
- </div>
31
-
32
- <div id="submenu" class="ui-corner-all">
33
- <ul>
34
- <li><%= link_to t('page.edit'), edit_checkout_type_path(@checkout_type) -%></li>
35
- <li><%= back_to_index(flash[:page_info]) -%></li>
36
- <li><%= link_to t('page.new', :model => t('activerecord.models.user_group_has_checkout_type')), new_checkout_type_user_group_has_checkout_type_path(@checkout_type) -%></li>
37
- </ul>
38
- </div>
@@ -1,28 +0,0 @@
1
- <%= form_for(@checkout) do |f| %>
2
- <% if @checkout.errors.any? %>
3
- <div id="errorExplanation">
4
- <h2><%= pluralize(@checkout.errors.count, "error") %> prohibited this checkout from being saved:</h2>
5
- <ul>
6
- <% @checkout.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 :item_id %><br />
19
- <%= f.text_field :item_id %>
20
- </div>
21
- <div class="field">
22
- <%= f.label :due_date %><br />
23
- <%= f.datetime_select :due_date %>
24
- </div>
25
- <div class="actions">
26
- <%= f.submit %>
27
- </div>
28
- <% end %>