enju_library 0.0.2 → 0.1.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/app/controllers/libraries_controller.rb +2 -2
- data/app/controllers/shelves_controller.rb +1 -1
- data/app/models/bookstore.rb +1 -3
- data/app/models/library.rb +1 -3
- data/app/models/search_engine.rb +1 -3
- data/app/models/shelf.rb +1 -3
- data/app/models/subscription.rb +1 -3
- data/app/views/bookstores/index.html.erb +1 -1
- data/app/views/libraries/_calendar.html.erb +1 -1
- data/app/views/libraries/index.html.erb +1 -1
- data/app/views/search_engines/index.html.erb +1 -1
- data/app/views/shelves/index.html.erb +1 -1
- data/app/views/subscribes/index.html.erb +1 -1
- data/app/views/subscriptions/index.html.erb +1 -1
- data/db/migrate/080_create_library_groups.rb +1 -2
- data/lib/enju_library/engine.rb +1 -1
- data/lib/enju_library/version.rb +1 -1
- data/lib/generators/enju_library/views_generator.rb +26 -0
- data/spec/dummy/db/schema.rb +1 -2
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/solr/data/test/index/_1h.fdt +0 -0
- data/spec/dummy/solr/data/test/index/_1h.fdx +0 -0
- data/spec/dummy/solr/data/test/index/{_k.fnm → _1h.fnm} +1 -1
- data/spec/dummy/solr/data/test/index/_1h.tis +0 -0
- data/spec/dummy/solr/data/test/index/segments.gen +0 -0
- data/spec/dummy/solr/data/test/index/segments_3n +0 -0
- data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
- data/spec/dummy/tmp/cache/4AD/470/country_all +0 -0
- data/spec/fixtures/library_groups.yml +1 -1
- data/spec/requests/budget_types_spec.rb +11 -0
- metadata +30 -53
- data/app/views/accepts/_form.html.erb +0 -11
- data/app/views/accepts/_list.html.erb +0 -31
- data/app/views/accepts/edit.html.erb +0 -13
- data/app/views/accepts/index.csv.erb +0 -4
- data/app/views/accepts/index.html.erb +0 -49
- data/app/views/accepts/index.js.erb +0 -1
- data/app/views/accepts/new.html.erb +0 -14
- data/app/views/accepts/show.html.erb +0 -31
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/solr/data/test/index/_k.fdt +0 -0
- data/spec/dummy/solr/data/test/index/_k.fdx +0 -0
- data/spec/dummy/solr/data/test/index/_k.tis +0 -0
- data/spec/dummy/solr/data/test/index/segments_18 +0 -0
- /data/spec/dummy/solr/data/test/index/{_k.frq → _1h.frq} +0 -0
- /data/spec/dummy/solr/data/test/index/{_k.nrm → _1h.nrm} +0 -0
- /data/spec/dummy/solr/data/test/index/{_k.prx → _1h.prx} +0 -0
- /data/spec/dummy/solr/data/test/index/{_k.tii → _1h.tii} +0 -0
@@ -18,7 +18,7 @@ class LibrariesController < ApplicationController
|
|
18
18
|
|
19
19
|
@libraries = Library.search(:include => [:shelves]) do
|
20
20
|
fulltext query if query.present?
|
21
|
-
paginate :page => page.to_i, :per_page => Library.
|
21
|
+
paginate :page => page.to_i, :per_page => Library.default_per_page
|
22
22
|
order_by sort[:sort_by], sort[:order]
|
23
23
|
end.results
|
24
24
|
|
@@ -39,7 +39,7 @@ class LibrariesController < ApplicationController
|
|
39
39
|
order_by(:start_at, :desc)
|
40
40
|
end
|
41
41
|
page = params[:event_page] || 1
|
42
|
-
search.query.paginate(page.to_i, Event.
|
42
|
+
search.query.paginate(page.to_i, Event.default_per_page)
|
43
43
|
@events = search.execute!.results
|
44
44
|
end
|
45
45
|
|
@@ -28,7 +28,7 @@ class ShelvesController < ApplicationController
|
|
28
28
|
|
29
29
|
search = Shelf.search(:include => [:library]) do
|
30
30
|
fulltext query if query.present?
|
31
|
-
paginate :page => page.to_i, :per_page => Shelf.
|
31
|
+
paginate :page => page.to_i, :per_page => Shelf.default_per_page
|
32
32
|
if library
|
33
33
|
with(:library).equal_to library.name
|
34
34
|
order_by :position, :asc
|
data/app/models/bookstore.rb
CHANGED
@@ -8,9 +8,7 @@ class Bookstore < ActiveRecord::Base
|
|
8
8
|
validates_presence_of :name
|
9
9
|
validates :url, :url => true, :allow_blank => true, :length => {:maximum => 255}
|
10
10
|
|
11
|
-
|
12
|
-
10
|
13
|
-
end
|
11
|
+
paginates_per 10
|
14
12
|
|
15
13
|
if defined?(EnjuPurchaseRequest)
|
16
14
|
has_many :order_lists
|
data/app/models/library.rb
CHANGED
data/app/models/search_engine.rb
CHANGED
data/app/models/shelf.rb
CHANGED
data/app/models/subscription.rb
CHANGED
@@ -6,12 +6,11 @@ class CreateLibraryGroups < ActiveRecord::Migration
|
|
6
6
|
t.string :short_name, :null => false
|
7
7
|
t.string :email
|
8
8
|
t.text :my_networks
|
9
|
-
t.boolean :use_dsbl, :default => false, :null => false
|
10
|
-
t.text :dsbl_list
|
11
9
|
t.text :login_banner
|
12
10
|
t.text :note
|
13
11
|
t.integer :valid_period_for_new_user, :default => 365, :null => false
|
14
12
|
t.integer :country_id
|
13
|
+
t.integer :position
|
15
14
|
|
16
15
|
t.timestamps
|
17
16
|
end
|
data/lib/enju_library/engine.rb
CHANGED
data/lib/enju_library/version.rb
CHANGED
@@ -0,0 +1,26 @@
|
|
1
|
+
module EnjuLibrary
|
2
|
+
module Generators
|
3
|
+
class ViewsGenerator < Rails::Generators::Base
|
4
|
+
source_root File.expand_path('../../../../app/views', __FILE__)
|
5
|
+
|
6
|
+
def copy_files
|
7
|
+
directories = %w(
|
8
|
+
bookstores
|
9
|
+
budget_types
|
10
|
+
libraries
|
11
|
+
library_groups
|
12
|
+
request_status_types
|
13
|
+
request_types
|
14
|
+
search_engines
|
15
|
+
shelves
|
16
|
+
subscribes
|
17
|
+
subscriptions
|
18
|
+
)
|
19
|
+
|
20
|
+
directories.each do |dir|
|
21
|
+
directory dir, "app/views/#{dir}"
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -182,11 +182,10 @@ ActiveRecord::Schema.define(:version => 20120510140958) do
|
|
182
182
|
t.string "short_name", :null => false
|
183
183
|
t.string "email"
|
184
184
|
t.text "my_networks"
|
185
|
-
t.boolean "use_dsbl", :default => false, :null => false
|
186
|
-
t.text "dsbl_list"
|
187
185
|
t.text "login_banner"
|
188
186
|
t.text "note"
|
189
187
|
t.integer "country_id"
|
188
|
+
t.integer "position"
|
190
189
|
t.datetime "created_at", :null => false
|
191
190
|
t.datetime "updated_at", :null => false
|
192
191
|
t.string "url", :default => "http://localhost:3000/"
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -8,6 +8,7 @@ one:
|
|
8
8
|
note:
|
9
9
|
my_networks: 0.0.0.0/0
|
10
10
|
url: "http://localhost:3000/"
|
11
|
+
position: 1
|
11
12
|
|
12
13
|
|
13
14
|
# == Schema Information
|
@@ -26,7 +27,6 @@ one:
|
|
26
27
|
# created_at :datetime not null
|
27
28
|
# updated_at :datetime not null
|
28
29
|
# admin_networks :text
|
29
|
-
# allow_bookmark_external_url :boolean default(FALSE), not null
|
30
30
|
# position :integer
|
31
31
|
# url :string(255) default("http://localhost:3000/")
|
32
32
|
#
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe "BudgetTypes" do
|
4
|
+
describe "GET /budget_types" do
|
5
|
+
it "works! (now write some real specs)" do
|
6
|
+
# Run the generator again with the --webrat flag if you want to use webrat methods/matchers
|
7
|
+
get budget_types_path
|
8
|
+
response.status.should be(302)
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enju_library
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.0.pre
|
5
|
+
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Kosuke Tanabe
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-07-
|
12
|
+
date: 2012-07-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -155,22 +155,6 @@ dependencies:
|
|
155
155
|
- - ! '>='
|
156
156
|
- !ruby/object:Gem::Version
|
157
157
|
version: '0'
|
158
|
-
- !ruby/object:Gem::Dependency
|
159
|
-
name: configatron
|
160
|
-
requirement: !ruby/object:Gem::Requirement
|
161
|
-
none: false
|
162
|
-
requirements:
|
163
|
-
- - ! '>='
|
164
|
-
- !ruby/object:Gem::Version
|
165
|
-
version: '0'
|
166
|
-
type: :development
|
167
|
-
prerelease: false
|
168
|
-
version_requirements: !ruby/object:Gem::Requirement
|
169
|
-
none: false
|
170
|
-
requirements:
|
171
|
-
- - ! '>='
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: '0'
|
174
158
|
- !ruby/object:Gem::Dependency
|
175
159
|
name: paperclip
|
176
160
|
requirement: !ruby/object:Gem::Requirement
|
@@ -224,17 +208,17 @@ dependencies:
|
|
224
208
|
requirement: !ruby/object:Gem::Requirement
|
225
209
|
none: false
|
226
210
|
requirements:
|
227
|
-
- -
|
211
|
+
- - ~>
|
228
212
|
- !ruby/object:Gem::Version
|
229
|
-
version:
|
213
|
+
version: 0.1.0.pre
|
230
214
|
type: :development
|
231
215
|
prerelease: false
|
232
216
|
version_requirements: !ruby/object:Gem::Requirement
|
233
217
|
none: false
|
234
218
|
requirements:
|
235
|
-
- -
|
219
|
+
- - ~>
|
236
220
|
- !ruby/object:Gem::Version
|
237
|
-
version:
|
221
|
+
version: 0.1.0.pre
|
238
222
|
- !ruby/object:Gem::Dependency
|
239
223
|
name: sunspot_solr
|
240
224
|
requirement: !ruby/object:Gem::Requirement
|
@@ -280,14 +264,6 @@ files:
|
|
280
264
|
- app/models/shelf.rb
|
281
265
|
- app/models/subscribe.rb
|
282
266
|
- app/models/subscription.rb
|
283
|
-
- app/views/accepts/_form.html.erb
|
284
|
-
- app/views/accepts/_list.html.erb
|
285
|
-
- app/views/accepts/edit.html.erb
|
286
|
-
- app/views/accepts/index.csv.erb
|
287
|
-
- app/views/accepts/index.html.erb
|
288
|
-
- app/views/accepts/index.js.erb
|
289
|
-
- app/views/accepts/new.html.erb
|
290
|
-
- app/views/accepts/show.html.erb
|
291
267
|
- app/views/bookstores/_form.html.erb
|
292
268
|
- app/views/bookstores/edit.html.erb
|
293
269
|
- app/views/bookstores/index.html.erb
|
@@ -361,6 +337,7 @@ files:
|
|
361
337
|
- lib/enju_library/engine.rb
|
362
338
|
- lib/enju_library/version.rb
|
363
339
|
- lib/enju_library.rb
|
340
|
+
- lib/generators/enju_library/views_generator.rb
|
364
341
|
- lib/tasks/enju_library_tasks.rake
|
365
342
|
- MIT-LICENSE
|
366
343
|
- Rakefile
|
@@ -409,7 +386,6 @@ files:
|
|
409
386
|
- spec/dummy/config/locales/en.yml
|
410
387
|
- spec/dummy/config/routes.rb
|
411
388
|
- spec/dummy/config.ru
|
412
|
-
- spec/dummy/db/development.sqlite3
|
413
389
|
- spec/dummy/db/migrate/001_create_patrons.rb
|
414
390
|
- spec/dummy/db/migrate/005_create_manifestations.rb
|
415
391
|
- spec/dummy/db/migrate/006_create_items.rb
|
@@ -482,16 +458,16 @@ files:
|
|
482
458
|
- spec/dummy/solr/conf/spellings.txt
|
483
459
|
- spec/dummy/solr/conf/stopwords.txt
|
484
460
|
- spec/dummy/solr/conf/synonyms.txt
|
485
|
-
- spec/dummy/solr/data/test/index/
|
486
|
-
- spec/dummy/solr/data/test/index/
|
487
|
-
- spec/dummy/solr/data/test/index/
|
488
|
-
- spec/dummy/solr/data/test/index/
|
489
|
-
- spec/dummy/solr/data/test/index/
|
490
|
-
- spec/dummy/solr/data/test/index/
|
491
|
-
- spec/dummy/solr/data/test/index/
|
492
|
-
- spec/dummy/solr/data/test/index/
|
461
|
+
- spec/dummy/solr/data/test/index/_1h.fdt
|
462
|
+
- spec/dummy/solr/data/test/index/_1h.fdx
|
463
|
+
- spec/dummy/solr/data/test/index/_1h.fnm
|
464
|
+
- spec/dummy/solr/data/test/index/_1h.frq
|
465
|
+
- spec/dummy/solr/data/test/index/_1h.nrm
|
466
|
+
- spec/dummy/solr/data/test/index/_1h.prx
|
467
|
+
- spec/dummy/solr/data/test/index/_1h.tii
|
468
|
+
- spec/dummy/solr/data/test/index/_1h.tis
|
493
469
|
- spec/dummy/solr/data/test/index/segments.gen
|
494
|
-
- spec/dummy/solr/data/test/index/
|
470
|
+
- spec/dummy/solr/data/test/index/segments_3n
|
495
471
|
- spec/dummy/solr/data/test/spellchecker/segments.gen
|
496
472
|
- spec/dummy/solr/data/test/spellchecker/segments_1
|
497
473
|
- spec/dummy/tmp/cache/4AD/470/country_all
|
@@ -534,6 +510,7 @@ files:
|
|
534
510
|
- spec/models/shelf_spec.rb
|
535
511
|
- spec/models/subscribe_spec.rb
|
536
512
|
- spec/models/subscription_spec.rb
|
513
|
+
- spec/requests/budget_types_spec.rb
|
537
514
|
- spec/routing/budget_types_routing_spec.rb
|
538
515
|
- spec/routing/libraries_routing_spec.rb
|
539
516
|
- spec/spec_helper.rb
|
@@ -559,9 +536,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
559
536
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
560
537
|
none: false
|
561
538
|
requirements:
|
562
|
-
- - ! '
|
539
|
+
- - ! '>'
|
563
540
|
- !ruby/object:Gem::Version
|
564
|
-
version:
|
541
|
+
version: 1.3.1
|
565
542
|
requirements: []
|
566
543
|
rubyforge_project:
|
567
544
|
rubygems_version: 1.8.23
|
@@ -613,7 +590,6 @@ test_files:
|
|
613
590
|
- spec/dummy/config/locales/en.yml
|
614
591
|
- spec/dummy/config/routes.rb
|
615
592
|
- spec/dummy/config.ru
|
616
|
-
- spec/dummy/db/development.sqlite3
|
617
593
|
- spec/dummy/db/migrate/001_create_patrons.rb
|
618
594
|
- spec/dummy/db/migrate/005_create_manifestations.rb
|
619
595
|
- spec/dummy/db/migrate/006_create_items.rb
|
@@ -686,16 +662,16 @@ test_files:
|
|
686
662
|
- spec/dummy/solr/conf/spellings.txt
|
687
663
|
- spec/dummy/solr/conf/stopwords.txt
|
688
664
|
- spec/dummy/solr/conf/synonyms.txt
|
689
|
-
- spec/dummy/solr/data/test/index/
|
690
|
-
- spec/dummy/solr/data/test/index/
|
691
|
-
- spec/dummy/solr/data/test/index/
|
692
|
-
- spec/dummy/solr/data/test/index/
|
693
|
-
- spec/dummy/solr/data/test/index/
|
694
|
-
- spec/dummy/solr/data/test/index/
|
695
|
-
- spec/dummy/solr/data/test/index/
|
696
|
-
- spec/dummy/solr/data/test/index/
|
665
|
+
- spec/dummy/solr/data/test/index/_1h.fdt
|
666
|
+
- spec/dummy/solr/data/test/index/_1h.fdx
|
667
|
+
- spec/dummy/solr/data/test/index/_1h.fnm
|
668
|
+
- spec/dummy/solr/data/test/index/_1h.frq
|
669
|
+
- spec/dummy/solr/data/test/index/_1h.nrm
|
670
|
+
- spec/dummy/solr/data/test/index/_1h.prx
|
671
|
+
- spec/dummy/solr/data/test/index/_1h.tii
|
672
|
+
- spec/dummy/solr/data/test/index/_1h.tis
|
697
673
|
- spec/dummy/solr/data/test/index/segments.gen
|
698
|
-
- spec/dummy/solr/data/test/index/
|
674
|
+
- spec/dummy/solr/data/test/index/segments_3n
|
699
675
|
- spec/dummy/solr/data/test/spellchecker/segments.gen
|
700
676
|
- spec/dummy/solr/data/test/spellchecker/segments_1
|
701
677
|
- spec/dummy/tmp/cache/4AD/470/country_all
|
@@ -738,6 +714,7 @@ test_files:
|
|
738
714
|
- spec/models/shelf_spec.rb
|
739
715
|
- spec/models/subscribe_spec.rb
|
740
716
|
- spec/models/subscription_spec.rb
|
717
|
+
- spec/requests/budget_types_spec.rb
|
741
718
|
- spec/routing/budget_types_routing_spec.rb
|
742
719
|
- spec/routing/libraries_routing_spec.rb
|
743
720
|
- spec/spec_helper.rb
|
@@ -1,31 +0,0 @@
|
|
1
|
-
<div style="color: red"><%= flash[:message] -%></div>
|
2
|
-
|
3
|
-
<div class="search_form">
|
4
|
-
<%= form_for(@accept, :url => basket_accepts_path(@basket), :remote => true) do |f| %>
|
5
|
-
<%= f.error_messages %>
|
6
|
-
<p>
|
7
|
-
<%= t('activerecord.attributes.item.item_identifier') -%>:
|
8
|
-
<%= f.search_field :item_identifier, :class => 'resource_item_identifier', :value => nil -%>
|
9
|
-
<%= f.submit t('accept.accept'), 'data-disable-with' => t('page.saving') -%>
|
10
|
-
</p>
|
11
|
-
<%- end -%>
|
12
|
-
</div>
|
13
|
-
|
14
|
-
<table class="index">
|
15
|
-
<tr>
|
16
|
-
<th><%= t('activerecord.models.item') -%></th>
|
17
|
-
</tr>
|
18
|
-
<%- @accepts.each_with_index do |accept, i| -%>
|
19
|
-
<tr class="line<%= cycle("0", "1") -%>">
|
20
|
-
<td>
|
21
|
-
<%= render 'manifestations/show_index', :manifestation => accept.item.manifestation %>
|
22
|
-
<%= link_to accept.item.item_identifier, accept.item -%> / <%= accept.item.call_number %>
|
23
|
-
(<%= link_to accept.item.shelf.library.display_name.localize, accept.item.shelf.library %> /
|
24
|
-
<%= link_to accept.item.shelf.display_name.localize, accept.item.shelf %>)<br />
|
25
|
-
<%=l accept.created_at %>
|
26
|
-
</td>
|
27
|
-
</tr>
|
28
|
-
<%- end -%>
|
29
|
-
</table>
|
30
|
-
|
31
|
-
<%= javascript_tag("$('#accept_item_identifier').focus()") -%>
|
@@ -1,13 +0,0 @@
|
|
1
|
-
<div id="content_detail" class="ui-corner-all">
|
2
|
-
<h1 class="title"><%= t('page.editing', :model => t('activerecord.models.accept')) -%></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'), @accept -%></li>
|
11
|
-
<li><%= link_to t('page.back'), accepts_path -%></li>
|
12
|
-
</ul>
|
13
|
-
</div>
|
@@ -1,49 +0,0 @@
|
|
1
|
-
<div id="content_detail" class="ui-corner-all">
|
2
|
-
<h1 class="title"><%= t('page.listing', :model => t('activerecord.models.accept')) -%></h1>
|
3
|
-
<div id="content_list">
|
4
|
-
|
5
|
-
<div class="search_form">
|
6
|
-
<%= form_for(:accept, :html => {:method => :get}) do |f| %>
|
7
|
-
<p>
|
8
|
-
<%= t('activerecord.attributes.item.item_identifier') -%>:
|
9
|
-
<%= f.search_field :item_identifier, :value => @query, :class => 'resource_item_identifier' -%>
|
10
|
-
<%= f.submit t('page.search') -%>
|
11
|
-
</p>
|
12
|
-
<%- end -%>
|
13
|
-
</div>
|
14
|
-
|
15
|
-
<table class="table table-striped index">
|
16
|
-
<tr>
|
17
|
-
<th><%= t('activerecord.models.item') -%></th>
|
18
|
-
<th></th>
|
19
|
-
</tr>
|
20
|
-
<%- @accepts.each_with_index do |accept, i| -%>
|
21
|
-
<tr class="line<%= cycle("0", "1") -%>">
|
22
|
-
<td>
|
23
|
-
<% if accept.item %>
|
24
|
-
<%= render 'manifestations/show_index', :manifestation => accept.item.manifestation %>
|
25
|
-
<%= link_to accept.item.item_identifier, accept.item -%> / <%= accept.item.call_number %>
|
26
|
-
(<%= link_to accept.item.shelf.library.display_name.localize, accept.item.shelf.library %> /
|
27
|
-
<%= link_to accept.item.shelf.display_name.localize, accept.item.shelf %>)<br />
|
28
|
-
<%=l accept.created_at %>
|
29
|
-
<% end %>
|
30
|
-
</td>
|
31
|
-
<td>
|
32
|
-
<%- if can? :destroy, accept -%>
|
33
|
-
<%= link_to t('page.destroy'), accept, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
|
34
|
-
<%- end -%>
|
35
|
-
</td>
|
36
|
-
</tr>
|
37
|
-
<%- end -%>
|
38
|
-
</table>
|
39
|
-
<%= javascript_tag("$('#accept_item_identifier').focus()") -%>
|
40
|
-
|
41
|
-
<%= will_paginate(@accepts) %>
|
42
|
-
</div>
|
43
|
-
</div>
|
44
|
-
|
45
|
-
<div id="submenu" class="ui-corner-all">
|
46
|
-
<ul>
|
47
|
-
<li><%= link_to t('page.new', :model => t('activerecord.models.accept')), new_accept_path -%></li>
|
48
|
-
</ul>
|
49
|
-
</div>
|
@@ -1 +0,0 @@
|
|
1
|
-
$("#accept_list").html("<%= escape_javascript(render('accepts/list')) %>");
|
@@ -1,14 +0,0 @@
|
|
1
|
-
<div id="content_detail" class="ui-corner-all">
|
2
|
-
<h1 class="title"><%= t('page.new', :model => t('activerecord.models.accept')) -%></h1>
|
3
|
-
<div id="content_list">
|
4
|
-
<div id="accept_list">
|
5
|
-
<%= render 'list' -%>
|
6
|
-
</div>
|
7
|
-
</div>
|
8
|
-
</div>
|
9
|
-
|
10
|
-
<div id="submenu" class="ui-corner-all">
|
11
|
-
<ul>
|
12
|
-
<li><%= link_to t('page.back'), accepts_path -%></li>
|
13
|
-
</ul>
|
14
|
-
</div>
|
@@ -1,31 +0,0 @@
|
|
1
|
-
<div id="content_detail" class="ui-corner-all">
|
2
|
-
<h1 class="title"><%= t('page.showing', :model => t('activerecord.models.accept')) -%></h1>
|
3
|
-
<div id="content_list">
|
4
|
-
<p id="notice"><%= notice %></p>
|
5
|
-
|
6
|
-
<p>
|
7
|
-
<strong><%= t('activerecord.models.item') -%>:</strong>
|
8
|
-
<% if @accept.item %>
|
9
|
-
<%= link_to @accept.item.item_identifier, @accept.item -%>
|
10
|
-
(<%= link_to @accept.item.manifestation.original_title, @accept.item.manifestation %>)
|
11
|
-
<% end %>
|
12
|
-
</p>
|
13
|
-
|
14
|
-
<p>
|
15
|
-
<strong><%= t('activerecord.models.user') -%>:</strong>
|
16
|
-
<%= link_to @accept.librarian.username, @accept.librarian if @accept.librarian -%>
|
17
|
-
</p>
|
18
|
-
|
19
|
-
<p>
|
20
|
-
<strong><%= t('page.created_at') -%>:</strong>
|
21
|
-
<%=l @accept.created_at %>
|
22
|
-
</p>
|
23
|
-
|
24
|
-
</div>
|
25
|
-
</div>
|
26
|
-
|
27
|
-
<div id="submenu" class="ui-corner-all">
|
28
|
-
<ul>
|
29
|
-
<li><%= back_to_index(flash[:page_info]) -%></li>
|
30
|
-
</ul>
|
31
|
-
</div>
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|