aureus 1.3.1 → 2.1.0
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 +7 -0
- data/.gitignore +4 -1
- data/Gemfile +9 -8
- data/Gemfile.lock +105 -104
- data/README.md +80 -0
- data/Rakefile +3 -16
- data/app/assets/javascripts/aureus/index.js +78 -20
- data/app/assets/stylesheets/aureus/index.scss +3 -35
- data/app/assets/stylesheets/aureus/skin/default.scss +52 -0
- data/app/assets/stylesheets/aureus/theme.scss +7 -0
- data/app/assets/stylesheets/aureus/theme/base.scss +19 -0
- data/app/assets/stylesheets/aureus/theme/content.scss +65 -0
- data/app/assets/stylesheets/aureus/{form.scss → theme/form.scss} +27 -27
- data/app/assets/stylesheets/aureus/theme/messages.scss +16 -0
- data/app/assets/stylesheets/aureus/theme/navigation.scss +42 -0
- data/app/assets/stylesheets/aureus/theme/table.scss +121 -0
- data/app/assets/stylesheets/aureus/theme/toolbar.scss +80 -0
- data/aureus.gemspec +21 -12
- data/config.ru +10 -0
- data/lib/aureus.rb +22 -18
- data/lib/aureus/components/box.rb +58 -0
- data/lib/aureus/components/content.rb +19 -0
- data/lib/aureus/components/data_table.rb +169 -0
- data/lib/aureus/components/listing.rb +43 -0
- data/lib/aureus/components/messages.rb +27 -0
- data/lib/aureus/components/navigation.rb +48 -0
- data/lib/aureus/components/row.rb +69 -0
- data/lib/aureus/components/simple_map.rb +21 -0
- data/lib/aureus/components/toolbar.rb +124 -0
- data/lib/aureus/engine.rb +8 -2
- data/lib/aureus/helper.rb +56 -55
- data/lib/aureus/renderable.rb +4 -12
- data/lib/aureus/version.rb +2 -2
- data/lib/generators/aureus/devise_i18n/devise_i18n_generator.rb +17 -12
- data/{config → lib/generators/aureus/devise_i18n}/locales/devise_base.de.yml +0 -0
- data/{config → lib/generators/aureus/devise_i18n}/locales/devise_base.en.yml +1 -1
- data/{config → lib/generators/aureus/devise_i18n}/locales/devise_mail.de.yml +1 -1
- data/{config → lib/generators/aureus/devise_i18n}/locales/devise_mail.en.yml +1 -1
- data/{config → lib/generators/aureus/devise_i18n}/locales/devise_ui.de.yml +0 -0
- data/{config → lib/generators/aureus/devise_i18n}/locales/devise_ui.en.yml +0 -0
- data/lib/generators/aureus/devise_invitable_i18n/devise_invitable_i18n_generator.rb +25 -0
- data/lib/generators/aureus/devise_invitable_i18n/locales/devise_invitable_base.de.yml +11 -0
- data/lib/generators/aureus/devise_invitable_i18n/locales/devise_invitable_base.en.yml +11 -0
- data/lib/generators/aureus/devise_invitable_i18n/locales/devise_invitable_mail.de.yml +9 -0
- data/lib/generators/aureus/devise_invitable_i18n/locales/devise_invitable_mail.en.yml +9 -0
- data/lib/generators/aureus/devise_invitable_i18n/locales/devise_invitable_ui.de.yml +12 -0
- data/lib/generators/aureus/devise_invitable_i18n/locales/devise_invitable_ui.en.yml +12 -0
- data/lib/generators/aureus/devise_invitable_views/devise_invitable_views_generator.rb +23 -0
- data/lib/generators/aureus/devise_invitable_views/templates/devise/invitations/edit.html.haml +9 -0
- data/lib/generators/aureus/devise_invitable_views/templates/devise/invitations/new.html.haml +8 -0
- data/lib/generators/aureus/devise_invitable_views/templates/devise/mailer/invitation_instructions.html.haml +5 -0
- data/lib/generators/aureus/devise_views/devise_views_generator.rb +17 -15
- data/lib/generators/aureus/devise_views/templates/devise/confirmations/new.html.haml +5 -5
- data/lib/generators/aureus/devise_views/templates/devise/mailer/confirmation_instructions.html.haml +3 -3
- data/lib/generators/aureus/devise_views/templates/devise/mailer/reset_password_instructions.html.haml +5 -5
- data/lib/generators/aureus/devise_views/templates/devise/mailer/unlock_instructions.html.haml +4 -4
- data/lib/generators/aureus/devise_views/templates/devise/passwords/edit.html.haml +7 -7
- data/lib/generators/aureus/devise_views/templates/devise/passwords/new.html.haml +5 -5
- data/lib/generators/aureus/devise_views/templates/devise/registrations/edit.html.haml +9 -9
- data/lib/generators/aureus/devise_views/templates/devise/registrations/new.html.haml +7 -7
- data/lib/generators/aureus/devise_views/templates/devise/sessions/new.html.haml +7 -7
- data/lib/generators/aureus/devise_views/templates/devise/shared/_links.html.haml +6 -6
- data/lib/generators/aureus/devise_views/templates/devise/unlocks/new.html.haml +5 -5
- data/lib/generators/aureus/layout/layout_generator.rb +10 -10
- data/lib/generators/aureus/layout/templates/layout.html.haml +8 -8
- data/lib/generators/aureus/views/templates/views/_form.html.haml +3 -3
- data/lib/generators/aureus/views/templates/views/_item.html.haml +2 -2
- data/lib/generators/aureus/views/templates/views/_list.html.haml +8 -8
- data/lib/generators/aureus/views/templates/views/edit.html.haml +4 -4
- data/lib/generators/aureus/views/templates/views/index.html.haml +3 -3
- data/lib/generators/aureus/views/templates/views/new.html.haml +4 -4
- data/lib/generators/aureus/views/templates/views/show.html.haml +4 -4
- data/lib/generators/aureus/views/views_generator.rb +70 -68
- data/spec/controllers/all_spec.rb +19 -0
- data/spec/internal/app/assets/javascripts/application.js +9 -0
- data/spec/internal/app/assets/stylesheets/application.scss +5 -0
- data/spec/internal/app/controllers/all_controller.rb +14 -0
- data/spec/internal/app/controllers/resources_controller.rb +2 -0
- data/spec/{lib/helper → internal/app/models}/resource.rb +0 -0
- data/spec/internal/app/views/all/centered.html.haml +5 -0
- data/spec/internal/app/views/all/index.html.haml +39 -0
- data/spec/internal/app/views/layouts/application.html.haml +24 -0
- data/spec/internal/app/views/layouts/naked.html.haml +10 -0
- data/spec/internal/config/database.yml +3 -0
- data/spec/internal/config/routes.rb +5 -0
- data/spec/internal/db/schema.rb +10 -0
- data/spec/internal/log/.gitignore +1 -0
- data/spec/internal/public/favicon.ico +0 -0
- data/spec/lib/generators/devise_i18n_spec.rb +19 -0
- data/spec/lib/generators/devise_invitable_i18n_spec.rb +19 -0
- data/spec/lib/generators/devise_invitable_views_spec.rb +19 -0
- data/spec/lib/generators/devise_views_spec.rb +25 -0
- data/spec/lib/generators/layout_spec.rb +17 -0
- data/spec/lib/generators/views_spec.rb +26 -0
- data/spec/requests/all_spec.rb +12 -0
- data/spec/spec_helper.rb +15 -0
- metadata +219 -78
- data/.rspec +0 -2
- data/Guardfile +0 -4
- data/Readme.md +0 -370
- data/TODO.md +0 -11
- data/app/assets/images/aureus/background.png +0 -0
- data/app/assets/images/aureus/topbar.png +0 -0
- data/app/assets/javascripts/aureus/defaults.js +0 -30
- data/app/assets/javascripts/aureus/extensions.js +0 -42
- data/app/assets/javascripts/aureus/functions.js +0 -67
- data/app/assets/javascripts/aureus/plugins/jquery-calendrical.js +0 -508
- data/app/assets/javascripts/aureus/plugins/jquery-datatables.js +0 -11838
- data/app/assets/javascripts/aureus/plugins/jquery-qtip.js +0 -15
- data/app/assets/stylesheets/aureus/base.scss +0 -48
- data/app/assets/stylesheets/aureus/content.scss +0 -100
- data/app/assets/stylesheets/aureus/mixins.scss +0 -43
- data/app/assets/stylesheets/aureus/navigation.scss +0 -43
- data/app/assets/stylesheets/aureus/reset.scss +0 -50
- data/app/assets/stylesheets/aureus/table.scss +0 -153
- data/app/assets/stylesheets/aureus/topbar.scss +0 -89
- data/app/assets/stylesheets/aureus/ui.scss +0 -98
- data/lib/aureus/box.rb +0 -54
- data/lib/aureus/content.rb +0 -15
- data/lib/aureus/data_table.rb +0 -148
- data/lib/aureus/listing.rb +0 -39
- data/lib/aureus/map.rb +0 -17
- data/lib/aureus/messages.rb +0 -23
- data/lib/aureus/navigation.rb +0 -42
- data/lib/aureus/row.rb +0 -65
- data/lib/aureus/toolbar.rb +0 -99
- data/spec/lib/helper/schema.rb +0 -6
- data/spec/lib/render_spec.rb +0 -16
- data/spec/lib/spec_helper.rb +0 -21
- data/spec/lib/views/box.haml +0 -14
- data/spec/lib/views/content.haml +0 -2
- data/spec/lib/views/datatable.haml +0 -11
- data/spec/lib/views/listing.haml +0 -5
- data/spec/lib/views/messages.haml +0 -2
- data/spec/lib/views/navigation.haml +0 -4
- data/spec/lib/views/row.haml +0 -28
- data/spec/lib/views/toolbar.haml +0 -11
data/lib/aureus/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
module Aureus
|
2
|
-
VERSION =
|
3
|
-
end
|
2
|
+
VERSION = '2.1.0'
|
3
|
+
end
|
@@ -1,20 +1,25 @@
|
|
1
1
|
module Aureus
|
2
2
|
|
3
|
-
|
3
|
+
module Generators
|
4
4
|
|
5
|
-
|
5
|
+
class DeviseI18nGenerator < Rails::Generators::Base
|
6
6
|
|
7
|
-
|
8
|
-
|
7
|
+
desc 'generates base i18n files for the devise views'
|
8
|
+
source_root File.expand_path('../locales', __FILE__)
|
9
|
+
argument :language, type: :string, default: 'en'
|
9
10
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
11
|
+
def generate
|
12
|
+
file_list = Dir.glob("#{File.dirname(__FILE__)}/locales/*.#{language}.yml")
|
13
|
+
puts "Generating locale files for language: '#{language}'..."
|
14
|
+
file_list.each do |locale_file|
|
15
|
+
basename = File.basename(locale_file)
|
16
|
+
destination = "config/locales/#{basename}"
|
17
|
+
copy_file locale_file, destination
|
18
|
+
end
|
19
|
+
end
|
15
20
|
|
16
|
-
|
21
|
+
end
|
17
22
|
|
18
|
-
|
23
|
+
end
|
19
24
|
|
20
|
-
end
|
25
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,25 @@
|
|
1
|
+
module Aureus
|
2
|
+
|
3
|
+
module Generators
|
4
|
+
|
5
|
+
class DeviseInvitableI18nGenerator < Rails::Generators::Base
|
6
|
+
|
7
|
+
desc 'generates base i18n files for the devise views'
|
8
|
+
source_root File.expand_path('../locales', __FILE__)
|
9
|
+
argument :language, type: :string, default: 'en'
|
10
|
+
|
11
|
+
def generate
|
12
|
+
file_list = Dir.glob("#{File.dirname(__FILE__)}/locales/*.#{language}.yml")
|
13
|
+
puts "Generating invitable locale files for language: '#{language}'..."
|
14
|
+
file_list.each do |locale_file|
|
15
|
+
basename = File.basename(locale_file)
|
16
|
+
destination = "config/locales/#{basename}"
|
17
|
+
copy_file locale_file, destination
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
de:
|
2
|
+
devise:
|
3
|
+
invitations:
|
4
|
+
send_instructions: 'An invitation email has been sent to %{email}.'
|
5
|
+
invitation_token_invalid: 'The invitation token provided is not valid!'
|
6
|
+
updated: 'Your password was set successfully. You are now signed in.'
|
7
|
+
no_invitations_remaining: "No invitations remaining"
|
8
|
+
invitation_removed: 'Your invitation was removed.'
|
9
|
+
mailer:
|
10
|
+
invitation_instructions:
|
11
|
+
subject: Einladung
|
@@ -0,0 +1,11 @@
|
|
1
|
+
en:
|
2
|
+
devise:
|
3
|
+
invitations:
|
4
|
+
send_instructions: 'An invitation email has been sent to %{email}.'
|
5
|
+
invitation_token_invalid: 'The invitation token provided is not valid!'
|
6
|
+
updated: 'Your password was set successfully. You are now signed in.'
|
7
|
+
no_invitations_remaining: "No invitations remaining"
|
8
|
+
invitation_removed: 'Your invitation was removed.'
|
9
|
+
mailer:
|
10
|
+
invitation_instructions:
|
11
|
+
subject: 'Invitation instructions'
|
@@ -0,0 +1,9 @@
|
|
1
|
+
de:
|
2
|
+
devise:
|
3
|
+
mail:
|
4
|
+
invitation_instructions:
|
5
|
+
title: Hallo %{name}!
|
6
|
+
info1: Jemand hat Ihnen zur %{website_url} eingeladet. Sie können das akzeptieren durch das Link unten.
|
7
|
+
link: Einladung akzeptieren
|
8
|
+
info2: Wenn Sie das nicht akzeptieren wollen, bitte dieses Email löschen.
|
9
|
+
info3: Ihr Konto wird nicht aktiviert, wenn Sie das Link nicht clicken und ein Passwort nicht setzen.
|
@@ -0,0 +1,9 @@
|
|
1
|
+
en:
|
2
|
+
devise:
|
3
|
+
mail:
|
4
|
+
invitation_instructions:
|
5
|
+
title: Hello %{name}!
|
6
|
+
info1: Someone has invited you to %{website_url}, you can accept it through the link below.
|
7
|
+
link: Accept invitation
|
8
|
+
info2: If you don't want to accept the invitation, please ignore this email.
|
9
|
+
info3: Your account won't be created until you access the link above and set your password.
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module Aureus
|
2
|
+
|
3
|
+
module Generators
|
4
|
+
|
5
|
+
class DeviseInvitableViewsGenerator < Rails::Generators::Base
|
6
|
+
|
7
|
+
desc 'generates aureus compliant devise invitable haml views with aureus helpers'
|
8
|
+
source_root File.expand_path('../templates', __FILE__)
|
9
|
+
argument :folder, type: :string, default: 'devise'
|
10
|
+
|
11
|
+
def generate
|
12
|
+
target = "app/views/#{folder}"
|
13
|
+
directory 'devise', target
|
14
|
+
Dir[target + '/**/*.haml'].each do |file|
|
15
|
+
gsub_file file, '{{{folder}}}', folder, verbose: false
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
= aureus_box t('devise.ui.invitations.edit.title'), centered: true, for: :form do |b|
|
2
|
+
- b.content do
|
3
|
+
= semantic_form_for resource, as: resource_name, url: invitation_path(resource_name), html: { method: :put } do |f|
|
4
|
+
= f.hidden_field :invitation_token
|
5
|
+
= f.password_field :password, label: t('devise.ui.invitations.edit.password')
|
6
|
+
= f.password_field :password, label: t('devise.ui.invitations.edit.password_confirmation')
|
7
|
+
= f.action :submit, label: t('devise.ui.invitations.new.submit')
|
8
|
+
- b.foot do
|
9
|
+
= render partial: '{{{folder}}}/shared/links'
|
@@ -0,0 +1,8 @@
|
|
1
|
+
= aureus_box t('devise.ui.invitations.new.title'), centered: true, for: :form do |b|
|
2
|
+
- b.content do
|
3
|
+
= semantic_form_for resource, as: resource_name, url: invitation_path(resource_name), html: { method: :post } do |f|
|
4
|
+
- resource.class.invite_key_fields.each do |field|
|
5
|
+
= f.input field.to_sym, label: t("devise.ui.invitations.new.#{field}")
|
6
|
+
= f.action :submit, label: t('devise.ui.invitiations.new.submit')
|
7
|
+
- b.foot do
|
8
|
+
= render partial: '{{{folder}}}/shared/links'
|
@@ -0,0 +1,5 @@
|
|
1
|
+
%p= t('devise.mail.invitation_instructions.title', name: @resource.email)
|
2
|
+
%p= t('devise.mail.invitation_instructions.info1', website_url: root_url)
|
3
|
+
%p= link_to t('devise.mail.invitation_instructions.link'), accept_invitation_url(@resource, invitation_token: @resource.invitation_token)
|
4
|
+
%p= t('devise.mail.invitation_instructions.info2')
|
5
|
+
%p= t('devise.mail.invitation_instructions.info3')
|
@@ -1,23 +1,25 @@
|
|
1
1
|
module Aureus
|
2
2
|
|
3
|
-
|
3
|
+
module Generators
|
4
4
|
|
5
|
-
|
5
|
+
class DeviseViewsGenerator < Rails::Generators::Base
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
desc 'generates aureus compliant devise haml views with aureus helpers and i18n files'
|
8
|
+
source_root File.expand_path('../templates', __FILE__)
|
9
|
+
argument :folder, type: :string, default: 'devise'
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
11
|
+
def generate
|
12
|
+
target = "app/views/#{folder}"
|
13
|
+
directory 'devise', target do |content|
|
14
|
+
content.gsub '{{{folder}}}', folder
|
15
|
+
end
|
16
|
+
#Dir[target + '/**/*.haml'].each do |file|
|
17
|
+
#gsub_file file, '{{{folder}}}', folder, verbose: false
|
18
|
+
#end
|
19
|
+
end
|
18
20
|
|
19
|
-
|
21
|
+
end
|
20
22
|
|
21
|
-
|
23
|
+
end
|
22
24
|
|
23
|
-
end
|
25
|
+
end
|
@@ -1,7 +1,7 @@
|
|
1
|
-
= aureus_box t(
|
1
|
+
= aureus_box t('devise.ui.confirmations.new.title'), centered: true, for: :form do |b|
|
2
2
|
- b.content do
|
3
|
-
= semantic_form_for resource, :
|
4
|
-
= f.input :email, :
|
5
|
-
= f.action :submit, :
|
3
|
+
= semantic_form_for resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post } do |f|
|
4
|
+
= f.input :email, label: t('devise.ui.confirmations.new.email')
|
5
|
+
= f.action :submit, label: t('devise.ui.confirmations.new.submit')
|
6
6
|
- b.foot do
|
7
|
-
= render :
|
7
|
+
= render partial: '{{{folder}}}/shared/links'
|
data/lib/generators/aureus/devise_views/templates/devise/mailer/confirmation_instructions.html.haml
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
%p= t(
|
2
|
-
%p= t(
|
3
|
-
%p= link_to t(
|
1
|
+
%p= t('devise.mail.confirmation_instructions.title', name: @email)
|
2
|
+
%p= t('devise.mail.confirmation_instructions.info')
|
3
|
+
%p= link_to t('devise.mail.confirmation_instructions.link'), confirmation_url(@resource, confirmation_token: @token)
|
@@ -1,5 +1,5 @@
|
|
1
|
-
%p= t(
|
2
|
-
%p= t(
|
3
|
-
%p= link_to t(
|
4
|
-
%p= t(
|
5
|
-
%p= t(
|
1
|
+
%p= t('devise.mail.reset_password_instructions.title', name: @resource.email)
|
2
|
+
%p= t('devise.mail.reset_password_instructions.info')
|
3
|
+
%p= link_to t('devise.mail.reset_password_instructions.link'), edit_password_url(@resource, reset_password_token: @token)
|
4
|
+
%p= t('devise.mail.reset_password_instructions.foot1')
|
5
|
+
%p= t('devise.mail.reset_password_instructions.foot2')
|
data/lib/generators/aureus/devise_views/templates/devise/mailer/unlock_instructions.html.haml
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
%p= t(
|
2
|
-
%p= t(
|
3
|
-
%p= t(
|
4
|
-
%p= link_to t(
|
1
|
+
%p= t('devise.mail.unlock_instructions.title', name: @resource.email)
|
2
|
+
%p= t('devise.mail.unlock_instructions.info1')
|
3
|
+
%p= t('devise.mail.unlock_instructions.info2')
|
4
|
+
%p= link_to t('devise.mail.unlock_instructions.link'), unlock_url(@resource, unlock_token: @token)
|
@@ -1,9 +1,9 @@
|
|
1
|
-
= aureus_box t(
|
1
|
+
= aureus_box t('devise.ui.passwords.edit.title'), centered: true, for: :form do |b|
|
2
2
|
- b.content do
|
3
|
-
= semantic_form_for resource, :
|
4
|
-
= form.input :reset_password_token, :
|
5
|
-
= form.input :password, :
|
6
|
-
= form.input :password_confirmation, :
|
7
|
-
= form.action :submit, :
|
3
|
+
= semantic_form_for resource, as: resource_name, url: password_path(resource_name), html: { method: :put } do |form|
|
4
|
+
= form.input :reset_password_token, as: :hidden
|
5
|
+
= form.input :password, label: t('devise.ui.passwords.edit.password')
|
6
|
+
= form.input :password_confirmation, label: t('devise.ui.passwords.edit.password_confirmation')
|
7
|
+
= form.action :submit, label: t('devise.ui.passwords.edit.submit')
|
8
8
|
- b.foot do
|
9
|
-
= render :
|
9
|
+
= render partial: '{{{folder}}}/shared/links'
|
@@ -1,7 +1,7 @@
|
|
1
|
-
= aureus_box t(
|
1
|
+
= aureus_box t('devise.ui.passwords.new.title'), centered: true, for: :form do |b|
|
2
2
|
- b.content do
|
3
|
-
= semantic_form_for resource, :
|
4
|
-
= form.input :email, :
|
5
|
-
= form.action :submit, :
|
3
|
+
= semantic_form_for resource, as: resource_name, url: password_path(resource_name), html: { method: :post } do |form|
|
4
|
+
= form.input :email, label: t('devise.ui.passwords.new.email')
|
5
|
+
= form.action :submit, label: t('devise.ui.passwords.new.submit')
|
6
6
|
- b.foot do
|
7
|
-
= render :
|
7
|
+
= render partial: '{{{folder}}}/shared/links'
|
@@ -1,11 +1,11 @@
|
|
1
|
-
= aureus_box t(
|
1
|
+
= aureus_box t('devise.ui.registrations.edit.title',name: resource_name.to_s.humanize), centered: true, for: :form do |b|
|
2
2
|
- b.content do
|
3
|
-
= semantic_form_for resource, :
|
4
|
-
= form.input :email, :
|
5
|
-
= form.input :password, :
|
6
|
-
= form.input :password_confirmation, :
|
7
|
-
= form.input :current_password, :
|
8
|
-
= form.action :submit, :
|
3
|
+
= semantic_form_for resource, as: resource_name, url: registration_path(resource_name), html: { method: :put } do |form|
|
4
|
+
= form.input :email, label: t('devise.ui.registrations.edit.email')
|
5
|
+
= form.input :password, label: t('devise.ui.registrations.edit.password')
|
6
|
+
= form.input :password_confirmation, label: t('devise.ui.registrations.edit.password_confirmation')
|
7
|
+
= form.input :current_password, label: t('devise.ui.registrations.edit.current_password')
|
8
|
+
= form.action :submit, label: t('devise.ui.registrations.edit.submit')
|
9
9
|
- b.foot do
|
10
|
-
%p= link_to t(
|
11
|
-
%p= link_to t(
|
10
|
+
%p= link_to t('devise.ui.registrations.edit.destroy'), registration_path(resource_name), confirm: t('devise.ui.registrations.edit.destroy_confirm'), method: :delete
|
11
|
+
%p= link_to t('devise.ui.registrations.edit.back'), :back
|
@@ -1,9 +1,9 @@
|
|
1
|
-
= aureus_box t(
|
1
|
+
= aureus_box t('devise.ui.registrations.new.title'), centered: true, for: :form do |b|
|
2
2
|
- b.content do
|
3
|
-
= semantic_form_for resource, :
|
4
|
-
= form.input :email, :
|
5
|
-
= form.input :password, :
|
6
|
-
= form.input :password_confirmation, :
|
7
|
-
= form.action :submit, :
|
3
|
+
= semantic_form_for resource, as: resource_name, url: registration_path(resource_name) do |form|
|
4
|
+
= form.input :email, label: t('devise.ui.registrations.new.email')
|
5
|
+
= form.input :password, label: t('devise.ui.registrations.new.password')
|
6
|
+
= form.input :password_confirmation, label: t('devise.ui.registrations.new.password_confirmation')
|
7
|
+
= form.action :submit, label: t('devise.ui.registrations.new.submit')
|
8
8
|
- b.foot do
|
9
|
-
= render :
|
9
|
+
= render partial: '{{{folder}}}/shared/links'
|
@@ -1,9 +1,9 @@
|
|
1
|
-
= aureus_box t(
|
1
|
+
= aureus_box t('devise.ui.sessions.new.title'), centered: true, for: :form do |b|
|
2
2
|
- b.content do
|
3
|
-
= semantic_form_for resource, :
|
4
|
-
= form.input :email, :
|
5
|
-
= form.input :password, :
|
6
|
-
= form.input :remember_me, :
|
7
|
-
= form.action :submit, :
|
3
|
+
= semantic_form_for resource, as: resource_name, url: session_path(resource_name) do |form|
|
4
|
+
= form.input :email, label: t('devise.ui.sessions.new.email')
|
5
|
+
= form.input :password, label: t('devise.ui.sessions.new.password')
|
6
|
+
= form.input :remember_me, as: :boolean, label: t('devise.ui.sessions.new.remember_me') if devise_mapping.rememberable?
|
7
|
+
= form.action :submit, label: t('devise.ui.sessions.new.submit')
|
8
8
|
- b.foot do
|
9
|
-
= render :
|
9
|
+
= render partial: '{{{folder}}}/shared/links'
|
@@ -1,19 +1,19 @@
|
|
1
1
|
- if controller_name != 'sessions'
|
2
|
-
= link_to t(
|
2
|
+
= link_to t('devise.ui.shared.links.login'), new_session_path(resource_name)
|
3
3
|
%br
|
4
4
|
|
5
5
|
- if devise_mapping.registerable? && controller_name != 'registrations'
|
6
|
-
= link_to t(
|
6
|
+
= link_to t('devise.ui.shared.links.signup'), new_registration_path(resource_name)
|
7
7
|
%br
|
8
8
|
|
9
9
|
- if devise_mapping.recoverable? && controller_name != 'passwords'
|
10
|
-
= link_to t(
|
10
|
+
= link_to t('devise.ui.shared.links.lost_password'), new_password_path(resource_name)
|
11
11
|
%br
|
12
12
|
|
13
13
|
- if devise_mapping.confirmable? && controller_name != 'confirmations'
|
14
|
-
= link_to t(
|
14
|
+
= link_to t('devise.ui.shared.links.no_confirmation'), new_confirmation_path(resource_name)
|
15
15
|
%br
|
16
16
|
|
17
17
|
- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks'
|
18
|
-
= link_to t(
|
19
|
-
%br
|
18
|
+
= link_to t('devise.ui.shared.links.no_unlock'), new_unlock_path(resource_name)
|
19
|
+
%br
|
@@ -1,7 +1,7 @@
|
|
1
|
-
= aureus_box t(
|
1
|
+
= aureus_box t('devise.ui.unlocks.new.title'), centered: true, for: :form do |b|
|
2
2
|
- b.content do
|
3
|
-
= semantic_form_for resource, :
|
4
|
-
= form.input :email, :
|
5
|
-
= form.action :submit, :
|
3
|
+
= semantic_form_for resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post } do |form|
|
4
|
+
= form.input :email, label: t('devise.ui.unlocks.new.email')
|
5
|
+
= form.action :submit, label: t('devise.ui.unlocks.new.submit')
|
6
6
|
- b.foot do
|
7
|
-
= render :
|
7
|
+
= render partial: '{{{folder}}}/shared/links'
|