enju_subject 0.1.0.pre15 → 0.1.0.pre16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 550d30ae82251c10a2f2b81fc6969907f5fb05f7
4
- data.tar.gz: 93560ce11842b3f23895bf845ffbfffb91478064
3
+ metadata.gz: a699a5e01c611640f4897a28287dcbcdf3cca867
4
+ data.tar.gz: 561f14c32249cb4eec21fdce7db91d75179e1987
5
5
  SHA512:
6
- metadata.gz: 27f174c4b96d85048e8a7ea410a35eb6f2a5ddf142ba5277dcd46aa57dcd3fa9f9d6baab65ded3033d51e4d46c4a8df3af3f758f1f951ef274ffd1efbf059cc0
7
- data.tar.gz: 6ed425e86eb99d8633e60e4ac6acf9d0b16b40e2968a476c5bcf7b601938f8a5de758e6968ae41b9ec810292c4912f9e73c0d7e7006daa59f9289b6e95aef4c6
6
+ metadata.gz: 00eadbe7f9b14e9501d39851bdf3a1749516200b606727d031a377fe7e8f4b0757298ae033abd65cdd3ba3fda39c947e13e66e3dfb3e03f176ae61ee6e7d469c
7
+ data.tar.gz: 216ff796dfa5896538d6496f9efd5b0faa73f35a101225fe67d4e4807d6110dcf281687e71f75b0c1ee188526a4d6a0a0289f8baf8e6fdd5f56e78558788fb3c
@@ -0,0 +1,21 @@
1
+ <div class="field">
2
+ <%= f.label :subject -%><br />
3
+ <%= f.fields_for :subjects do |subject_form| %>
4
+ <%= subject_form.select(:subject_heading_type_id, @subject_heading_types.collect{|s| [s.display_name.localize, s.id]}) %>
5
+ <%= subject_form.text_field :term %>
6
+ <%= subject_form.select(:subject_type_id, @subject_types.collect{|s| [s.display_name.localize, s.id]}) %>
7
+ <%= subject_form.link_to_remove t('page.remove'), :confirm => t('page.are_you_sure') %>
8
+ <% end %>
9
+ <p><%= f.link_to_add t('page.add'), :subjects %></p>
10
+ </div>
11
+
12
+ <div class="field">
13
+ <%= f.label :classification -%><br />
14
+ <%= f.fields_for :classifications do |classification_form| %>
15
+ <%= classification_form.select(:classification_type_id, @classification_types.collect{|c| [c.display_name.localize, c.id]}) %>
16
+ <%= classification_form.text_field :category %>
17
+ <%= classification_form.link_to_remove t('page.remove'), :confirm => t('page.are_you_sure') %>
18
+ <% end %>
19
+ <p><%= f.link_to_add t('page.add'), :classifications %></p>
20
+ </div>
21
+
@@ -20,8 +20,5 @@
20
20
  <ul>
21
21
  <li><%= link_to t('page.edit'), edit_subject_heading_type_path(@subject_heading_type) -%></li>
22
22
  <li><%= back_to_index(flash[:page_info]) -%></li>
23
- <%- if can? :create, SubjectHeadingTypeHasSubject -%>
24
- <li><%= link_to t('page.listing', :model => t('activerecord.models.subject')), subject_heading_type_subjects_path(@subject_heading_type) -%></li>
25
- <%- end -%>
26
23
  </ul>
27
24
  </div>
@@ -23,6 +23,7 @@
23
23
  <%= @subject.note -%>
24
24
  </p>
25
25
  </div>
26
+ </div>
26
27
 
27
28
  <div id="submenu" class="ui-corner-all">
28
29
  <ul>
@@ -1,3 +1,3 @@
1
1
  module EnjuSubject
2
- VERSION = "0.1.0.pre15"
2
+ VERSION = "0.1.0.pre16"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_subject
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre15
4
+ version: 0.1.0.pre16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kosuke Tanabe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-05 00:00:00.000000000 Z
11
+ date: 2013-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: enju_core
@@ -196,10 +196,7 @@ files:
196
196
  - app/views/manifestations/_classification_detail.html.erb
197
197
  - app/views/manifestations/_subject_detail.html.erb
198
198
  - app/views/manifestations/_subject_facet.html.erb
199
- - app/views/subject_heading_type_has_subjects/edit.html.erb
200
- - app/views/subject_heading_type_has_subjects/index.html.erb
201
- - app/views/subject_heading_type_has_subjects/new.html.erb
202
- - app/views/subject_heading_type_has_subjects/show.html.erb
199
+ - app/views/manifestations/_subject_form.html.erb
203
200
  - app/views/subject_heading_types/_form.html.erb
204
201
  - app/views/subject_heading_types/edit.html.erb
205
202
  - app/views/subject_heading_types/index.html.erb
