enju_message 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- data/app/views/baskets/edit.html.erb +30 -0
- data/app/views/baskets/index.html.erb +31 -0
- data/app/views/baskets/new.html.erb +29 -0
- data/app/views/baskets/show.html.erb +23 -0
- data/app/views/carrier_type_has_checkout_types/_form.html.erb +19 -0
- data/app/views/carrier_type_has_checkout_types/edit.html.erb +13 -0
- data/app/views/carrier_type_has_checkout_types/index.html.erb +33 -0
- data/app/views/carrier_type_has_checkout_types/new.html.erb +12 -0
- data/app/views/carrier_type_has_checkout_types/show.html.erb +29 -0
- data/app/views/checked_items/_checkouts.html.erb +20 -0
- data/app/views/checked_items/_list.html.erb +39 -0
- data/app/views/checked_items/edit.html.erb +21 -0
- data/app/views/checked_items/index.html.erb +32 -0
- data/app/views/checked_items/index.js.erb +1 -0
- data/app/views/checked_items/new.html.erb +20 -0
- data/app/views/checked_items/show.html.erb +24 -0
- data/app/views/checkins/_form.html.erb +24 -0
- data/app/views/checkins/_list.html.erb +51 -0
- data/app/views/checkins/edit.html.erb +26 -0
- data/app/views/checkins/index.html.erb +16 -0
- data/app/views/checkins/index.js.erb +1 -0
- data/app/views/checkins/new.html.erb +14 -0
- data/app/views/checkins/show.html.erb +24 -0
- data/app/views/checkout_stat_has_manifestations/_form.html.erb +15 -0
- data/app/views/checkout_stat_has_manifestations/edit.html.erb +13 -0
- data/app/views/checkout_stat_has_manifestations/index.html.erb +33 -0
- data/app/views/checkout_stat_has_manifestations/new.html.erb +12 -0
- data/app/views/checkout_stat_has_manifestations/show.html.erb +28 -0
- data/app/views/checkout_stat_has_users/_form.html.erb +15 -0
- data/app/views/checkout_stat_has_users/edit.html.erb +13 -0
- data/app/views/checkout_stat_has_users/index.html.erb +33 -0
- data/app/views/checkout_stat_has_users/new.html.erb +12 -0
- data/app/views/checkout_stat_has_users/show.html.erb +28 -0
- data/app/views/checkout_types/_form.html.erb +19 -0
- data/app/views/checkout_types/edit.html.erb +13 -0
- data/app/views/checkout_types/index.html.erb +50 -0
- data/app/views/checkout_types/new.html.erb +12 -0
- data/app/views/checkout_types/show.html.erb +38 -0
- data/app/views/checkouts/_form.html.erb +28 -0
- data/app/views/checkouts/_index.html.erb +23 -0
- data/app/views/checkouts/_index_overdue.html.erb +33 -0
- data/app/views/checkouts/_index_user.html.erb +44 -0
- data/app/views/checkouts/_list.html.erb +45 -0
- data/app/views/checkouts/edit.html.erb +51 -0
- data/app/views/checkouts/index.atom.builder +14 -0
- data/app/views/checkouts/index.csv.erb +4 -0
- data/app/views/checkouts/index.html.erb +11 -0
- data/app/views/checkouts/index.ics.erb +13 -0
- data/app/views/checkouts/index.rss.builder +38 -0
- data/app/views/checkouts/new.html.erb +20 -0
- data/app/views/checkouts/show.html.erb +35 -0
- data/app/views/circulation_statuses/_form.html.erb +19 -0
- data/app/views/circulation_statuses/edit.html.erb +13 -0
- data/app/views/circulation_statuses/index.html.erb +43 -0
- data/app/views/circulation_statuses/new.html.erb +12 -0
- data/app/views/circulation_statuses/show.html.erb +29 -0
- data/app/views/item_has_use_restrictions/edit.html.erb +27 -0
- data/app/views/item_has_use_restrictions/index.html.erb +32 -0
- data/app/views/item_has_use_restrictions/new.html.erb +25 -0
- data/app/views/item_has_use_restrictions/show.html.erb +29 -0
- data/app/views/lending_policies/_form.html.erb +41 -0
- data/app/views/lending_policies/edit.html.erb +13 -0
- data/app/views/lending_policies/index.html.erb +42 -0
- data/app/views/lending_policies/new.html.erb +12 -0
- data/app/views/lending_policies/show.html.erb +50 -0
- data/app/views/manifestation_checkout_stats/_form.html.erb +19 -0
- data/app/views/manifestation_checkout_stats/edit.html.erb +13 -0
- data/app/views/manifestation_checkout_stats/index.html.erb +35 -0
- data/app/views/manifestation_checkout_stats/new.html.erb +12 -0
- data/app/views/manifestation_checkout_stats/show.csv.erb +4 -0
- data/app/views/manifestation_checkout_stats/show.html.erb +55 -0
- data/app/views/manifestation_reserve_stats/_form.html.erb +19 -0
- data/app/views/manifestation_reserve_stats/edit.html.erb +13 -0
- data/app/views/manifestation_reserve_stats/index.html.erb +35 -0
- data/app/views/manifestation_reserve_stats/new.html.erb +12 -0
- data/app/views/manifestation_reserve_stats/show.csv.erb +4 -0
- data/app/views/manifestation_reserve_stats/show.html.erb +55 -0
- data/app/views/reserve_stat_has_manifestations/_form.html.erb +15 -0
- data/app/views/reserve_stat_has_manifestations/edit.html.erb +13 -0
- data/app/views/reserve_stat_has_manifestations/index.html.erb +33 -0
- data/app/views/reserve_stat_has_manifestations/new.html.erb +12 -0
- data/app/views/reserve_stat_has_manifestations/show.html.erb +28 -0
- data/app/views/reserve_stat_has_users/_form.html.erb +15 -0
- data/app/views/reserve_stat_has_users/edit.html.erb +13 -0
- data/app/views/reserve_stat_has_users/index.html.erb +33 -0
- data/app/views/reserve_stat_has_users/new.html.erb +12 -0
- data/app/views/reserve_stat_has_users/show.html.erb +28 -0
- data/app/views/reserves/_form.html.erb +49 -0
- data/app/views/reserves/_new.html.erb +44 -0
- data/app/views/reserves/_new_user.html.erb +50 -0
- data/app/views/reserves/_title.html.erb +19 -0
- data/app/views/reserves/edit.html.erb +42 -0
- data/app/views/reserves/index.atom.builder +14 -0
- data/app/views/reserves/index.csv.erb +4 -0
- data/app/views/reserves/index.html.erb +75 -0
- data/app/views/reserves/index.rss.builder +41 -0
- data/app/views/reserves/new.html.erb +5 -0
- data/app/views/reserves/show.html.erb +61 -0
- data/app/views/use_restrictions/_form.html.erb +19 -0
- data/app/views/use_restrictions/edit.html.erb +13 -0
- data/app/views/use_restrictions/index.html.erb +43 -0
- data/app/views/use_restrictions/new.html.erb +12 -0
- data/app/views/use_restrictions/show.html.erb +29 -0
- data/app/views/user_checkout_stats/_form.html.erb +19 -0
- data/app/views/user_checkout_stats/edit.html.erb +13 -0
- data/app/views/user_checkout_stats/index.html.erb +35 -0
- data/app/views/user_checkout_stats/new.html.erb +12 -0
- data/app/views/user_checkout_stats/show.csv.erb +4 -0
- data/app/views/user_checkout_stats/show.html.erb +55 -0
- data/app/views/user_group_has_checkout_types/edit.html.erb +63 -0
- data/app/views/user_group_has_checkout_types/index.html.erb +32 -0
- data/app/views/user_group_has_checkout_types/new.html.erb +62 -0
- data/app/views/user_group_has_checkout_types/show.html.erb +64 -0
- data/app/views/user_reserve_stats/_form.html.erb +19 -0
- data/app/views/user_reserve_stats/edit.html.erb +13 -0
- data/app/views/user_reserve_stats/index.html.erb +35 -0
- data/app/views/user_reserve_stats/new.html.erb +12 -0
- data/app/views/user_reserve_stats/show.csv.erb +4 -0
- data/app/views/user_reserve_stats/show.html.erb +54 -0
- data/lib/enju_message.rb +3 -0
- data/lib/enju_message/user.rb +28 -0
- data/lib/enju_message/version.rb +1 -1
- data/spec/dummy/app/models/user.rb +2 -13
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/production.sqlite3 +0 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/solr/data/test/index/_0.fdt +0 -0
- data/spec/dummy/solr/data/test/index/_0.fdx +0 -0
- data/spec/dummy/solr/data/test/index/_0.fnm +3 -0
- data/spec/dummy/solr/data/test/index/_0.frq +1 -0
- data/spec/dummy/solr/data/test/index/_0.nrm +1 -0
- data/spec/dummy/solr/data/test/index/_0.prx +0 -0
- data/spec/dummy/solr/data/test/index/_0.tii +0 -0
- data/spec/dummy/solr/data/test/index/_0.tis +0 -0
- data/spec/dummy/solr/data/test/index/segments.gen +0 -0
- data/spec/dummy/solr/data/test/index/segments_2 +0 -0
- data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
- metadata +144 -4
- data/spec/dummy/solr/data/test/index/segments_1 +0 -0
@@ -0,0 +1,26 @@
|
|
1
|
+
<div id="content_detail" class="ui-corner-all">
|
2
|
+
<h1 class="title"><%= t('page.editing', :model => t('activerecord.models.checkin')) -%></h1>
|
3
|
+
<div id="content_list">
|
4
|
+
|
5
|
+
<%= form_for(@checkin) do |f| -%>
|
6
|
+
<%= f.error_messages -%>
|
7
|
+
|
8
|
+
<div class="field">
|
9
|
+
<%= f.label t('activerecord.models.item') -%><br />
|
10
|
+
<%= f.text_field :item_identifier -%>
|
11
|
+
</div>
|
12
|
+
|
13
|
+
<div class="actions">
|
14
|
+
<%= f.submit %>
|
15
|
+
</div>
|
16
|
+
<%- end -%>
|
17
|
+
|
18
|
+
</div>
|
19
|
+
</div>
|
20
|
+
|
21
|
+
<div id="submenu" class="ui-corner-all">
|
22
|
+
<ul>
|
23
|
+
<li><%= link_to t('page.show'), checkin_path(@checkin) -%></li>
|
24
|
+
<li><%= link_to t('page.back'), checkins_path -%></li>
|
25
|
+
</ul>
|
26
|
+
</div>
|
@@ -0,0 +1,16 @@
|
|
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>
|
@@ -0,0 +1 @@
|
|
1
|
+
$("#checkin_list").html("<%= escape_javascript(render('checkins/list')) %>");
|
@@ -0,0 +1,14 @@
|
|
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 -%>
|
@@ -0,0 +1,24 @@
|
|
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>
|
@@ -0,0 +1,15 @@
|
|
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 -%>
|
@@ -0,0 +1,13 @@
|
|
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>
|
@@ -0,0 +1,33 @@
|
|
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>
|
@@ -0,0 +1,12 @@
|
|
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>
|
@@ -0,0 +1,28 @@
|
|
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>
|
@@ -0,0 +1,15 @@
|
|
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 -%>
|
@@ -0,0 +1,13 @@
|
|
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>
|
@@ -0,0 +1,33 @@
|
|
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>
|
@@ -0,0 +1,12 @@
|
|
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>
|
@@ -0,0 +1,28 @@
|
|
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>
|
@@ -0,0 +1,19 @@
|
|
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 %>
|
@@ -0,0 +1,13 @@
|
|
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>
|
@@ -0,0 +1,50 @@
|
|
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>
|
@@ -0,0 +1,12 @@
|
|
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>
|
@@ -0,0 +1,38 @@
|
|
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>
|