enju_biblio 0.3.8 → 0.3.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (129) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/content_types_controller.rb +1 -1
  3. data/app/controllers/item_custom_properties_controller.rb +69 -0
  4. data/app/controllers/items_controller.rb +2 -3
  5. data/app/controllers/manifestation_custom_properties_controller.rb +69 -0
  6. data/app/controllers/manifestations_controller.rb +12 -15
  7. data/app/controllers/resource_import_results_controller.rb +6 -2
  8. data/app/models/agent.rb +6 -6
  9. data/app/models/agent_import_file.rb +7 -7
  10. data/app/models/agent_type.rb +0 -1
  11. data/app/models/carrier_type.rb +0 -1
  12. data/app/models/content_type.rb +0 -1
  13. data/app/models/form_of_work.rb +1 -2
  14. data/app/models/frequency.rb +0 -1
  15. data/app/models/identifier_type.rb +0 -1
  16. data/app/models/item.rb +15 -16
  17. data/app/models/item_custom_property.rb +18 -0
  18. data/app/models/item_custom_value.rb +17 -0
  19. data/app/models/license.rb +0 -1
  20. data/app/models/manifestation.rb +54 -22
  21. data/app/models/manifestation_custom_property.rb +18 -0
  22. data/app/models/manifestation_custom_value.rb +17 -0
  23. data/app/models/medium_of_performance.rb +1 -2
  24. data/app/models/picture_file.rb +0 -2
  25. data/app/models/resource_export_file.rb +4 -2
  26. data/app/models/resource_import_file.rb +157 -67
  27. data/app/policies/item_custom_property_policy.rb +21 -0
  28. data/app/policies/manifestation_custom_property_policy.rb +21 -0
  29. data/app/views/agent_import_results/index.txt.ruby +5 -0
  30. data/app/views/agent_relationship_types/_form.html.erb +1 -1
  31. data/app/views/agent_types/_form.html.erb +1 -1
  32. data/app/views/carrier_types/_form.html.erb +1 -1
  33. data/app/views/create_types/_form.html.erb +1 -1
  34. data/app/views/form_of_works/_form.html.erb +1 -1
  35. data/app/views/frequencies/_form.html.erb +1 -1
  36. data/app/views/item_custom_properties/_form.html.erb +32 -0
  37. data/app/views/item_custom_properties/edit.html.erb +13 -0
  38. data/app/views/item_custom_properties/index.html.erb +43 -0
  39. data/app/views/item_custom_properties/new.html.erb +12 -0
  40. data/app/views/item_custom_properties/show.html.erb +28 -0
  41. data/app/views/items/_form.html.erb +13 -10
  42. data/app/views/items/show.html.erb +3 -4
  43. data/app/views/licenses/_form.html.erb +1 -1
  44. data/app/views/manifestation_custom_properties/_form.html.erb +32 -0
  45. data/app/views/manifestation_custom_properties/edit.html.erb +13 -0
  46. data/app/views/manifestation_custom_properties/index.html.erb +43 -0
  47. data/app/views/manifestation_custom_properties/new.html.erb +12 -0
  48. data/app/views/manifestation_custom_properties/show.html.erb +28 -0
  49. data/app/views/manifestation_relationship_types/_form.html.erb +1 -1
  50. data/app/views/manifestations/_export_detail.html.erb +1 -0
  51. data/app/views/manifestations/_export_list.html.erb +1 -0
  52. data/app/views/manifestations/_form.html.erb +18 -10
  53. data/app/views/manifestations/_show_detail_librarian.html.erb +9 -3
  54. data/app/views/manifestations/_show_detail_user.html.erb +8 -0
  55. data/app/views/manifestations/show.json.jbuilder +2 -0
  56. data/app/views/medium_of_performances/_form.html.erb +1 -1
  57. data/app/views/picture_files/edit.html.erb +4 -0
  58. data/app/views/produce_types/_form.html.erb +1 -1
  59. data/app/views/realize_types/_form.html.erb +1 -1
  60. data/app/views/resource_import_results/index.txt.ruby +5 -0
  61. data/app/views/series_statement_merges/_form.html.erb +1 -1
  62. data/config/locales/translation_en.yml +22 -8
  63. data/config/locales/translation_ja.yml +22 -8
  64. data/config/routes.rb +2 -0
  65. data/db/migrate/20081027150907_create_picture_files.rb +0 -2
  66. data/db/migrate/20200425072340_create_manifestation_custom_properties.rb +12 -0
  67. data/db/migrate/20200425072349_create_item_custom_properties.rb +12 -0
  68. data/db/migrate/20200425074758_create_manifestation_custom_values.rb +12 -0
  69. data/db/migrate/20200425074822_create_item_custom_values.rb +12 -0
  70. data/lib/enju_biblio/version.rb +1 -1
  71. data/spec/cassette_library/ResourceImportFile/when_its_mode_is_create_/when_it_is_written_in_utf-8/should_import_custom_values.yml +121 -0
  72. data/spec/cassette_library/resource_import_results/index_txt_ruby/renders_a_list_of_resource_import_results.yml +121 -0
  73. data/spec/controllers/content_types_controller_spec.rb +1 -1
  74. data/spec/controllers/item_custom_properties_controller_spec.rb +449 -0
  75. data/spec/controllers/items_controller_spec.rb +22 -25
  76. data/spec/controllers/manifestation_custom_properties_controller_spec.rb +449 -0
  77. data/spec/controllers/manifestations_controller_spec.rb +20 -23
  78. data/spec/dummy/db/schema.rb +43 -12
  79. data/spec/factories/item_custom_property.rb +6 -0
  80. data/spec/factories/item_custom_value.rb +6 -0
  81. data/spec/factories/manifestation_custom_property.rb +6 -0
  82. data/spec/factories/manifestation_custom_value.rb +6 -0
  83. data/spec/fixtures/creates.yml +2 -0
  84. data/spec/fixtures/item_custom_properties.yml +24 -0
  85. data/spec/fixtures/library_groups.yml +29 -15
  86. data/spec/fixtures/manifestation_custom_properties.yml +24 -0
  87. data/spec/fixtures/picture_files.yml +0 -2
  88. data/spec/fixtures/produces.yml +2 -0
  89. data/spec/fixtures/realizes.yml +2 -0
  90. data/spec/fixtures/resource_import_results.yml +2 -2
  91. data/spec/models/item_custom_property_spec.rb +18 -0
  92. data/spec/models/item_custom_value_spec.rb +17 -0
  93. data/spec/models/manifestation_custom_property_spec.rb +18 -0
  94. data/spec/models/manifestation_custom_value_spec.rb +17 -0
  95. data/spec/models/manifestation_spec.rb +11 -21
  96. data/spec/models/picture_file_spec.rb +0 -2
  97. data/spec/models/resource_export_file_spec.rb +61 -8
  98. data/spec/models/resource_import_file_spec.rb +43 -13
  99. data/spec/requests/item_custom_properties_spec.rb +129 -0
  100. data/spec/requests/manifestation_custom_properties_spec.rb +129 -0
  101. data/spec/routing/item_custom_properties_routing_spec.rb +38 -0
  102. data/spec/routing/manifestation_custom_properties_routing_spec.rb +38 -0
  103. data/spec/system/items_spec.rb +12 -0
  104. data/spec/system/manifestations_spec.rb +12 -0
  105. data/spec/views/agent_import_results/index.html.erb_spec.rb +29 -0
  106. data/spec/views/agent_import_results/index.txt.ruby_spec.rb +20 -0
  107. data/spec/views/agent_import_results/show.html.erb_spec.rb +24 -0
  108. data/spec/views/item_custom_properties/edit.html.erb_spec.rb +21 -0
  109. data/spec/views/item_custom_properties/index.html.erb_spec.rb +25 -0
  110. data/spec/views/item_custom_properties/new.html.erb_spec.rb +21 -0
  111. data/spec/views/item_custom_properties/show.html.erb_spec.rb +16 -0
  112. data/spec/views/manifestation_custom_properties/edit.html.erb_spec.rb +21 -0
  113. data/spec/views/manifestation_custom_properties/index.html.erb_spec.rb +25 -0
  114. data/spec/views/manifestation_custom_properties/new.html.erb_spec.rb +21 -0
  115. data/spec/views/manifestation_custom_properties/show.html.erb_spec.rb +16 -0
  116. data/spec/views/manifestations/show.json.jbuilder_spec.rb +16 -0
  117. data/spec/views/manifestations/show.txt.ruby_spec.rb +1 -1
  118. data/spec/views/resource_import_results/index.txt.ruby_spec.rb +22 -0
  119. data/spec/views/resource_import_results/show.html.erb_spec.rb +1 -1
  120. metadata +118 -37
  121. data/app/models/custom_property.rb +0 -17
  122. data/app/views/agent_import_results/index.txt.erb +0 -3
  123. data/app/views/items/_custom_property_fields.html.erb +0 -7
  124. data/app/views/manifestations/_custom_property_fields.html.erb +0 -7
  125. data/app/views/resource_import_results/index.txt.erb +0 -3
  126. data/db/migrate/20191219122214_create_custom_properties.rb +0 -12
  127. data/spec/factories/custom_property.rb +0 -18
  128. data/spec/models/custom_property_spec.rb +0 -18
  129. data/spec/system/custom_properties_spec.rb +0 -84
