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
@@ -1,13 +1,14 @@
|
|
1
1
|
= stylesheet_link_tag 'admin/assets'
|
2
2
|
= javascript_include_tag 'admin/assets_admin'
|
3
|
-
|
3
|
+
|
4
|
+
%fieldset.asset_attachment
|
4
5
|
#attachment_list.assets
|
5
6
|
%ul#attachment_fields{:class => @page.page_attachments.empty? ? 'empty' : ''}
|
6
7
|
= render :partial => 'admin/page_attachments/attachment', :collection => @page.page_attachments
|
7
|
-
|
8
|
-
|
9
|
-
%i.fa.fa-image
|
10
|
-
= t('clipped_extension.assets')
|
11
|
-
%span.message
|
8
|
+
.attach-assets
|
9
|
+
.message
|
12
10
|
- if @page.page_attachments.empty?
|
13
|
-
= t('clipped_extension.no_attached_assets')
|
11
|
+
= t('clipped_extension.no_attached_assets')
|
12
|
+
= link_to 'path/to/page.html' '#attach_asset', :class => 'button', :id => 'attach_assets' do
|
13
|
+
%i.far.fa-image
|
14
|
+
= t('clipped_extension.assets')
|
@@ -7,23 +7,25 @@
|
|
7
7
|
- render_region :form, :locals => {:f => fields} do |form|
|
8
8
|
- form.edit_title do
|
9
9
|
%p.title
|
10
|
-
%label{:for=>
|
11
|
-
= fields.text_field :title, :class => 'textbox', :
|
10
|
+
%label{:for=>'page_title'}= t('page_title')
|
11
|
+
= fields.text_field :title, :class => 'textbox', :required => true
|
12
12
|
- form.edit_extended_metadata do
|
13
13
|
.drawer
|
14
14
|
.drawer_contents#attributes
|
15
15
|
%table.fieldset
|
16
|
-
= render :partial =>
|
16
|
+
= render :partial => 'meta_row', :collection => @meta, :locals => {:f => fields}
|
17
17
|
= render :partial => 'admin/page_fields/page_field', :collection => @page.fields
|
18
18
|
= render_region :extended_metadata, :locals => {:f => fields}
|
19
19
|
.drawer_handle
|
20
|
-
%a.toggle{:href=>'#attributes', :rel=>
|
20
|
+
%a.toggle{:href=>'#attributes', :rel=>'toggle[attributes]', :class=>"#{(meta_errors? ? 'less' : 'more')}"}
|
21
|
+
= meta_label
|
22
|
+
%i.fas.fa-angle-down
|
21
23
|
- form.edit_page_parts do
|
22
24
|
#tab_control
|
23
25
|
#tabs.tabs
|
24
26
|
#tab_toolbar
|
25
27
|
%a.popup{:href=> '#add_part_popup', :title=>t('add_part')}
|
26
|
-
|
28
|
+
%i.fas.fa-plus-circle
|
27
29
|
#pages.pages
|
28
30
|
= render :partial => 'admin/page_parts/page_part', :collection => @page.parts
|
29
31
|
= render_region :parts_bottom, :locals => {:f => fields}
|
@@ -31,35 +33,36 @@
|
|
31
33
|
.set
|
32
34
|
- render_region :layout, :locals => {:f => fields} do |layout|
|
33
35
|
- layout.edit_layout do
|
34
|
-
|
36
|
+
.layout
|
35
37
|
= fields.label :layout_id, t('layout')
|
36
38
|
= fields.select :layout_id, [[t('select.inherit') , '']] + Layout.all.map { |s| [s.name, s.id] }
|
37
39
|
- layout.edit_type do
|
38
|
-
|
40
|
+
.page-type
|
39
41
|
= fields.label :class_name, t('page_type')
|
40
42
|
= fields.select :class_name, [[t('select.normal'), '']] + Page.descendants.map { |p| [p.display_name, p.name] }.sort_by { |p| p.first }
|
41
43
|
- layout.edit_status do
|
42
|
-
|
44
|
+
.status
|
43
45
|
= fields.label :status_id, t('status')
|
44
46
|
= fields.select :status_id, status_to_display
|
45
47
|
- layout.edit_published_at do
|
46
|
-
|
47
|
-
|
48
|
-
|
48
|
+
.published-date
|
49
|
+
#published_at{:class => (@page.published? ? nil : 'hidden')}
|
50
|
+
= fields.label :published_at, t('published_on')
|
51
|
+
= fields.text_field :published_at, :class=> 'date', :type=>'date', :value => (@page.published_at? ? I18n.localize(@page.published_at.to_date, :format =>:default) : nil)
|
49
52
|
= render_region :layout_row, :locals => {:f => fields}
|
50
53
|
|
51
54
|
- render_region :form_bottom, :locals => {:f => fields} do |form_bottom|
|
52
55
|
- form_bottom.edit_buttons do
|
53
56
|
- @buttons_partials.each do |partial|
|
54
57
|
= render :partial => partial, :locals => {:f => fields}
|
55
|
-
.
|
58
|
+
.page-actions
|
56
59
|
= save_model_button(@page)
|
57
60
|
= save_model_and_continue_editing_button(@page)
|
58
61
|
= submit_tag(t('preview', :default => 'Preview'), :class => 'button', :id => 'show-preview')
|
59
62
|
= t('or')
|
60
63
|
= link_to t('cancel'), admin_pages_url, class: 'alt'
|
61
64
|
#preview_panel.fullcover.grey_out{:style => 'display: none;'}
|
62
|
-
%iframe{:id => 'page-preview', :class => 'fullcover', :name => 'page-preview', :src => ActionController::Base.relative_url_root.to_s + '/loading-iframe.html', :frameborder => 0, :scrolling =>
|
65
|
+
%iframe{:id => 'page-preview', :class => 'fullcover', :name => 'page-preview', :src => ActionController::Base.relative_url_root.to_s + '/loading-iframe.html', :frameborder => 0, :scrolling => 'auto'}
|
63
66
|
.preview_tools
|
64
67
|
=submit_tag(t('buttons.save_changes'), :class => 'big save_changes')
|
65
68
|
=submit_tag(t('buttons.save_and_continue'), :class => 'big save_and_continue', :name => 'continue')
|
@@ -1,13 +1,13 @@
|
|
1
|
-
%tr.page{:class =>
|
1
|
+
%tr.page{:class =>'branch', :data => { :tt_branch => branch.to_s, :tt_id => page.id, :tt_parent_id => parent_index, :tt_page_id => page.id}, :id => "page_#{page.id}"}
|
2
2
|
- render_region :node, :locals => {:page => page, :level => level, :simple => simple} do |node|
|
3
3
|
- node.title_column do
|
4
4
|
%td.name
|
5
5
|
%span.w1
|
6
6
|
- if simple
|
7
|
-
= icon
|
8
7
|
= node_title
|
9
8
|
- else
|
10
|
-
|
9
|
+
%i.far.fa-file
|
10
|
+
= (link_to("#{node_title}".html_safe, edit_admin_page_path(page), :title => page.path)).html_safe
|
11
11
|
= page_type
|
12
12
|
= spinner
|
13
13
|
- node.status_column do
|
@@ -3,30 +3,30 @@
|
|
3
3
|
.outer
|
4
4
|
.content
|
5
5
|
|
6
|
-
#add_part_popup.popup{:style =>
|
7
|
-
#add_part_busy.busy{:style =>
|
6
|
+
#add_part_popup.popup{:style => 'display: none'}
|
7
|
+
#add_part_busy.busy{:style => 'display: none'}= image('spinner.gif', :alt => '')
|
8
8
|
.popup_title= t('add_part')
|
9
9
|
= form_for [:admin, PagePart.new] do |f|
|
10
10
|
%p
|
11
11
|
%label{:for => 'part_name_field'}= t('name')
|
12
|
-
= f.text_field :name, :id => 'part_name_field', :maxlength => 100, :style =>
|
12
|
+
= f.text_field :name, :id => 'part_name_field', :maxlength => 100, :style => 'width: 15em', :class => 'textbox big'
|
13
13
|
= hidden_field_tag 'index', 0, :id => 'page_part_index_field'
|
14
14
|
.buttons
|
15
|
-
= submit_tag t('add_part'), :id => 'add_part_button', :class =>
|
15
|
+
= submit_tag t('add_part'), :id => 'add_part_button', :class => 'button'
|
16
16
|
= t('or')
|
17
|
-
= link_to
|
18
|
-
#add_field_popup.popup{:style=>
|
19
|
-
#add_field_busy.busy{:style=>
|
17
|
+
= link_to 'Cancel', '#', onclick: 'Popup.close(); return false', class: 'cancel'
|
18
|
+
#add_field_popup.popup{:style=>'display: none'}
|
19
|
+
#add_field_busy.busy{:style=>'display: none'}= image('spinner.gif', :alt => '')
|
20
20
|
.popup_title= t('add_field')
|
21
|
-
= form_for [:admin, PageField.new], :html => { :onsubmit =>
|
21
|
+
= form_for [:admin, PageField.new], :html => { :onsubmit => 'event.stop(); addField(this)' } do |f|
|
22
22
|
%p
|
23
|
-
%label{:for=>
|
24
|
-
= f.text_field :name, :maxlength=>100, :class=>'textbox big', :style=>
|
23
|
+
%label{:for=>'page_field_name'}= t('name')
|
24
|
+
= f.text_field :name, :maxlength=>100, :class=>'textbox big', :style=>'width: 15em'
|
25
25
|
= hidden_field_tag 'index', 2, :id=>'page_field_index_field'
|
26
26
|
= hidden_field_tag 'page_field_counter', @page.fields.size
|
27
27
|
= f.hidden_field :page_id, value: @page.id
|
28
28
|
.buttons
|
29
29
|
= submit_tag t('add_field'), :class=>'button', :id=>'add_page_field_button'
|
30
30
|
= t('or')
|
31
|
-
= link_to
|
31
|
+
= link_to 'Cancel', '#', onclick: 'Popup.close(); return false', class: 'cancel'
|
32
32
|
= render_region :popups
|
@@ -5,6 +5,6 @@
|
|
5
5
|
%h1= ''
|
6
6
|
- main.edit_form do
|
7
7
|
= form_for @page, :as => :page, :url => admin_page_path(@page), :html => {:method => :put, :multipart => true, :id => 'edit_page', 'data-onsubmit_status'=>t('saving_changes')} do |fields|
|
8
|
-
= render :partial =>
|
8
|
+
= render :partial => 'fields', :object => fields
|
9
9
|
- main.edit_popups do
|
10
|
-
= render :partial =>
|
10
|
+
= render :partial => 'popups'
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
.outset
|
4
4
|
= render_region :top
|
5
|
-
%table.index#pages{:summary=>t('page_hierarchy')}
|
5
|
+
%table.index.tablesaw#pages{:summary=>t('page_hierarchy')}
|
6
6
|
%thead
|
7
7
|
%tr
|
8
8
|
- render_region :sitemap_head do |sitemap_head|
|
@@ -23,4 +23,7 @@
|
|
23
23
|
- unless @homepage
|
24
24
|
#actions
|
25
25
|
%ul
|
26
|
-
%li
|
26
|
+
%li
|
27
|
+
= link_to new_admin_page_path, :class => 'action_button' do
|
28
|
+
%i.fas.fa-plus-circle
|
29
|
+
= t("new_homepage")
|
@@ -2,7 +2,7 @@
|
|
2
2
|
- main.edit_header do
|
3
3
|
%h1= t('new_page')
|
4
4
|
- main.edit_form do
|
5
|
-
= form_for @page, :as => :page, :url => admin_pages_path, :html => {:id => 'new_page', :multipart => true, 'data-onsubmit_status'=>
|
6
|
-
= render :partial =>
|
5
|
+
= form_for @page, :as => :page, :url => admin_pages_path, :html => {:id => 'new_page', :multipart => true, 'data-onsubmit_status'=>'Creating page…'} do |f|
|
6
|
+
= render :partial => 'fields', :object => f
|
7
7
|
- main.edit_popups do
|
8
|
-
= render :partial =>
|
8
|
+
= render :partial => 'popups'
|
@@ -12,8 +12,8 @@
|
|
12
12
|
- render_nodes @page, @page.id, nil, true
|
13
13
|
= @rendered_html.html_safe
|
14
14
|
|
15
|
-
= form_for [:admin, @page.becomes(Page)], :html => {:method => :delete, 'data-onsubmit_status'=>
|
15
|
+
= form_for [:admin, @page.becomes(Page)], :html => {:method => :delete, 'data-onsubmit_status'=>'Removing pages…'} do
|
16
16
|
.buttons
|
17
|
-
%input.button{:type=>
|
17
|
+
%input.button{:type=>'submit', :value => t('delete_pages', :pages => pages) }/
|
18
18
|
= t('or')
|
19
19
|
= link_to t('cancel'), admin_pages_path, class: 'alt'
|
@@ -16,20 +16,20 @@
|
|
16
16
|
- form.edit_first_name do
|
17
17
|
%p
|
18
18
|
= f.label :name, t("first_name")
|
19
|
-
= f.text_field :first_name, :class =>
|
19
|
+
= f.text_field :first_name, :class => 'textbox', :size => 32, :maxlength => 100
|
20
20
|
|
21
21
|
- form.edit_last_name do
|
22
22
|
%p
|
23
23
|
= f.label :name, t("last_name")
|
24
|
-
= f.text_field :last_name, :class =>
|
24
|
+
= f.text_field :last_name, :class => 'textbox', :size => 32, :maxlength => 100
|
25
25
|
|
26
26
|
- form.edit_email do
|
27
27
|
%p
|
28
|
-
= f.label :email, t("email_address"), :class =>
|
29
|
-
= f.text_field
|
28
|
+
= f.label :email, t("email_address"), :class => 'optional'
|
29
|
+
= f.text_field 'email', :class => 'textbox', :maxlength => 255
|
30
30
|
|
31
31
|
- form.edit_password do
|
32
|
-
= render
|
32
|
+
= render 'admin/users/password_fields', :f => f
|
33
33
|
|
34
34
|
- render_region :form_bottom, :locals => {:f => f} do |form_bottom|
|
35
35
|
- form_bottom.edit_buttons do
|
@@ -2,10 +2,10 @@
|
|
2
2
|
.popup_title
|
3
3
|
=t('available_tags_for', :name => _display_name)
|
4
4
|
%p
|
5
|
-
%fieldset{:id =>
|
5
|
+
%fieldset{:id => 'live-search'}
|
6
6
|
%label.inline{:for => "search_#{class_of_page.name.underscore}_tag_reference"} Filter Tags
|
7
|
-
%input{:id =>
|
8
|
-
%span{:id =>
|
7
|
+
%input{:id => 'filter', :type => 'text', :name => 'search_tag_reference', :value => ''}/
|
8
|
+
%span{:id => 'filter-count'}
|
9
9
|
.reference= tag_reference.html_safe
|
10
10
|
%p.close_link
|
11
11
|
%a.close_tags{href:'#'}
|
@@ -1,8 +1,8 @@
|
|
1
|
-
#asset-bucket{ :style =>
|
2
|
-
= render :partial =>
|
1
|
+
#asset-bucket{ :style => 'display: none' }
|
2
|
+
= render :partial => '/admin/assets/assets_container'
|
3
3
|
|
4
4
|
%p.note
|
5
5
|
= automatic_size_descriptions
|
6
6
|
= t('clipped_extension.images_automatically_created')
|
7
7
|
#close-link
|
8
|
-
= link_to t(
|
8
|
+
= link_to t('close'), '#'
|
@@ -6,21 +6,21 @@
|
|
6
6
|
- render_region :asset_tabs do |asset_tabs|
|
7
7
|
- if @page && !@page.new_record?
|
8
8
|
- asset_tabs.attachment_tab do
|
9
|
-
%a.asset-tab{ :href =>
|
10
|
-
= t(
|
9
|
+
%a.asset-tab{ :href => '#page-attachments', :id => 'tab_page-attachments' }
|
10
|
+
= t('clipped_extension.attached_assets')
|
11
11
|
- asset_tabs.upload_tab do
|
12
|
-
%a.asset-tab{ :href =>
|
13
|
-
= t(
|
12
|
+
%a.asset-tab{ :href => '#upload_assets', :id => 'tab_upload_assets' }
|
13
|
+
= t('clipped_extension.upload')
|
14
14
|
- asset_tabs.bucket_tab do
|
15
|
-
%a.asset-tab{ :href =>
|
16
|
-
= t(
|
15
|
+
%a.asset-tab{ :href => '#bucket', :id => 'tab_bucket' }
|
16
|
+
= t('clipped_extension.bucket')
|
17
17
|
- asset_tabs.search_tab do
|
18
|
-
%a.asset-tab{ :href =>
|
19
|
-
= t(
|
18
|
+
%a.asset-tab{ :href => '#search-assets' }
|
19
|
+
= t('clipped_extension.search')
|
20
20
|
- else
|
21
21
|
- asset_tabs.bucket_tab do
|
22
|
-
%a.asset-tab.here{ :href =>
|
23
|
-
= t(
|
22
|
+
%a.asset-tab.here{ :href => '#' }
|
23
|
+
= t('clipped_extension.bucket')
|
24
24
|
- if @page && !@page.new_record?
|
25
25
|
- render_region :asset_panes do |asset_panes|
|
26
26
|
|
@@ -28,27 +28,27 @@
|
|
28
28
|
#page-attachments.pane
|
29
29
|
%p
|
30
30
|
%span.note
|
31
|
-
!= t(
|
31
|
+
!= t('clipped_extension.asset_note')
|
32
32
|
%ul#attachments
|
33
|
-
= render :partial =>
|
33
|
+
= render :partial => 'admin/assets/page_assets'
|
34
34
|
.clear
|
35
35
|
|
36
36
|
- asset_panes.upload do
|
37
37
|
#upload_assets.pane
|
38
38
|
%p
|
39
39
|
%span.note
|
40
|
-
!= t(
|
41
|
-
= render :partial =>
|
40
|
+
!= t('clipped_extension.asset_page_upload_note')
|
41
|
+
= render :partial => 'admin/assets/upload_to_page'
|
42
42
|
.clear
|
43
43
|
- asset_panes.search do
|
44
44
|
#search-assets.pane
|
45
45
|
- form_tag do
|
46
46
|
%p
|
47
47
|
%label.note{ :for => 'search' }
|
48
|
-
= t(
|
49
|
-
%input{ :type =>
|
50
|
-
%input{ :type =>
|
51
|
-
= submit_tag t(
|
48
|
+
= t('clipped_extension.search_assets')
|
49
|
+
%input{ :type => 'hidden', :name => 'search', :value => @page.id }
|
50
|
+
%input{ :type => 'search', :id => 'search', :name => 'search' }
|
51
|
+
= submit_tag t('clipped_extension.search')
|
52
52
|
#search-results
|
53
53
|
.clear
|
54
54
|
= observe_field 'search', :frequency => 1, :update => 'search-results', :url => admin_assets_path(:asset_page => @page), :method => 'get', :with => "'search=' + escape(value)"
|
@@ -1,9 +1,9 @@
|
|
1
1
|
%li
|
2
2
|
|
3
3
|
%div{ :class => "#{asset_type} asset", :id => "bucket_#{asset_id}" }
|
4
|
-
= link_to image_tag(asset_thumbnail), asset_url, :title => asset_title, :class =>
|
4
|
+
= link_to image_tag(asset_thumbnail), asset_url, :title => asset_title, :class => 'bucket_link'
|
5
5
|
|
6
6
|
.info{ :id => "#{asset_id}_info" }
|
7
|
-
= link_to image('assets/edit'), edit_admin_asset_url(asset_id), :class =>
|
7
|
+
= link_to image('assets/edit'), edit_admin_asset_url(asset_id), :class => 'edit_asset', :title => t('clipped_extension.edit_asset', :asset => asset_title)
|
8
8
|
- if page && !page.new_record?
|
9
|
-
= link_to image('assets/add'), attach_page_asset_url(:asset => asset_id, :page => page.id), :class =>
|
9
|
+
= link_to image('assets/add'), attach_page_asset_url(:asset => asset_id, :page => page.id), :class => 'add_asset', :title => t('clipped_extension.attach_to_page')
|
@@ -1,12 +1,12 @@
|
|
1
1
|
#upload-form
|
2
|
-
- form_for :asset, :url => admin_assets_path(:page => @page, :format => 'js'), :html => { :id => 'asset-upload', :method =>
|
2
|
+
- form_for :asset, :url => admin_assets_path(:page => @page, :format => 'js'), :html => { :id => 'asset-upload', :method => 'post', :multipart => true, :target => 'ulframe' } do |form|
|
3
3
|
%div.file
|
4
4
|
%label.upload
|
5
|
-
= t(
|
6
|
-
= form.file_field :asset, :class =>
|
5
|
+
= t('clipped_extension.choose_upload')
|
6
|
+
= form.file_field :asset, :class => '', :style => 'width: 100%'
|
7
7
|
|
8
8
|
.upload-buttons
|
9
|
-
= form.submit t(
|
9
|
+
= form.submit t('clipped_extension.save_and_upload'), :class => 'button'
|
10
10
|
%div.spinner
|
11
11
|
|
12
|
-
%iframe{:id => 'ulframe', :name =>
|
12
|
+
%iframe{:id => 'ulframe', :name => 'ulframe', :src => 'about:blank'}
|
@@ -4,35 +4,35 @@
|
|
4
4
|
|
5
5
|
- form.edit_name do
|
6
6
|
%fieldset.title
|
7
|
-
%
|
8
|
-
%i.
|
7
|
+
%h4
|
8
|
+
%i.fas.fa-sitemap
|
9
9
|
Site Information
|
10
|
-
%label{:for =>
|
11
|
-
= f.text_field :name, :class =>
|
10
|
+
%label{:for => 'site_name'} Site title
|
11
|
+
= f.text_field :name, :class => 'textbox', :size => 50
|
12
12
|
%br
|
13
|
-
%label{:for =>
|
14
|
-
= f.text_field :subtitle, :class =>
|
13
|
+
%label{:for => 'site_subtitle'} and subtitle
|
14
|
+
= f.text_field :subtitle, :class => 'textbox'
|
15
15
|
|
16
16
|
- form.edit_domain do
|
17
17
|
%fieldset.domain
|
18
|
-
%
|
19
|
-
%i.
|
18
|
+
%h4
|
19
|
+
%i.fas.fa-lightbulb
|
20
20
|
Domain Information
|
21
|
-
%label{:for =>
|
21
|
+
%label{:for => 'site_domain'}
|
22
22
|
Domain pattern
|
23
|
-
= f.text_field :domain, :class =>
|
23
|
+
= f.text_field :domain, :class => 'textbox', :size => 50
|
24
24
|
%br
|
25
|
-
%label{:for =>
|
25
|
+
%label{:for => 'site_base_domain'}
|
26
26
|
Base domain name
|
27
|
-
= f.text_field :base_domain, :class =>
|
27
|
+
= f.text_field :base_domain, :class => 'textbox', :size => 50
|
28
28
|
|
29
29
|
- form.edit_homepage do
|
30
30
|
%fieldset.homepage
|
31
|
-
%
|
32
|
-
%i.
|
31
|
+
%h4
|
32
|
+
%i.fas.fa-home
|
33
33
|
Homepage ID
|
34
|
-
%label{:for =>
|
35
|
-
= f.text_field :homepage_id, :class =>
|
34
|
+
%label{:for => 'site_homepage_id'} Homepage ID
|
35
|
+
= f.text_field :homepage_id, :class => 'textbox'
|
36
36
|
|
37
37
|
%p.formnote
|
38
38
|
- if f.object.new_record?
|
@@ -44,7 +44,7 @@
|
|
44
44
|
- form_bottom.edit_timestamp do
|
45
45
|
= updated_stamp @site
|
46
46
|
- form_bottom.edit_buttons do
|
47
|
-
|
47
|
+
.buttons
|
48
48
|
= save_model_button(@site)
|
49
49
|
or
|
50
|
-
= link_to
|
50
|
+
= link_to 'cancel', admin_sites_path
|