enju_message 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (129) hide show
  1. data/Rakefile +1 -1
  2. data/app/views/notifier/message_notification.en.text.erb +2 -2
  3. data/app/views/notifier/message_notification.ja.text.erb +2 -2
  4. data/lib/enju_message/version.rb +1 -1
  5. data/spec/dummy/db/test.sqlite3 +0 -0
  6. data/spec/dummy/solr/data/test/index/segments_1 +0 -0
  7. data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
  8. metadata +1 -124
  9. data/app/views/baskets/edit.html.erb +0 -30
  10. data/app/views/baskets/index.html.erb +0 -31
  11. data/app/views/baskets/new.html.erb +0 -29
  12. data/app/views/baskets/show.html.erb +0 -23
  13. data/app/views/carrier_type_has_checkout_types/_form.html.erb +0 -19
  14. data/app/views/carrier_type_has_checkout_types/edit.html.erb +0 -13
  15. data/app/views/carrier_type_has_checkout_types/index.html.erb +0 -33
  16. data/app/views/carrier_type_has_checkout_types/new.html.erb +0 -12
  17. data/app/views/carrier_type_has_checkout_types/show.html.erb +0 -29
  18. data/app/views/checked_items/_checkouts.html.erb +0 -20
  19. data/app/views/checked_items/_list.html.erb +0 -39
  20. data/app/views/checked_items/edit.html.erb +0 -21
  21. data/app/views/checked_items/index.html.erb +0 -32
  22. data/app/views/checked_items/index.js.erb +0 -1
  23. data/app/views/checked_items/new.html.erb +0 -20
  24. data/app/views/checked_items/show.html.erb +0 -24
  25. data/app/views/checkins/_form.html.erb +0 -24
  26. data/app/views/checkins/_list.html.erb +0 -51
  27. data/app/views/checkins/edit.html.erb +0 -26
  28. data/app/views/checkins/index.html.erb +0 -16
  29. data/app/views/checkins/index.js.erb +0 -1
  30. data/app/views/checkins/new.html.erb +0 -14
  31. data/app/views/checkins/show.html.erb +0 -24
  32. data/app/views/checkout_stat_has_manifestations/_form.html.erb +0 -15
  33. data/app/views/checkout_stat_has_manifestations/edit.html.erb +0 -13
  34. data/app/views/checkout_stat_has_manifestations/index.html.erb +0 -33
  35. data/app/views/checkout_stat_has_manifestations/new.html.erb +0 -12
  36. data/app/views/checkout_stat_has_manifestations/show.html.erb +0 -28
  37. data/app/views/checkout_stat_has_users/_form.html.erb +0 -15
  38. data/app/views/checkout_stat_has_users/edit.html.erb +0 -13
  39. data/app/views/checkout_stat_has_users/index.html.erb +0 -33
  40. data/app/views/checkout_stat_has_users/new.html.erb +0 -12
  41. data/app/views/checkout_stat_has_users/show.html.erb +0 -28
  42. data/app/views/checkout_types/_form.html.erb +0 -19
  43. data/app/views/checkout_types/edit.html.erb +0 -13
  44. data/app/views/checkout_types/index.html.erb +0 -50
  45. data/app/views/checkout_types/new.html.erb +0 -12
  46. data/app/views/checkout_types/show.html.erb +0 -38
  47. data/app/views/checkouts/_form.html.erb +0 -28
  48. data/app/views/checkouts/_index.html.erb +0 -23
  49. data/app/views/checkouts/_index_overdue.html.erb +0 -33
  50. data/app/views/checkouts/_index_user.html.erb +0 -44
  51. data/app/views/checkouts/_list.html.erb +0 -45
  52. data/app/views/checkouts/edit.html.erb +0 -51
  53. data/app/views/checkouts/index.atom.builder +0 -14
  54. data/app/views/checkouts/index.csv.erb +0 -4
  55. data/app/views/checkouts/index.html.erb +0 -11
  56. data/app/views/checkouts/index.ics.erb +0 -13
  57. data/app/views/checkouts/index.rss.builder +0 -38
  58. data/app/views/checkouts/new.html.erb +0 -20
  59. data/app/views/checkouts/show.html.erb +0 -35
  60. data/app/views/circulation_statuses/_form.html.erb +0 -19
  61. data/app/views/circulation_statuses/edit.html.erb +0 -13
  62. data/app/views/circulation_statuses/index.html.erb +0 -43
  63. data/app/views/circulation_statuses/new.html.erb +0 -12
  64. data/app/views/circulation_statuses/show.html.erb +0 -29
  65. data/app/views/item_has_use_restrictions/edit.html.erb +0 -27
  66. data/app/views/item_has_use_restrictions/index.html.erb +0 -32
  67. data/app/views/item_has_use_restrictions/new.html.erb +0 -25
  68. data/app/views/item_has_use_restrictions/show.html.erb +0 -29
  69. data/app/views/lending_policies/_form.html.erb +0 -41
  70. data/app/views/lending_policies/edit.html.erb +0 -13
  71. data/app/views/lending_policies/index.html.erb +0 -42
  72. data/app/views/lending_policies/new.html.erb +0 -12
  73. data/app/views/lending_policies/show.html.erb +0 -50
  74. data/app/views/manifestation_checkout_stats/_form.html.erb +0 -19
  75. data/app/views/manifestation_checkout_stats/edit.html.erb +0 -13
  76. data/app/views/manifestation_checkout_stats/index.html.erb +0 -35
  77. data/app/views/manifestation_checkout_stats/new.html.erb +0 -12
  78. data/app/views/manifestation_checkout_stats/show.csv.erb +0 -4
  79. data/app/views/manifestation_checkout_stats/show.html.erb +0 -55
  80. data/app/views/manifestation_reserve_stats/_form.html.erb +0 -19
  81. data/app/views/manifestation_reserve_stats/edit.html.erb +0 -13
  82. data/app/views/manifestation_reserve_stats/index.html.erb +0 -35
  83. data/app/views/manifestation_reserve_stats/new.html.erb +0 -12
  84. data/app/views/manifestation_reserve_stats/show.csv.erb +0 -4
  85. data/app/views/manifestation_reserve_stats/show.html.erb +0 -55
  86. data/app/views/reserve_stat_has_manifestations/_form.html.erb +0 -15
  87. data/app/views/reserve_stat_has_manifestations/edit.html.erb +0 -13
  88. data/app/views/reserve_stat_has_manifestations/index.html.erb +0 -33
  89. data/app/views/reserve_stat_has_manifestations/new.html.erb +0 -12
  90. data/app/views/reserve_stat_has_manifestations/show.html.erb +0 -28
  91. data/app/views/reserve_stat_has_users/_form.html.erb +0 -15
  92. data/app/views/reserve_stat_has_users/edit.html.erb +0 -13
  93. data/app/views/reserve_stat_has_users/index.html.erb +0 -33
  94. data/app/views/reserve_stat_has_users/new.html.erb +0 -12
  95. data/app/views/reserve_stat_has_users/show.html.erb +0 -28
  96. data/app/views/reserves/_form.html.erb +0 -49
  97. data/app/views/reserves/_new.html.erb +0 -44
  98. data/app/views/reserves/_new_user.html.erb +0 -50
  99. data/app/views/reserves/_title.html.erb +0 -19
  100. data/app/views/reserves/edit.html.erb +0 -42
  101. data/app/views/reserves/index.atom.builder +0 -14
  102. data/app/views/reserves/index.csv.erb +0 -4
  103. data/app/views/reserves/index.html.erb +0 -75
  104. data/app/views/reserves/index.rss.builder +0 -41
  105. data/app/views/reserves/new.html.erb +0 -5
  106. data/app/views/reserves/show.html.erb +0 -61
  107. data/app/views/use_restrictions/_form.html.erb +0 -19
  108. data/app/views/use_restrictions/edit.html.erb +0 -13
  109. data/app/views/use_restrictions/index.html.erb +0 -43
  110. data/app/views/use_restrictions/new.html.erb +0 -12
  111. data/app/views/use_restrictions/show.html.erb +0 -29
  112. data/app/views/user_checkout_stats/_form.html.erb +0 -19
  113. data/app/views/user_checkout_stats/edit.html.erb +0 -13
  114. data/app/views/user_checkout_stats/index.html.erb +0 -35
  115. data/app/views/user_checkout_stats/new.html.erb +0 -12
  116. data/app/views/user_checkout_stats/show.csv.erb +0 -4
  117. data/app/views/user_checkout_stats/show.html.erb +0 -55
  118. data/app/views/user_group_has_checkout_types/edit.html.erb +0 -63
  119. data/app/views/user_group_has_checkout_types/index.html.erb +0 -32
  120. data/app/views/user_group_has_checkout_types/new.html.erb +0 -62
  121. data/app/views/user_group_has_checkout_types/show.html.erb +0 -64
  122. data/app/views/user_reserve_stats/_form.html.erb +0 -19
  123. data/app/views/user_reserve_stats/edit.html.erb +0 -13
  124. data/app/views/user_reserve_stats/index.html.erb +0 -35
  125. data/app/views/user_reserve_stats/new.html.erb +0 -12
  126. data/app/views/user_reserve_stats/show.csv.erb +0 -4
  127. data/app/views/user_reserve_stats/show.html.erb +0 -54
  128. data/spec/dummy/db/development.sqlite3 +0 -0
  129. data/spec/dummy/db/production.sqlite3 +0 -0
