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.3
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).to_s]
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 icon
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 => object.class.to_s.underscore + '_' + object.id.to_s,
19
+ :update => update_span,
20
20
  :close => true ),
21
21
  :remote => true
22
22
  end
@@ -7,7 +7,7 @@
7
7
  </th>
8
8
  <th valign="top">
9
9
  <div class="close_link" >
10
- <%= close_link(@object) -%>
10
+ <%= close_link(@object, @update_span) -%>
11
11
  </div>
12
12
  </th>
13
13
  </tr>
@@ -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.3"
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-23}
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: 61
4
+ hash: 51
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 3
10
- version: 0.9.3
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-23 00:00:00 -04:00
18
+ date: 2011-03-24 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency