hydra-editor 0.0.5 → 0.0.6

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.
Files changed (105) hide show
  1. checksums.yaml +13 -5
  2. data/README.md +1 -1
  3. data/app/views/records/new.html.erb +1 -1
  4. data/lib/hydra_editor/version.rb +1 -1
  5. metadata +25 -225
  6. data/spec/dummy/Gemfile +0 -20
  7. data/spec/dummy/Gemfile.lock +0 -247
  8. data/spec/dummy/README.rdoc +0 -261
  9. data/spec/dummy/Rakefile +0 -7
  10. data/spec/dummy/app/assets/images/blacklight/bg.png +0 -0
  11. data/spec/dummy/app/assets/images/blacklight/border.png +0 -0
  12. data/spec/dummy/app/assets/images/blacklight/bul_sq_gry.gif +0 -0
  13. data/spec/dummy/app/assets/images/blacklight/checkmark.gif +0 -0
  14. data/spec/dummy/app/assets/images/blacklight/logo.png +0 -0
  15. data/spec/dummy/app/assets/images/blacklight/magnifying_glass.gif +0 -0
  16. data/spec/dummy/app/assets/images/blacklight/remove.gif +0 -0
  17. data/spec/dummy/app/assets/images/blacklight/separator.gif +0 -0
  18. data/spec/dummy/app/assets/images/blacklight/start_over.gif +0 -0
  19. data/spec/dummy/app/assets/images/rails.png +0 -0
  20. data/spec/dummy/app/assets/javascripts/application.js +0 -18
  21. data/spec/dummy/app/assets/stylesheets/application.css +0 -13
  22. data/spec/dummy/app/assets/stylesheets/blacklight.css.scss +0 -4
  23. data/spec/dummy/app/controllers/application_controller.rb +0 -10
  24. data/spec/dummy/app/controllers/catalog_controller.rb +0 -165
  25. data/spec/dummy/app/helpers/application_helper.rb +0 -2
  26. data/spec/dummy/app/models/solr_document.rb +0 -33
  27. data/spec/dummy/app/models/user.rb +0 -22
  28. data/spec/dummy/app/views/devise/confirmations/new.html.erb +0 -12
  29. data/spec/dummy/app/views/devise/mailer/confirmation_instructions.html.erb +0 -5
  30. data/spec/dummy/app/views/devise/mailer/reset_password_instructions.html.erb +0 -8
  31. data/spec/dummy/app/views/devise/mailer/unlock_instructions.html.erb +0 -7
  32. data/spec/dummy/app/views/devise/passwords/edit.html.erb +0 -16
  33. data/spec/dummy/app/views/devise/passwords/new.html.erb +0 -12
  34. data/spec/dummy/app/views/devise/registrations/edit.html.erb +0 -29
  35. data/spec/dummy/app/views/devise/registrations/new.html.erb +0 -18
  36. data/spec/dummy/app/views/devise/sessions/new.html.erb +0 -17
  37. data/spec/dummy/app/views/devise/shared/_links.erb +0 -25
  38. data/spec/dummy/app/views/devise/unlocks/new.html.erb +0 -12
  39. data/spec/dummy/app/views/layouts/application.html.erb +0 -14
  40. data/spec/dummy/config.ru +0 -4
  41. data/spec/dummy/config/SolrMarc/config-test.properties +0 -37
  42. data/spec/dummy/config/SolrMarc/config.properties +0 -37
  43. data/spec/dummy/config/SolrMarc/index.properties +0 -97
  44. data/spec/dummy/config/SolrMarc/index_scripts/dewey.bsh +0 -47
  45. data/spec/dummy/config/SolrMarc/index_scripts/format.bsh +0 -126
  46. data/spec/dummy/config/SolrMarc/translation_maps/README_MAPS +0 -1
  47. data/spec/dummy/config/SolrMarc/translation_maps/callnumber_map.properties +0 -407
  48. data/spec/dummy/config/SolrMarc/translation_maps/composition_era_map.properties +0 -56
  49. data/spec/dummy/config/SolrMarc/translation_maps/country_map.properties +0 -379
  50. data/spec/dummy/config/SolrMarc/translation_maps/format_map.properties +0 -50
  51. data/spec/dummy/config/SolrMarc/translation_maps/instrument_map.properties +0 -101
  52. data/spec/dummy/config/SolrMarc/translation_maps/language_map.properties +0 -490
  53. data/spec/dummy/config/application.rb +0 -72
  54. data/spec/dummy/config/boot.rb +0 -6
  55. data/spec/dummy/config/database.yml +0 -25
  56. data/spec/dummy/config/environment.rb +0 -5
  57. data/spec/dummy/config/environments/development.rb +0 -37
  58. data/spec/dummy/config/environments/production.rb +0 -67
  59. data/spec/dummy/config/environments/test.rb +0 -37
  60. data/spec/dummy/config/fedora.yml +0 -14
  61. data/spec/dummy/config/initializers/action_dispatch_http_upload_monkey_patch.rb +0 -12
  62. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  63. data/spec/dummy/config/initializers/devise.rb +0 -246
  64. data/spec/dummy/config/initializers/hydra_config.rb +0 -28
  65. data/spec/dummy/config/initializers/inflections.rb +0 -15
  66. data/spec/dummy/config/initializers/mime_types.rb +0 -12
  67. data/spec/dummy/config/initializers/secret_token.rb +0 -7
  68. data/spec/dummy/config/initializers/session_store.rb +0 -8
  69. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  70. data/spec/dummy/config/jetty.yml +0 -5
  71. data/spec/dummy/config/locales/devise.en.yml +0 -59
  72. data/spec/dummy/config/locales/en.yml +0 -5
  73. data/spec/dummy/config/role_map_cucumber.yml +0 -10
  74. data/spec/dummy/config/role_map_development.yml +0 -12
  75. data/spec/dummy/config/role_map_production.yml +0 -2
  76. data/spec/dummy/config/role_map_test.yml +0 -15
  77. data/spec/dummy/config/routes.rb +0 -66
  78. data/spec/dummy/config/solr.yml +0 -10
  79. data/spec/dummy/db/development.sqlite3 +0 -0
  80. data/spec/dummy/db/migrate/20130618142846_devise_create_users.rb +0 -46
  81. data/spec/dummy/db/migrate/20130618142855_create_searches.rb +0 -16
  82. data/spec/dummy/db/migrate/20130618142856_create_bookmarks.rb +0 -18
  83. data/spec/dummy/db/migrate/20130618142857_remove_editable_fields_from_bookmarks.rb +0 -12
  84. data/spec/dummy/db/migrate/20130618142858_add_user_types_to_bookmarks_searches.rb +0 -16
  85. data/spec/dummy/db/schema.rb +0 -53
  86. data/spec/dummy/db/seeds.rb +0 -7
  87. data/spec/dummy/db/test.sqlite3 +0 -0
  88. data/spec/dummy/doc/README_FOR_APP +0 -2
  89. data/spec/dummy/fedora_conf/conf/development/fedora.fcfg +0 -953
  90. data/spec/dummy/fedora_conf/conf/test/fedora.fcfg +0 -953
  91. data/spec/dummy/lib/generators/test_app_generator.rb +0 -26
  92. data/spec/dummy/log/development.log +0 -78
  93. data/spec/dummy/log/test.log +0 -119
  94. data/spec/dummy/public/404.html +0 -26
  95. data/spec/dummy/public/422.html +0 -26
  96. data/spec/dummy/public/500.html +0 -25
  97. data/spec/dummy/public/favicon.ico +0 -0
  98. data/spec/dummy/public/index.html +0 -241
  99. data/spec/dummy/public/robots.txt +0 -5
  100. data/spec/dummy/script/rails +0 -6
  101. data/spec/dummy/solr_conf/conf/schema.xml +0 -273
  102. data/spec/dummy/solr_conf/conf/solrconfig.xml +0 -167
  103. data/spec/dummy/solr_conf/solr.xml +0 -35
  104. data/spec/dummy/test/performance/browsing_test.rb +0 -12
  105. data/spec/dummy/test/test_helper.rb +0 -13