@@ -0,0 +1,21 @@
1
+ class ItemCustomPropertyPolicy < ApplicationPolicy
2
+ def index?
3
+ true if user.try(:has_role?, 'Librarian')
4
+ end
5
+
6
+ def show?
7
+ true if user.try(:has_role?, 'Librarian')
8
+ end
9
+
10
+ def create?
11
+ true if user.try(:has_role?, 'Administrator')
12
+ end
13
+
14
+ def update?
15
+ true if user.try(:has_role?, 'Administrator')
16
+ end
17
+
18
+ def destroy?
19
+ true if user.try(:has_role?, 'Administrator')
20
+ end
21
+ end
@@ -0,0 +1,21 @@
1
+ class ManifestationCustomPropertyPolicy < ApplicationPolicy
2
+ def index?
3
+ true if user.try(:has_role?, 'Librarian')
4
+ end
5
+
6
+ def show?
7
+ true if user.try(:has_role?, 'Librarian')
8
+ end
9
+
10
+ def create?
11
+ true if user.try(:has_role?, 'Administrator')
12
+ end
13
+
14
+ def update?
15
+ true if user.try(:has_role?, 'Administrator')
16
+ end
17
+
18
+ def destroy?
19
+ true if user.try(:has_role?, 'Administrator')
20
+ end
21
+ end
@@ -0,0 +1,5 @@
1
+ CSV.generate(col_sep: "\t", row_sep: "\r\n") do |csv|
2
+ @agent_import_results.each_with_index do |result|
3
+ csv << result.body.split("\t")
4
+ end
5
+ end
@@ -3,7 +3,7 @@
3
3
 
