enju_message 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. data/app/views/message_requests/index.html.erb +1 -1
  2. data/app/views/message_templates/index.html.erb +1 -1
  3. data/app/views/messages/show.html.erb +1 -1
  4. data/lib/enju_message/engine.rb +1 -8
  5. data/lib/enju_message/version.rb +1 -1
  6. data/spec/dummy/config/application.rb +0 -2
  7. data/spec/dummy/db/test.sqlite3 +0 -0
  8. data/spec/dummy/solr/data/test/index/segments.gen +0 -0
  9. data/spec/dummy/solr/data/test/index/segments_1 +0 -0
  10. data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
  11. metadata +6 -281
  12. data/app/views/baskets/edit.html.erb +0 -30
  13. data/app/views/baskets/index.html.erb +0 -31
  14. data/app/views/baskets/new.html.erb +0 -29
  15. data/app/views/baskets/show.html.erb +0 -23
  16. data/app/views/carrier_type_has_checkout_types/_form.html.erb +0 -19
  17. data/app/views/carrier_type_has_checkout_types/edit.html.erb +0 -13
  18. data/app/views/carrier_type_has_checkout_types/index.html.erb +0 -33
  19. data/app/views/carrier_type_has_checkout_types/new.html.erb +0 -12
  20. data/app/views/carrier_type_has_checkout_types/show.html.erb +0 -29
  21. data/app/views/checked_items/_checkouts.html.erb +0 -20
  22. data/app/views/checked_items/_list.html.erb +0 -39
  23. data/app/views/checked_items/edit.html.erb +0 -21
  24. data/app/views/checked_items/index.html.erb +0 -32
  25. data/app/views/checked_items/index.js.erb +0 -1
  26. data/app/views/checked_items/new.html.erb +0 -20
  27. data/app/views/checked_items/show.html.erb +0 -24
  28. data/app/views/checkins/_form.html.erb +0 -24
  29. data/app/views/checkins/_list.html.erb +0 -51
  30. data/app/views/checkins/edit.html.erb +0 -26
  31. data/app/views/checkins/index.html.erb +0 -16
  32. data/app/views/checkins/index.js.erb +0 -1
  33. data/app/views/checkins/new.html.erb +0 -14
  34. data/app/views/checkins/show.html.erb +0 -24
  35. data/app/views/checkout_stat_has_manifestations/_form.html.erb +0 -15
  36. data/app/views/checkout_stat_has_manifestations/edit.html.erb +0 -13
  37. data/app/views/checkout_stat_has_manifestations/index.html.erb +0 -33
  38. data/app/views/checkout_stat_has_manifestations/new.html.erb +0 -12
  39. data/app/views/checkout_stat_has_manifestations/show.html.erb +0 -28
  40. data/app/views/checkout_stat_has_users/_form.html.erb +0 -15
  41. data/app/views/checkout_stat_has_users/edit.html.erb +0 -13
  42. data/app/views/checkout_stat_has_users/index.html.erb +0 -33
  43. data/app/views/checkout_stat_has_users/new.html.erb +0 -12
  44. data/app/views/checkout_stat_has_users/show.html.erb +0 -28
  45. data/app/views/checkout_types/_form.html.erb +0 -19
  46. data/app/views/checkout_types/edit.html.erb +0 -13
  47. data/app/views/checkout_types/index.html.erb +0 -50
  48. data/app/views/checkout_types/new.html.erb +0 -12
  49. data/app/views/checkout_types/show.html.erb +0 -38
  50. data/app/views/checkouts/_form.html.erb +0 -28
  51. data/app/views/checkouts/_index.html.erb +0 -23
  52. data/app/views/checkouts/_index_overdue.html.erb +0 -33
  53. data/app/views/checkouts/_index_user.html.erb +0 -44
  54. data/app/views/checkouts/_list.html.erb +0 -45
  55. data/app/views/checkouts/edit.html.erb +0 -51
  56. data/app/views/checkouts/index.atom.builder +0 -14
  57. data/app/views/checkouts/index.csv.erb +0 -4
  58. data/app/views/checkouts/index.html.erb +0 -11
  59. data/app/views/checkouts/index.ics.erb +0 -13
  60. data/app/views/checkouts/index.rss.builder +0 -38
  61. data/app/views/checkouts/new.html.erb +0 -20
  62. data/app/views/checkouts/show.html.erb +0 -35
  63. data/app/views/circulation_statuses/_form.html.erb +0 -19
  64. data/app/views/circulation_statuses/edit.html.erb +0 -13
  65. data/app/views/circulation_statuses/index.html.erb +0 -43
  66. data/app/views/circulation_statuses/new.html.erb +0 -12
  67. data/app/views/circulation_statuses/show.html.erb +0 -29
  68. data/app/views/item_has_use_restrictions/edit.html.erb +0 -27
  69. data/app/views/item_has_use_restrictions/index.html.erb +0 -32
  70. data/app/views/item_has_use_restrictions/new.html.erb +0 -25
  71. data/app/views/item_has_use_restrictions/show.html.erb +0 -29
  72. data/app/views/lending_policies/_form.html.erb +0 -41
  73. data/app/views/lending_policies/edit.html.erb +0 -13
  74. data/app/views/lending_policies/index.html.erb +0 -42
  75. data/app/views/lending_policies/new.html.erb +0 -12
  76. data/app/views/lending_policies/show.html.erb +0 -50
  77. data/app/views/manifestation_checkout_stats/_form.html.erb +0 -19
  78. data/app/views/manifestation_checkout_stats/edit.html.erb +0 -13
  79. data/app/views/manifestation_checkout_stats/index.html.erb +0 -35
  80. data/app/views/manifestation_checkout_stats/new.html.erb +0 -12
  81. data/app/views/manifestation_checkout_stats/show.csv.erb +0 -4
  82. data/app/views/manifestation_checkout_stats/show.html.erb +0 -55
  83. data/app/views/manifestation_reserve_stats/_form.html.erb +0 -19
  84. data/app/views/manifestation_reserve_stats/edit.html.erb +0 -13
  85. data/app/views/manifestation_reserve_stats/index.html.erb +0 -35
  86. data/app/views/manifestation_reserve_stats/new.html.erb +0 -12
  87. data/app/views/manifestation_reserve_stats/show.csv.erb +0 -4
  88. data/app/views/manifestation_reserve_stats/show.html.erb +0 -55
  89. data/app/views/reserve_stat_has_manifestations/_form.html.erb +0 -15
  90. data/app/views/reserve_stat_has_manifestations/edit.html.erb +0 -13
  91. data/app/views/reserve_stat_has_manifestations/index.html.erb +0 -33
  92. data/app/views/reserve_stat_has_manifestations/new.html.erb +0 -12
  93. data/app/views/reserve_stat_has_manifestations/show.html.erb +0 -28
  94. data/app/views/reserve_stat_has_users/_form.html.erb +0 -15
  95. data/app/views/reserve_stat_has_users/edit.html.erb +0 -13
  96. data/app/views/reserve_stat_has_users/index.html.erb +0 -33
  97. data/app/views/reserve_stat_has_users/new.html.erb +0 -12
  98. data/app/views/reserve_stat_has_users/show.html.erb +0 -28
  99. data/app/views/reserves/_form.html.erb +0 -49
  100. data/app/views/reserves/_new.html.erb +0 -44
  101. data/app/views/reserves/_new_user.html.erb +0 -50
  102. data/app/views/reserves/_title.html.erb +0 -19
  103. data/app/views/reserves/edit.html.erb +0 -42
  104. data/app/views/reserves/index.atom.builder +0 -14
  105. data/app/views/reserves/index.csv.erb +0 -4
  106. data/app/views/reserves/index.html.erb +0 -75
  107. data/app/views/reserves/index.rss.builder +0 -41
  108. data/app/views/reserves/new.html.erb +0 -5
  109. data/app/views/reserves/show.html.erb +0 -61
  110. data/app/views/use_restrictions/_form.html.erb +0 -19
  111. data/app/views/use_restrictions/edit.html.erb +0 -13
  112. data/app/views/use_restrictions/index.html.erb +0 -43
  113. data/app/views/use_restrictions/new.html.erb +0 -12
  114. data/app/views/use_restrictions/show.html.erb +0 -29
  115. data/app/views/user_checkout_stats/_form.html.erb +0 -19
  116. data/app/views/user_checkout_stats/edit.html.erb +0 -13
  117. data/app/views/user_checkout_stats/index.html.erb +0 -35
  118. data/app/views/user_checkout_stats/new.html.erb +0 -12
  119. data/app/views/user_checkout_stats/show.csv.erb +0 -4
  120. data/app/views/user_checkout_stats/show.html.erb +0 -55
  121. data/app/views/user_group_has_checkout_types/edit.html.erb +0 -63
  122. data/app/views/user_group_has_checkout_types/index.html.erb +0 -32
  123. data/app/views/user_group_has_checkout_types/new.html.erb +0 -62
  124. data/app/views/user_group_has_checkout_types/show.html.erb +0 -64
  125. data/app/views/user_reserve_stats/_form.html.erb +0 -19
  126. data/app/views/user_reserve_stats/edit.html.erb +0 -13
  127. data/app/views/user_reserve_stats/index.html.erb +0 -35
  128. data/app/views/user_reserve_stats/new.html.erb +0 -12
  129. data/app/views/user_reserve_stats/show.csv.erb +0 -4
  130. data/app/views/user_reserve_stats/show.html.erb +0 -54
  131. data/spec/dummy/db/development.sqlite3 +0 -0
  132. data/spec/dummy/db/production.sqlite3 +0 -0
  133. data/spec/dummy/lib/enju_leaf/localized_name.rb +0 -13
  134. data/spec/dummy/lib/enju_leaf/master_model.rb +0 -41
  135. data/spec/dummy/lib/enju_leaf/url_validator.rb +0 -10
  136. data/spec/dummy/lib/enju_leaf.rb +0 -4
  137. data/spec/dummy/solr/data/test/index/_0.fdt +0 -0
  138. data/spec/dummy/solr/data/test/index/_0.fdx +0 -0
  139. data/spec/dummy/solr/data/test/index/_0.fnm +0 -3
  140. data/spec/dummy/solr/data/test/index/_0.frq +0 -1
  141. data/spec/dummy/solr/data/test/index/_0.nrm +0 -1
  142. data/spec/dummy/solr/data/test/index/_0.prx +0 -0
  143. data/spec/dummy/solr/data/test/index/_0.tii +0 -0
  144. data/spec/dummy/solr/data/test/index/_0.tis +0 -0
  145. data/spec/dummy/solr/data/test/index/segments_2 +0 -0
