inline_forms 0.9.3 → 0.9.4
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
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.4
|
@@ -3,7 +3,7 @@ InlineForms::SPECIAL_COLUMN_TYPES[:dropdown_with_values]=:integer
|
|
3
3
|
# dropdown_with_values
|
4
4
|
def dropdown_with_values_show(object, attribute)
|
5
5
|
values = attribute_values(object, attribute)
|
6
|
-
link_to_inline_edit object, attribute, values[object.send(attribute)
|
6
|
+
link_to_inline_edit object, attribute, values[object.send(attribute)][1]
|
7
7
|
end
|
8
8
|
def dropdown_with_values_edit(object, attribute)
|
9
9
|
# the leading underscore is to avoid name conflicts, like 'email' and 'email_type' will result in 'email' and 'email[email_type_id]' in the form!
|
@@ -10,13 +10,13 @@ module InlineFormsHelper
|
|
10
10
|
|
11
11
|
private
|
12
12
|
|
13
|
-
# close
|
14
|
-
def close_link( object )
|
13
|
+
# close link
|
14
|
+
def close_link( object, update_span )
|
15
15
|
link_to image_tag( 'css/close.png',
|
16
16
|
:class => "close_icon" ),
|
17
17
|
send( object.class.to_s.underscore + '_path',
|
18
18
|
object,
|
19
|
-
:update =>
|
19
|
+
:update => update_span,
|
20
20
|
:close => true ),
|
21
21
|
:remote => true
|
22
22
|
end
|
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.4"
|
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-03-
|
12
|
+
s.date = %q{2011-03-24}
|
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 = [
|
@@ -176,6 +176,18 @@ ul.checklist li {
|
|
176
176
|
margin: 0.4em 1em 0.4em 1em;
|
177
177
|
}
|
178
178
|
|
179
|
+
#title {
|
180
|
+
float: left;
|
181
|
+
}
|
182
|
+
|
183
|
+
#logout {
|
184
|
+
float:right;
|
185
|
+
}
|
186
|
+
|
187
|
+
#logout a {
|
188
|
+
color: white;
|
189
|
+
}
|
190
|
+
|
179
191
|
#tabs {
|
180
192
|
background-color: #F9EBAE;
|
181
193
|
-moz-border-radius: 5px;
|
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: 51
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
|
-
-
|
10
|
-
version: 0.9.
|
9
|
+
- 4
|
10
|
+
version: 0.9.4
|
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-03-
|
18
|
+
date: 2011-03-24 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|