data/Rakefile CHANGED
@@ -14,7 +14,7 @@ end
14
14
 
15
15
  RDoc::Task.new(:rdoc) do |rdoc|
16
16
  rdoc.rdoc_dir = 'rdoc'
17
- rdoc.title = 'EnjuSubject'
17
+ rdoc.title = 'EnjuMessage'
18
18
  rdoc.options << '--line-numbers'
19
19
  rdoc.rdoc_files.include('README.rdoc')
20
20
  rdoc.rdoc_files.include('lib/**/*.rb')
@@ -1,11 +1,11 @@
1
- <%= @message.receiver.full_name -%> :
1
+ <%= @message.receiver.patron.full_name -%> :
2
2
 
3
3
  A new message arrived from <%= @sender_name -%>.
4
4
  <%= messages_url %>
5
5
 
6
6
  -----
7
7
 
8
- <%= @message.body %>
8
+ <%=raw @message.body %>
9
9
 
10
10
  -----
11
11
 
@@ -1,11 +1,11 @@
1
- <%= @message.receiver.full_name -%> さん
1
+ <%= @message.receiver.patron.full_name -%> さん
2
2
 
3
3
  <%= @sender_name -%> さんから新しいメッセージが届きました。
4
4
  <%= messages_url %>
5
5
 