4
4
  <div class="field">
5
5
  <%= f.label :name %><br />
6
- <%= f.text_field :name %>
6
+ <%= f.text_field :name, required: true %>
7
7
  </div>
8
8
  <div class="field">
9
9
  <%= f.label :display_name %><br />
@@ -4,7 +4,7 @@
4
4
 
5
5
  <div class="field">
6
6
  <%= f.label :name %><br />
7
- <%= f.text_field :name %>
7
+ <%= f.text_field :name, required: true %>
8
8
  </div>
9
9
  <div class="field">
10
10
  <%= f.label :display_name %><br />
@@ -3,7 +3,7 @@
3
3
 
4
4
  <div class="field">
5
5
  <%= f.label :name %><br />
6
- <%= f.text_field :name %>
6
+ <%= f.text_field :name, required: true %>
7
7
  </div>
8
8
  <div class="field">
9
9
  <%= f.label :display_name %><br />
@@ -3,7 +3,7 @@
3
3
 
4
4
  <div class="field">
5
5
  <%= f.label :name %><br />
6
- <%= f.text_field :name %>
6
+ <%= f.text_field :name, required: true %>
7
7
  </div>
8
8
  <div class="field">
9
9
  <%= f.label :display_name %><br />
@@ -3,7 +3,7 @@
3
3
 
