enju_subject 0.1.0.pre15 → 0.1.0.pre16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/manifestations/_subject_form.html.erb +21 -0
- data/app/views/subject_heading_types/show.html.erb +0 -3
- data/app/views/subjects/show.html.erb +1 -0
- data/lib/enju_subject/version.rb +1 -1
- metadata +3 -6
- data/app/views/subject_heading_type_has_subjects/edit.html.erb +0 -28
- data/app/views/subject_heading_type_has_subjects/index.html.erb +0 -30
- data/app/views/subject_heading_type_has_subjects/new.html.erb +0 -27
- data/app/views/subject_heading_type_has_subjects/show.html.erb +0 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a699a5e01c611640f4897a28287dcbcdf3cca867
|
4
|
+
data.tar.gz: 561f14c32249cb4eec21fdce7db91d75179e1987
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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>
|
data/lib/enju_subject/version.rb
CHANGED
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.
|
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-
|
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/
|
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>
|