6
6
  -----
7
7
 
8
- <%= @message.body %>
8
+ <%=raw @message.body %>
9
9
 
10
10
  -----
11
11
 
@@ -1,3 +1,3 @@
1
1
  module EnjuMessage
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_message
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -345,84 +345,7 @@ files:
345
345
  - app/models/message.rb
346
346
  - app/models/message_request.rb
347
347
  - app/models/message_template.rb
348
- - app/views/baskets/edit.html.erb
349
- - app/views/baskets/index.html.erb
350
- - app/views/baskets/new.html.erb
351
- - app/views/baskets/show.html.erb
352
- - app/views/carrier_type_has_checkout_types/_form.html.erb
353
- - app/views/carrier_type_has_checkout_types/edit.html.erb
354
- - app/views/carrier_type_has_checkout_types/index.html.erb
355
- - app/views/carrier_type_has_checkout_types/new.html.erb
356
- - app/views/carrier_type_has_checkout_types/show.html.erb
357
- - app/views/checked_items/_checkouts.html.erb
358
- - app/views/checked_items/_list.html.erb
359
- - app/views/checked_items/edit.html.erb
360
- - app/views/checked_items/index.html.erb
361
- - app/views/checked_items/index.js.erb
362
- - app/views/checked_items/new.html.erb
363
- - app/views/checked_items/show.html.erb
364
- - app/views/checkins/_form.html.erb
365
- - app/views/checkins/_list.html.erb
366
- - app/views/checkins/edit.html.erb
367
- - app/views/checkins/index.html.erb
368
- - app/views/checkins/index.js.erb
369
- - app/views/checkins/new.html.erb
370
- - app/views/checkins/show.html.erb
371
- - app/views/checkout_stat_has_manifestations/_form.html.erb
372
- - app/views/checkout_stat_has_manifestations/edit.html.erb
373
- - app/views/checkout_stat_has_manifestations/index.html.erb
374
- - app/views/checkout_stat_has_manifestations/new.html.erb
375
- - app/views/checkout_stat_has_manifestations/show.html.erb
376
- - app/views/checkout_stat_has_users/_form.html.erb
377
- - app/views/checkout_stat_has_users/edit.html.erb
378
- - app/views/checkout_stat_has_users/index.html.erb
379
- - app/views/checkout_stat_has_users/new.html.erb
380
- - app/views/checkout_stat_has_users/show.html.erb
381
- - app/views/checkout_types/_form.html.erb
382
- - app/views/checkout_types/edit.html.erb
383
- - app/views/checkout_types/index.html.erb
384
- - app/views/checkout_types/new.html.erb
385
- - app/views/checkout_types/show.html.erb
386
- - app/views/checkouts/_form.html.erb
387
- - app/views/checkouts/_index.html.erb
388
- - app/views/checkouts/_index_overdue.html.erb
389
- - app/views/checkouts/_index_user.html.erb
390
- - app/views/checkouts/_list.html.erb
391
- - app/views/checkouts/edit.html.erb
392
- - app/views/checkouts/index.atom.builder
393
- - app/views/checkouts/index.csv.erb
394
- - app/views/checkouts/index.html.erb
395
- - app/views/checkouts/index.ics.erb
396
- - app/views/checkouts/index.rss.builder
397
- - app/views/checkouts/new.html.erb
398
- - app/views/checkouts/show.html.erb
399
- - app/views/circulation_statuses/_form.html.erb
400
- - app/views/circulation_statuses/edit.html.erb
401
- - app/views/circulation_statuses/index.html.erb
402
- - app/views/circulation_statuses/new.html.erb
403
- - app/views/circulation_statuses/show.html.erb
404
- - app/views/item_has_use_restrictions/edit.html.erb
405
- - app/views/item_has_use_restrictions/index.html.erb
406
- - app/views/item_has_use_restrictions/new.html.erb
407
- - app/views/item_has_use_restrictions/show.html.erb
408
348
  - app/views/layouts/messages.html.erb
