inline_forms 0.9.5 → 0.9.6
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.
- data/VERSION +1 -1
- data/app/helpers/form_elements/text_area.rb +13 -2
- data/app/views/inline_forms/_show.html.erb +0 -2
- data/app/views/layouts/inline_forms.rhtml +1 -1
- data/inline_forms.gemspec +2 -2
- data/lib/inline_forms.rb +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
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,
|
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>
|
data/inline_forms.gemspec
CHANGED
@@ -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.
|
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-
|
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 = [
|
data/lib/inline_forms.rb
CHANGED
@@ -36,8 +36,8 @@ module InlineForms
|
|
36
36
|
:date => :date,
|
37
37
|
:binary => :binary,
|
38
38
|
:boolean => :boolean,
|
39
|
-
|
40
|
-
|
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:
|
4
|
+
hash: 55
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
|
-
-
|
10
|
-
version: 0.9.
|
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-
|
18
|
+
date: 2011-04-30 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|