@@ -1,29 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.showing', :model => t('activerecord.models.use_restriction')) -%></h1>
3
- <div id="content_list">
4
- <p id="notice"><%= notice %></p>
5
-
6
- <p>
7
- <strong><%= t('activerecord.attributes.use_restriction.name') -%></strong>
8
- <%= @use_restriction.name -%>
9
- </p>
10
-
11
- <p>
12
- <strong><%= t('activerecord.attributes.use_restriction.display_name') -%></strong>
13
- <%= @use_restriction.display_name.localize -%>
14
- </p>
15
-
16
- <p>
17
- <strong><%= t('activerecord.attributes.use_restriction.note') -%></strong>
18
- <%= @use_restriction.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_use_restriction_path(@use_restriction) -%></li>
27
- <li><%= back_to_index(flash[:page_info]) -%></li>
28
- </ul>
29
- </div>
@@ -1,19 +0,0 @@
1
- <%= form_for(@user_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.user_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'), @user_checkout_stat -%></li>
11
- <li><%= link_to t('page.back'), user_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.user_checkout_stat')) -%></h1>
3
- <div id="content_list">
4
-
5
- <table class="index">
6
- <tr>
7
- <th><%= t('activerecord.attributes.user_checkout_stat.start_date') -%></th>
8
- <th><%= t('activerecord.attributes.user_checkout_stat.end_date') -%></th>
9
- <th><%= t('activerecord.attributes.user_checkout_stat.state') -%></th>
10
- <th></th>
11
- </tr>
12
-
13
- <%- @user_checkout_stats.each do |user_checkout_stat| -%>
14
- <tr class="line<%= cycle("0", "1") -%>">
15
- <td><%= l(user_checkout_stat.start_date) -%></td>
16
- <td><%= l(user_checkout_stat.end_date) -%></td>
17
- <td><%= user_checkout_stat.state -%></td>
18
- <td>
19
- <%= link_to t('page.show'), user_checkout_stat -%>
20
- <%= link_to t('page.edit'), edit_user_checkout_stat_path(user_checkout_stat) -%>
21
- <%= link_to t('page.destroy'), user_checkout_stat, :confirm => t('page.are_you_sure'), :method => :delete -%>
22
- </td>
23
- </tr>
24
- <%- end -%>
25
- </table>
26
-
27
- <%= will_paginate(@user_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.user_checkout_stat')), new_user_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.user_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'), user_checkout_stats_path -%></li>
11
- </ul>
12
- </div>
@@ -1,4 +0,0 @@
1
- <%=h @user_checkout_stat.start_date -%>,<%=h @user_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.user_checkout_stat')) -%></h1>
3
- <div id="content_list">
4
- <p id="notice"><%= notice %></p>
5
-
6
- <p>
7
- <strong><%= t('activerecord.attributes.user_checkout_stat.start_date') -%>:</strong>
8
- <%= l(@user_checkout_stat.start_date) -%>
9
- </p>
10
-
11
- <p>
12
- <strong><%= t('activerecord.attributes.user_checkout_stat.end_date') -%>:</strong>
13
- <%= l(@user_checkout_stat.end_date) -%>
14
- </p>
15
-
16
- <p>
17
- <strong><%= t('activerecord.attributes.user_checkout_stat.state') -%>:</strong>
18
- <%= @user_checkout_stat.state -%>
19
- </p>
20
-
21
- <p>
22
- <strong><%= t('activerecord.attributes.user_checkout_stat.note') -%>:</strong>
23
- <%= @user_checkout_stat.note -%>
24
- </p>
25
-
26
- <table class="index">
27
- <tr>
28
- <th><%= t('activerecord.models.user') -%></th>
29
- <th><%= t('activerecord.attributes.checkout_stat_has_user.checkouts_count') -%></th>
30
- </tr>
31
- <%- @stats.each do |stat| -%>
32
- <tr class="line<%= cycle("0", "1") -%>">
33
- <td>
34
- <%= link_to stat.user.username, stat.user -%>
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_user_checkout_stat_path(@user_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', user_checkout_stat_path(@user_checkout_stat, :format => :csv, :locale => @locale.to_s) -%></li>
54
- </ul>
55
- </div>
@@ -1,63 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.editing', :model => t('activerecord.models.user_group_has_checkout_type')) -%></h1>
3
- <div id="content_list">
4
-
5
- <%= form_for(@user_group_has_checkout_type) do |f| -%>
6
- <%= f.error_messages -%>
7
-
8
- <div class="field">
9
- <%= f.label t('activerecord.models.user_group') -%><br />
10
- <%= f.select(:user_group_id, @user_groups.collect{|u| [u.display_name.localize, u.id]}) -%>
11
- </div>
12
- <div class="field">
13
- <%= f.label t('activerecord.models.checkout_type') -%><br />
14
- <%= f.select(:checkout_type_id, @checkout_types.collect{|c| [c.display_name.localize, c.id]}) -%>
15
- </div>
16
- <div class="field">
17
- <%= f.label :checkout_limit -%><br />
18
- <%= f.text_field :checkout_limit, :class => 'resource_integer' -%>
19
- </div>
20
-
21
- <div class="field">
22
- <%= f.label :checkout_period -%><br />
23
- <%= f.text_field :checkout_period, :class => 'resource_integer' -%>
24
- </div>
25
-
26
- <div class="field">
27
- <%= f.label :checkout_renewal_limit -%><br />
28
- <%= f.text_field :checkout_renewal_limit, :class => 'resource_integer' -%>
29
- </div>
30
-
31
- <div class="field">
32
- <%= f.label :reservation_limit -%><br />
33
- <%= f.text_field :reservation_limit, :class => 'resource_integer' -%>
34
- </div>
35
-
36
- <div class="field">
37
- <%= f.label :reservation_expired_period -%><br />
38
- <%= f.text_field :reservation_expired_period, :class => 'resource_integer' -%>
39
- </div>
40
-
41
- <div class="field">
42
- <%= f.label :set_due_date_before_closing_day -%>
43
- <%= f.check_box :set_due_date_before_closing_day -%>
44
- </div>
45
-
46
- <div class="field">
47
- <%= f.label :note -%><br />
48
- <%= f.text_area :note, :class => 'resource_textarea' -%>
49
- </div>
50
- <div class="actions">
51
- <%= f.submit %>
52
- </div>
53
- <%- end -%>
54
-
55
- </div>
56
- </div>
57
-
58
- <div id="submenu" class="ui-corner-all">
59
- <ul>
60
- <li><%= link_to t('page.show'), @user_group_has_checkout_type -%></li>
61
- <li><%= link_to t('page.back'), user_group_has_checkout_types_path -%></li>
62
- </ul>
63
- </div>
@@ -1,32 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.user_group_has_checkout_type')) -%></h1>
3
- <div id="content_list">
4
-
5
- <table class="index">
6
- <tr>
7
- <th><%= t('activerecord.models.user_group') -%></th>
8
- <th><%= t('activerecord.models.checkout_type') -%></th>
9
- <th></th>
10
- </tr>
11
-
12
- <%- @user_group_has_checkout_types.each do |user_group_has_checkout_type| -%>
13
- <tr class="line<%= cycle("0", "1") -%>">
14
- <td><%= link_to user_group_has_checkout_type.user_group.display_name.localize.localize, user_group_has_checkout_type.user_group -%></td>
15
- <td><%= link_to user_group_has_checkout_type.checkout_type.display_name.localize.localize, user_group_has_checkout_type.checkout_type -%></td>
16
- <td>
17
- <%= link_to t('page.show'), user_group_has_checkout_type -%>
18
- <%= link_to t('page.edit'), edit_user_group_has_checkout_type_path(user_group_has_checkout_type) -%>
19
- <%= link_to t('page.destroy'), user_group_has_checkout_type, :confirm => t('page.are_you_sure'), :method => :delete -%>
20
- </td>
21
- </tr>
22
- <%- end -%>
23
- </table>
24
-
25
- </div>
26
- </div>
27
-
28
- <div id="submenu" class="ui-corner-all">
29
- <ul>
30
- <li><%= link_to t('page.new', :model => t('activerecord.models.user_group_has_checkout_type')), new_user_group_has_checkout_type_path -%></li>
31
- </ul>
32
- </div>
@@ -1,62 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.new', :model => t('activerecord.models.user_group_has_checkout_type')) -%></h1>
3
- <div id="content_list">
4
-
5
- <%= form_for(@user_group_has_checkout_type) do |f| -%>
6
- <%= f.error_messages -%>
7
-
8
- <div class="field">
9
- <%= f.label t('activerecord.models.user_group') -%><br />
10
- <%= f.select(:user_group_id, @user_groups.collect{|u| [u.display_name.localize, u.id]}, :include_blank => true) -%>
11
- </div>
12
- <div class="field">
13
- <%= f.label t('activerecord.models.checkout_type') -%><br />
14
- <%= f.select(:checkout_type_id, @checkout_types.collect{|c| [c.display_name.localize, c.id]}, :include_blank => true) -%>
15
- </div>
16
- <div class="field">
17
- <%= f.label :checkout_limit -%><br />
18
- <%= f.text_field :checkout_limit, :class => 'resource_integer' -%>
19
- </div>
20
-
21
- <div class="field">
22
- <%= f.label :checkout_period -%><br />
23
- <%= f.text_field :checkout_period, :class => 'resource_integer' -%>
24
- </div>
25
-
26
- <div class="field">
27
- <%= f.label :checkout_renewal_limit -%><br />
28
- <%= f.text_field :checkout_renewal_limit, :class => 'resource_integer' -%>
29
- </div>
30
-
31
- <div class="field">
32
- <%= f.label :reservation_limit -%><br />
33
- <%= f.text_field :reservation_limit, :class => 'resource_integer' -%>
34
- </div>
35
-
36
- <div class="field">
37
- <%= f.label :reservation_expired_period -%><br />
38
- <%= f.text_field :reservation_expired_period, :class => 'resource_integer' -%>
39
- </div>
40
-
41
- <div class="field">
42
- <%= f.label :set_due_date_before_closing_day -%>
43
- <%= f.check_box :set_due_date_before_closing_day -%>
44
- </div>
45
-
46
- <div class="field">
47
- <%= f.label :note -%><br />
48
- <%= f.text_area :note, :class => 'resource_textarea' -%>
49
- </div>
50
- <div class="actions">
51
- <%= f.submit %>
52
- </div>
53
- <%- end -%>
54
-
55
- </div>
56
- </div>
57
-
58
- <div id="submenu" class="ui-corner-all">
59
- <ul>
60
- <li><%= link_to t('page.back'), user_group_has_checkout_types_path -%></li>
61
- </ul>
62
- </div>
@@ -1,64 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.showing', :model => t('activerecord.models.user_group_has_checkout_type')) -%></h1>
3
- <div id="content_list">
4
- <p id="notice"><%= notice %></p>
5
-
6
- <p>
7
- <strong><%= t('activerecord.models.user_group') -%>:</strong>
8
- <%= link_to @user_group_has_checkout_type.user_group.display_name.localize, @user_group_has_checkout_type.user_group -%>
9
- </p>
10
-
11
- <p>
12
- <strong><%= t('activerecord.models.checkout_type') -%>:</strong>
13
- <%= link_to @user_group_has_checkout_type.checkout_type.display_name.localize, @user_group_has_checkout_type.checkout_type -%>
14
- </p>
15
-
16
- <p>
17
- <strong><%= t('activerecord.attributes.user_group_has_checkout_type.note') -%>:</strong>
18
- <%= @user_group_has_checkout_type.note -%>
19
- </p>
20
-
21
- <p>
22
- <strong><%= t('activerecord.attributes.user_group_has_checkout_type.checkout_limit') -%>:</strong>
23
- <%= @user_group_has_checkout_type.checkout_limit -%>
24
- </p>
25
-
26
- <p>
27
- <strong><%= t('activerecord.attributes.user_group_has_checkout_type.checkout_period') -%>:</strong>
28
- <%= @user_group_has_checkout_type.checkout_period -%>
29
- </p>
30
-
31
- <p>
32
- <strong><%= t('activerecord.attributes.user_group_has_checkout_type.checkout_renewal_limit') -%>:</strong>
33
- <%= @user_group_has_checkout_type.checkout_renewal_limit -%>
34
- </p>
35
-
36
- <p>
37
- <strong><%= t('activerecord.attributes.user_group_has_checkout_type.reservation_limit') -%>:</strong>
38
- <%= @user_group_has_checkout_type.reservation_limit -%>
39
- </p>
40
-
41
- <p>
42
- <strong><%= t('activerecord.attributes.user_group_has_checkout_type.reservation_expired_period') -%>:</strong>
43
- <%= @user_group_has_checkout_type.reservation_expired_period -%>
44
- </p>
45
-
46
- <p>
47
- <strong><%= t('activerecord.attributes.user_group_has_checkout_type.set_due_date_before_closing_day') -%>:</strong>
48
- <%= localized_boolean(@user_group_has_checkout_type.set_due_date_before_closing_day) -%>
49
- </p>
50
-
51
- <p>
52
- <strong><%= t('activerecord.attributes.user_group_has_checkout_type.current_checkout_count') -%>:</strong>
53
- <%= @user_group_has_checkout_type.current_checkout_count.to_i -%>
54
- </p>
55
-
56
- </div>
57
- </div>
58
-
59
- <div id="submenu" class="ui-corner-all">
60
- <ul>
61
- <li><%= link_to t('page.edit'), edit_user_group_has_checkout_type_path(@user_group_has_checkout_type) -%></li>
62
- <li><%= back_to_index(flash[:page_info]) -%></li>
63
- </ul>
64
- </div>
@@ -1,19 +0,0 @@
1
- <%= form_for(@user_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.user_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'), @user_reserve_stat -%></li>
11
- <li><%= link_to t('page.back'), user_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.user_reserve_stat')) -%></h1>
3
- <div id="content_list">
4
-
5
- <table class="index">
6
- <tr>
7
- <th><%= t('activerecord.attributes.user_reserve_stat.start_date') -%></th>
8
- <th><%= t('activerecord.attributes.user_reserve_stat.end_date') -%></th>
9
- <th><%= t('activerecord.attributes.user_reserve_stat.state') -%></th>
10
- <th></th>
11
- </tr>
12
-
13
- <%- @user_reserve_stats.each do |user_reserve_stat| -%>
14
- <tr class="line<%= cycle("0", "1") -%>">
15
- <td><%= l(user_reserve_stat.start_date) -%></td>
16
- <td><%= l(user_reserve_stat.end_date) -%></td>
17
- <td><%= user_reserve_stat.state -%></td>
18
- <td>
19
- <%= link_to t('page.show'), user_reserve_stat -%>
20
- <%= link_to t('page.edit'), edit_user_reserve_stat_path(user_reserve_stat) -%>
21
- <%= link_to t('page.destroy'), user_reserve_stat, :confirm => t('page.are_you_sure'), :method => :delete -%>
22
- </td>
23
- </tr>
24
- <%- end -%>
25
- </table>
26
-
27
- <%= will_paginate(@user_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.user_reserve_stat')), new_user_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.user_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'), user_reserve_stats_path -%></li>
11
- </ul>
12
- </div>
@@ -1,4 +0,0 @@
1
- <%=h @user_reserve_stat.start_date -%>,<%=h @user_reserve_stat.end_date -%><%= "\n" -%>
2
- <%- @stats.each do |stat| -%>
3
- "<%=h stat.user.username -%>","<%=h stat.reserves_count -%>"<%= "\n" -%>
4
- <%- end -%>
@@ -1,54 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.showing', :model => t('activerecord.models.user_reserve_stat')) -%></h1>
3
- <div id="content_list">
4
- <p id="notice"><%= notice %></p>
5
-
6
- <p>
7
- <strong><%= t('activerecord.attributes.user_reserve_stat.start_date') -%>:</strong>
8
- <%= l(@user_reserve_stat.start_date) -%>
9
- </p>
10
-
11
- <p>
12
- <strong><%= t('activerecord.attributes.user_reserve_stat.end_date') -%>:</strong>
13
- <%= l(@user_reserve_stat.end_date) -%>
14
- </p>
15
-
16
- <p>
17
- <strong><%= t('activerecord.attributes.user_reserve_stat.state') -%>:</strong>
18
- <%= @user_reserve_stat.state -%>
19
- </p>
20
-
21
- <p>
22
- <strong><%= t('activerecord.attributes.user_reserve_stat.note') -%>:</strong>
23
- <%= @user_reserve_stat.note -%>
24
- </p>
25
-
26
- <table class="index">
27
- <tr>
28
- <th><%= t('activerecord.models.user') -%></th>
29
- <th><%= t('activerecord.attributes.reserve_stat_has_user.reserves_count') -%></th>
30
- </tr>
31
- <%- @stats.each do |stat| -%>
32
- <tr class="line<%= cycle("0", "1") -%>">
33
- <td>
34
- <%= link_to stat.user.username, stat.user -%>
35
- </td>
36
- <td><%= stat.reserves_count -%></td>
37
- </tr>
38
- <%- end -%>
39
- </table>
40
-
41
- <%= will_paginate(@stats) -%>
42
- </div>
43
- </div>
44
-
45
- <div id="submenu" class="ui-corner-all">
46
- <ul>
47
- <li><%= link_to t('page.edit'), edit_user_reserve_stat_path(@user_reserve_stat) -%></li>
48
- <li><%= back_to_index(flash[:page_info]) -%></li>
49
- </ul>
50
- <h4><%= t('page.export') -%></h4>
51
- <ul>
52
- <li><%= link_to 'CSV', user_reserve_stat_path(@user_reserve_stat, :format => :csv, :locale => @locale.to_s) -%></li>
53
- </ul>
54
- </div>
Binary file
Binary file
@@ -1,13 +0,0 @@
1
- module LocalizedName
2
- def localize(locale = I18n.locale.to_s)
3
- values = Hash[*self.strip.split("\n").map{|n| n.split(':', 2)}.flatten]
4
- name = values[locale.to_s] || self
5
- name.strip
6
- rescue ArgumentError
7
- self
8
- end
9
- end
10
-
11
- class String
12
- include LocalizedName
13
- end
@@ -1,41 +0,0 @@
1
- module MasterModel
2
- def self.included(base)
3
- #base.extend ClassMethods
4
- base.send :include, InstanceMethods
5
- base.class_eval do
6
- acts_as_list
7
- validates_uniqueness_of :name, :case_sensitive => false
8
- validates_presence_of :name, :display_name
9
- before_validation :set_display_name, :on => :create
10
- normalize_attributes :name
11
- end
12
- end
13
-
14
- module InstanceMethods
15
- def set_display_name
16
- self.display_name = self.name if self.display_name.blank?
17
- end
18
-
19
- def check_creatable
20
- if creatable?
21
- raise NotModifiableError
22
- end
23
- end
24
-
25
- def check_deletable
26
- if deletable?
27
- raise NotModifiableError
28
- end
29
- end
30
-
31
- def creatable?
32
- false
33
- end
34
-
35
- def deletable?
36
- false
37
- end
38
- end
39
-
40
- class NotModifiableError < StandardError; end
41
- end
@@ -1,10 +0,0 @@
1
- class UrlValidator < ActiveModel::EachValidator
2
- def validate_each(record, attribute, value)
3
- url = ::Addressable::URI.parse(value)
4
- if url
5
- unless ['http', 'https'].include?(url.scheme)
6
- record.errors.add(attribute.to_sym)
7
- end
8
- end
9
- end
10
- end
@@ -1,4 +0,0 @@
1
- require 'addressable/uri'
2
- require 'enju_leaf/localized_name'
3
- require 'enju_leaf/master_model'
4
- require 'enju_leaf/url_validator'
Binary file
Binary file
@@ -1,3 +0,0 @@
1
- ����
2
- idtype
3
- class_name subject_s
@@ -1 +0,0 @@
1
- 
@@ -1 +0,0 @@
1
- NRM�vvvxyxy|
Binary file
Binary file
Binary file