409
- - app/views/lending_policies/_form.html.erb
410
- - app/views/lending_policies/edit.html.erb
411
- - app/views/lending_policies/index.html.erb
412
- - app/views/lending_policies/new.html.erb
413
- - app/views/lending_policies/show.html.erb
414
- - app/views/manifestation_checkout_stats/_form.html.erb
415
- - app/views/manifestation_checkout_stats/edit.html.erb
416
- - app/views/manifestation_checkout_stats/index.html.erb
417
- - app/views/manifestation_checkout_stats/new.html.erb
418
- - app/views/manifestation_checkout_stats/show.csv.erb
419
- - app/views/manifestation_checkout_stats/show.html.erb
420
- - app/views/manifestation_reserve_stats/_form.html.erb
421
- - app/views/manifestation_reserve_stats/edit.html.erb
422
- - app/views/manifestation_reserve_stats/index.html.erb
423
- - app/views/manifestation_reserve_stats/new.html.erb
424
- - app/views/manifestation_reserve_stats/show.csv.erb
425
- - app/views/manifestation_reserve_stats/show.html.erb
426
349
  - app/views/message_requests/edit.html.erb
427
350
  - app/views/message_requests/index.html.erb
428
351
  - app/views/message_requests/new.html.erb
@@ -441,48 +364,6 @@ files:
441
364
  - app/views/messages/show.html.erb
442
365
  - app/views/notifier/message_notification.en.text.erb
443
366
  - app/views/notifier/message_notification.ja.text.erb
444
- - app/views/reserve_stat_has_manifestations/_form.html.erb
445
- - app/views/reserve_stat_has_manifestations/edit.html.erb
446
- - app/views/reserve_stat_has_manifestations/index.html.erb
447
- - app/views/reserve_stat_has_manifestations/new.html.erb
448
- - app/views/reserve_stat_has_manifestations/show.html.erb
449
- - app/views/reserve_stat_has_users/_form.html.erb
450
- - app/views/reserve_stat_has_users/edit.html.erb
451
- - app/views/reserve_stat_has_users/index.html.erb
452
- - app/views/reserve_stat_has_users/new.html.erb
453
- - app/views/reserve_stat_has_users/show.html.erb
454
- - app/views/reserves/_form.html.erb
455
- - app/views/reserves/_new.html.erb
456
- - app/views/reserves/_new_user.html.erb
457
- - app/views/reserves/_title.html.erb
458
- - app/views/reserves/edit.html.erb
459
- - app/views/reserves/index.atom.builder
460
- - app/views/reserves/index.csv.erb
461
- - app/views/reserves/index.html.erb
462
- - app/views/reserves/index.rss.builder
463
- - app/views/reserves/new.html.erb
464
- - app/views/reserves/show.html.erb
465
- - app/views/use_restrictions/_form.html.erb
466
- - app/views/use_restrictions/edit.html.erb
467
- - app/views/use_restrictions/index.html.erb
468
- - app/views/use_restrictions/new.html.erb
469
- - app/views/use_restrictions/show.html.erb
470
- - app/views/user_checkout_stats/_form.html.erb
471
- - app/views/user_checkout_stats/edit.html.erb
472
- - app/views/user_checkout_stats/index.html.erb
473
- - app/views/user_checkout_stats/new.html.erb
474
- - app/views/user_checkout_stats/show.csv.erb
475
- - app/views/user_checkout_stats/show.html.erb
476
- - app/views/user_group_has_checkout_types/edit.html.erb
477
- - app/views/user_group_has_checkout_types/index.html.erb
478
- - app/views/user_group_has_checkout_types/new.html.erb
479
- - app/views/user_group_has_checkout_types/show.html.erb
480
- - app/views/user_reserve_stats/_form.html.erb
481
- - app/views/user_reserve_stats/edit.html.erb
482
- - app/views/user_reserve_stats/index.html.erb
483
- - app/views/user_reserve_stats/new.html.erb
484
- - app/views/user_reserve_stats/show.csv.erb
485
- - app/views/user_reserve_stats/show.html.erb
486
367
  - config/locales/translation_en.yml
487
368
  - config/locales/translation_ja.yml
488
369
  - config/routes.rb
@@ -539,7 +420,6 @@ files:
539
420
  - spec/dummy/config/locales/en.yml
