inline_forms 0.9.5 → 0.9.6

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.5
1
+ 0.9.6
@@ -1,11 +1,22 @@
1
1
  InlineForms::SPECIAL_COLUMN_TYPES[:text_area]=:text
2
2
 
3
3
  def text_area_show(object, attribute)
4
- link_to_inline_edit object, attribute, object.send(attribute)
4
+ link_to_inline_edit object,
5
+ attribute,
6
+ ckeditor_textarea( object.class,
7
+ attribute,
8
+ :width => '100%',
9
+ :height => '200px',
10
+ :value => object[attribute],
11
+ :toolbar => "None",
12
+ :resize_enabled => "false",
13
+ :toolbarCanCollapse => false ) +
14
+ raw('<img class="window_pane" src="/images/clear.gif" />')
5
15
  end
6
16
 
7
17
  def text_area_edit(object, attribute)
8
- text_area_tag attribute, object[attribute], :class => 'attribute_text_area'
18
+ # text_area_tag attribute, object[attribute], :class => 'attribute_text_area'
19
+ ckeditor_textarea(object.class, attribute, :width => '100%', :height => '200px', :value => object[attribute], :name => attribute )
9
20
  end
10
21
 
11
22
  def text_area_update(object, attribute)
@@ -24,13 +24,11 @@
24
24
  <div class='<%= "attribute_value attribute_#{attribute} form_element_#{form_element}" -%>' >
25
25
  <span id="<%= css_class_id -%>" >
26
26
  <% if form_element == :associated -%>
27
- <% logger.info 'aso' %>
28
27
  <%= render :partial => "inline_forms/list",
29
28
  :locals => { :parent_class => @object.class,
30
29
  :parent_id => @object.id,
31
30
  :attribute => attribute } %>
32
31
  <% else -%>
33
- <% logger.info 'noaso' %>
34
32
  <%= send("#{form_element}_show", @object, attribute) -%>
35
33
  <% end -%>
36
34
  </span>
@@ -5,7 +5,7 @@
5
5
  <title><%= h(yield(:title) || "xyxyxyx") %></title>
6
6
  <%= csrf_meta_tag %>
7
7
  <%= stylesheet_link_tag 'inline_forms' %>
8
- <%= javascript_include_tag :defaults, 'jquery.form', 'jquery.remotipart' %>
8
+ <%= javascript_include_tag :defaults, 'jquery.form', 'jquery.remotipart', :ckeditor %>
9
9
  <%= yield(:head) %>
10
10
  </head>
11
11
  <body>
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{inline_forms}
8
- s.version = "0.9.5"
8
+ s.version = "0.9.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ace Suares"]
12
- s.date = %q{2011-04-23}
12
+ s.date = %q{2011-04-30}
13
13
  s.description = %q{Inline Forms aims to ease the setup of forms that provide inline editing. The field list can be specified in the model.}
14
14
  s.email = %q{ace@suares.an}
15
15
  s.extra_rdoc_files = [
@@ -36,8 +36,8 @@ module InlineForms
36
36
  :date => :date,
37
37
  :binary => :binary,
38
38
  :boolean => :boolean,
39
- # :references => :belongs_to,
40
- # :belongs_to => :belongs_to,
39
+ # :references => :belongs_to,
40
+ # :belongs_to => :belongs_to,
41
41
  }
42
42
 
43
43
  # For each Default Column Type, we need to specify a Form Element for use in form creation.
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inline_forms
3
3
  version: !ruby/object:Gem::Version
4
- hash: 49
4
+ hash: 55
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 5
10
- version: 0.9.5
9
+ - 6
10
+ version: 0.9.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ace Suares
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-23 00:00:00 -04:00
18
+ date: 2011-04-30 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency