wheels 0.0.23 → 0.0.24

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.23
1
+ 0.0.24
@@ -1,23 +1,10 @@
1
1
  - include_ckeditor
2
-
3
2
  = render :partial => "child_pages_links"
4
- = form_for form_object, :url=>form_url do |f|
5
- -if @page.errors.any?
6
- #errorExplanation
7
- %h2= "#{pluralize(@page.errors.count, "error")} prohibited this page from being saved:"
8
- %ul
9
- - @page.errors.full_messages.each do |msg|
10
- %li= msg
11
- .field
12
- = f.label :title
13
- = f.text_field :title
14
- .field
15
- = f.label :tag_list
16
- = f.text_field :tag_list
17
3
 
18
- .field
19
- = f.label :body
20
- = f.text_area :body, :class=>'ckeditor_textarea'
21
- .actions
22
- = f.submit 'Save'
4
+ - if params[:action]=="new"
5
+ = form_for form_object do |f|
6
+ = render :partial => "form_fields", :locals=>{:f=>f}
7
+ - else
8
+ = form_for form_object, {:url=>form_url} do |f|
9
+ = render :partial => "form_fields", :locals=>{:f=>f}
23
10
 
@@ -0,0 +1,19 @@
1
+ -if @page.errors.any?
2
+ #errorExplanation
3
+ %h2= "#{pluralize(@page.errors.count, "error")} prohibited this page from being saved:"
4
+ %ul
5
+ - @page.errors.full_messages.each do |msg|
6
+ %li= msg
7
+ .field
8
+ = f.label :title
9
+ = f.text_field :title
10
+ .field
11
+ = f.label :tag_list
12
+ = f.text_field :tag_list
13
+
14
+ .field
15
+ = f.label :body
16
+ = f.text_area :body, :class=>'ckeditor_textarea'
17
+ .actions
18
+ = f.submit 'Save'
19
+
@@ -1,4 +1,5 @@
1
- %h1 Editing page
1
+ %h1 Editing page %li= link_to 'Edit Access', access_control_entries_path(:resource_class=>"Page", :resource_id=>@page.id)
2
+
2
3
 
3
4
  = render 'form'
4
5
 
@@ -12,7 +13,7 @@
12
13
  = form_for form_object, :url=>form_url, :remote=>true do |f|
13
14
  = select_tag :child_id, options_for_select(to_html_options(Page.orphans))
14
15
  = f.submit "Add Child"
15
- = link_to "New Child Page", new_page_path(:page_id=>@page.id), :confirm=>"Adding a child page will leave this page without saving. Only continue if you have no unsaved changes."
16
+
16
17
  = link_to 'Show', @page
17
18
  \|
18
19
  = link_to 'Back', pages_path
@@ -8,7 +8,6 @@
8
8
  %ul
9
9
  %li.sidebar_title Manage This Page
10
10
  %li= link_to 'Edit', edit_page_path(@page)
11
- %li= link_to 'Edit Access', access_control_entries_path(:resource_class=>"Page", :resource_id=>@page.id)
12
11
 
13
12
  - if @parent_page
14
13
  = content_for :links do
data/wheels.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{wheels}
8
- s.version = "0.0.23"
8
+ s.version = "0.0.24"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tyler Gannon"]
@@ -113,6 +113,7 @@ Gem::Specification.new do |s|
113
113
  "app/views/loadbehind/index.js.haml",
114
114
  "app/views/pages/_child_pages_links.html.haml",
115
115
  "app/views/pages/_form.html.haml",
116
+ "app/views/pages/_form_fields.html.haml",
116
117
  "app/views/pages/_show_attachment.html.haml",
117
118
  "app/views/pages/_show_small.html.haml",
118
119
  "app/views/pages/create.js.haml",
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wheels
3
3
  version: !ruby/object:Gem::Version
4
- hash: 49
4
+ hash: 47
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 23
10
- version: 0.0.23
9
+ - 24
10
+ version: 0.0.24
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tyler Gannon
@@ -138,6 +138,7 @@ files:
138
138
  - app/views/loadbehind/index.js.haml
139
139
  - app/views/pages/_child_pages_links.html.haml
140
140
  - app/views/pages/_form.html.haml
141
+ - app/views/pages/_form_fields.html.haml
141
142
  - app/views/pages/_show_attachment.html.haml
142
143
  - app/views/pages/_show_small.html.haml
143
144
  - app/views/pages/create.js.haml