540
421
  - spec/dummy/config/routes.rb
541
422
  - spec/dummy/config.ru
542
- - spec/dummy/db/development.sqlite3
543
423
  - spec/dummy/db/migrate/001_create_patrons.rb
544
424
  - spec/dummy/db/migrate/080_create_library_groups.rb
545
425
  - spec/dummy/db/migrate/20080905191442_create_patron_types.rb
@@ -556,7 +436,6 @@ files:
556
436
  - spec/dummy/db/migrate/20111201163342_create_user_groups.rb
557
437
  - spec/dummy/db/migrate/20111201163718_create_user_has_roles.rb
558
438
  - spec/dummy/db/migrate/20120213092115_add_queue_to_delayed_jobs.rb
559
- - spec/dummy/db/production.sqlite3
560
439
  - spec/dummy/db/schema.rb
561
440
  - spec/dummy/db/test.sqlite3
562
441
  - spec/dummy/lib/enju_leaf/localized_name.rb
@@ -668,7 +547,6 @@ test_files:
668
547
  - spec/dummy/config/locales/en.yml
669
548
  - spec/dummy/config/routes.rb
670
549
  - spec/dummy/config.ru
671
- - spec/dummy/db/development.sqlite3
672
550
  - spec/dummy/db/migrate/001_create_patrons.rb
673
551
  - spec/dummy/db/migrate/080_create_library_groups.rb
674
552
  - spec/dummy/db/migrate/20080905191442_create_patron_types.rb
@@ -685,7 +563,6 @@ test_files:
685
563
  - spec/dummy/db/migrate/20111201163342_create_user_groups.rb
686
564
  - spec/dummy/db/migrate/20111201163718_create_user_has_roles.rb
687
565
  - spec/dummy/db/migrate/20120213092115_add_queue_to_delayed_jobs.rb
688
- - spec/dummy/db/production.sqlite3
689
566
  - spec/dummy/db/schema.rb
690
567
  - spec/dummy/db/test.sqlite3
691
568
  - spec/dummy/lib/enju_leaf/localized_name.rb