@@ -1,28 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.editing', :model => t('activerecord.models.subject_heading_type_has_subject')) -%></h1>
3
- <div id="content_list">
4
-
5
- <%= form_for(@subject_heading_type_has_subject) do |f| %>
6
- <%= f.error_messages %>
7
-
8
- <div class="field">
9
- <%= f.label t('activerecord.models.subject') %><br />
10
- <%= f.text_field :subject_id %>
11
- </div>
12
- <div class="field">
13
- <%= f.label t('activerecord.models.subject_heading_type') %><br />
14
- <%= f.text_field :subject_heading_type_id %>
15
- </div>
16
- <div class="actions">
17
- <%= f.submit %>
18
- </div>
19
- <%- end %>
20
- </div>
21
- </div>
22
-
23
- <div id="submenu" class="ui-corner-all">
24
- <ul>
25
- <li><%= link_to t('page.show'), @subject_heading_type_has_subject %></li>
26
- <li><%= link_to t('page.back'), subject_heading_type_has_subjects_path %></li>
27
- </ul>
28
- </div>
@@ -1,30 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.subject_heading_type_has_subject')) -%></h1>
3
- <div id="content_list">
4
-
5
- <table class="table table-striped index">
6
- <tr>
7
- <th><%= t('activerecord.models.subject') -%></th>
8
- <th><%= t('activerecord.models.subject_heading_type') -%></th>
9
- </tr>
10
-
11
- <%- @subject_heading_type_has_subjects.each do |subject_heading_type_has_subject| %>
12
- <tr class="line<%= cycle("0", "1") -%>">
13
- <td><%= link_to subject_heading_type_has_subject.subject.term, subject_heading_type_has_subject.subject %></td>
14
- <td><%= link_to subject_heading_type_has_subject.subject_heading_type.display_name.localize, subject_heading_type_has_subject.subject_heading_type %></td>
15
- <td><%= link_to t('page.show'), subject_heading_type_has_subject %></td>
16
- <td><%= link_to t('page.edit'), edit_subject_heading_type_has_subject_path(subject_heading_type_has_subject) %></td>
17
- <td><%= link_to t('page.destroy'), subject_heading_type_has_subject, :data => {:confirm => t('page.are_you_sure')}, :method => :delete %></td>
18
- </tr>
19
- <%- end %>
20
- </table>
21
-
22
- <%= paginate(@subject_heading_type_has_subjects) -%>
23
- </div>
24
- </div>
25
-
26
- <div id="submenu" class="ui-corner-all">
27
- <ul>
28
- <li><%= link_to t('page.new', :model => t('activerecord.models.subject_heading_type_has_subject')), new_subject_heading_type_has_subject_path %></li>
29
- </ul>
30
- </div>
@@ -1,27 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.new', :model => t('activerecord.models.subject_heading_type_has_subject')) -%></h1>
3
- <div id="content_list">
4
-
5
- <%= form_for(@subject_heading_type_has_subject) do |f| %>
6
- <%= f.error_messages %>
7
-
8
- <div class="field">
9
- <%= f.label t('activerecord.models.subject') %><br />
10
- <%= f.text_field :subject_id %>
11
- </div>
12
- <div class="field">
13
- <%= f.label t('activerecord.models.subject_heading_type') %><br />
14
- <%= f.text_field :subject_heading_type_id %>
15
- </div>
16
- <div class="actions">
17
- <%= f.submit %>
18
- </div>
19
- <%- end %>
20
- </div>
21
- </div>
22
-
23
- <div id="submenu" class="ui-corner-all">
24
- <ul>
25
- <li><%= link_to t('page.back'), subject_heading_type_has_subjects_path %></li>
26
- </ul>
27
- </div>
@@ -1,23 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.showing', :model => t('activerecord.models.subject_heading_type_has_subject')) -%></h1>
3
- <div id="content_list">
4
- <p id="notice"><%= notice %></p>
5
-
6
- <p>
7
- <strong><%= t('activerecord.models.subject') %></strong>
8
- <%= link_to @subject_heading_type_has_subject.subject.term, @subject_heading_type_has_subject.subject %>
9
- </p>
10
-
11
- <p>
12
- <strong><%= t('activerecord.models.subject_heading_type') %></strong>
13
- <%= link_to @subject_heading_type_has_subject.subject_heading_type.display_name.localize, @subject_heading_type_has_subject.subject_heading_type %>
14
- </p>
15
- </div>
16
- </div>
17
-
18
- <div id="submenu" class="ui-corner-all">
19
- <ul>
20
- <li><%= link_to t('page.edit'), edit_subject_heading_type_has_subject_path(@subject_heading_type_has_subject) %></li>
21
- <li><%= back_to_index(flash[:page_info]) %></li>
22
- </ul>
23
- </div>