optimacms 0.1.40 → 0.1.41

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ef343515c2e1648a71a2a81bf9a5bd9ab047e4d1
4
- data.tar.gz: 0d755da06153d9eed28027e122996da5abf94688
3
+ metadata.gz: 541eefdc59f607b5c4571a0dc5a7e9a42270ce21
4
+ data.tar.gz: 157c3f4c91050b4d477eff86029a263237d2323f
5
5
  SHA512:
6
- metadata.gz: 1b6b2cdd3ef686dffa25f7cccd12e95494f5ced1a8adb9bb93b00fd6db0da98e66945a0d629c6056b2b5b5dd91dea9c79423c905d4f9a9086543da504d406565
7
- data.tar.gz: 43982631e202c5ec32cec04846b6196fa2a69943a89e8a92dc2e26f7b558852a69cca8e3f2837394ac444aba49fabf8448738dc5e6268eb38a8b688f8f7b061b
6
+ metadata.gz: fa652ca931f2e805a3d3995416c2e91b72234ae6cb68dd8f92f2bb150317d679fe0d904d9d2e76c5193a69b5c723a61e70b5806e1978bd20d751fefa767cb947
7
+ data.tar.gz: ee36effdf20837a3b70fa4dcfbcc3264c3389a7c5f92736a10207626597e868ce85983407cd329970ccacd21eb55b82517684050d954f178e7147818e68c39e5
@@ -5,7 +5,7 @@ module Optimacms
5
5
  belongs_to :layout, :foreign_key => 'layout_id', :class_name => 'Template'
6
6
  belongs_to :template, :foreign_key => 'template_id', :class_name => 'Template'
7
7
  belongs_to :folder, :foreign_key => 'parent_id', :class_name => 'Page'
8
- has_many :translations, :foreign_key => 'item_id', :class_name => 'PageTranslation'
8
+ has_many :translations, :foreign_key => 'item_id', :class_name => 'PageTranslation', :dependent => :destroy
9
9
  accepts_nested_attributes_for :translations
10
10
 
11
11
  #has_many :page_translations
@@ -14,23 +14,6 @@
14
14
  .filter
15
15
  = inline_filter_form_for(@filter)
16
16
 
17
- -#= simple_form_for(:filter, url: '/', wrapper: :horizontal_search_form, wrapper_mappings: { check_boxes: :search_horizontal_radio_and_checkboxes, radio_buttons: :search_horizontal_radio_and_checkboxes, boolean: :search_horizontal_boolean },
18
- -#= simple_form_for(:filter, url: pages_url, wrapper: :inline_search_form, wrapper_mappings: { },
19
- html: {:id=>'formFilter'}) do |f|
20
- = hidden_field_tag 'cmd', 'apply'
21
- = render 'tableview/filter_fields', filter: @filter, f: f
22
- = render 'tableview/buttons_apply_clear_simple_form_inline', filter: @filter, f: f
23
-
24
-
25
-
26
- -#= form_tag(search_pages_url(:action=>'index'), method: "post", :class=>'form-inline', :name=>'formFilter', :id=>'formFilter') do
27
- = hidden_field_tag 'cmd', 'apply'
28
-
29
- = render :partial=>'tableview/filter_fields', :locals => {:filter=>@filter}
30
-
31
- = render :partial=>'tableview/buttons_apply_clear', :locals => {:filter=>@filter}
32
-
33
-
34
17
 
35
18
  - if @parent
36
19
  =link_to 'HOME', pages_path(:parent_id=>0)
@@ -39,10 +22,8 @@
39
22
 
40
23
  %table.table.table-striped.table-bordered
41
24
  %tr
42
- %th
43
- -#= link_to 'Title', pages_path(:cmd=>'order', :orderby=>'title', :orderdir=>@filter.get_opposite_order_dir_for_column('title'))
44
- = link_to 'Title', '#'
45
- %th Name
25
+ %th= link_to_sortable_column :title, 'Title'
26
+ %th= link_to_sortable_column :name, 'Name'
46
27
  %th URL
47
28
  %th Template
48
29
  %th Commands
@@ -15,7 +15,7 @@
15
15
  -#= f.input :basename, disabled: true, label: 'Name'
16
16
  -#= f.input :basedirpath, label: "Folder", :disabled=> true
17
17
  = f.input :path, disabled: true, label: 'File'
18
- =link_to 'Rename', '#'
18
+ -#=link_to 'Rename', '#'
19
19
 
20
20
 
21
21
  -#= f.input :is_translated, label: "Translate?"
@@ -23,7 +23,7 @@
23
23
  - if @item.has_code?
24
24
  .form-group.template_content
25
25
  %label(for="inputContent" class="col-sm-2 col-md-1 control-label")
26
- Template
26
+ Content
27
27
 
28
28
  .col-sm-8.col-md-8.control
29
29
  = f.input_field :content, as: :text, label: "Content", html: {:rows => 16, :cols => 120, :class=>'' }
@@ -14,15 +14,6 @@
14
14
 
15
15
  .filter
16
16
  = inline_filter_form_for(@filter)
17
- -#= horizontal_filter_form_for(@filter)
18
-
19
- -#= form_tag(search_templates_url(:action=>'index'), method: "post", :class=>'form-inline', :name=>'formFilter', :id=>'formFilter') do
20
- = hidden_field_tag 'cmd', 'apply'
21
-
22
- = render :partial=>'tableview/filter_fields', :locals => {:filter=>@filter}
23
-
24
- = render :partial=>'tableview/buttons_apply_clear', :locals => {:filter=>@filter}
25
-
26
17
 
27
18
 
28
19
  - if @parent
@@ -36,10 +27,8 @@
36
27
 
37
28
  %table.table.table-striped.table-bordered
38
29
  %tr
39
- %th
40
- = link_to_sortable_column :title, 'Title'
41
- -#= link_to 'Title', pages_path(:cmd=>'order', :orderby=>'title', :orderdir=>@filter.get_opposite_order_dir_for_column('title'))
42
- %th Path
30
+ %th= link_to_sortable_column :title, 'Title'
31
+ %th= link_to_sortable_column :basepath, 'Path'
43
32
  %th Commands
44
33
 
45
34
  - @items.each do |item|
@@ -1,3 +1,3 @@
1
1
  module Optimacms
2
- VERSION = "0.1.40"
2
+ VERSION = "0.1.41"
3
3
  end
@@ -0,0 +1 @@
1
+ rrr