@@ -1,30 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.editing', :model => t('activerecord.models.basket')) -%></h1>
3
- <div id="content_list">
4
-
5
- <%= form_for(@basket) do |f| -%>
6
- <%= f.error_messages -%>
7
- <div class="field">
8
- <%= f.label t('activerecord.models.user') -%><br />
9
- <%= @basket.user.username -%>
10
- <%= f.hidden_field :user_id -%>
11
- </div>
12
-
13
- <div class="field">
14
- <%= f.label :note -%><br />
15
- <%= f.text_area :note, :class => 'resource_textarea' -%>
16
- </div>
17
-
18
- <div class="actions">
19
- <%= f.submit %>
20
- </div>
21
- <%- end -%>
22
- </div>
23
- </div>
24
-
25
- <div id="submenu" class="ui-corner-all">
26
- <ul>
27
- <li><%= link_to t('page.show'), basket_path(@basket) -%></li>
28
- <li><%= link_to t('page.back'), user_baskets_path(@basket.user) -%></li>
29
- </ul>
30
- </div>
@@ -1,31 +0,0 @@
1
- <div id="content_list">
2
- <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.basket')) -%></h1>
3
- <div id="content_detail" class="ui-corner-all">
4
-
5
- <table class="index">
6
- <tr>
7
- <th><%= t('activerecord.models.user') -%></th>
8
- <th><%= t('activerecord.attributes.basket.note') -%></th>
9
- <th><%= t('page.updated_at') -%></th>
10
- </tr>
11
-
12
- <%- @baskets.each do |basket| -%>
13
- <tr class="line<%= cycle("0", "1") -%>">
14
- <td><%= basket.user.username -%></td>
15
- <td><%= basket.note -%></td>
16
- <td><%= basket.updated_at -%></td>
17
- <td><%= link_to t('page.show'), basket -%></td>
18
- </tr>
19
- <%- end -%>
20
- </table>
21
-
22
- <%= will_paginate(@baskets) -%>
23
-
24
- </div>
25
- </div>
26
-
27
- <div id="submenu" class="ui-corner-all">
28
- <ul>
29
- <li><%= link_to t('page.new', :model => t('activerecord.models.basket')), new_basket_path -%></li>
30
- </ul>
31
- </div>
@@ -1,29 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.new', :model => t('activerecord.models.basket')) -%></h1>
3
- <div id="content_list">
4
-
5
- <%= form_for(@basket, :html => {:name => 'basket_form'}) do |f| -%>
6
- <%= f.error_messages -%>
7
- <div class="field">
8
- <%= f.label t('activerecord.attributes.user.user_number') -%>
9
- <%= f.text_field :user_number, :class => 'resource_user_number' -%>
10
-
11
- <!--
12
- <div class="field">
13
- <%= f.label :note -%><br />
14
- <%= f.text_area :note, :class => 'resource_textarea' -%>
15
- </div>
16
- -->
17
- <%= f.submit t('page.read') -%>
18
- </div>
19
- <%- end -%>
20
- <%= javascript_tag("$('#basket_user_number').focus()") -%>
21
- </div>
22
- </div>
23
-
24
- <div id="submenu" class="ui-corner-all">
25
- <ul>
26
- <li><%= link_to t('activerecord.models.checkin'), checkins_path -%></li>
27
- <li><%= link_to t('page.search_resource', :model => t('activerecord.models.user')), users_path -%></li>
28
- </ul>
29
- </div>
@@ -1,23 +0,0 @@
1
- <div id="content_list">
2
- <h1 class="title"><%= t('page.showing', :model => t('activerecord.models.basket')) -%></h1>
3
- <div id="content_detail" class="ui-corner-all">
4
- <p id="notice"><%= notice %></p>
5
-
6
- <p>
7
- <strong><%= t('activerecord.models.user') -%>:</strong>
8
- <%= @basket.user.username -%>
9
- </p>
10
-
11
- <p>
12
- <strong><%= t('activerecord.attributes.basket.note') -%>:</strong>
13
- <%= @basket.note -%>
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_basket_path(@basket) -%></li>
21
- <li><%= link_to t('page.back'), user_baskets_path(@basket.user) -%></li>
22
- </ul>
23
- </div>
@@ -1,19 +0,0 @@
1
- <%= form_for(@carrier_type_has_checkout_type) do |f| -%>
2
- <%= f.error_messages -%>
3
-
4
- <div class="field">
5
- <%= f.label t('activerecord.models.carrier_type') -%><br />
6
- <%= f.select(:carrier_type_id, @carrier_types.collect{|m| [m.display_name.localize, m.id]}, :include_blank => true) -%>
7
- </div>
8
- <div class="field">
9
- <%= f.label t('activerecord.models.checkout_type') -%><br />
10
- <%= f.select(:checkout_type_id, @checkout_types.collect{|c| [c.display_name.localize, c.id]}, :include_blank => true) -%>
11
- </div>
12
- <div class="field">
13
- <%= f.label :note -%><br />
14
- <%= f.text_area :note, :class => 'resource_textarea' -%>
15
- </div>
16
- <div class="actions">
17
- <%= f.submit %>
18
- </div>
19
- <%- end -%>
@@ -1,13 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.editing', :model => t('activerecord.models.carrier_type_has_checkout_type')) -%></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'), @carrier_type_has_checkout_type -%></li>
11
- <li><%= link_to t('page.back'), carrier_type_has_checkout_types_path -%></li>
12
- </ul>
13
- </div>
@@ -1,33 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.carrier_type_has_checkout_type')) -%></h1>
3
- <div id="content_list">
4
-
5
- <table class="index">
6
- <tr>
7
- <th><%= t('activerecord.models.carrier_type') -%></th>
8
- <th><%= t('activerecord.models.checkout_type') -%></th>
9
- <th><%= t('activerecord.attributes.carrier_type_has_checkout_type.note') -%></th>
10
- <th></th>
11
- </tr>
12
-
13
- <%- @carrier_type_has_checkout_types.each do |carrier_type_has_checkout_type| -%>
14
- <tr class="line<%= cycle("0", "1") -%>">
15
- <td><%= link_to carrier_type_has_checkout_type.carrier_type.display_name.localize, carrier_type_has_checkout_type.carrier_type -%></td>
16
- <td><%= link_to carrier_type_has_checkout_type.checkout_type.display_name.localize, carrier_type_has_checkout_type.checkout_type -%></td>
17
- <td><%= carrier_type_has_checkout_type.note -%></td>
18
- <td>
19
- <%= link_to t('page.edit'), edit_carrier_type_has_checkout_type_path(carrier_type_has_checkout_type) -%>
20
- <%= link_to t('page.destroy'), carrier_type_has_checkout_type, :confirm => t('page.are_you_sure'), :method => :delete -%>
21
- </td>
22
- </tr>
23
- <%- end -%>
24
- </table>
25
-
26
- </div>
27
- </div>
28
-
29
- <div id="submenu" class="ui-corner-all">
30
- <ul>
31
- <li><%= link_to t('page.new', :model => t('activerecord.models.carrier_type_has_checkout_type')), new_carrier_type_has_checkout_type_path -%></li>
32
- </ul>
33
- </div>
@@ -1,12 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.new', :model => t('activerecord.models.carrier_type_has_checkout_type')) -%></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.back'), carrier_type_has_checkout_types_path -%></li>
11
- </ul>
12
- </div>
@@ -1,29 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.showing', :model => t('activerecord.models.carrier_type_has_checkout_type')) -%></h1>
3
- <div id="content_list">
4
- <p id="notice"><%= notice %></p>
5
-
6
- <p>
7
- <strong><%= t('activerecord.models.carrier_type') -%>:</strong>
8
- <%= link_to @carrier_type_has_checkout_type.carrier_type.display_name.localize, @carrier_type_has_checkout_type.carrier_type -%>
9
- </p>
10
-
11
- <p>
12
- <strong><%= t('activerecord.models.checkout_type') -%>:</strong>
13
- <%= link_to @carrier_type_has_checkout_type.checkout_type.display_name.localize, @carrier_type_has_checkout_type.checkout_type -%>
14
- </p>
15
-
16
- <p>
17
- <strong><%= t('activerecord.attributes.carrier_type_has_checkout_type.note') -%>:</strong>
18
- <%= @carrier_type_has_checkout_type.note -%>
19
- </p>
20
-
21
- </div>
22
- </div>
23
-
24
- <div id="submenu" class="ui-corner-all">
25
- <ul>
26
- <li><%= link_to t('page.edit'), edit_carrier_type_has_checkout_type_path(@carrier_type_has_checkout_type) -%></li>
27
- <li><%= back_to_index(flash[:page_info]) -%></li>
28
- </ul>
29
- </div>
@@ -1,20 +0,0 @@
1
- <h3><%= t('checked_item.previous_checkout') -%></h3>
2
-
3
- <table class="index">
4
- <tr>
5
- <th class="checked_item_title"><%= t('page.title') -%></th>
6
- <th><%= t('activerecord.attributes.item.item_identifier') -%></th>
7
- <th><%= t('activerecord.attributes.checkout.due_date') -%></th>
8
- </tr>
9
-
10
- <%- @basket.user.checkouts.not_returned.each_with_index do |checkout, i| -%>
11
- <tr class="line<%= cycle("0", "1") -%>">
12
- <td>
13
- <%= render 'manifestations/show_index', :manifestation => checkout.item.manifestation -%>
14
- <%= render 'manifestations/holding', :manifestation => checkout.item.manifestation -%>
15
- </td>
16
- <td><%= link_to checkout.item.item_identifier, checkout.item -%></td>
17
- <td><%= l(checkout.due_date, :format => :only_date) -%></td>
18
- </tr>
19
- <%- end -%>
20
- </table>
@@ -1,39 +0,0 @@
1
- <div style="color: red"><%= flash[:message].try(:join) -%></div>
2
-
3
- <div class="search_form">
4
- <%= form_for :checked_item, :html => {:method => :post}, :url => basket_checked_items_path(@basket, :mode => 'list'), :remote => true do |f| -%>
5
- <%= f.error_messages -%>
6
- <p>
7
- <%= t('activerecord.attributes.item.item_identifier') -%>: <%= f.text_field :item_identifier -%>
8
- <%= t('checked_item.ignore_restriction') -%>: <%= f.check_box :ignore_restriction -%>
9
- <%= submit_tag t('page.read') -%>
10
- </p>
11
- <%- end -%>
12
- <%= javascript_tag("$('#checked_item_item_identifier').focus()") -%>
13
- </div>
14
-
15
- <table class="index">
16
- <tr>
17
- <th class="checked_item_title"><%= t('page.title') -%></th>
18
- <th><%= t('activerecord.attributes.item.item_identifier') -%></th>
19
- <th><%= t('activerecord.attributes.checkout.due_date') -%></th>
20
- <th></th>
21
- </tr>
22
-
23
- <%- @checked_items.each_with_index do |checked_item, i| -%>
24
- <tr class="line<%= cycle("0", "1") -%>">
25
- <td>
26
- <%= render 'manifestations/show_index', :manifestation => checked_item.item.manifestation -%>
27
- </td>
28
- <td><%= link_to checked_item.item.item_identifier, checked_item.item -%></td>
29
- <td><%= l(checked_item.due_date, :format => :only_date) -%></td>
30
- <td><%= link_to t('page.destroy'), checked_item, :confirm => t('page.are_you_sure'), :method => :delete -%></td>
31
- </tr>
32
- <%- end -%>
33
- </table>
34
-
35
- <%= form_for(:basket, :url => {:controller => 'baskets', :action => 'update', :id => @basket.id}, :html => { :method => :put }) do |f| -%>
36
- <div>
37
- <%= f.submit t('checked_item.checkout') -%>
38
- </div>
39
- <%- end -%>
@@ -1,21 +0,0 @@
1
- <h1 class="title"><%= t('page.editing', :model => t('activerecord.models.checked_item')) -%></h1>
2
-
3
- <%= form_for(@checked_item) do |f| -%>
4
- <%= f.error_messages -%>
5
- <div class="field">
6
- <%= f.label t('activerecord.models.item') -%><br />
7
- <%= f.text_field :item_id -%>
8
- </div>
9
-
10
- <div class="field">
11
- <%= f.label t('activerecord.models.basket') -%><br />
12
- <%= f.text_field :basket_id -%>
13
- </div>
14
-
15
- <div class="actions">
16
- <%= f.submit %>
17
- </div>
18
- <%- end -%>
19
-
20
- <%= link_to t('page.show'), checked_item_path(@checked_item) -%> |
21
- <%= link_to t('page.back'), basket_checked_items_path(@checked_item.basket) -%>
@@ -1,32 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.checked_item')) -%></h1>
3
- <div id="content_list">
4
- <p id="notice"><%= notice %></p>
5
-
6
- <div id="checked_item_list">
7
- <%= render 'list' -%>
8
- </div>
9
-
10
- <br />
11
-
12
- <%= render 'checkouts' -%>
13
- </div>
14
- </div>
15
-
16
- <div id="submenu" class="ui-corner-all">
17
- <ul>
18
- <li><%= link_to @basket.user.username, @basket.user -%></li>
19
- </ul>
20
- <ul>
21
- <%- @basket.user.user_group.user_group_has_checkout_types.each do |available_checkout_type| -%>
22
- <li>
23
- <%= available_checkout_type.checkout_type.display_name.localize -%>:
24
- <%= @basket.user.checked_item_count[:"#{available_checkout_type.checkout_type.name}"] -%> / <%= available_checkout_type.checkout_limit -%>
25
- </li>
26
- <%- end -%>
27
- </ul>
28
- <ul>
29
- <li><%= link_to t('activerecord.models.checkin'), checkins_path -%></li>
30
- <li><%= link_to t('activerecord.models.reserve'), user_reserves_path(@basket.user) -%></li>
31
- </ul>
32
- </div>
@@ -1 +0,0 @@
1
- $("#checked_item_list").html("<%= escape_javascript(render('checked_items/list')) %>");
@@ -1,20 +0,0 @@
1
- <h1 class="title"><%= t('page.new', :model => t('activerecord.models.checked_item')) -%></h1>
2
-
3
- <%= form_for(@checked_item, :url => basket_checked_items_path(@basket)) do |f| -%>
4
- <%= f.error_messages -%>
5
- <div class="field">
6
- <%= f.label t('activerecord.models.item') -%><br />
7
- <%= f.text_field :item_id -%>
8
- </div>
9
-
10
- <div class="field">
11
- <%= f.label t('activerecord.models.basket') -%><br />
12
- <%= f.text_field :basket_id -%>
13
- </div>
14
-
15
- <div class="actions">
16
- <%= f.submit %>
17
- </div>
18
- <%- end -%>
19
-
20
- <%= link_to t('page.back'), basket_checked_items_path(@basket) -%>
@@ -1,24 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.showing', :model => t('activerecord.models.checked_item')) -%></h1>
3
- <div id="content_list">
4
- <p id="notice"><%= notice %></p>
5
-
6
- <p>
7
- <strong><%= t('activerecord.models.item') -%>:</strong>
8
- <%= link_to @checked_item.item_identifier, @checked_item.item -%>
9
- </p>
10
-
11
- <p>
12
- <strong><%= t('activerecord.models.basket') -%>:</strong>
13
- <%= link_to @checked_item.basket.id, @checked_item.basket -%>
14
- </p>
15
-
16
- </div>
17
- </div>
18
-
19
- <div id="submenu" class="ui-corner-all">
20
- <ul>
21
- <li><%= link_to t('page.edit'), edit_checked_item_path(@checked_item) -%></li>
22
- <li><%= link_to t('page.back'), basket_checked_items_path(@checked_item.basket) -%></li>
23
- </ul>
24
- </div>
@@ -1,24 +0,0 @@
1
- <%= form_for(@checkin) do |f| %>
2
- <% if @checkin.errors.any? %>
3
- <div id="errorExplanation">
4
- <h2><%= pluralize(@checkin.errors.count, "error") %> prohibited this checkin from being saved:</h2>
5
- <ul>
6
- <% @checkin.errors.full_messages.each do |msg| %>
7
- <li><%= msg %></li>
8
- <% end %>
9
- </ul>
10
- </div>
11
- <% end %>
12
-
13
- <div class="field">
14
- <%= f.label :item_id %><br />
15
- <%= f.text_field :item_id %>
16
- </div>
17
- <div class="field">
18
- <%= f.label :librarian_id %><br />
19
- <%= f.text_field :librarian_id %>
20
- </div>
21
- <div class="actions">
22
- <%= f.submit %>
23
- </div>
24
- <% end %>