4
4
  <div class="field">
5
5
  <%= f.label :name %><br />
6
- <%= f.text_field :name %>
6
+ <%= f.text_field :name, required: true %>
7
7
  </div>
8
8
  <div class="field">
9
9
  <%= f.label :display_name %><br />
@@ -3,7 +3,7 @@
3
3
 
4
4
  <div class="field">
5
5
  <%= f.label :name %><br />
6
- <%= f.text_field :name %>
6
+ <%= f.text_field :name, required: true %>
7
7
  </div>
8
8
  <div class="field">
9
9
  <%= f.label :display_name %><br />
@@ -0,0 +1,32 @@
1
+ <%= form_with(model: item_custom_property, local: true) do |form| %>
2
+ <% if item_custom_property.errors.any? %>
3
+ <div id="error_explanation">
4
+ <h2><%= pluralize(item_custom_property.errors.count, "error") %> prohibited this item_custom_property from being saved:</h2>
5
+
6
+ <ul>
7
+ <% item_custom_property.errors.full_messages.each do |message| %>
8
+ <li><%= message %></li>
9
+ <% end %>
10
+ </ul>
11
+ </div>
12
+ <% end %>
13
+
14
+ <div class="form-group">
15
+ <%= form.label :name %>
16
+ <%= form.text_field :name, class: 'form-control' %>
17
+ </div>
18
+
19
+ <div class="form-group">
20
+ <%= form.label :display_name %>
21
+ <%= form.text_area :display_name, class: 'form-control' %>
22
+ </div>
23
+
24
+ <div class="form-group">
25
+ <%= form.label :note %>
26
+ <%= form.text_area :note, class: 'form-control' %>
27
+ </div>
28
+
29
+ <div class="actions">
30
+ <%= form.submit class: 'btn btn-primary' -%>
31
+ </div>
32
+ <% end %>
@@ -0,0 +1,13 @@
1
+ <div id="content_detail" class="ui-corner-all ui-widget-content">
2
+ <h1 class="title"><%= t('page.editing', model: t('activerecord.models.item_custom_property')) -%></h1>
3
+ <div id="content_list">
4
+ <%= render 'form', item_custom_property: @item_custom_property %>
5
+ </div>
6
+ </div>
7
+
8
+ <div id="submenu" class="ui-corner-all ui-widget-content">
9
+ <ul>
10
+ <li><%= link_to t('page.show'), @item_custom_property %></li>
11
+ <li><%= link_to t('page.back'), item_custom_properties_path %></li>
12
+ </ul>
13
+ </div>
@@ -0,0 +1,43 @@
1
+ <div id="content_detail" class="ui-corner-all ui-widget-content">
2
+ <h1 class="title"><%= t('page.listing', model: t('activerecord.models.item_custom_property')) -%></h1>
3
+ <div id="content_list">
4
+ <p id="notice"><%= notice %></p>
5
+
6
+ <h1><%= t('page.listing', model: t('activerecord.models.item_custom_property')) -%></h1>
7
+
8
+ <table class='table table-striped index'>
9
+ <thead>
10
+ <tr>
11
+ <th id="position"></th>
12
+ <th><%= t('activerecord.attributes.item_custom_property.name') %></th>
13
+ <th><%= t('activerecord.attributes.item_custom_property.display_name') %></th>
14
+ <th><%= t('activerecord.attributes.item_custom_property.note') %></th>
15
+ <th colspan="2"></th>
16
+ </tr>
17
+ </thead>
18
+
19
+ <tbody>
20
+ <% @item_custom_properties.each do |item_custom_property| %>
21
+ <tr>
22
+ <td>
23
+ <%- if policy(item_custom_property).update? -%>
24
+ <%= move_position(item_custom_property) -%>
25
+ <%- end -%>
26
+ </td>
27
+ <td><%= link_to item_custom_property.name, item_custom_property %></td>
28
+ <td><%= item_custom_property.display_name.localize %></td>
29
+ <td><%= item_custom_property.note %></td>
30
+ <td><%= link_to t('page.edit'), edit_item_custom_property_path(item_custom_property) %></td>
31
+ <td><%= link_to t('page.destroy'), item_custom_property, method: :delete, data: { confirm: t('page.are_you_sure') } %></td>
32
+ </tr>
33
+ <% end %>
34
+ </tbody>
35
+ </table>
36
+ </div>
37
+ </div>
38
+
39
+ <div id="submenu" class="ui-corner-all ui-widget-content">
40
+ <ul>
41
+ <li><%= link_to t('page.new', model: t('activerecord.models.item_custom_property')), new_item_custom_property_path -%></li>
42
+ </ul>
43
+ </div>
@@ -0,0 +1,12 @@
1
+ <div id="content_detail" class="ui-corner-all ui-widget-content">
2
+ <h1 class="title"><%= t('page.new', model: t('activerecord.models.item_custom_property')) -%></h1>
3
+ <div id="content_list">
4
+ <%= render 'form', item_custom_property: @item_custom_property %>
5
+ </div>
6
+ </div>
7
+
8
+ <div id="submenu" class="ui-corner-all ui-widget-content">
9
+ <ul>
10
+ <li><%= link_to t('page.back'), item_custom_properties_path %></li>
11
+ </ul>
12
+ </div>
@@ -0,0 +1,28 @@
1
+ <div id="content_detail" class="ui-corner-all ui-widget-content">
2
+ <h1 class="title"><%= t('page.showing', model: t('activerecord.models.item_custom_property')) -%></h1>
3
+ <div id="content_list">
4
+ <p id="notice"><%= notice %></p>
5
+
6
+ <p>
7
+ <strong><%= t('activerecord.attributes.item_custom_property.name') %>:</strong>
8
+ <%= @item_custom_property.name %>
9
+ </p>
10
+
11
+ <p>
12
+ <strong><%= t('activerecord.attributes.item_custom_property.display_name') %>:</strong>
13
+ <%= @item_custom_property.display_name.localize %>
14
+ </p>
15
+
16
+ <p>
17
+ <strong><%= t('activerecord.attributes.item_custom_property.note') %>:</strong>
18
+ <%= @item_custom_property.note %>
19
+ </p>
20
+ </div>
21
+ </div>
22
+
23
+ <div id="submenu" class="ui-corner-all ui-widget-content">
24
+ <ul>
25
+ <li><%= link_to t('page.edit'), edit_item_custom_property_path(@item_custom_property) %></li>
26
+ <li><%= link_to t('page.back'), item_custom_properties_path %></li>
27
+ </ul>
28
+ </div>
@@ -89,21 +89,24 @@
89
89
  <%= f.text_field :binding_item_identifier, class: 'resource_identifier' -%>