data/spec/dummy/Rakefile DELETED
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env rake
2
- # Add your own tasks in files placed in lib/tasks ending in .rake,
3
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
4
-
5
- require File.expand_path('../config/application', __FILE__)
6
-
7
- Dummy::Application.load_tasks
Binary file
@@ -1,18 +0,0 @@
1
- // This is a manifest file that'll be compiled into application.js, which will include all the files
2
- // listed below.
3
- //
4
- // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
- // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
- //
7
- // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
- // the compiled file.
9
- //
10
- // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
11
- // GO AFTER THE REQUIRES BELOW.
12
- //
13
- //= require jquery
14
- //= require jquery_ujs
15
- //
16
- // Required by Blacklight
17
- //= require blacklight/blacklight
18
- //= require_tree .
@@ -1,13 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the top of the
9
- * compiled file, but it's generally better to create a new file per style scope.
10
- *
11
- *= require_self
12
- *= require_tree .
13
- */
@@ -1,4 +0,0 @@
1
- @import 'bootstrap';
2
- @import 'bootstrap-responsive';
3
-
4
- @import 'blacklight/blacklight';
@@ -1,10 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- # Adds a few additional behaviors into the application controller
3
- include Blacklight::Controller
4
- # Please be sure to impelement current_user and user_session. Blacklight depends on
5
- # these methods in order to perform user specific actions.
6
-
7
- layout 'blacklight'
8
-
9
- protect_from_forgery
10
- end
@@ -1,165 +0,0 @@
1
- # -*- encoding : utf-8 -*-
2
- require 'blacklight/catalog'
3
-
4
- class CatalogController < ApplicationController
5
-
6
- include Blacklight::Catalog
7
- include Hydra::Controller::ControllerBehavior
8
- # These before_filters apply the hydra access controls
9
- before_filter :enforce_show_permissions, :only=>:show
10
- # This applies appropriate access controls to all solr queries
11
- CatalogController.solr_search_params_logic += [:add_access_controls_to_solr_params]
12
- # This filters out objects that you want to exclude from search results, like FileAssets
13
- CatalogController.solr_search_params_logic += [:exclude_unwanted_models]
14
-
15
-
16
- configure_blacklight do |config|
17
- config.default_solr_params = {
18
- :qt => 'search',
19
- :rows => 10
20
- }
21
-
22
- # solr field configuration for search results/index views
23
- config.index.show_link = 'title_tesim'
24
- config.index.record_display_type = 'has_model_ssim'
25
-
26
- # solr field configuration for document/show views
27
- config.show.html_title = 'title_tesim'
28
- config.show.heading = 'title_tesim'
29
- config.show.display_type = 'has_model_ssim'
30
-
31
- # solr fields that will be treated as facets by the blacklight application
32
- # The ordering of the field names is the order of the display
33
- #
34
- # Setting a limit will trigger Blacklight's 'more' facet values link.
35
- # * If left unset, then all facet values returned by solr will be displayed.
36
- # * If set to an integer, then "f.somefield.facet.limit" will be added to
37
- # solr request, with actual solr request being +1 your configured limit --
38
- # you configure the number of items you actually want _tsimed_ in a page.
39
- # * If set to 'true', then no additional parameters will be sent to solr,
40
- # but any 'sniffed' request limit parameters will be used for paging, with
41
- # paging at requested limit -1. Can sniff from facet.limit or
42
- # f.specific_field.facet.limit solr request params. This 'true' config
43
- # can be used if you set limits in :default_solr_params, or as defaults
44
- # on the solr side in the request handler itself. Request handler defaults
45
- # sniffing requires solr requests to be made with "echoParams=all", for
46
- # app code to actually have it echo'd back to see it.
47
- #
48
- # :show may be set to false if you don't want the facet to be drawn in the
49
- # facet bar
50
- config.add_facet_field solr_name('object_type', :facetable), :label => 'Format'
51
- config.add_facet_field solr_name('pub_date', :facetable), :label => 'Publication Year'
52
- config.add_facet_field solr_name('subject_topic', :facetable), :label => 'Topic', :limit => 20
53
- config.add_facet_field solr_name('language', :facetable), :label => 'Language', :limit => true
54
- config.add_facet_field solr_name('lc1_letter', :facetable), :label => 'Call Number'
55
- config.add_facet_field solr_name('subject_geo', :facetable), :label => 'Region'
56
- config.add_facet_field solr_name('subject_era', :facetable), :label => 'Era'
57
-
58
- # Have BL send all facet field names to Solr, which has been the default
59
- # previously. Simply remove these lines if you'd rather use Solr request
60
- # handler defaults, or have no facets.
61
- config.default_solr_params[:'facet.field'] = config.facet_fields.keys
62
- #use this instead if you don't want to query facets marked :show=>false
63
- #config.default_solr_params[:'facet.field'] = config.facet_fields.select{ |k, v| v[:show] != false}.keys
64
-
65
-
66
- # solr fields to be displayed in the index (search results) view
67
- # The ordering of the field names is the order of the display
68
- config.add_index_field solr_name('title', :stored_searchable, type: :string), :label => 'Title:'
69
- config.add_index_field solr_name('title_vern', :stored_searchable, type: :string), :label => 'Title:'
70
- config.add_index_field solr_name('author', :stored_searchable, type: :string), :label => 'Author:'
71
- config.add_index_field solr_name('author_vern', :stored_searchable, type: :string), :label => 'Author:'
72
- config.add_index_field solr_name('format', :symbol), :label => 'Format:'
73
- config.add_index_field solr_name('language', :stored_searchable, type: :string), :label => 'Language:'
74
- config.add_index_field solr_name('published', :stored_searchable, type: :string), :label => 'Published:'
75
- config.add_index_field solr_name('published_vern', :stored_searchable, type: :string), :label => 'Published:'
76
- config.add_index_field solr_name('lc_callnum', :stored_searchable, type: :string), :label => 'Call number:'
77
-
78
- # solr fields to be displayed in the show (single result) view
79
- # The ordering of the field names is the order of the display
80
- config.add_show_field solr_name('title', :stored_searchable, type: :string), :label => 'Title:'
81
- config.add_show_field solr_name('title_vern', :stored_searchable, type: :string), :label => 'Title:'
82
- config.add_show_field solr_name('subtitle', :stored_searchable, type: :string), :label => 'Subtitle:'
83
- config.add_show_field solr_name('subtitle_vern', :stored_searchable, type: :string), :label => 'Subtitle:'
84
- config.add_show_field solr_name('author', :stored_searchable, type: :string), :label => 'Author:'
85
- config.add_show_field solr_name('author_vern', :stored_searchable, type: :string), :label => 'Author:'
86
- config.add_show_field solr_name('format', :symbol), :label => 'Format:'
87
- config.add_show_field solr_name('url_fulltext_tsim', :stored_searchable, type: :string), :label => 'URL:'
88
- config.add_show_field solr_name('url_suppl_tsim', :stored_searchable, type: :string), :label => 'More Information:'
89
- config.add_show_field solr_name('language', :stored_searchable, type: :string), :label => 'Language:'
90
- config.add_show_field solr_name('published', :stored_searchable, type: :string), :label => 'Published:'
91
- config.add_show_field solr_name('published_vern', :stored_searchable, type: :string), :label => 'Published:'
92
- config.add_show_field solr_name('lc_callnum', :stored_searchable, type: :string), :label => 'Call number:'
93
- config.add_show_field solr_name('isbn', :stored_searchable, type: :string), :label => 'ISBN:'
94
-
95
- # "fielded" search configuration. Used by pulldown among other places.
96
- # For supported keys in hash, see rdoc for Blacklight::SearchFields
97
- #
98
- # Search fields will inherit the :qt solr request handler from
99
- # config[:default_solr_parameters], OR can specify a different one
100
- # with a :qt key/value. Below examples inherit, except for subject
101
- # that specifies the same :qt as default for our own internal
102
- # testing purposes.
103
- #
104
- # The :key is what will be used to identify this BL search field internally,
105
- # as well as in URLs -- so changing it after deployment may break bookmarked
106
- # urls. A display label will be automatically calculated from the :key,
107
- # or can be specified manually to be different.
108
-
109
- # This one uses all the defaults set by the solr request handler. Which
110
- # solr request handler? The one set in config[:default_solr_parameters][:qt],
111
- # since we aren't specifying it otherwise.
112
-
113
- config.add_search_field 'all_fields', :label => 'All Fields'
114
-
115
-
116
- # Now we see how to over-ride Solr request handler defaults, in this
117
- # case for a BL "search field", which is really a dismax aggregate
118
- # of Solr search fields.
119
-
120
- config.add_search_field('title') do |field|
121
- # :solr_local_parameters will be sent using Solr LocalParams
122
- # syntax, as eg {! qf=$title_qf }. This is neccesary to use
123
- # Solr parameter de-referencing like $title_qf.
124
- # See: http://wiki.apache.org/solr/LocalParams
125
- field.solr_local_parameters = {
126
- :qf => '$title_qf',
127
- :pf => '$title_pf'
128
- }
129
- end
130
-
131
- config.add_search_field('author') do |field|
132
- field.solr_local_parameters = {
133
- :qf => '$author_qf',
134
- :pf => '$author_pf'
135
- }
136
- end
137
-
138
- # Specifying a :qt only to show it's possible, and so our internal automated
139
- # tests can test it. In this case it's the same as
140
- # config[:default_solr_parameters][:qt], so isn't actually neccesary.
141
- config.add_search_field('subject') do |field|
142
- field.qt = 'search'
143
- field.solr_local_parameters = {
144
- :qf => '$subject_qf',
145
- :pf => '$subject_pf'
146
- }
147
- end
148
-
149
- # "sort results by" select (pulldown)
150
- # label in pulldown is followed by the name of the SOLR field to sort by and
151
- # whether the sort is ascending or descending (it must be asc or desc
152
- # except in the relevancy case).
153
- config.add_sort_field 'score desc, pub_date_dtsi desc, title_tesi asc', :label => 'relevance'
154
- config.add_sort_field 'pub_date_dtsi desc, title_tesi asc', :label => 'year'
155
- config.add_sort_field 'author_tesi asc, title_tesi asc', :label => 'author'
156
- config.add_sort_field 'title_tesi asc, pub_date_dtsi desc', :label => 'title'
157
-
158
- # If there are more than this many search results, no spelling ("did you
159
- # mean") suggestion is offered.
160
- config.spell_max = 5
161
- end
162
-
163
-
164
-
165
- end
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
@@ -1,33 +0,0 @@
1
- # -*- encoding : utf-8 -*-
2
- class SolrDocument
3
-
4
- include Blacklight::Solr::Document
5
-
6
- # self.unique_key = 'id'
7
-
8
- # The following shows how to setup this blacklight document to display marc documents
9
- extension_parameters[:marc_source_field] = :marc_display
10
- extension_parameters[:marc_format_type] = :marcxml
11
- use_extension( Blacklight::Solr::Document::Marc) do |document|
12
- document.key?( :marc_display )
13
- end
14
-
15
- # Email uses the semantic field mappings below to generate the body of an email.
16
- SolrDocument.use_extension( Blacklight::Solr::Document::Email )
17
-
18
- # SMS uses the semantic field mappings below to generate the body of an SMS email.
19
- SolrDocument.use_extension( Blacklight::Solr::Document::Sms )
20
-
21
- # DublinCore uses the semantic field mappings below to assemble an OAI-compliant Dublin Core document
22
- # Semantic mappings of solr stored fields. Fields may be multi or
23
- # single valued. See Blacklight::Solr::Document::ExtendableClassMethods#field_semantics
24
- # and Blacklight::Solr::Document#to_semantic_values
25
- # Recommendation: Use field names from Dublin Core
26
- use_extension( Blacklight::Solr::Document::DublinCore)
27
- field_semantics.merge!(
28
- :title => "title_display",
29
- :author => "author_display",
30
- :language => "language_facet",
31
- :format => "format"
32
- )
33
- end
@@ -1,22 +0,0 @@
1
- class User < ActiveRecord::Base
2
- # Connects this user object to Hydra behaviors.
3
- include Hydra::User
4
- # Connects this user object to Blacklights Bookmarks.
5
- include Blacklight::User
6
- # Include default devise modules. Others available are:
7
- # :token_authenticatable, :confirmable,
8
- # :lockable, :timeoutable and :omniauthable
9
- devise :database_authenticatable, :registerable,
10
- :recoverable, :rememberable, :trackable, :validatable
11
-
12
- # Setup accessible (or protected) attributes for your model
13
- attr_accessible :email, :password, :password_confirmation, :remember_me
14
- # attr_accessible :title, :body
15
-
16
- # Method added by Blacklight; Blacklight uses #to_s on your
17
- # user class to get a user-displayable login/identifier for
18
- # the account.
19
- def to_s
20
- email
21
- end
22
- end
@@ -1,12 +0,0 @@
1
- <h2>Resend confirmation instructions</h2>
2
-
3
- <%= form_for(resource, :as => resource_name, :url => confirmation_path(resource_name), :html => { :method => :post }) do |f| %>
4
- <%= devise_error_messages! %>
5
-
6
- <div><%= f.label :email %><br />
7
- <%= f.email_field :email, :autofocus => true %></div>
8
-
9
- <div><%= f.submit "Resend confirmation instructions" %></div>
10
- <% end %>
11
-
12
- <%= render "devise/shared/links" %>
@@ -1,5 +0,0 @@
1
- <p>Welcome <%= @email %>!</p>
2
-
3
- <p>You can confirm your account email through the link below:</p>
4
-
5
- <p><%= link_to 'Confirm my account', confirmation_url(@resource, :confirmation_token => @resource.confirmation_token) %></p>
@@ -1,8 +0,0 @@
1
- <p>Hello <%= @resource.email %>!</p>
2
-
3
- <p>Someone has requested a link to change your password. You can do this through the link below.</p>
4
-
5
- <p><%= link_to 'Change my password', edit_password_url(@resource, :reset_password_token => @resource.reset_password_token) %></p>
6
-
7
- <p>If you didn't request this, please ignore this email.</p>
8
- <p>Your password won't change until you access the link above and create a new one.</p>
@@ -1,7 +0,0 @@
1
- <p>Hello <%= @resource.email %>!</p>
2
-
3
- <p>Your account has been locked due to an excessive number of unsuccessful sign in attempts.</p>
4
-
5
- <p>Click the link below to unlock your account:</p>
6
-
7
- <p><%= link_to 'Unlock my account', unlock_url(@resource, :unlock_token => @resource.unlock_token) %></p>
@@ -1,16 +0,0 @@
1
- <h2>Change your password</h2>
2
-
3
- <%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put }) do |f| %>
4
- <%= devise_error_messages! %>
5
- <%= f.hidden_field :reset_password_token %>
6
-
7
- <div><%= f.label :password, "New password" %><br />
8
- <%= f.password_field :password, :autofocus => true %></div>
9
-
10
- <div><%= f.label :password_confirmation, "Confirm new password" %><br />
11
- <%= f.password_field :password_confirmation %></div>
12
-
13
- <div><%= f.submit "Change my password" %></div>
14
- <% end %>
15
-
16
- <%= render "devise/shared/links" %>
@@ -1,12 +0,0 @@
1
- <h2>Forgot your password?</h2>
2
-
3
- <%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post }) do |f| %>
4
- <%= devise_error_messages! %>
5
-
6
- <div><%= f.label :email %><br />
7
- <%= f.email_field :email, :autofocus => true %></div>
8
-
9
- <div><%= f.submit "Send me reset password instructions" %></div>
10
- <% end %>
11
-
12
- <%= render "devise/shared/links" %>
@@ -1,29 +0,0 @@
1
- <h2>Edit <%= resource_name.to_s.humanize %></h2>
2
-
3
- <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %>
4
- <%= devise_error_messages! %>
5
-
6
- <div><%= f.label :email %><br />
7
- <%= f.email_field :email, :autofocus => true %></div>
8
-
9
- <% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
10
- <div>Currently waiting confirmation for: <%= resource.unconfirmed_email %></div>
11
- <% end %>
12
-
13
- <div><%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br />
14
- <%= f.password_field :password, :autocomplete => "off" %></div>
15
-
16
- <div><%= f.label :password_confirmation %><br />
17
- <%= f.password_field :password_confirmation %></div>
18
-
19
- <div><%= f.label :current_password %> <i>(we need your current password to confirm your changes)</i><br />
20
- <%= f.password_field :current_password %></div>
21
-
22
- <div><%= f.submit "Update" %></div>
23
- <% end %>
24
-
25
- <h3>Cancel my account</h3>
26
-
27
- <p>Unhappy? <%= button_to "Cancel my account", registration_path(resource_name), :data => { :confirm => "Are you sure?" }, :method => :delete %></p>
28
-
29
- <%= link_to "Back", :back %>
@@ -1,18 +0,0 @@
1
- <h2>Sign up</h2>
2
-
3
- <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %>
4
- <%= devise_error_messages! %>
5
-
6
- <div><%= f.label :email %><br />
7
- <%= f.email_field :email, :autofocus => true %></div>
8
-
9
- <div><%= f.label :password %><br />
10
- <%= f.password_field :password %></div>
11
-
12
- <div><%= f.label :password_confirmation %><br />
13
- <%= f.password_field :password_confirmation %></div>
14
-
15
- <div><%= f.submit "Sign up" %></div>
16
- <% end %>
17
-
18
- <%= render "devise/shared/links" %>
@@ -1,17 +0,0 @@
1
- <h2>Sign in</h2>
2
-
3
- <%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
4
- <div><%= f.label :email %><br />
5
- <%= f.email_field :email, :autofocus => true %></div>
6
-
7
- <div><%= f.label :password %><br />
8
- <%= f.password_field :password %></div>
9
-
10
- <% if devise_mapping.rememberable? -%>
11
- <div><%= f.check_box :remember_me %> <%= f.label :remember_me %></div>
12
- <% end -%>
13
-
14
- <div><%= f.submit "Sign in" %></div>
15
- <% end %>
16
-
17
- <%= render "devise/shared/links" %>