thecore_ui_rails_admin 2.1.4 → 2.1.5
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 +4 -4
- data/app/assets/javascripts/rails_admin/custom/ui.js +0 -14
- data/app/assets/stylesheets/animate.css +3458 -0
- data/app/assets/stylesheets/devise.scss +248 -0
- data/app/assets/stylesheets/mixins.scss +18 -0
- data/app/assets/stylesheets/rails_admin/{custom/flashing.scss → flashing.scss} +0 -0
- data/app/assets/stylesheets/rails_admin/{custom/theming.scss → theming.scss} +30 -16
- data/app/assets/stylesheets/rails_admin/{custom/togglable-sidebar.scss → togglable-sidebar.scss} +1 -27
- data/app/assets/stylesheets/thecore_rails_admin.scss +32 -0
- data/app/controllers/pages_controller.rb +43 -0
- data/config/initializers/rails_admin.rb +0 -4
- data/config/initializers/thecore_ui_rails_admin_app_configs.rb +12 -0
- data/lib/concerns/thecore_rails_admin_bulk_delete_concern.rb +16 -0
- data/lib/concerns/thecore_rails_admin_export_concern.rb +16 -0
- data/lib/concerns/thecore_ui_rails_admin_user.rb +94 -0
- data/lib/thecore_ui_rails_admin.rb +7 -2
- data/lib/thecore_ui_rails_admin/version.rb +1 -1
- metadata +56 -51
- data/app/assets/javascripts/rails_admin/custom/ckeditor_ajax.js.coffee +0 -7
- data/app/views/contact_mailer/contact_message.html.erb +0 -5
- data/app/views/devise/confirmations/new.html.erb +0 -16
- data/app/views/devise/mailer/confirmation_instructions.html.erb +0 -5
- data/app/views/devise/mailer/password_change.html.erb +0 -5
- data/app/views/devise/mailer/reset_password_instructions.html.erb +0 -8
- data/app/views/devise/mailer/unlock_instructions.html.erb +0 -7
- data/app/views/devise/menu/_login_items.html.erb +0 -7
- data/app/views/devise/passwords/edit.html.erb +0 -25
- data/app/views/devise/passwords/new.html.erb +0 -18
- data/app/views/devise/registrations/edit.html.erb +0 -45
- data/app/views/devise/registrations/new.html.erb +0 -29
- data/app/views/devise/sessions/new.html.erb +0 -28
- data/app/views/devise/shared/_links.html.erb +0 -25
- data/app/views/devise/unlocks/new.html.erb +0 -16
- data/app/views/home/index.html.erb +0 -5
- data/app/views/kaminari/_first_page.html.erb +0 -3
- data/app/views/kaminari/_gap.html.erb +0 -3
- data/app/views/kaminari/_last_page.html.erb +0 -3
- data/app/views/kaminari/_next_page.html.erb +0 -3
- data/app/views/kaminari/_page.html.erb +0 -9
- data/app/views/kaminari/_paginator.html.erb +0 -15
- data/app/views/kaminari/_prev_page.html.erb +0 -3
- data/app/views/layouts/_footer.html.erb +0 -3
- data/app/views/layouts/_messages.html.erb +0 -9
- data/app/views/layouts/_navigation.html.erb +0 -20
- data/app/views/layouts/_navigation_links.html.erb +0 -7
- data/app/views/layouts/mailer.html.erb +0 -6
- data/app/views/layouts/mailer.text.erb +0 -1
- data/app/views/layouts/thecore.html.erb +0 -42
- data/app/views/pages/contact.html.erb +0 -54
- data/app/views/pages/home.html.erb +0 -2
- data/app/views/pages/inside.html.erb +0 -4
- data/app/views/shared/_flash.html.erb +0 -10
- data/app/views/users/confirmations/new.html.erb +0 -16
- data/app/views/users/mailer/confirmation_instructions.html.erb +0 -5
- data/app/views/users/mailer/password_change.html.erb +0 -3
- data/app/views/users/mailer/reset_password_instructions.html.erb +0 -8
- data/app/views/users/mailer/unlock_instructions.html.erb +0 -7
- data/app/views/users/passwords/edit.html.erb +0 -19
- data/app/views/users/passwords/new.html.erb +0 -15
- data/app/views/users/registrations/edit.html.erb +0 -27
- data/app/views/users/registrations/new.html.erb +0 -17
- data/app/views/users/sessions/new.html.erb +0 -37
- data/app/views/users/shared/_links.html.erb +0 -26
- data/app/views/users/unlocks/new.html.erb +0 -16
@@ -0,0 +1,12 @@
|
|
1
|
+
Rails.application.configure do
|
2
|
+
|
3
|
+
config.assets.precompile += %w( thecore_rails_admin.css )
|
4
|
+
|
5
|
+
puts "ASSETS PRECOMPILE: #{config.assets.precompile.inspect}"
|
6
|
+
|
7
|
+
config.after_initialize do
|
8
|
+
RailsAdmin::Config::Actions::Export.send(:include, ExportConcern)
|
9
|
+
RailsAdmin::Config::Actions::BulkDelete.send(:include, BulkDeleteConcern)
|
10
|
+
User.send(:include, ThecoreUiRailsAdminUser)
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'active_support/concern'
|
2
|
+
|
3
|
+
module BulkDeleteConcern
|
4
|
+
extend ActiveSupport::Concern
|
5
|
+
included do
|
6
|
+
# Should the action be visible
|
7
|
+
# Edit By taris, it shows the button only if there are records displayed
|
8
|
+
register_instance_option :visible? do
|
9
|
+
# If not in index, then return true,
|
10
|
+
# otherwise it wont' be added to the list
|
11
|
+
# of all Actions during rails initialization
|
12
|
+
# In index, instead, I show it only if there are records in the current view
|
13
|
+
bindings[:controller].action_name == "index" ? (authorized? && !bindings[:controller].instance_variable_get("@objects").blank?) : true
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'active_support/concern'
|
2
|
+
|
3
|
+
module ExportConcern
|
4
|
+
extend ActiveSupport::Concern
|
5
|
+
included do
|
6
|
+
# Should the action be visible
|
7
|
+
# Edit By taris, it shows the button only if there are records displayed
|
8
|
+
register_instance_option :visible? do
|
9
|
+
# If not in index, then return true,
|
10
|
+
# otherwise it wont' be added to the list
|
11
|
+
# of all Actions during rails initialization
|
12
|
+
# In index, instead, I show it only if there are records in the current view
|
13
|
+
bindings[:controller].action_name == "index" ? (authorized? && !bindings[:controller].instance_variable_get("@objects").blank?) : true
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,94 @@
|
|
1
|
+
require 'active_support/concern'
|
2
|
+
|
3
|
+
module ThecoreUiRailsAdminUser
|
4
|
+
extend ActiveSupport::Concern
|
5
|
+
|
6
|
+
included do
|
7
|
+
RailsAdmin.config do |config|
|
8
|
+
config.model self.name.underscore.capitalize.constantize do
|
9
|
+
# rails_admin do
|
10
|
+
navigation_label I18n.t("admin.settings.label")
|
11
|
+
navigation_icon 'fa fa-user-circle'
|
12
|
+
desc I18n.t("activerecord.descriptions.user")
|
13
|
+
|
14
|
+
weight 1000
|
15
|
+
# Field present Everywhere
|
16
|
+
field :email do
|
17
|
+
required true
|
18
|
+
end
|
19
|
+
field :username do
|
20
|
+
required true
|
21
|
+
end
|
22
|
+
field :admin do
|
23
|
+
visible do
|
24
|
+
bindings[:view].current_user.admin? && bindings[:view].current_user.id != bindings[:object].id
|
25
|
+
end
|
26
|
+
end
|
27
|
+
# field :locked do
|
28
|
+
# visible do
|
29
|
+
# bindings[:view].current_user.admin? && bindings[:view].current_user.id != bindings[:object].id
|
30
|
+
# end
|
31
|
+
# end
|
32
|
+
# field :roles, :enum do
|
33
|
+
# visible !ROLES.blank?
|
34
|
+
# pretty_value do # used in list view columns and show views, defaults to formatted_value for non-association fields
|
35
|
+
# begin
|
36
|
+
# value.map { |v| bindings[:object].roles_enum.rassoc(v)[0] rescue nil }.compact.join ", "
|
37
|
+
# rescue
|
38
|
+
# I18n.t "roles.#{ROLES[value.to_i - 1]}"
|
39
|
+
# end
|
40
|
+
# end
|
41
|
+
# export_value do
|
42
|
+
# begin
|
43
|
+
# value.map { |v| bindings[:object].roles_enum.rassoc(v)[0] rescue nil }.compact.join ", " # used in exports, where no html/data is allowed
|
44
|
+
# rescue
|
45
|
+
# I18n.t "roles.#{ROLES[value.to_i - 1]}"
|
46
|
+
# end
|
47
|
+
# end
|
48
|
+
# queryable false
|
49
|
+
# end
|
50
|
+
# include UserRailsAdminConcern
|
51
|
+
|
52
|
+
# Fields only in lists and forms
|
53
|
+
list do
|
54
|
+
field :created_at
|
55
|
+
configure :email do
|
56
|
+
visible false
|
57
|
+
end
|
58
|
+
exclude_fields :lock_version
|
59
|
+
field :authentication_token
|
60
|
+
# include UserRailsAdminListConcern
|
61
|
+
end
|
62
|
+
show do
|
63
|
+
#exclude_fields :id
|
64
|
+
exclude_fields :lock_version
|
65
|
+
end
|
66
|
+
create do
|
67
|
+
field :password do
|
68
|
+
required true
|
69
|
+
end
|
70
|
+
field :password_confirmation do
|
71
|
+
required true
|
72
|
+
end
|
73
|
+
field :lock_version, :hidden do
|
74
|
+
visible true
|
75
|
+
end
|
76
|
+
# include UserRailsAdminCreateConcern
|
77
|
+
end
|
78
|
+
edit do
|
79
|
+
field :password do
|
80
|
+
required false
|
81
|
+
end
|
82
|
+
field :password_confirmation do
|
83
|
+
required false
|
84
|
+
end
|
85
|
+
|
86
|
+
field :lock_version, :hidden do
|
87
|
+
visible true
|
88
|
+
end
|
89
|
+
# include UserRailsAdminEditConcern
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
@@ -1,5 +1,3 @@
|
|
1
|
-
require "thecore_ui_rails_admin/engine"
|
2
|
-
|
3
1
|
require 'thecore_ui_commons'
|
4
2
|
# Rails Admin
|
5
3
|
ENV['RAILS_ADMIN_THEME'] ||= 'rollincode'
|
@@ -9,6 +7,13 @@ require 'rails_admin-i18n'
|
|
9
7
|
require 'rails_admin_toggleable'
|
10
8
|
# Rails Admin Buildups
|
11
9
|
require 'jquery-ui-rails'
|
10
|
+
require 'bootstrap-sass'
|
11
|
+
|
12
|
+
require 'concerns/thecore_ui_rails_admin_user'
|
13
|
+
require 'concerns/thecore_rails_admin_export_concern'
|
14
|
+
require 'concerns/thecore_rails_admin_bulk_delete_concern'
|
15
|
+
|
16
|
+
require "thecore_ui_rails_admin/engine"
|
12
17
|
|
13
18
|
module ThecoreUiRailsAdmin
|
14
19
|
# Your code goes here...
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thecore_ui_rails_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriele Tassoni
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thecore_ui_commons
|
@@ -24,6 +24,48 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '2.1'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bootstrap-sass
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.4'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.4'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: sassc-rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: coffee-rails
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '5.0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '5.0'
|
27
69
|
- !ruby/object:Gem::Dependency
|
28
70
|
name: rails_admin_rollincode
|
29
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,70 +148,30 @@ files:
|
|
106
148
|
- README.md
|
107
149
|
- Rakefile
|
108
150
|
- app/assets/config/thecore_ui_rails_admin_manifest.js
|
109
|
-
- app/assets/javascripts/rails_admin/custom/ckeditor_ajax.js.coffee
|
110
151
|
- app/assets/javascripts/rails_admin/custom/timer.js
|
111
152
|
- app/assets/javascripts/rails_admin/custom/ui.js
|
112
153
|
- app/assets/javascripts/rails_admin/ra.widgets.coffee
|
113
|
-
- app/assets/stylesheets/
|
114
|
-
- app/assets/stylesheets/
|
115
|
-
- app/assets/stylesheets/
|
116
|
-
- app/
|
117
|
-
- app/
|
118
|
-
- app/
|
119
|
-
- app/
|
120
|
-
- app/
|
121
|
-
- app/views/devise/mailer/unlock_instructions.html.erb
|
122
|
-
- app/views/devise/menu/_login_items.html.erb
|
123
|
-
- app/views/devise/passwords/edit.html.erb
|
124
|
-
- app/views/devise/passwords/new.html.erb
|
125
|
-
- app/views/devise/registrations/edit.html.erb
|
126
|
-
- app/views/devise/registrations/new.html.erb
|
127
|
-
- app/views/devise/sessions/new.html.erb
|
128
|
-
- app/views/devise/shared/_links.html.erb
|
129
|
-
- app/views/devise/unlocks/new.html.erb
|
130
|
-
- app/views/home/index.html.erb
|
131
|
-
- app/views/kaminari/_first_page.html.erb
|
132
|
-
- app/views/kaminari/_gap.html.erb
|
133
|
-
- app/views/kaminari/_last_page.html.erb
|
134
|
-
- app/views/kaminari/_next_page.html.erb
|
135
|
-
- app/views/kaminari/_page.html.erb
|
136
|
-
- app/views/kaminari/_paginator.html.erb
|
137
|
-
- app/views/kaminari/_prev_page.html.erb
|
138
|
-
- app/views/layouts/_footer.html.erb
|
139
|
-
- app/views/layouts/_messages.html.erb
|
140
|
-
- app/views/layouts/_navigation.html.erb
|
141
|
-
- app/views/layouts/_navigation_links.html.erb
|
142
|
-
- app/views/layouts/mailer.html.erb
|
143
|
-
- app/views/layouts/mailer.text.erb
|
154
|
+
- app/assets/stylesheets/animate.css
|
155
|
+
- app/assets/stylesheets/devise.scss
|
156
|
+
- app/assets/stylesheets/mixins.scss
|
157
|
+
- app/assets/stylesheets/rails_admin/flashing.scss
|
158
|
+
- app/assets/stylesheets/rails_admin/theming.scss
|
159
|
+
- app/assets/stylesheets/rails_admin/togglable-sidebar.scss
|
160
|
+
- app/assets/stylesheets/thecore_rails_admin.scss
|
161
|
+
- app/controllers/pages_controller.rb
|
144
162
|
- app/views/layouts/rails_admin/_navigation.html.haml
|
145
163
|
- app/views/layouts/rails_admin/_secondary_navigation.html.haml
|
146
164
|
- app/views/layouts/rails_admin/_sidebar_navigation.html.haml
|
147
165
|
- app/views/layouts/rails_admin/_user_navigation.html.haml
|
148
166
|
- app/views/layouts/rails_admin/application.html.haml
|
149
167
|
- app/views/layouts/rails_admin/pjax.html.haml
|
150
|
-
- app/views/layouts/thecore.html.erb
|
151
|
-
- app/views/pages/contact.html.erb
|
152
|
-
- app/views/pages/home.html.erb
|
153
|
-
- app/views/pages/inside.html.erb
|
154
168
|
- app/views/rails_admin/main/_card.html.haml
|
155
169
|
- app/views/rails_admin/main/_modal_interaction.html.erb
|
156
170
|
- app/views/rails_admin/main/dashboard.html.haml
|
157
171
|
- app/views/rails_admin/main/index.html.haml
|
158
|
-
- app/views/shared/_flash.html.erb
|
159
|
-
- app/views/users/confirmations/new.html.erb
|
160
|
-
- app/views/users/mailer/confirmation_instructions.html.erb
|
161
|
-
- app/views/users/mailer/password_change.html.erb
|
162
|
-
- app/views/users/mailer/reset_password_instructions.html.erb
|
163
|
-
- app/views/users/mailer/unlock_instructions.html.erb
|
164
|
-
- app/views/users/passwords/edit.html.erb
|
165
|
-
- app/views/users/passwords/new.html.erb
|
166
|
-
- app/views/users/registrations/edit.html.erb
|
167
|
-
- app/views/users/registrations/new.html.erb
|
168
|
-
- app/views/users/sessions/new.html.erb
|
169
|
-
- app/views/users/shared/_links.html.erb
|
170
|
-
- app/views/users/unlocks/new.html.erb
|
171
172
|
- config/initializers/rails_admin.rb
|
172
173
|
- config/initializers/thecore_concern.rb
|
174
|
+
- config/initializers/thecore_ui_rails_admin_app_configs.rb
|
173
175
|
- config/locales/en.index_cards.custom.yml
|
174
176
|
- config/locales/en.main.yml
|
175
177
|
- config/locales/en.rails_admin.yml
|
@@ -179,6 +181,9 @@ files:
|
|
179
181
|
- config/locales/it.rails_admin.yml
|
180
182
|
- config/locales/it.rollincode.yml
|
181
183
|
- config/routes.rb
|
184
|
+
- lib/concerns/thecore_rails_admin_bulk_delete_concern.rb
|
185
|
+
- lib/concerns/thecore_rails_admin_export_concern.rb
|
186
|
+
- lib/concerns/thecore_ui_rails_admin_user.rb
|
182
187
|
- lib/tasks/thecore_ui_rails_admin_tasks.rake
|
183
188
|
- lib/thecore_ui_rails_admin.rb
|
184
189
|
- lib/thecore_ui_rails_admin/engine.rb
|
@@ -1,16 +0,0 @@
|
|
1
|
-
<h2><%=t("devise.confirmations.new.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 class="field">
|
7
|
-
<%= f.label :email %><br />
|
8
|
-
<%= f.email_field :email, autofocus: true, value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email) %>
|
9
|
-
</div>
|
10
|
-
|
11
|
-
<div class="actions">
|
12
|
-
<%= f.submit t("devise.confirmations.new.resend_confirmation_instructions") %>
|
13
|
-
|
14
|
-
<%= render "devise/shared/links" %>
|
15
|
-
</div>
|
16
|
-
<% end %>
|
@@ -1,5 +0,0 @@
|
|
1
|
-
<p><%=t "devise.mailer.confirmation_instructions.greeting", recipient: @email %></p>
|
2
|
-
|
3
|
-
<p><%=t "devise.mailer.confirmation_instructions.instruction"%></p>
|
4
|
-
|
5
|
-
<p><%= link_to t("devise.mailer.confirmation_instructions.action"), confirmation_url(@resource, confirmation_token: @token) %></p>
|
@@ -1,8 +0,0 @@
|
|
1
|
-
<p><%=t "devise.mailer.reset_password_instructions.greeting", recipient: @resource.email %></p>
|
2
|
-
|
3
|
-
<p><%=t "devise.mailer.reset_password_instructions.instruction"%></p>
|
4
|
-
|
5
|
-
<p><%= link_to t("devise.mailer.reset_password_instructions.action"), edit_password_url(@resource, reset_password_token: @token) %></p>
|
6
|
-
|
7
|
-
<p><%=t "devise.mailer.reset_password_instructions.instruction_2"%></p>
|
8
|
-
<p><%=t "devise.mailer.reset_password_instructions.instruction_3"%></p>
|
@@ -1,7 +0,0 @@
|
|
1
|
-
<p><%=t "devise.mailer.unlock_instructions.greeting", recipient: @resource.email %></p>
|
2
|
-
|
3
|
-
<p><%=t "devise.mailer.unlock_instructions.message" %></p>
|
4
|
-
|
5
|
-
<p><%=t "devise.mailer.unlock_instructions.instruction" %></p>
|
6
|
-
|
7
|
-
<p><%= link_to t("devise.mailer.unlock_instructions.action"), unlock_url(@resource, unlock_token: @token) %></p>
|
@@ -1,25 +0,0 @@
|
|
1
|
-
<div class="col-md-4 col-md-offset-4">
|
2
|
-
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %>
|
3
|
-
<%= devise_error_messages! %>
|
4
|
-
<%= f.hidden_field :reset_password_token %>
|
5
|
-
|
6
|
-
<div class="field">
|
7
|
-
<%= f.label :password, t("devise.passwords.edit.new_password") %><br />
|
8
|
-
<% if @minimum_password_length %>
|
9
|
-
<em>(<%= @minimum_password_length %> characters minimum)</em><br />
|
10
|
-
<% end %>
|
11
|
-
<%= f.password_field :password, autofocus: true, autocomplete: "off", :class => "form-control" %>
|
12
|
-
</div>
|
13
|
-
|
14
|
-
<div class="field">
|
15
|
-
<%= f.label :password_confirmation, "Confirm new password" %><br />
|
16
|
-
<%= f.password_field :password_confirmation, autocomplete: "off", :class => "form-control" %>
|
17
|
-
</div>
|
18
|
-
|
19
|
-
<div class="actions">
|
20
|
-
<%= f.submit t("devise.passwords.edit.change_my_password"), :class => "btn btn-warning" %>
|
21
|
-
|
22
|
-
<%= render "devise/shared/links" %>
|
23
|
-
</div>
|
24
|
-
<% end %>
|
25
|
-
</div>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<div class="col-md-4 col-md-offset-4">
|
2
|
-
<h2><%=t("devise.shared.links.forgot_your_password")%></h2>
|
3
|
-
|
4
|
-
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %>
|
5
|
-
<%= devise_error_messages! %>
|
6
|
-
|
7
|
-
<div class="field">
|
8
|
-
<%= f.label :username %><br />
|
9
|
-
<%= f.email_field :username, autofocus: true, :class => "form-control" %>
|
10
|
-
</div>
|
11
|
-
|
12
|
-
<div class="actions">
|
13
|
-
<%= f.submit t("devise.confirmations.new.resend_confirmation_instructions"), :class => "btn btn-warning" %>
|
14
|
-
|
15
|
-
<%= render "devise/shared/links" %>
|
16
|
-
</div>
|
17
|
-
<% end %>
|
18
|
-
</div>
|
@@ -1,45 +0,0 @@
|
|
1
|
-
<div class="col-md-4 col-md-offset-4">
|
2
|
-
<h2><%=t("devise.registrations.edit.title", resource: resource_name.to_s.humanize)%></h2>
|
3
|
-
|
4
|
-
<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
|
5
|
-
<%= devise_error_messages! %>
|
6
|
-
|
7
|
-
<div class="field">
|
8
|
-
<%= f.label :username %><br />
|
9
|
-
<%= f.email_field :username, autofocus: true, :class => "form-control" %>
|
10
|
-
</div>
|
11
|
-
|
12
|
-
<% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
|
13
|
-
<div><%=t("devise.registrations.edit.currently_waiting_confirmation_for_email", {resource: resource.unconfirmed_email})%></div>
|
14
|
-
<% end %>
|
15
|
-
|
16
|
-
<div class="field">
|
17
|
-
<%= f.label :password %> <i><%=t("devise.shared.descriptions.leave_blank")%></i><br />
|
18
|
-
<%= f.password_field :password, autocomplete: "off", :class => "form-control" %>
|
19
|
-
<% if @minimum_password_length %>
|
20
|
-
<br />
|
21
|
-
<em><%=t "devise.validations.minimum_length", length: @minimum_password_length %></em>
|
22
|
-
<% end %>
|
23
|
-
</div>
|
24
|
-
|
25
|
-
<div class="field">
|
26
|
-
<%= f.label :password_confirmation %><br />
|
27
|
-
<%= f.password_field :password_confirmation, autocomplete: "off", :class => "form-control" %>
|
28
|
-
</div>
|
29
|
-
|
30
|
-
<div class="field">
|
31
|
-
<%= f.label :current_password %> <i><%=t("devise.shared.descriptions.current_password_needed")%></i><br />
|
32
|
-
<%= f.password_field :current_password, autocomplete: "off", :class => "form-control" %>
|
33
|
-
</div>
|
34
|
-
|
35
|
-
<div class="actions">
|
36
|
-
<%= f.submit t("devise.registrations.edit.update"), :class => "btn btn-warning" %>
|
37
|
-
</div>
|
38
|
-
<% end %>
|
39
|
-
|
40
|
-
<h3><%=t("devise.registrations.edit.cancel_my_account")%></h3>
|
41
|
-
|
42
|
-
<p><%=t("devise.registrations.edit.unhappy")%> <%= button_to t("devise.registrations.edit.cancel_my_account"), registration_path(resource_name), data: { confirm: t("devise.registrations.edit.are_you_sure") }, method: :delete %></p>
|
43
|
-
|
44
|
-
<%= link_to t("devise.shared.links.back"), :back %>
|
45
|
-
</div>
|