enju_leaf 1.2.0.beta.1 → 1.2.0.beta.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/enju_leaf/engine.rb +1 -15
- data/lib/enju_leaf/version.rb +1 -1
- data/lib/generators/enju_leaf/quick_install/quick_install_generator.rb +3 -3
- data/lib/generators/enju_leaf/setup/setup_generator.rb +0 -1
- data/spec/controllers/page_controller_spec.rb +1 -1
- data/spec/dummy/app/controllers/application_controller.rb +0 -1
- data/spec/dummy/app/helpers/application_helper.rb +2 -1
- data/spec/dummy/app/models/user.rb +0 -1
- data/spec/dummy/config/application.rb +1 -2
- data/{db → spec/dummy/db}/migrate/041_create_roles.rb +0 -0
- data/spec/dummy/db/migrate/059_create_libraries.rb +1 -5
- data/spec/dummy/db/migrate/069_create_shelves.rb +1 -5
- data/{db → spec/dummy/db}/migrate/077_create_user_groups.rb +0 -0
- data/spec/dummy/db/migrate/130_create_request_status_types.rb +1 -5
- data/spec/dummy/db/migrate/131_create_request_types.rb +1 -5
- data/spec/dummy/db/migrate/20100314190054_add_opening_hour_to_library.rb +9 -0
- data/{db → spec/dummy/db}/migrate/20100606065209_create_user_has_roles.rb +0 -0
- data/{db → spec/dummy/db}/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb +0 -0
- data/spec/dummy/db/migrate/20111129044509_add_pickup_location_to_reserve.rb +6 -0
- data/{db → spec/dummy/db}/migrate/20130221154434_add_additional_attributes_to_user.rb +0 -0
- data/spec/dummy/db/migrate/20130412083556_add_latitude_and_longitude_to_library.rb +6 -0
- data/{db → spec/dummy/db}/migrate/20140110122216_create_user_import_files.rb +0 -0
- data/{db → spec/dummy/db}/migrate/20140110131010_create_user_import_results.rb +0 -0
- data/{db → spec/dummy/db}/migrate/20140122054321_create_profiles.rb +0 -0
- data/{db → spec/dummy/db}/migrate/20140524074813_create_user_import_file_transitions.rb +0 -0
- data/{db → spec/dummy/db}/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb +0 -0
- data/{db → spec/dummy/db}/migrate/20140628072217_add_user_encoding_to_user_import_file.rb +0 -0
- data/{db → spec/dummy/db}/migrate/20140709113413_create_user_export_files.rb +0 -0
- data/{db → spec/dummy/db}/migrate/20140709113905_create_user_export_file_transitions.rb +0 -0
- data/{db → spec/dummy/db}/migrate/20140720170714_add_default_library_id_to_user_import_file.rb +0 -0
- data/{db → spec/dummy/db}/migrate/20140720170735_add_default_user_group_id_to_user_import_file.rb +0 -0
- data/{db → spec/dummy/db}/migrate/20140811031145_add_expired_at_to_profile.rb +0 -0
- data/spec/dummy/db/migrate/20140821151023_create_colors.rb +14 -0
- data/{db → spec/dummy/db}/migrate/20141003181336_add_full_name_transcription_to_profile.rb +0 -0
- data/{db → spec/dummy/db}/migrate/20141003182825_add_date_of_birth_to_profile.rb +0 -0
- data/spec/dummy/db/migrate/20141020120523_add_library_id_to_checkout.rb +6 -0
- data/spec/dummy/db/migrate/20150106001709_create_demands.rb +14 -0
- data/{db → spec/dummy/db}/migrate/20150421023923_create_identities.rb +0 -0
- data/{db → spec/dummy/db}/migrate/20150506105356_add_error_message_to_user_import_result.rb +0 -0
- data/spec/dummy/db/migrate/20150924115059_create_withdraws.rb +13 -0
- data/{db → spec/dummy/db}/migrate/20151126005552_add_provider_to_identity.rb +0 -0
- data/spec/dummy/db/migrate/20160610093229_add_html_snippet_to_library_group.rb +5 -0
- data/{db → spec/dummy/db}/migrate/20160627232219_add_most_recent_to_user_import_file_transitions.rb +0 -0
- data/{db → spec/dummy/db}/migrate/20160627232316_add_most_recent_to_user_export_file_transitions.rb +0 -0
- data/spec/dummy/db/migrate/20160703184619_add_most_recent_to_reserve_transitions.rb +9 -0
- data/spec/dummy/db/migrate/20160703184650_add_most_recent_to_manifestation_checkout_stat_transitions.rb +9 -0
- data/spec/dummy/db/migrate/20160703184723_add_most_recent_to_manifestation_reserve_stat_transitions.rb +9 -0
- data/spec/dummy/db/migrate/20160703184747_add_most_recent_to_user_checkout_stat_transitions.rb +9 -0
- data/spec/dummy/db/migrate/20160703184805_add_most_recent_to_user_reserve_stat_transitions.rb +9 -0
- data/spec/dummy/db/migrate/20160703185015_add_most_recent_to_message_transitions.rb +9 -0
- data/spec/dummy/db/migrate/20160703190209_add_foreign_key_on_manifestation_id_to_reserve.rb +5 -0
- data/spec/dummy/db/schema.rb +47 -12
- data/spec/fixtures/library_groups.yml +1 -4
- data/spec/models/user_spec.rb +0 -22
- data/spec/rails_helper.rb +1 -1
- data/spec/views/page/index.html.erb_spec.rb +0 -2
- metadata +96 -337
- data/app/controllers/concerns/enju_leaf/controller.rb +0 -225
- data/app/controllers/my_accounts_controller.rb +0 -93
- data/app/controllers/names_controller.rb +0 -60
- data/app/controllers/profiles_controller.rb +0 -219
- data/app/controllers/roles_controller.rb +0 -61
- data/app/controllers/user_export_files_controller.rb +0 -116
- data/app/controllers/user_groups_controller.rb +0 -118
- data/app/controllers/user_import_files_controller.rb +0 -129
- data/app/controllers/user_import_results_controller.rb +0 -57
- data/app/mailers/notifier.rb +0 -30
- data/app/models/identity.rb +0 -9
- data/app/models/profile.rb +0 -101
- data/app/models/role.rb +0 -50
- data/app/models/user_export_file.rb +0 -67
- data/app/models/user_export_file_state_machine.rb +0 -15
- data/app/models/user_export_file_transition.rb +0 -20
- data/app/models/user_group.rb +0 -29
- data/app/models/user_has_role.rb +0 -19
- data/app/models/user_import_file.rb +0 -352
- data/app/models/user_import_file_state_machine.rb +0 -19
- data/app/models/user_import_file_transition.rb +0 -20
- data/app/models/user_import_result.rb +0 -20
- data/app/policies/application_policy.rb +0 -53
- data/app/policies/name_policy.rb +0 -21
- data/app/policies/profile_policy.rb +0 -55
- data/app/policies/role_policy.rb +0 -21
- data/app/policies/user_export_file_policy.rb +0 -21
- data/app/policies/user_group_policy.rb +0 -22
- data/app/policies/user_import_file_policy.rb +0 -21
- data/app/policies/user_import_result_policy.rb +0 -21
- data/app/views/my_accounts/_edit_credential.html.erb +0 -99
- data/app/views/my_accounts/_form.html.erb +0 -24
- data/app/views/my_accounts/_show.html.erb +0 -1
- data/app/views/my_accounts/edit.html.erb +0 -32
- data/app/views/my_accounts/show.html+phone.erb +0 -1
- data/app/views/my_accounts/show.html.erb +0 -49
- data/app/views/names/_form.html.erb +0 -41
- data/app/views/names/edit.html.erb +0 -6
- data/app/views/names/index.html.erb +0 -37
- data/app/views/names/new.html.erb +0 -5
- data/app/views/names/show.html.erb +0 -34
- data/app/views/profiles/_edit_credential.html.erb +0 -88
- data/app/views/profiles/_edit_profile.html.erb +0 -42
- data/app/views/profiles/_form.html.erb +0 -15
- data/app/views/profiles/_show.html.erb +0 -1
- data/app/views/profiles/edit.html.erb +0 -33
- data/app/views/profiles/index.html.erb +0 -70
- data/app/views/profiles/new.html.erb +0 -88
- data/app/views/profiles/show.html+phone.erb +0 -1
- data/app/views/profiles/show.html.erb +0 -71
- data/app/views/roles/_form.html.erb +0 -19
- data/app/views/roles/edit.html.erb +0 -13
- data/app/views/roles/index.html.erb +0 -32
- data/app/views/roles/new.html.erb +0 -12
- data/app/views/roles/show.html.erb +0 -46
- data/app/views/user_export_files/_form.html.erb +0 -12
- data/app/views/user_export_files/edit.html.erb +0 -6
- data/app/views/user_export_files/index.html.erb +0 -44
- data/app/views/user_export_files/new.html.erb +0 -16
- data/app/views/user_export_files/show.html.erb +0 -36
- data/app/views/user_groups/_form.html.erb +0 -40
- data/app/views/user_groups/edit.html.erb +0 -13
- data/app/views/user_groups/index.html.erb +0 -51
- data/app/views/user_groups/new.html.erb +0 -12
- data/app/views/user_groups/show.html.erb +0 -68
- data/app/views/user_import_files/_form.html.erb +0 -61
- data/app/views/user_import_files/_results.html.erb +0 -22
- data/app/views/user_import_files/edit.html.erb +0 -6
- data/app/views/user_import_files/index.html.erb +0 -45
- data/app/views/user_import_files/new.html.erb +0 -60
- data/app/views/user_import_files/show.html.erb +0 -85
- data/app/views/user_import_results/_form.html.erb +0 -29
- data/app/views/user_import_results/_list.html.erb +0 -22
- data/app/views/user_import_results/_list_lines.html.erb +0 -24
- data/app/views/user_import_results/index.html.erb +0 -25
- data/app/views/user_import_results/index.txt.erb +0 -3
- data/app/views/user_import_results/show.html.erb +0 -33
- data/db/migrate/20091202124834_create_versions.rb +0 -18
- data/spec/controllers/my_accounts_controller_spec.rb +0 -229
- data/spec/controllers/profiles_controller_spec.rb +0 -594
- data/spec/controllers/roles_controller_spec.rb +0 -136
- data/spec/controllers/user_export_files_controller_spec.rb +0 -296
- data/spec/controllers/user_groups_controller_spec.rb +0 -443
- data/spec/controllers/user_import_files_controller_spec.rb +0 -305
- data/spec/controllers/user_import_results_controller_spec.rb +0 -157
- data/spec/fixtures/user_export_files.yml +0 -25
- data/spec/fixtures/user_import_files.yml +0 -51
- data/spec/fixtures/user_import_results.yml +0 -26
- data/spec/fixtures/user_reserve_stats.yml +0 -27
- data/spec/models/basket_spec.rb +0 -23
- data/spec/models/profile_spec.rb +0 -98
- data/spec/models/role_spec.rb +0 -40
- data/spec/models/user_export_file_spec.rb +0 -30
- data/spec/models/user_group_spec.rb +0 -37
- data/spec/models/user_has_role_spec.rb +0 -18
- data/spec/models/user_import_file_spec.rb +0 -220
- data/spec/models/user_import_result_spec.rb +0 -20
- data/spec/requests/profiles_spec.rb +0 -9
- data/spec/routing/profiles_routing_spec.rb +0 -35
- data/spec/routing/resource_import_files_routing_spec.rb +0 -35
- data/spec/routing/roles_routing_spec.rb +0 -35
- data/spec/routing/users_spec.rb +0 -14
- data/spec/views/my_accounts/show.html.erb_spec.rb +0 -43
- data/spec/views/profiles/edit.html.erb_spec.rb +0 -42
- data/spec/views/profiles/index.html.erb_spec.rb +0 -19
- data/spec/views/profiles/new.html.erb_spec.rb +0 -25
- data/spec/views/profiles/show.html.erb_spec.rb +0 -31
- data/spec/views/user_export_files/new.html.erb_spec.rb +0 -19
- data/spec/views/user_import_results/index.html.erb_spec.rb +0 -29
@@ -1,68 +0,0 @@
|
|
1
|
-
<div id="content_detail" class="ui-corner-all ui-widget-content">
|
2
|
-
<h1 class="title"><%= t('page.showing', model: t('activerecord.models.user_group')) -%></h1>
|
3
|
-
<div id="content_list">
|
4
|
-
<p id="notice"><%= notice %></p>
|
5
|
-
|
6
|
-
<p>
|
7
|
-
<strong><%= t('activerecord.attributes.user_group.name') -%>:</strong>
|
8
|
-
<%= @user_group.name -%>
|
9
|
-
</p>
|
10
|
-
|
11
|
-
<p>
|
12
|
-
<strong><%= t('activerecord.attributes.user_group.display_name') -%>:</strong>
|
13
|
-
<%= @user_group.display_name.localize -%>
|
14
|
-
</p>
|
15
|
-
|
16
|
-
<p>
|
17
|
-
<strong><%= t('activerecord.attributes.user_group.valid_period_for_new_user') -%>:</strong>
|
18
|
-
<%= @user_group.valid_period_for_new_user %>
|
19
|
-
</p>
|
20
|
-
|
21
|
-
<% if defined?(EnjuCirculation) %>
|
22
|
-
<p>
|
23
|
-
<strong><%= t('activerecord.attributes.user_group.number_of_day_to_notify_due_date') -%>:</strong>
|
24
|
-
<%= @user_group.number_of_day_to_notify_due_date %>
|
25
|
-
</p>
|
26
|
-
|
27
|
-
<p>
|
28
|
-
<strong><%= t('activerecord.attributes.user_group.number_of_day_to_notify_overdue') -%>:</strong>
|
29
|
-
<%= @user_group.number_of_day_to_notify_overdue %>
|
30
|
-
</p>
|
31
|
-
|
32
|
-
<p>
|
33
|
-
<strong><%= t('activerecord.attributes.user_group.number_of_time_to_notify_overdue') -%>:</strong>
|
34
|
-
<%= @user_group.number_of_time_to_notify_overdue %>
|
35
|
-
</p>
|
36
|
-
|
37
|
-
<p>
|
38
|
-
<strong><%= t('activerecord.models.checkout_type') -%></strong>
|
39
|
-
</p>
|
40
|
-
<ul>
|
41
|
-
<%- @user_group.user_group_has_checkout_types.each do |available_checkout_type| -%>
|
42
|
-
<li>
|
43
|
-
<%= link_to available_checkout_type.checkout_type.display_name.localize, available_checkout_type.checkout_type -%>
|
44
|
-
(<%= link_to t('page.number_of_days', count: available_checkout_type.checkout_period), edit_user_group_user_group_has_checkout_type_path(@user_group, available_checkout_type) -%>)
|
45
|
-
</li>
|
46
|
-
<%- end -%>
|
47
|
-
</ul>
|
48
|
-
<% end %>
|
49
|
-
|
50
|
-
<p>
|
51
|
-
<strong><%= t('activerecord.attributes.user_group.note') -%>:</strong>
|
52
|
-
<%= @user_group.note -%>
|
53
|
-
</p>
|
54
|
-
|
55
|
-
</div>
|
56
|
-
</div>
|
57
|
-
|
58
|
-
<div id="submenu" class="ui-corner-all ui-widget-content">
|
59
|
-
<ul>
|
60
|
-
<%- if policy(@user_group).update? -%>
|
61
|
-
<li><%= link_to t('page.edit'), edit_user_group_path(@user_group) -%></li>
|
62
|
-
<%- end -%>
|
63
|
-
<li><%= back_to_index(flash[:page_info]) -%></li>
|
64
|
-
<%- if policy(UserGroupHasCheckoutType).create? -%>
|
65
|
-
<li><%= link_to t('page.new', model: t('activerecord.models.checkout_type')), new_user_group_user_group_has_checkout_type_path(@user_group) -%></li>
|
66
|
-
<%- end -%>
|
67
|
-
</ul>
|
68
|
-
</div>
|
@@ -1,61 +0,0 @@
|
|
1
|
-
<%= form_for(@user_import_file) do |f| %>
|
2
|
-
<% if @user_import_file.errors.any? %>
|
3
|
-
<div id="error_explanation">
|
4
|
-
<h2><%= pluralize(@user_import_file.errors.count, "error") %> prohibited this user_import_file from being saved:</h2>
|
5
|
-
|
6
|
-
<ul>
|
7
|
-
<% @user_import_file.errors.full_messages.each do |msg| %>
|
8
|
-
<li><%= msg %></li>
|
9
|
-
<% end %>
|
10
|
-
</ul>
|
11
|
-
</div>
|
12
|
-
<% end %>
|
13
|
-
|
14
|
-
<div class="field">
|
15
|
-
<%= f.label :user_id %><br>
|
16
|
-
<%= f.number_field :user_id %>
|
17
|
-
</div>
|
18
|
-
<div class="field">
|
19
|
-
<%= f.label :note %><br>
|
20
|
-
<%= f.text_area :note %>
|
21
|
-
</div>
|
22
|
-
<div class="field">
|
23
|
-
<%= f.label :executed_at %><br>
|
24
|
-
<%= f.datetime_select :executed_at %>
|
25
|
-
</div>
|
26
|
-
<div class="field">
|
27
|
-
<%= f.label :state %><br>
|
28
|
-
<%= f.text_field :state %>
|
29
|
-
</div>
|
30
|
-
<div class="field">
|
31
|
-
<%= f.label :user_import_file_name %><br>
|
32
|
-
<%= f.text_field :user_import_file_name %>
|
33
|
-
</div>
|
34
|
-
<div class="field">
|
35
|
-
<%= f.label :user_import_content_type %><br>
|
36
|
-
<%= f.text_field :user_import_content_type %>
|
37
|
-
</div>
|
38
|
-
<div class="field">
|
39
|
-
<%= f.label :user_import_file_size %><br>
|
40
|
-
<%= f.text_field :user_import_file_size %>
|
41
|
-
</div>
|
42
|
-
<div class="field">
|
43
|
-
<%= f.label :user_import_updated_at %><br>
|
44
|
-
<%= f.datetime_select :user_import_updated_at %>
|
45
|
-
</div>
|
46
|
-
<div class="field">
|
47
|
-
<%= f.label :user_import_fingerprint %><br>
|
48
|
-
<%= f.text_field :user_import_fingerprint %>
|
49
|
-
</div>
|
50
|
-
<div class="field">
|
51
|
-
<%= f.label :edit_mode %><br>
|
52
|
-
<%= f.text_field :edit_mode %>
|
53
|
-
</div>
|
54
|
-
<div class="field">
|
55
|
-
<%= f.label :error_message %><br>
|
56
|
-
<%= f.text_area :error_message %>
|
57
|
-
</div>
|
58
|
-
<div class="actions">
|
59
|
-
<%= f.submit %>
|
60
|
-
</div>
|
61
|
-
<% end %>
|
@@ -1,22 +0,0 @@
|
|
1
|
-
<h2><%= t('activerecord.models.user_import_result') %></h2>
|
2
|
-
<table class="table table-striped index">
|
3
|
-
<tr>
|
4
|
-
<th><%= t('activerecord.attributes.user_import_result.lineno') %></th>
|
5
|
-
<th><%= t('activerecord.attributes.user_import_result.body') %></th>
|
6
|
-
<th><%= t('activerecord.models.user') %></th>
|
7
|
-
<th></th>
|
8
|
-
</tr>
|
9
|
-
<% @user_import_results.each_with_index do |user_import_result, idx| %>
|
10
|
-
<tr class="line<%= cycle("0", "1") -%>">
|
11
|
-
<td><%= @user_import_results.offset_value + idx + 1 %></td>
|
12
|
-
<td><%= user_import_result.body.inspect %></td>
|
13
|
-
<td><%= link_to user_import_result.user.username, user_import_result.user.profile if user_import_result.user.try(:profile) %></td>
|
14
|
-
<td>
|
15
|
-
<%= link_to t('page.show'), user_import_result %>
|
16
|
-
<%= link_to t('page.destroy'), user_import_result, data: {confirm: t('page.are_you_sure')}, method: :delete %>
|
17
|
-
</td>
|
18
|
-
</tr>
|
19
|
-
<% end %>
|
20
|
-
</table>
|
21
|
-
<%= paginate(@user_import_results) %>
|
22
|
-
|
@@ -1,45 +0,0 @@
|
|
1
|
-
<div id="content_detail" class="ui-corner-all ui-widget-content">
|
2
|
-
<h1 class="title"><%= t('page.listing', model: t('activerecord.models.user_import_file')) -%></h1>
|
3
|
-
<div id="content_list">
|
4
|
-
|
5
|
-
<table class="table table-striped index">
|
6
|
-
<thead>
|
7
|
-
<tr>
|
8
|
-
<th style="width: 30px">Id</th>
|
9
|
-
<th><%= t('activerecord.attributes.user_import_file.user_import_file_name') -%></th>
|
10
|
-
<th><%= t('activerecord.attributes.user_import_file.edit_mode') -%></th>
|
11
|
-
<th><%= t('activerecord.attributes.user_import_file.executed_at') -%></th>
|
12
|
-
<th><%= t('activerecord.attributes.user_import_file.state') -%></th>
|
13
|
-
<th></th>
|
14
|
-
</tr>
|
15
|
-
</thead>
|
16
|
-
|
17
|
-
<tbody>
|
18
|
-
<% @user_import_files.each do |user_import_file| %>
|
19
|
-
<tr class="line<%= cycle("0", "1") -%>">
|
20
|
-
<td><%= link_to (user_import_file.id), user_import_file -%></td>
|
21
|
-
<td>
|
22
|
-
<%= link_to user_import_file.user_import_file_name, user_import_file_path(user_import_file, format: :download) if user_import_file.user_import_file_name %>
|
23
|
-
<br />
|
24
|
-
<%= t('activerecord.models.user') -%>: <%= link_to user_import_file.user.username, user_import_file.user.profile if user_import_file.user.try(:profile) -%></td>
|
25
|
-
<td><%= user_import_file.edit_mode -%></td>
|
26
|
-
<td><%= l(user_import_file.executed_at) if user_import_file.executed_at -%></td>
|
27
|
-
<td><%= localized_state(user_import_file.current_state) -%></td>
|
28
|
-
<td>
|
29
|
-
<%= link_to t('page.show'), user_import_file -%>
|
30
|
-
<%= link_to t('page.destroy'), user_import_file, data: {confirm: t('page.are_you_sure')}, method: :delete -%>
|
31
|
-
</td>
|
32
|
-
</tr>
|
33
|
-
<% end %>
|
34
|
-
</tbody>
|
35
|
-
</table>
|
36
|
-
|
37
|
-
<%= paginate(@user_import_files) -%>
|
38
|
-
</div>
|
39
|
-
</div>
|
40
|
-
|
41
|
-
<div id="submenu" class="ui-corner-all ui-widget-content">
|
42
|
-
<ul>
|
43
|
-
<li><%= link_to t('page.new', model: t('activerecord.models.user_import_file')), new_user_import_file_path -%></li>
|
44
|
-
</ul>
|
45
|
-
</div>
|
@@ -1,60 +0,0 @@
|
|
1
|
-
<div id="content_detail" class="ui-corner-all ui-widget-content">
|
2
|
-
<h1 class="title"><%= t('page.new', model: t('activerecord.models.user_import_file')) -%></h1>
|
3
|
-
<div id="content_list">
|
4
|
-
|
5
|
-
<%= form_for(@user_import_file, html: { multipart: true }) do |f| %>
|
6
|
-
<%= f.error_messages -%>
|
7
|
-
|
8
|
-
<div class="field">
|
9
|
-
<%= f.label t('page.file') %><br />
|
10
|
-
<%= f.file_field :user_import %>
|
11
|
-
</div>
|
12
|
-
|
13
|
-
<div class="field">
|
14
|
-
<%= f.label :edit_mode -%><br />
|
15
|
-
<%= f.radio_button :edit_mode, 'create', checked: 'checked' %>
|
16
|
-
<%= f.label :edit_mode, t('page.create'), value: 'create' %>
|
17
|
-
<%= f.radio_button :edit_mode, 'update' %>
|
18
|
-
<%= f.label :edit_mode, t('page.update'), value: 'update' %>
|
19
|
-
<%= f.radio_button :edit_mode, 'destroy' %>
|
20
|
-
<%= f.label :edit_mode, t('page.destroy'), value: 'destroy' %>
|
21
|
-
</div>
|
22
|
-
|
23
|
-
<div class="field">
|
24
|
-
<%= f.label :user_encoding -%><br />
|
25
|
-
<%= f.radio_button :user_encoding, 'auto_detect', checked: 'checked' %>
|
26
|
-
<%= f.label :user_encoding, t('import.auto_detect'), value: 'auto_detect' %>
|
27
|
-
<%= f.radio_button :user_encoding, 'utf-8' %>
|
28
|
-
<%= f.label :user_encoding, 'UTF-8', value: 'utf-8' %>
|
29
|
-
<%= f.radio_button :user_encoding, 'shift_jis' %>
|
30
|
-
<%= f.label :user_encoding, 'Shift_JIS', value: 'shift_jis' %>
|
31
|
-
<%= f.radio_button :user_encoding, 'euc-jp' %>
|
32
|
-
<%= f.label :user_encoding, 'EUC-JP', value: 'euc-jp' %>
|
33
|
-
</div>
|
34
|
-
|
35
|
-
<div class="field">
|
36
|
-
<%= f.label :default_user_group_id -%>
|
37
|
-
<%= f.select(:default_user_group_id, @user_groups.collect{|u| [u.display_name.localize, u.id]}) -%><br />
|
38
|
-
<%= t('user_import_file.default_user_group') %>
|
39
|
-
</div>
|
40
|
-
|
41
|
-
<div class="field">
|
42
|
-
<%= f.label :default_library_id -%>
|
43
|
-
<%= f.select(:default_library_id, @libraries.collect{|l| [l.display_name.localize, l.id]}) -%><br />
|
44
|
-
<%= t('user_import_file.default_library') %>
|
45
|
-
</div>
|
46
|
-
|
47
|
-
<div class="actions">
|
48
|
-
<%= f.hidden_field :mode, value: 'import' %>
|
49
|
-
<%= f.submit t('page.start_import') %>
|
50
|
-
</div>
|
51
|
-
<% end %>
|
52
|
-
|
53
|
-
</div>
|
54
|
-
</div>
|
55
|
-
|
56
|
-
<div id="submenu" class="ui-corner-all ui-widget-content">
|
57
|
-
<ul>
|
58
|
-
<li><%= back_to_index(flash[:page_info]) %></li>
|
59
|
-
</ul>
|
60
|
-
</div>
|
@@ -1,85 +0,0 @@
|
|
1
|
-
<div id="content_detail" class="ui-corner-all ui-widget-content">
|
2
|
-
<h1 class="title"><%= t('page.showing', model: t('activerecord.models.user_import_file')) -%></h1>
|
3
|
-
<div id="content_list">
|
4
|
-
<p id="notice"><%= notice %></p>
|
5
|
-
|
6
|
-
<p>
|
7
|
-
<strong>Id:</strong>
|
8
|
-
<%= @user_import_file.id -%>
|
9
|
-
</p>
|
10
|
-
|
11
|
-
<% if @user_import_file.user_import_file_name %>
|
12
|
-
<p>
|
13
|
-
<strong><%= t('activerecord.attributes.user_import_file.user_import_file_name') -%>:</strong>
|
14
|
-
<%= link_to @user_import_file.user_import_file_name, user_import_file_path(@user_import_file, format: :download) %>
|
15
|
-
(<%= @user_import_file.user_import_content_type -%>)
|
16
|
-
</p>
|
17
|
-
|
18
|
-
<p>
|
19
|
-
<strong><%= t('activerecord.attributes.user_import_file.user_import_file_size') -%>:</strong>
|
20
|
-
<%= @user_import_file.user_import_file_size -%>
|
21
|
-
</p>
|
22
|
-
<% end %>
|
23
|
-
|
24
|
-
<p>
|
25
|
-
<strong><%= t('page.created_at') -%>:</strong>
|
26
|
-
<%= l(@user_import_file.created_at) if @user_import_file.created_at -%>
|
27
|
-
</p>
|
28
|
-
|
29
|
-
<p>
|
30
|
-
<strong><%= t('activerecord.attributes.user_import_file.executed_at') -%>:</strong>
|
31
|
-
<%= l(@user_import_file.executed_at) if @user_import_file.executed_at -%>
|
32
|
-
</p>
|
33
|
-
|
34
|
-
<p>
|
35
|
-
<strong><%= t('activerecord.attributes.user_import_file.edit_mode') -%>:</strong>
|
36
|
-
<%= @user_import_file.edit_mode -%>
|
37
|
-
</p>
|
38
|
-
|
39
|
-
<p>
|
40
|
-
<strong><%= t('activerecord.attributes.user_import_file.user_encoding') -%>:</strong>
|
41
|
-
<%= @user_import_file.user_encoding -%>
|
42
|
-
</p>
|
43
|
-
|
44
|
-
<p>
|
45
|
-
<strong><%= t('activerecord.attributes.user_import_file.default_user_group_id') -%>:</strong>
|
46
|
-
<%= link_to @user_import_file.default_user_group.display_name.localize, @user_import_file.default_user_group if @user_import_file.default_user_group.try(:display_name) -%>
|
47
|
-
</p>
|
48
|
-
|
49
|
-
<p>
|
50
|
-
<strong><%= t('activerecord.attributes.user_import_file.default_library_id') -%>:</strong>
|
51
|
-
<%= link_to @user_import_file.default_library.display_name.localize, @user_import_file.default_library if @user_import_file.default_library.try(:display_name) -%>
|
52
|
-
</p>
|
53
|
-
|
54
|
-
<p>
|
55
|
-
<strong><%= t('activerecord.attributes.user_import_file.state') -%>:</strong>
|
56
|
-
<%= localized_state(@user_import_file.current_state) -%>
|
57
|
-
</p>
|
58
|
-
|
59
|
-
<p>
|
60
|
-
<strong><%= t('activerecord.attributes.user_import_file.error_message') -%>:</strong>
|
61
|
-
<%= simple_format(@user_import_file.error_message) -%>
|
62
|
-
</p>
|
63
|
-
|
64
|
-
<p>
|
65
|
-
<strong><%= t('activerecord.models.user') -%>:</strong>
|
66
|
-
<%= link_to @user_import_file.user.username, @user_import_file.user.profile if @user_import_file.user.try(:profile) -%>
|
67
|
-
</p>
|
68
|
-
|
69
|
-
<% if @user_import_results %>
|
70
|
-
<%= render 'results' %>
|
71
|
-
<% end %>
|
72
|
-
|
73
|
-
</div>
|
74
|
-
</div>
|
75
|
-
|
76
|
-
<div id="submenu" class="ui-corner-all ui-widget-content">
|
77
|
-
<%= form_for(@user_import_file) do |f| %>
|
78
|
-
<ul>
|
79
|
-
<li><%= back_to_index(flash[:page_info]) -%></li>
|
80
|
-
<% if current_user.has_role?('Administrator') %>
|
81
|
-
<li><%= link_to 'Resque', resque_path %></li>
|
82
|
-
<% end %>
|
83
|
-
</ul>
|
84
|
-
<% end %>
|
85
|
-
</div>
|
@@ -1,29 +0,0 @@
|
|
1
|
-
<%= form_for(@user_import_result) do |f| %>
|
2
|
-
<% if @user_import_result.errors.any? %>
|
3
|
-
<div id="error_explanation">
|
4
|
-
<h2><%= pluralize(@user_import_result.errors.count, "error") %> prohibited this user_import_result from being saved:</h2>
|
5
|
-
|
6
|
-
<ul>
|
7
|
-
<% @user_import_result.errors.full_messages.each do |msg| %>
|
8
|
-
<li><%= msg %></li>
|
9
|
-
<% end %>
|
10
|
-
</ul>
|
11
|
-
</div>
|
12
|
-
<% end %>
|
13
|
-
|
14
|
-
<div class="field">
|
15
|
-
<%= f.label :user_import_file_id %><br>
|
16
|
-
<%= f.number_field :user_import_file_id %>
|
17
|
-
</div>
|
18
|
-
<div class="field">
|
19
|
-
<%= f.label :user_id %><br>
|
20
|
-
<%= f.number_field :user_id %>
|
21
|
-
</div>
|
22
|
-
<div class="field">
|
23
|
-
<%= f.label :body %><br>
|
24
|
-
<%= f.text_area :body %>
|
25
|
-
</div>
|
26
|
-
<div class="actions">
|
27
|
-
<%= f.submit %>
|
28
|
-
</div>
|
29
|
-
<% end %>
|
@@ -1,22 +0,0 @@
|
|
1
|
-
<table class="table table-striped index">
|
2
|
-
<tr>
|
3
|
-
<th><%= t('activerecord.models.user_import_file') %></th>
|
4
|
-
<th><%= t('activerecord.models.user') %></th>
|
5
|
-
<th></th>
|
6
|
-
</tr>
|
7
|
-
|
8
|
-
<% @user_import_results.each do |user_import_result| %>
|
9
|
-
<tr class="line<%= cycle("0", "1") -%>">
|
10
|
-
<td>
|
11
|
-
<%= link_to user_import_result.user_import_file.user_import_file_name, user_import_result.user_import_file %>
|
12
|
-
<br />
|
13
|
-
<%=l user_import_result.created_at %>
|
14
|
-
</td>
|
15
|
-
<td><%= link_to user_import_result.user.username, user_import_result.user.profile if user_import_result.user.try(:profile) %></td>
|
16
|
-
<td>
|
17
|
-
<%= link_to t('page.show'), user_import_result %>
|
18
|
-
<%= link_to t('page.destroy'), user_import_result, data: {confirm: t('page.are_you_sure')}, method: :delete %>
|
19
|
-
</td>
|
20
|
-
</tr>
|
21
|
-
<% end %>
|
22
|
-
</table>
|
@@ -1,24 +0,0 @@
|
|
1
|
-
<ul>
|
2
|
-
<li><%= t('activerecord.models.user_import_file') %>: <%= link_to @user_import_file.user_import_file_name, @user_import_file %>
|
3
|
-
<li><%= t('page.created_at') %>: <%= l(@user_import_file.created_at) %>
|
4
|
-
</h2>
|
5
|
-
<table class="table table-striped index">
|
6
|
-
<tr>
|
7
|
-
<th><%= t('activerecord.attributes.user_import_result.lineno') %></th>
|
8
|
-
<th><%= t('activerecord.attributes.user_import_result.body') %></th>
|
9
|
-
<th><%= t('activerecord.models.user') %></th>
|
10
|
-
<th></th>
|
11
|
-
</tr>
|
12
|
-
|
13
|
-
<% @user_import_results.each_with_index do |user_import_result, idx| %>
|
14
|
-
<tr class="line<%= cycle("0", "1") -%>">
|
15
|
-
<td><%= @user_import_results.offset_value + idx + 1 %></td>
|
16
|
-
<td><%= user_import_result.body.inspect %></td>
|
17
|
-
<td><%= link_to user_import_result.user.username, user_import_result.user.profile if user_import_result.user.try(:profile) %></td>
|
18
|
-
<td>
|
19
|
-
<%= link_to t('page.show'), user_import_result %>
|
20
|
-
<%= link_to t('page.destroy'), user_import_result, data: {confirm: t('page.are_you_sure')}, method: :delete %>
|
21
|
-
</td>
|
22
|
-
</tr>
|
23
|
-
<% end %>
|
24
|
-
</table>
|
@@ -1,25 +0,0 @@
|
|
1
|
-
<div id="content_detail" class="ui-corner-all ui-widget-content">
|
2
|
-
<h1 class="title"><%= t('page.listing', model: t('activerecord.models.user_import_result')) -%></h1>
|
3
|
-
<div id="content_list">
|
4
|
-
<% if @user_import_file %>
|
5
|
-
<%= render 'list_lines' %>
|
6
|
-
<% else %>
|
7
|
-
<%= render 'list' %>
|
8
|
-
<% end %>
|
9
|
-
<%= paginate(@user_import_results) %>
|
10
|
-
</div>
|
11
|
-
</div>
|
12
|
-
|
13
|
-
<div id="submenu" class="ui-corner-all ui-widget-content">
|
14
|
-
<ul>
|
15
|
-
<li>
|
16
|
-
<% if @user_import_file %>
|
17
|
-
<%= link_to((image_tag 'icons/page_white_excel.png', size: '16x16', alt: 'TSV', class: 'icon'), user_import_results_path(user_import_file_id: @user_import_file.id, format: :txt, locale: @locale.to_s)) -%>
|
18
|
-
(<%= link_to 'TSV', user_import_results_path(user_import_file_id: @user_import_file.id, format: :txt, locale: @locale.to_s) -%>)
|
19
|
-
<% else %>
|
20
|
-
<%= link_to((image_tag 'icons/page_white_excel.png', size: '16x16', alt: 'TSV', class: 'icon'), user_import_results_path(format: :txt, locale: @locale.to_s)) -%>
|
21
|
-
(<%= link_to 'TSV', user_import_results_path(format: :txt, locale: @locale.to_s) -%>)
|
22
|
-
<% end %>
|
23
|
-
</li>
|
24
|
-
</ul>
|
25
|
-
</div>
|