90
90
  </div>
91
91
 
92
- <div class="field">
93
- <%= f.label :custom_property -%><br />
94
- <%= f.fields_for :custom_properties do |custom_property_form| %>
95
- <%= render 'custom_property_fields', f: custom_property_form %>
96
- <% end %>
97
- <div class="links">
98
- <p><%= link_to_add_association t('page.add'), f, :custom_properties %></p>
99
- </div>
100
- </div>
101
-
102
92
  <div class="field">
103
93
  <%= f.label :note -%><br />
104
94
  <%= f.text_area :note, class: 'resource_textarea' -%>
105
95
  </div>
106
96
 
97
+ <% if ItemCustomProperty.first %>
98
+ <div class="field">
99
+ <% ItemCustomProperty.order(:position).each do |c| %>
100
+ <% @item.item_custom_values.new(item_custom_property: c) unless @item.item_custom_values.map{|value| value.item_custom_property_id}.include?(c.id) %>
101
+ <% end %>
102
+ <%= f.fields_for :item_custom_values do |custom_form| %>
103
+ <%= custom_form.label custom_form.object.item_custom_property.name.to_sym, custom_form.object.item_custom_property.display_name.localize %>
104
+ <%= custom_form.hidden_field :item_custom_property_id %>
105
+ <%= custom_form.text_field :value, class: 'form-control' %>
106
+ <% end %>
107
+ </div>
108
+ <% end %>
109
+
107
110
  <div class="field">
