trusty-cms 4.0.2 → 4.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +3 -3
- data/Gemfile.lock +89 -89
- data/Rakefile +7 -7
- data/app/assets/images/admin/spinner.gif +0 -0
- data/app/assets/javascripts/admin.js +3 -0
- data/app/assets/javascripts/admin/more-or-less.js +2 -2
- data/app/assets/javascripts/admin/tabcontrol.js.erb +1 -2
- data/app/assets/javascripts/rad_social/rad_ajax_form.js +3 -0
- data/app/assets/javascripts/rad_social/rad_email.js +0 -1
- data/app/assets/javascripts/rad_social/rad_email_form.js +2 -7
- data/app/assets/stylesheets/admin/_base.scss +22 -6
- data/app/assets/stylesheets/admin/_multi_site_main.scss +28 -29
- data/app/assets/stylesheets/admin/_reset.scss +5 -4
- data/app/assets/stylesheets/admin/_site_chooser.scss +44 -69
- data/app/assets/stylesheets/admin/assets.scss +138 -141
- data/app/assets/stylesheets/admin/main.scss +10 -12
- data/app/assets/stylesheets/admin/modules/_boxes.scss +0 -3
- data/app/assets/stylesheets/admin/modules/_buttons.scss +30 -0
- data/app/assets/stylesheets/admin/modules/_links.scss +1 -1
- data/app/assets/stylesheets/admin/partials/_actions.scss +29 -46
- data/app/assets/stylesheets/admin/partials/_avatars.scss +3 -2
- data/app/assets/stylesheets/admin/partials/_content.scss +15 -38
- data/app/assets/stylesheets/admin/partials/_dateinput.scss +23 -14
- data/app/assets/stylesheets/admin/partials/_drawer.scss +78 -0
- data/app/assets/stylesheets/admin/partials/_dropdown.scss +9 -12
- data/app/assets/stylesheets/admin/partials/_footer.scss +4 -3
- data/app/assets/stylesheets/admin/partials/_forms.scss +64 -493
- data/app/assets/stylesheets/admin/partials/_header.scss +9 -118
- data/app/assets/stylesheets/admin/partials/_layout.scss +26 -2
- data/app/assets/stylesheets/admin/partials/_login_form.scss +28 -0
- data/app/assets/stylesheets/admin/partials/_messages.scss +10 -5
- data/app/assets/stylesheets/admin/partials/_popup.scss +61 -50
- data/app/assets/stylesheets/admin/partials/_preferences.scss +37 -0
- data/app/assets/stylesheets/admin/partials/_sidebar.scss +55 -0
- data/app/assets/stylesheets/admin/partials/_tabcontrol.scss +24 -36
- data/app/assets/stylesheets/admin/partials/{_index.scss → _table.scss} +53 -84
- data/app/assets/stylesheets/admin/partials/_toolbar.scss +11 -6
- data/app/assets/stylesheets/admin/partials/_treetable.scss +1 -71
- data/app/assets/stylesheets/admin/partials/_typography.scss +30 -55
- data/app/assets/stylesheets/admin/partials/_validations.scss +6 -5
- data/app/assets/stylesheets/rad_social/rad_screen.scss +64 -67
- data/app/controllers/admin/assets_controller.rb +21 -31
- data/app/controllers/admin/configuration_controller.rb +9 -11
- data/app/controllers/admin/extensions_controller.rb +3 -3
- data/app/controllers/admin/layouts_controller.rb +3 -4
- data/app/controllers/admin/page_attachments_controller.rb +5 -5
- data/app/controllers/admin/page_fields_controller.rb +3 -4
- data/app/controllers/admin/page_parts_controller.rb +4 -5
- data/app/controllers/admin/pages_controller.rb +55 -56
- data/app/controllers/admin/references_controller.rb +1 -1
- data/app/controllers/admin/resource_controller.rb +132 -130
- data/app/controllers/admin/sites_controller.rb +4 -4
- data/app/controllers/admin/snippets_controller.rb +3 -4
- data/app/controllers/admin/users_controller.rb +16 -16
- data/app/controllers/application_controller.rb +47 -48
- data/app/controllers/site_controller.rb +51 -48
- data/app/controllers/social_mailer_controller.rb +12 -22
- data/app/helpers/admin/configuration_helper.rb +19 -20
- data/app/helpers/admin/layouts_helper.rb +0 -1
- data/app/helpers/admin/node_helper.rb +27 -24
- data/app/helpers/admin/pages_helper.rb +2 -2
- data/app/helpers/admin/preferences_helper.rb +0 -1
- data/app/helpers/admin/references_helper.rb +9 -10
- data/app/helpers/admin/regions_helper.rb +3 -3
- data/app/helpers/application_helper.rb +34 -35
- data/app/helpers/rad_social_helper.rb +8 -11
- data/app/helpers/scoped_helper.rb +1 -3
- data/app/helpers/sites_helper.rb +4 -4
- data/app/mailers/devise_mailer.rb +3 -4
- data/app/mailers/rad_social_mailer.rb +8 -8
- data/app/models/asset.rb +62 -63
- data/app/models/asset_type.rb +38 -39
- data/app/models/deprecated_tags.rb +3 -4
- data/app/models/file_not_found_page.rb +1 -3
- data/app/models/haml_filter.rb +1 -1
- data/app/models/layout.rb +4 -5
- data/app/models/legacy_user.rb +2 -2
- data/app/models/menu_renderer.rb +16 -18
- data/app/models/page.rb +96 -93
- data/app/models/page_attachment.rb +1 -2
- data/app/models/page_context.rb +11 -12
- data/app/models/page_part.rb +3 -4
- data/app/models/rails_page.rb +10 -12
- data/app/models/site.rb +22 -21
- data/app/models/snippet.rb +6 -8
- data/app/models/snippet_finder.rb +3 -3
- data/app/models/snippet_tags.rb +4 -4
- data/app/models/standard_tags.rb +258 -252
- data/app/models/status.rb +8 -8
- data/app/models/trusty_cms/config.rb +25 -25
- data/app/models/trusty_cms/page_response_cache_director.rb +2 -3
- data/app/models/user.rb +15 -14
- data/app/models/user_action_observer.rb +3 -3
- data/app/users/_choose_site.html.haml +3 -7
- data/app/views/admin/assets/_form.html.haml +2 -1
- data/app/views/admin/assets/_search.html.haml +2 -1
- data/app/views/admin/assets/edit.html.haml +2 -10
- data/app/views/admin/assets/index.html.haml +4 -2
- data/app/views/admin/assets/new.html.haml +4 -8
- data/app/views/admin/assets/remove.html.haml +2 -1
- data/app/views/admin/configuration/edit.html.haml +7 -7
- data/app/views/admin/configuration/show.html.haml +6 -8
- data/app/views/admin/layouts/_choose_site.html.haml +2 -3
- data/app/views/admin/layouts/_form.html.haml +13 -12
- data/app/views/admin/layouts/_site_chooser.html.haml +2 -2
- data/app/views/admin/layouts/index.html.haml +11 -4
- data/app/views/admin/layouts/remove.html.haml +6 -5
- data/app/views/admin/page_attachments/_attachment.html.haml +2 -2
- data/app/views/admin/page_fields/_page_field.html.haml +3 -3
- data/app/views/admin/page_parts/_page_part.html.haml +5 -6
- data/app/views/admin/pages/_asset_popups.html.haml +15 -16
- data/app/views/admin/pages/_assets.html.haml +8 -7
- data/app/views/admin/pages/_fields.html.haml +16 -13
- data/app/views/admin/pages/_node.html.haml +3 -3
- data/app/views/admin/pages/_popups.html.haml +11 -11
- data/app/views/admin/pages/edit.html.haml +2 -2
- data/app/views/admin/pages/index.html.haml +5 -2
- data/app/views/admin/pages/new.html.haml +3 -3
- data/app/views/admin/pages/remove.html.haml +4 -3
- data/app/views/admin/preferences/edit.html.haml +5 -5
- data/app/views/admin/references/filters.haml +1 -1
- data/app/views/admin/references/tags.haml +3 -3
- data/app/views/admin/removed/_assets_bucket.html.haml +3 -3
- data/app/views/admin/removed/_assets_container.html.haml +18 -18
- data/app/views/admin/removed/_bucket.html.haml +1 -1
- data/app/views/admin/removed/_bucket_asset.html.haml +3 -3
- data/app/views/admin/removed/_show_bucket_link.html.haml +1 -1
- data/app/views/admin/removed/_upload_to_page.html.haml +5 -5
- data/app/views/admin/sites/_form.haml +18 -18
- data/app/views/admin/sites/edit.haml +1 -1
- data/app/views/admin/sites/index.haml +8 -4
- data/app/views/admin/sites/new.haml +1 -1
- data/app/views/admin/snippets/_choose_site.html.haml +4 -5
- data/app/views/admin/snippets/_form.html.haml +8 -9
- data/app/views/admin/snippets/edit.html.haml +1 -1
- data/app/views/admin/snippets/index.html.haml +11 -4
- data/app/views/admin/snippets/new.html.haml +1 -1
- data/app/views/admin/snippets/remove.html.haml +7 -6
- data/app/views/admin/users/_avatar.html.haml +2 -2
- data/app/views/admin/users/_choose_site.html.haml +3 -7
- data/app/views/admin/users/_form.html.haml +18 -21
- data/app/views/admin/users/_password_fields.html.haml +6 -6
- data/app/views/admin/users/index.html.haml +13 -6
- data/app/views/admin/users/remove.html.haml +4 -4
- data/app/views/admin/welcome/login.html.haml +8 -8
- data/app/views/devise/passwords/edit.html.haml +6 -6
- data/app/views/devise/passwords/new.html.haml +3 -3
- data/app/views/devise/sessions/new.html.haml +8 -8
- data/app/views/devise/shared/_links.html.haml +2 -2
- data/app/views/layouts/application.html.haml +24 -19
- data/app/views/rad_social_mailer/social_mail_form.html.haml +15 -17
- data/app/views/widget/_email_form.html.haml +13 -18
- data/app/views/widget/_horizontal_widget.html.haml +5 -5
- data/bin/rails +4 -4
- data/bin/trusty_cms +3 -5
- data/config.ru +1 -1
- data/config/application.rb +14 -15
- data/config/boot.rb +1 -2
- data/config/environment.rb +1 -1
- data/config/environments/production.rb +0 -1
- data/config/environments/test.rb +1 -2
- data/config/initializers/devise.rb +1 -1
- data/config/initializers/kraken.rb +2 -2
- data/config/initializers/tmp.rb +1 -1
- data/config/initializers/trusty_cms_config.rb +48 -48
- data/config/locales/en.yml +8 -8
- data/config/routes.rb +6 -7
- data/lib/active_record_extensions/active_record_extensions.rb +1 -2
- data/lib/annotatable.rb +3 -5
- data/lib/configuration_extensions/configuration_extensions.rb +1 -1
- data/lib/inheritable_class_attributes.rb +13 -9
- data/lib/login_system.rb +73 -73
- data/lib/method_observer.rb +13 -12
- data/lib/ostruct.rb +7 -10
- data/lib/simpleton.rb +0 -4
- data/lib/string_extensions/string_extensions.rb +3 -3
- data/lib/symbol_extensions/symbol_extensions.rb +1 -1
- data/lib/tasks/database.rake +28 -28
- data/lib/tasks/extensions.rake +18 -18
- data/lib/tasks/framework.rake +68 -68
- data/lib/tasks/radiant_config.rake +4 -4
- data/lib/tasks/snippets_extension_tasks.rake +11 -11
- data/lib/tasks/translate.rake +14 -14
- data/lib/tasks/upgrade_to_devise.rake +1 -1
- data/lib/translation_support.rb +22 -22
- data/lib/trusty_cms.rb +2 -2
- data/lib/trusty_cms/admin_ui.rb +19 -16
- data/lib/trusty_cms/admin_ui/region_partials.rb +4 -3
- data/lib/trusty_cms/admin_ui/region_set.rb +4 -5
- data/lib/trusty_cms/available_locales.rb +2 -4
- data/lib/trusty_cms/config/definition.rb +11 -8
- data/lib/trusty_cms/engine.rb +13 -14
- data/lib/trusty_cms/extension.rb +14 -16
- data/lib/trusty_cms/extension_loader.rb +6 -6
- data/lib/trusty_cms/extension_migrator.rb +42 -41
- data/lib/trusty_cms/extension_path.rb +20 -19
- data/lib/trusty_cms/initializer.rb +5 -8
- data/lib/trusty_cms/pagination/controller.rb +7 -10
- data/lib/trusty_cms/pagination/link_renderer.rb +2 -2
- data/lib/trusty_cms/resource_responses.rb +3 -3
- data/lib/trusty_cms/setup.rb +130 -132
- data/lib/trusty_cms/taggable.rb +19 -22
- data/lib/trusty_cms/task_support.rb +9 -6
- data/package.json +10 -2
- data/public/dispatch.fcgi +1 -1
- data/public/dispatch.rb +2 -2
- data/script/extension +1 -1
- data/script/rails +2 -2
- data/spec/dummy/package.json +1 -1
- data/spec/dummy/yarn.lock +3 -3
- data/trusty_cms.gemspec +25 -25
- data/vendor/extensions/clipped-extension/lib/clipped_admin_ui.rb +1 -1
- data/yarn.lock +1992 -4
- metadata +54 -43
- data/app/assets/javascripts/rad_social/captcha.js +0 -42
- data/app/assets/stylesheets/admin/partials/_deprecated.scss +0 -65
- data/app/assets/stylesheets/admin/partials/_jquery-ui-structure.scss +0 -258
- data/app/assets/stylesheets/admin/partials/_jquery-ui-theme.scss +0 -410
- data/app/assets/stylesheets/admin/partials/_jquery-ui.scss +0 -650
- data/app/views/admin/assets/refresh.html.haml +0 -14
@@ -1,8 +1,4 @@
|
|
1
1
|
- if current_user.admin?
|
2
|
-
%
|
3
|
-
|
4
|
-
|
5
|
-
%td.field{:style => 'text-align: left;'}
|
6
|
-
= select :user, :site_id, [['<any>', '']] + Site.all.map { |s| [s.name, s.id] }
|
7
|
-
%td.help
|
8
|
-
A user with no site is able to act (to whatever extent their status allows) on any site.
|
2
|
+
%label{:for=>'user_admin'} Can edit site
|
3
|
+
= select :user, :site_id, [['<any>', '']] + Site.all.map { |s| [s.name, s.id] }
|
4
|
+
.caption A user with no site is able to act (to whatever extent their status allows) on any site.
|
@@ -1,44 +1,41 @@
|
|
1
|
-
= form_for [:admin, @user], :html => {class:
|
1
|
+
= form_for [:admin, @user], :html => {class: 'user_form'} do |f|
|
2
2
|
= render :partial => 'avatar' unless @user.new_record?
|
3
3
|
|
4
4
|
= render_region :form_top, :locals => {:f => f}
|
5
5
|
|
6
6
|
- render_region :form, :locals => {:f => f} do |form|
|
7
7
|
- form.edit_first_name do
|
8
|
-
|
9
|
-
|
10
|
-
= f.text_field :first_name, :class => "textbox", :size => 32, :maxlength => 100
|
8
|
+
= f.label :name, t('first_name')
|
9
|
+
= f.text_field :first_name, :class => 'textbox', :maxlength => 100
|
11
10
|
|
12
11
|
- form.edit_last_name do
|
13
|
-
|
14
|
-
|
15
|
-
= f.text_field :last_name, :class => "textbox", :size => 32, :maxlength => 100
|
12
|
+
= f.label :name, t('last_name')
|
13
|
+
= f.text_field :last_name, :class => 'textbox', :maxlength => 100
|
16
14
|
|
17
15
|
- form.edit_email do
|
18
|
-
|
19
|
-
|
20
|
-
= f.text_field "email", :class => 'textbox', :size => 32, :maxlength => 255
|
16
|
+
= f.label :email, t('email_address') , :class => 'optional'
|
17
|
+
= f.text_field 'email', :class => 'textbox', :maxlength => 255
|
21
18
|
|
22
19
|
- form.edit_password do
|
23
|
-
= render
|
20
|
+
= render 'password_fields', :f => f
|
24
21
|
|
25
22
|
- form.edit_roles do
|
26
23
|
- if current_user.admin?
|
27
|
-
%
|
28
|
-
%label
|
29
|
-
= f.check_box
|
30
|
-
= f.label :admin, t('admin'), :class =>
|
31
|
-
= f.check_box
|
32
|
-
= f.label :designer, t('designer'), :class =>
|
24
|
+
%fieldset.multi_option
|
25
|
+
%label= t('roles')
|
26
|
+
= f.check_box 'admin', :class => 'checkbox'
|
27
|
+
= f.label :admin, t('admin'), :class => 'checkbox'
|
28
|
+
= f.check_box 'designer', :class => 'checkbox'
|
29
|
+
= f.label :designer, t('designer'), :class => 'checkbox'
|
33
30
|
|
34
31
|
- form.edit_notes do
|
35
|
-
%
|
36
|
-
= f.label :notes, t('notes'), :class =>
|
37
|
-
~ f.text_area
|
32
|
+
%fieldset
|
33
|
+
= f.label :notes, t('notes'), :class => 'optional'
|
34
|
+
~ f.text_area 'notes', :size => '53x4', :class => 'textarea'
|
38
35
|
|
39
36
|
- render_region :form_bottom, :locals => {:f => f} do |form_bottom|
|
40
37
|
- form_bottom.edit_buttons do
|
41
|
-
.
|
38
|
+
.page-actions
|
42
39
|
= save_model_button(@user)
|
43
40
|
= save_model_and_continue_editing_button(@user)
|
44
41
|
= t('or')
|
@@ -1,18 +1,18 @@
|
|
1
|
-
%
|
1
|
+
%fieldset#display_password{:style=> (@user.new_record? or !@user.valid?) ? 'display: none' : nil}
|
2
2
|
%label= t('password')
|
3
3
|
%span.value
|
4
4
|
•••••
|
5
|
-
|
6
|
-
|
5
|
+
%a.button{:href=>'#', :onclick=>"$('#display_password').hide(); $('#change_password').show()"}= t('change')
|
6
|
+
%fieldset#change_password{:style=> (!@user.new_record? && @user.valid?) ? 'display: none' : nil}
|
7
7
|
%p
|
8
8
|
= f.label :password, t('new_password')
|
9
|
-
= f.password_field
|
9
|
+
= f.password_field 'password', :value => '', :maxlength => 40, :autocomplete => 'new-password'
|
10
10
|
%p
|
11
11
|
= f.label :password_confirmation, t('password_confirmation')
|
12
|
-
= f.password_field
|
12
|
+
= f.password_field 'password_confirmation', :value => '', :maxlength => 40, :autocomplete => 'new-password'
|
13
13
|
- unless @user.new_record?
|
14
14
|
%span
|
15
15
|
= t('or')
|
16
|
-
%a{:href=>
|
16
|
+
%a{:href=>'#', :class=>'cancel-button', :onclick=>" $('#display_password').show(); $('#change_password').hide()"}= t('cancel', class: 'alt')
|
17
17
|
|
18
18
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
= render_region :top
|
4
4
|
|
5
5
|
.outset
|
6
|
-
%table.index#users
|
6
|
+
%table.index.tablesaw#users
|
7
7
|
%thead
|
8
8
|
%tr
|
9
9
|
- render_region :thead do |thead|
|
@@ -12,23 +12,26 @@
|
|
12
12
|
- thead.roles_header do
|
13
13
|
%th.roles= t('roles')
|
14
14
|
- thead.actions_header do
|
15
|
-
%th.actions{:style=>
|
15
|
+
%th.actions{:style=>'width:9em'}= t('modify')
|
16
16
|
%tbody
|
17
17
|
- @users.each do |user|
|
18
18
|
%tr[user]
|
19
19
|
- render_region :tbody, :locals => {:user => user} do |tbody|
|
20
20
|
- tbody.title_cell do
|
21
21
|
%td.name
|
22
|
-
= link_to image_tag(gravatar_url(user.email, :size=>"32px"), :class=>"avatar avatar_32x32", :width=>32, :height=>32, :alt=>""), edit_admin_user_url(user)
|
23
22
|
= link_to user.name, edit_admin_user_url(user)
|
24
23
|
- tbody.roles_cell do
|
25
24
|
%td.roles= roles(user)
|
26
25
|
- tbody.actions_cell do
|
27
26
|
%td.actions
|
28
27
|
- if !current_user.admin?
|
29
|
-
%span.action.disabled
|
28
|
+
%span.action.disabled
|
29
|
+
%i.fas.fa-minus-circle
|
30
|
+
= t('remove')
|
30
31
|
- else
|
31
|
-
= link_to
|
32
|
+
= link_to remove_admin_user_url(user), :class => 'action' do
|
33
|
+
%i.fas.fa-minus-circle
|
34
|
+
= t('remove')
|
32
35
|
|
33
36
|
- render_region :bottom do |bottom|
|
34
37
|
- bottom.new_button do
|
@@ -36,4 +39,8 @@
|
|
36
39
|
#actions
|
37
40
|
= pagination_for(@users)
|
38
41
|
%ul
|
39
|
-
%li
|
42
|
+
%li
|
43
|
+
= link_to new_admin_user_url, :class => 'action_button' do
|
44
|
+
%i.fas.fa-plus-circle
|
45
|
+
= t('new_user')
|
46
|
+
|
@@ -1,7 +1,7 @@
|
|
1
1
|
%h1= t('remove_user')
|
2
2
|
|
3
|
-
%
|
4
|
-
= t('text.users.remove_warning')
|
3
|
+
%h4
|
4
|
+
= t('text.users.remove_warning').html_safe
|
5
5
|
|
6
6
|
%table.index#users
|
7
7
|
%tbody
|
@@ -9,8 +9,8 @@
|
|
9
9
|
%td.user
|
10
10
|
%span.title= @user.name
|
11
11
|
|
12
|
-
= form_for [:admin, @user], :html => { :method => :delete, 'data-onsubmit_status'=>
|
12
|
+
= form_for [:admin, @user], :html => { :method => :delete, 'data-onsubmit_status'=>'Removing user…' } do
|
13
13
|
.buttons
|
14
|
-
%input.button{:type=>
|
14
|
+
%input.button{:type=>'submit', :value => t('delete_user')}/
|
15
15
|
= t('or')
|
16
16
|
= link_to t('cancel'), admin_users_path, class: 'alt'
|
@@ -1,18 +1,18 @@
|
|
1
|
-
- body_classes <<
|
1
|
+
- body_classes << 'single_form'
|
2
2
|
|
3
3
|
#single_form
|
4
4
|
%h1= t('please_login')
|
5
5
|
|
6
6
|
= form_tag login_path do
|
7
7
|
%p
|
8
|
-
%label{:for=>
|
9
|
-
= text_field_tag
|
8
|
+
%label{:for=>'username_or_email'}= t('username_or_email')
|
9
|
+
= text_field_tag 'username_or_email', @username_or_email, :class => 'textbox', :maxlength => 40, :size => 40
|
10
10
|
%p
|
11
|
-
%label{:for=>
|
12
|
-
= password_field_tag
|
13
|
-
%p= link_to
|
11
|
+
%label{:for=>'password'}= t('password')
|
12
|
+
= password_field_tag 'password', '', :class => 'textbox password', :maxlength => 40, :size => 40
|
13
|
+
%p= link_to 'Forgot password?', new_admin_password_reset_path
|
14
14
|
%p.remember_me
|
15
15
|
= check_box_tag :remember_me, 1, false, :class => 'checkbox'
|
16
|
-
%label.checkbox{:for=>
|
16
|
+
%label.checkbox{:for=>'remember_me'}= t('remember_me_in_this_browser')
|
17
17
|
.buttons
|
18
|
-
%input.button{:type =>
|
18
|
+
%input.button{:type => 'submit', :value => t('login')}
|
@@ -7,17 +7,17 @@
|
|
7
7
|
= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f|
|
8
8
|
= f.hidden_field :reset_password_token
|
9
9
|
.field
|
10
|
-
= f.label :password,
|
10
|
+
= f.label :password, 'New password'
|
11
11
|
%br/
|
12
12
|
- if @minimum_password_length
|
13
13
|
%em
|
14
14
|
(#{@minimum_password_length} characters minimum)
|
15
15
|
%br/
|
16
|
-
= f.password_field :password, autofocus: true, autocomplete:
|
16
|
+
= f.password_field :password, autofocus: true, autocomplete: 'new-password'
|
17
17
|
.field
|
18
|
-
= f.label :password_confirmation,
|
18
|
+
= f.label :password_confirmation, 'Confirm new password'
|
19
19
|
%br/
|
20
|
-
= f.password_field :password_confirmation, autocomplete:
|
20
|
+
= f.password_field :password_confirmation, autocomplete: 'new-password'
|
21
21
|
.actions
|
22
|
-
= f.submit
|
23
|
-
= render
|
22
|
+
= f.submit 'Change my password'
|
23
|
+
= render 'devise/shared/links'
|
@@ -8,7 +8,7 @@
|
|
8
8
|
.field
|
9
9
|
= f.label :email
|
10
10
|
%br/
|
11
|
-
= f.email_field :email, autofocus: true, autocomplete:
|
11
|
+
= f.email_field :email, autofocus: true, autocomplete: 'email', required: true
|
12
12
|
.actions
|
13
|
-
= f.submit
|
14
|
-
= render
|
13
|
+
= f.submit 'Send me reset password instructions'
|
14
|
+
= render 'devise/shared/links'
|
@@ -7,19 +7,19 @@
|
|
7
7
|
= form_for(resource, as: resource_name, url: authenticate_path) do |f|
|
8
8
|
.field
|
9
9
|
= f.label :email
|
10
|
-
|
11
|
-
= f.email_field :email, autofocus: true, autocomplete: "email"
|
10
|
+
= f.email_field :email, autofocus: true, autocomplete: 'email'
|
12
11
|
.field
|
13
12
|
= f.label :password
|
14
|
-
|
15
|
-
= f.password_field :password, autocomplete: "current-password"
|
13
|
+
= f.password_field :password, autocomplete: 'current-password'
|
16
14
|
- if devise_mapping.rememberable?
|
17
15
|
.field
|
18
|
-
= f.
|
19
|
-
|
16
|
+
= f.label :remember_me do
|
17
|
+
= f.check_box :remember_me
|
18
|
+
Remember Me
|
19
|
+
%br
|
20
20
|
.actions
|
21
|
-
= f.submit
|
21
|
+
= f.submit 'Log in'
|
22
22
|
- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations'
|
23
|
-
= link_to
|
23
|
+
= link_to 'Forgot your password?', new_password_path(resource_name)
|
24
24
|
- if flash.alert
|
25
25
|
.error= flash.alert
|
@@ -1,8 +1,8 @@
|
|
1
1
|
- if controller_name != 'sessions'
|
2
|
-
= link_to
|
2
|
+
= link_to 'Log in', new_session_path(resource_name)
|
3
3
|
%br/
|
4
4
|
- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations'
|
5
|
-
= link_to
|
5
|
+
= link_to 'Forgot your password?', new_password_path(resource_name)
|
6
6
|
%br/
|
7
7
|
- if devise_mapping.confirmable? && controller_name != 'confirmations'
|
8
8
|
= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name)
|
@@ -1,7 +1,8 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
%html{html_attrs}
|
3
3
|
%head
|
4
|
-
%meta{"http-equiv"=>"Content-type", :content=>"text/html;charset=utf-8"}
|
4
|
+
%meta{"http-equiv"=>"Content-type", :content=>"text/html;charset=utf-8"}
|
5
|
+
%meta{name: "viewport", content: "width=device-width"}
|
5
6
|
%title= @page_title || default_page_title
|
6
7
|
|
7
8
|
- @stylesheets.uniq.each do |stylesheet|
|
@@ -29,8 +30,8 @@
|
|
29
30
|
= csrf_meta_tags
|
30
31
|
|
31
32
|
%body{:class=>body_classes.join(" ")}
|
32
|
-
#page
|
33
|
-
|
33
|
+
#page.trusty-container
|
34
|
+
%header
|
34
35
|
- if logged_in?
|
35
36
|
= render_region :before_nav
|
36
37
|
- render_region :navigation do |navigation|
|
@@ -38,26 +39,30 @@
|
|
38
39
|
= %{#{t('logged_in_as')} #{link_to h(current_user.name), edit_admin_preferences_path} (#{link_to t('log_out'), destroy_user_session_path, method: :get})}.html_safe
|
39
40
|
|
40
41
|
= link_to t('view_site'), root_path, :id=>"view_site"
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
42
|
+
%nav
|
43
|
+
- if logged_in?
|
44
|
+
%ul.navigation
|
45
|
+
- nav_tabs.each do |tab|
|
46
|
+
- if tab.visible?(current_user)
|
47
|
+
= link_to (tab.first.relative_url if tab.first) do
|
48
|
+
%li{class: ('current ' if current_tab?(tab)).to_s}
|
49
|
+
= translate_with_default(tab.name)
|
50
|
+
- if @current_tab and @current_tab.size > 1
|
51
|
+
.toolbar
|
52
|
+
%ul.secondary_navigation
|
53
|
+
- @current_tab.each do |sub_item|
|
54
|
+
- if sub_item.visible?(current_user)
|
55
|
+
= link_to sub_item.relative_url, class: ('current' if current_item?(sub_item)) do
|
56
|
+
%li= sub_item.name
|
57
|
+
%main
|
58
|
+
= yield :toolbar
|
54
59
|
- if flash[:notice]
|
55
|
-
|
60
|
+
.notice
|
56
61
|
%p= flash[:notice]
|
57
62
|
- if flash[:error]
|
58
|
-
|
63
|
+
.error
|
59
64
|
%p= flash[:error]
|
60
|
-
|
65
|
+
.content
|
61
66
|
= find_and_preserve(yield)
|
62
67
|
|
63
68
|
#popups
|
@@ -1,40 +1,38 @@
|
|
1
1
|
= stylesheet_link_tag('rad_social/rad_screen')
|
2
|
-
= javascript_include_tag(
|
3
|
-
=
|
2
|
+
= javascript_include_tag('rad_social/rad_email')
|
3
|
+
= csrf_meta_tags
|
4
4
|
|
5
5
|
.rad-dialog-titlebar
|
6
6
|
%span.rad-dialog-title
|
7
7
|
Email a Friend
|
8
8
|
|
9
|
-
%form{:id=>'rad-social-email-form', :class=>
|
9
|
+
%form{:id=>'rad-social-email-form', :class=>'rad-email-form'}
|
10
10
|
.rad-email-error
|
11
11
|
%div.form-row
|
12
|
-
%label.form-label{:type=>
|
12
|
+
%label.form-label{:type=>'label', :for=>'from'}
|
13
13
|
From Email
|
14
14
|
%div.form-fields
|
15
|
-
%input{:class =>
|
15
|
+
%input{:class => 'input-textbox', :type => 'text', :id => 'rs-from', :name => 'from', :size => 30, :maxlength => 35}
|
16
16
|
%div.form-row
|
17
|
-
%label.form-label{:type=>
|
17
|
+
%label.form-label{:type=>'label', :for=>'from_name'}
|
18
18
|
From Name
|
19
19
|
%div.form-fields
|
20
|
-
%input{:class =>
|
20
|
+
%input{:class => 'input-textbox', :type => 'text', :id => 'rs-from_name', :name => 'from_name', :size => 30, :maxlength => 35}
|
21
21
|
%div.form-row
|
22
|
-
%label.form-label{:type=>
|
22
|
+
%label.form-label{:type=>'label', :for=>'to'}
|
23
23
|
To Email
|
24
24
|
%div.form-fields
|
25
|
-
%input{:class =>
|
25
|
+
%input{:class => 'input-textbox', :type => 'text', :id => 'rs-to', :name => 'to', :size => 30, :maxlength => 35}
|
26
26
|
%div.form-row
|
27
|
-
%label.form-label{:type=>
|
27
|
+
%label.form-label{:type=>'label', :for=>'message'}
|
28
28
|
Message
|
29
29
|
%div.form-fields
|
30
|
-
%textarea{:class =>
|
30
|
+
%textarea{:class => 'input-textbox', :id => 'rs-message', :name => 'message', :rows => 5, :cols => 40}
|
31
31
|
= email_message
|
32
|
-
%input{:type=>
|
33
|
-
%input{:type=>
|
34
|
-
|
35
|
-
|
36
|
-
%input{:type=>"hidden", :name=>"submit_url", :value=> email_action_url}
|
37
|
-
%input.button.primary-button{:id => "rad_email_submit", :type=>:button ,:value=>"Submit"}
|
32
|
+
%input{:type=>'hidden', :name=>'subject', :value=> email_subject}
|
33
|
+
%input{:type=>'hidden', :id=>'rs-base-message', :value=> email_message}
|
34
|
+
%input{:type=>'hidden', :name=>'submit_url', :value=> email_action_url}
|
35
|
+
%input.button.primary-button{:id => 'rad_email_submit', :type=>:button ,:value=>'Submit'}
|
38
36
|
.loader
|
39
37
|
|
40
38
|
#rad-confirmation.hidden
|
@@ -1,25 +1,20 @@
|
|
1
|
-
- javascript("rad_social/captcha")
|
2
|
-
|
3
1
|
= form_tag
|
4
|
-
%form{:id=>'rad_social_email_form', :class=>
|
5
|
-
%label{:for =>
|
2
|
+
%form{:id=>'rad_social_email_form', :class=>'rad-email-form'}
|
3
|
+
%label{:for => 'from'}
|
6
4
|
Your Email:
|
7
|
-
%input{:class =>
|
8
|
-
%label{:for =>
|
5
|
+
%input{:class => 'std_input', :type => 'text', :id => 'rs-from', :name => 'from', :size => 40, :maxlength => 35}
|
6
|
+
%label{:for => 'from_name'}
|
9
7
|
Your Name:
|
10
|
-
%input{:class =>
|
11
|
-
%label{:for =>
|
8
|
+
%input{:class => 'std_input', :type => 'text', :id => 'rs-from_name', :name => 'from_name', :size => 40, :maxlength => 35}
|
9
|
+
%label{:for => 'to'}
|
12
10
|
To:
|
13
|
-
%input{:class =>
|
14
|
-
%label{:for =>
|
11
|
+
%input{:class => 'std_input', :type => 'text', :id => 'rs-to', :name => 'to', :size => 40, :maxlength => 35}
|
12
|
+
%label{:for => 'subject'}
|
15
13
|
To:
|
16
|
-
%input{:class =>
|
17
|
-
%label{:for =>
|
14
|
+
%input{:class => 'std_input', :type => 'text', :id => 'rs-subject', :name => 'subject', :size => 40, :maxlength => 35}
|
15
|
+
%label{:for => 'Message'}
|
18
16
|
Message:
|
19
|
-
%textarea{:id =>
|
20
|
-
%input{:type=>
|
21
|
-
%input.button.primary-button{:id =>
|
17
|
+
%textarea{:id => 'rs-message', :rows => 18, :cols => 40}
|
18
|
+
%input{:type=>'hidden', :name=>'submit_url', :value=>'contact/email'}
|
19
|
+
%input.button.primary-button{:id => 'email_submit', :type=>:button ,:value=>'Submit'}
|
22
20
|
.loader
|
23
|
-
|
24
|
-
#recaptcha-container.captcha-container
|
25
|
-
= recaptcha_v3 action: 'emailSeats'
|
@@ -1,5 +1,5 @@
|
|
1
1
|
= stylesheet_link_tag('rad_social/rad_screen')
|
2
|
-
= javascript_include_tag(
|
2
|
+
= javascript_include_tag('rad_social/rad_widget', async: 'true')
|
3
3
|
- local_variables = defined?(locals) ? locals : local_assigns
|
4
4
|
- url = local_variables[:url]
|
5
5
|
- message = local_variables[:message]
|
@@ -9,10 +9,10 @@
|
|
9
9
|
|
10
10
|
.rad-widget
|
11
11
|
.rad-icon
|
12
|
-
%a{:class =>
|
12
|
+
%a{:class => 'rad-popup-window rad-facebook', :href => "https://www.facebook.com/sharer/sharer.php?u=#{CGI::escape(url)}", :target=> '_blank'}
|
13
13
|
.rad-icon
|
14
|
-
%a{:class =>
|
14
|
+
%a{:class => 'rad-popup-window rad-twitter', :href => "https://twitter.com/intent/tweet?text=#{CGI::escape(message + " " + url)}", :target=> '_blank'}
|
15
15
|
.rad-icon
|
16
|
-
%a{:class =>
|
16
|
+
%a{:class => 'rad-popup-window rad-email', :href => rad_social_mail_form_url(:email_subject => email_subject, :email_message => email_message, :email_action_url => email_action_url)}
|
17
17
|
.rad-icon
|
18
|
-
%a{:class =>
|
18
|
+
%a{:class => 'rad-popup-window rad-gplus', :href => "https://plus.google.com/share?url=#{CGI::escape(url)}", :target=> '_blank'}
|