trusty-cms 4.0.2 → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- 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/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 +5 -5
- data/app/assets/stylesheets/admin/partials/_popup.scss +62 -51
- 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 +65 -64
- data/app/controllers/admin/pages_controller.rb +2 -2
- data/app/helpers/application_helper.rb +2 -2
- data/app/models/menu_renderer.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 +8 -7
- data/app/views/admin/assets/index.html.haml +4 -2
- data/app/views/admin/assets/new.html.haml +4 -5
- data/app/views/admin/assets/remove.html.haml +1 -0
- 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 +2 -2
- 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 +4 -5
- 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 +2 -2
- 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 +6 -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 +3 -3
- 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 +2 -2
- 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 -15
- data/app/views/widget/_email_form.html.haml +14 -14
- data/app/views/widget/_horizontal_widget.html.haml +5 -5
- data/lib/trusty_cms.rb +1 -1
- data/package.json +9 -1
- data/yarn.lock +1988 -0
- metadata +8 -7
- 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
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
%h1 Sites
|
4
4
|
|
5
|
-
%table
|
5
|
+
%table.index.tablesaw
|
6
6
|
%thead
|
7
7
|
%tr
|
8
8
|
- render_region :thead do |thead|
|
@@ -31,12 +31,14 @@
|
|
31
31
|
= h(site.base_domain)
|
32
32
|
- tbody.modify_cell do
|
33
33
|
%td.remove
|
34
|
-
= link_to image(
|
34
|
+
= link_to image('remove.png', :alt => 'Remove'), admin_site_path(site), :method => :delete, :onclick => "return confirm('Are you sure you want to permanently remove #{site.name}?')"
|
35
35
|
- tbody.order_cell do
|
36
36
|
%td.order
|
37
37
|
= order_links(site).html_safe
|
38
38
|
|
39
39
|
- render_region :bottom do |bottom|
|
40
40
|
- bottom.new_button do
|
41
|
-
|
42
|
-
= link_to
|
41
|
+
.page-actions
|
42
|
+
= link_to new_admin_site_path, class: 'action_button' do
|
43
|
+
%i.fas.fa-plus-circle
|
44
|
+
New Site
|
@@ -1,6 +1,5 @@
|
|
1
1
|
- unless current_user.site
|
2
|
-
%
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
= select :snippet, :site_id, sites, :include_blank => Snippet.is_shareable?, :selected => @snippet.site_id || current_site.id
|
2
|
+
%label{:for=>'snippet_site_id', :Class => 'admin_only'}
|
3
|
+
Site
|
4
|
+
- sites = Site.all.map { |s| [s.name, s.id] }
|
5
|
+
= select :snippet, :site_id, sites, :include_blank => Snippet.is_shareable?, :selected => @snippet.site_id || current_site.id
|
@@ -4,23 +4,22 @@
|
|
4
4
|
.form_area
|
5
5
|
- render_region :form, :locals => {:f => f} do |form|
|
6
6
|
- form.edit_title do
|
7
|
-
|
7
|
+
.title
|
8
8
|
= f.label :name, t('name')
|
9
9
|
= f.text_field :name, :class => 'textbox activate', :maxlength => 100
|
10
10
|
- form.edit_content do
|
11
|
-
|
11
|
+
.textarea_content
|
12
12
|
= f.label :content, t('body')
|
13
|
-
~ f.text_area :content
|
13
|
+
~ f.text_area :content
|
14
14
|
- form.edit_filter do
|
15
15
|
.set
|
16
|
-
%
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
= link_to t('available_tags'), admin_reference_url(:tags), id: 'tag_reference'
|
16
|
+
%span.reference_links
|
17
|
+
== #{t('reference')}:
|
18
|
+
%span{:id => 'tag_reference_link'}
|
19
|
+
= link_to t('available_tags'), admin_reference_url(:tags), id: 'tag_reference'
|
21
20
|
- render_region :form_bottom, :locals => {:f => f} do |form_bottom|
|
22
21
|
- form_bottom.edit_buttons do
|
23
|
-
.buttons{:style=>
|
22
|
+
.buttons{:style=>'clear: left'}
|
24
23
|
= save_model_button(@snippet)
|
25
24
|
= save_model_and_continue_editing_button(@snippet)
|
26
25
|
= t('or')
|
@@ -9,7 +9,7 @@
|
|
9
9
|
- thead.title_header do
|
10
10
|
%th.name= t('snippet')
|
11
11
|
- thead.actions_header do
|
12
|
-
%th.actions{:style=>
|
12
|
+
%th.actions{:style=>'width:9em'}= t('modify')
|
13
13
|
%tbody
|
14
14
|
- if @snippets.any?
|
15
15
|
- @snippets.each do |snippet|
|
@@ -17,10 +17,14 @@
|
|
17
17
|
- render_region :tbody, :locals => {:snippet => snippet} do |tbody|
|
18
18
|
- tbody.title_cell do
|
19
19
|
%td.name
|
20
|
-
= link_to
|
20
|
+
= link_to edit_admin_snippet_url(snippet) do
|
21
|
+
%i.far.fa-sticky-note
|
22
|
+
= snippet.name
|
21
23
|
- tbody.actions_cell do
|
22
24
|
%td.actions
|
23
|
-
= link_to
|
25
|
+
= link_to remove_admin_snippet_url(snippet), :class => 'action' do
|
26
|
+
%i.fas.fa-minus-circle
|
27
|
+
= t('remove')
|
24
28
|
- else
|
25
29
|
%tr
|
26
30
|
%td.empty{:colspan => admin.snippet.index.tbody.length}= t('no_snippets')
|
@@ -30,4 +34,7 @@
|
|
30
34
|
#actions
|
31
35
|
= pagination_for(@snippets)
|
32
36
|
%ul
|
33
|
-
%li
|
37
|
+
%li
|
38
|
+
= link_to new_admin_snippet_url, class: 'action_button' do
|
39
|
+
%i.fas.fa-plus-circle
|
40
|
+
=t('new_snippet')
|
@@ -7,11 +7,11 @@
|
|
7
7
|
%tbody
|
8
8
|
%tr.node.level_1
|
9
9
|
%td.snippet
|
10
|
-
= image('snippet', :alt =>
|
10
|
+
= image('snippet', :alt => '')
|
11
11
|
%span.title= @snippet.name
|
12
12
|
|
13
|
-
= form_for [:admin, @snippet], :html => {:method => :delete, 'data-onsubmit_status'=>
|
13
|
+
= form_for [:admin, @snippet], :html => {:method => :delete, 'data-onsubmit_status'=>'Removing snippet…'} do
|
14
14
|
.buttons
|
15
|
-
%input.button{:type=>
|
15
|
+
%input.button{:type=>'submit', :value => t('delete_snippet')}/
|
16
16
|
= t('or')
|
17
17
|
= link_to t('cancel'), admin_snippets_url
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#avatar
|
2
|
-
= image_tag(gravatar_url(@user.email, :size=>
|
2
|
+
= image_tag(gravatar_url(@user.email, :size=>'96px'), :class=>'avatar', :width=>96, :height=>96, :alt=>'')
|
3
3
|
%p.caption
|
4
4
|
Avatar provided by
|
5
|
-
= link_to
|
5
|
+
= link_to 'gravatar.com', 'http://gravatar.com/site/signup/'
|
@@ -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
|
+
|
@@ -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
|