108
111
  <%= f.label :memo -%><br />
109
112
  <%= f.text_area :memo, class: 'resource_textarea' -%>
@@ -112,13 +112,12 @@
112
112
  </p>
113
113
 
114
114
  <% if current_user.try(:has_role?, 'Librarian') %>
115
- <% @item.custom_properties.each do |custom_property| %>
115
+ <% @item.item_custom_values.each do |value| %>
116
116
  <p>
117
- <strong><%= custom_property.label -%>:</strong>
118
- <%= custom_property.value -%>
117
+ <strong><%= value.item_custom_property.display_name.localize -%>:</strong>
118
+ <%= value.value -%>
119
119
  </p>
120
120
  <% end %>
121
-
122
121
  <p>
123
122
  <strong><%= t('activerecord.attributes.item.memo') -%>:</strong>
124
123
  <%= simple_format(@item.memo) %>
@@ -3,7 +3,7 @@
3
3
 
4
4
  <div class="field">
5
5
  <%= f.label :name %><br />
6
- <%= f.text_field :name %>
6
+ <%= f.text_field :name, required: true %>
7
7
  </div>
8
8
  <div class="field">
9
9
  <%= f.label :display_name %><br />
@@ -0,0 +1,32 @@
1
+ <%= form_with(model: manifestation_custom_property, local: true) do |form| %>
2
+ <% if manifestation_custom_property.errors.any? %>
3
+ <div id="error_explanation">
4
+ <h2><%= pluralize(manifestation_custom_property.errors.count, "error") %> prohibited this manifestation_custom_property from being saved:</h2>
5
+
6
+ <ul>
7
+ <% manifestation_custom_property.errors.full_messages.each do |message| %>
8
+ <li><%= message %></li>
9
+ <% end %>
10
+ </ul>
11
+ </div>
12
+ <% end %>
13
+
14
+ <div class="form-group">
15
+ <%= form.label :name %>
16
+ <%= form.text_field :name, class: 'form-control' %>
17
+ </div>
18
+
19
+ <div class="form-group">
20
+ <%= form.label :display_name %>
21
+ <%= form.text_area :display_name, class: 'form-control' %>
22
+ </div>
23
+
24
+ <div class="form-group">
25
+ <%= form.label :note %>
26
+ <%= form.text_area :note, class: 'form-control' %>
27
+ </div>
28
+
29
+ <div class="actions">
30
+ <%= form.submit class: 'btn btn-primary' -%>
31
+ </div>
32
+ <% end %>
@@ -0,0 +1,13 @@
1
+ <div id="content_detail" class="ui-corner-all ui-widget-content">
2
+ <h1 class="title"><%= t('page.editing', model: t('activerecord.models.manifestation_custom_property')) -%></h1>
3
+ <div id="content_list">
4
+ <%= render 'form', manifestation_custom_property: @manifestation_custom_property %>
5
+ </div>
6
+ </div>
7
+
8
+ <div id="submenu" class="ui-corner-all ui-widget-content">
9
+ <ul>
10
+ <li><%= link_to t('page.show'), @manifestation_custom_property %></li>
11
+ <li><%= link_to t('page.back'), manifestation_custom_properties_path %></li>
12
+ </ul>
13
+ </div>
@@ -0,0 +1,43 @@
1
+ <div id="content_detail" class="ui-corner-all ui-widget-content">
2
+ <h1 class="title"><%= t('page.listing', model: t('activerecord.models.manifestation_custom_property')) -%></h1>
3
+ <div id="content_list">
4
+ <p id="notice"><%= notice %></p>
5
+
6
+ <h1><%= t('page.listing', model: t('activerecord.models.manifestation_custom_property')) -%></h1>
7
+
8
+ <table class='table table-striped index'>
9
+ <thead>
10
+ <tr>
11
+ <th id="position"></th>
12
+ <th><%= t('activerecord.attributes.manifestation_custom_property.name') %></th>
13
+ <th><%= t('activerecord.attributes.manifestation_custom_property.display_name') %></th>
14
+ <th><%= t('activerecord.attributes.manifestation_custom_property.note') %></th>
15
+ <th colspan="2"></th>
16
+ </tr>
17
+ </thead>
18
+
19
+ <tbody>
20
+ <% @manifestation_custom_properties.each do |manifestation_custom_property| %>
21
+ <tr>
22
+ <td>
23
+ <%- if policy(manifestation_custom_property).update? -%>
24
+ <%= move_position(manifestation_custom_property) -%>
25
+ <%- end -%>
26
+ </td>
27
+ <td><%= link_to manifestation_custom_property.name, manifestation_custom_property %></td>
28
+ <td><%= manifestation_custom_property.display_name.localize %></td>
29
+ <td><%= manifestation_custom_property.note %></td>
30
+ <td><%= link_to t('page.edit'), edit_manifestation_custom_property_path(manifestation_custom_property) %></td>
31
+ <td><%= link_to t('page.destroy'), manifestation_custom_property, method: :delete, data: { confirm: t('page.are_you_sure') } %></td>
32
+ </tr>
33
+ <% end %>
34
+ </tbody>
35
+ </table>
36
+ </div>
37
+ </div>
38
+
39
+ <div id="submenu" class="ui-corner-all ui-widget-content">
40
+ <ul>
41
+ <li><%= link_to t('page.new', model: t('activerecord.models.manifestation_custom_property')), new_manifestation_custom_property_path -%></li>
42
+ </ul>
43
+ </div>
@@ -0,0 +1,12 @@
1
+ <div id="content_detail" class="ui-corner-all ui-widget-content">
2
+ <h1 class="title"><%= t('page.new', model: t('activerecord.models.item_custom_property')) -%></h1>
3
+ <div id="content_list">
4
+ <%= render 'form', manifestation_custom_property: @manifestation_custom_property %>
5
+ </div>
6
+ </div>
7
+
8
+ <div id="submenu" class="ui-corner-all ui-widget-content">
9
+ <ul>
10
+ <li><%= link_to t('page.back'), manifestation_custom_properties_path %></li>
11
+ </ul>
12
+ </div>
@@ -0,0 +1,28 @@
1
+ <div id="content_detail" class="ui-corner-all ui-widget-content">
2
+ <h1 class="title"><%= t('page.showing', model: t('activerecord.models.manifestation_custom_property')) -%></h1>
3
+ <div id="content_list">
4
+ <p id="notice"><%= notice %></p>
5
+
6
+ <p>
7
+ <strong><%= t('activerecord.attributes.manifestation_custom_property.name') %>:</strong>
8
+ <%= @manifestation_custom_property.name %>
9
+ </p>
10
+
11
+ <p>
12
+ <strong><%= t('activerecord.attributes.manifestation_custom_property.display_name') %>:</strong>
13
+ <%= @manifestation_custom_property.display_name.localize %>
14
+ </p>
15
+
16
+ <p>
17
+ <strong><%= t('activerecord.attributes.manifestation_custom_property.note') %>:</strong>
18
+ <%= @manifestation_custom_property.note %>
19
+ </p>
20
+ </div>
21
+ </div>
22
+
23
+ <div id="submenu" class="ui-corner-all ui-widget-content">
24
+ <ul>
25
+ <li><%= link_to t('page.edit'), edit_manifestation_custom_property_path(@manifestation_custom_property) %></li>
26
+ <li><%= link_to t('page.back'), manifestation_custom_properties_path %></li>
27
+ </ul>
28
+ </div>