inline_forms 0.9.10 → 0.9.11

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.10
1
+ 0.9.11
@@ -1,7 +1,7 @@
1
1
  InlineForms::SPECIAL_COLUMN_TYPES[:check_box]=:boolean
2
2
  # boolean, bit unaptly named check_box
3
3
  def check_box_show(object, attribute)
4
- values ||= { 'false' => 'no', 'true' => 'yes' }
4
+ values = attribute_values(object, attribute)
5
5
  link_to_inline_edit object, attribute, values[object.send(attribute).to_s]
6
6
  end
7
7
 
@@ -4,13 +4,27 @@
4
4
  <head>
5
5
  <title><%= h(yield(:title) || "xyxyxyx") %></title>
6
6
  <%= csrf_meta_tag %>
7
- <%= stylesheet_link_tag 'inline_forms' %>
7
+ <%= stylesheet_link_tag 'inline_forms', 'jquery-ui-datepicker-sunny' %>
8
8
  <%= javascript_include_tag :defaults, 'jquery.form', 'jquery.remotipart', :ckeditor %>
9
9
  <%= yield(:head) %>
10
+ <script>
11
+ $.datepicker.setDefaults({
12
+ dateFormat: 'yy-mm-dd',
13
+ changeMonth: true,
14
+ changeYear: true,
15
+ showOtherMonths: true,
16
+ selectOtherMonths: true,
17
+ showButtonPanel: false,
18
+ showWeek: true,
19
+ firstDay: 1,
20
+ prevText: '<<',
21
+ nextText: '>>'
22
+ })
23
+ </script>
10
24
  </head>
11
25
  <body>
12
26
  <%= render "inline_forms/header" %>
13
27
  <%= render "/inline_forms_tabs" %>
14
- <%= yield %>
28
+ <%= yield %>
15
29
  </body>
16
30
  </html>
data/inline_forms.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{inline_forms}
8
- s.version = "0.9.10"
8
+ s.version = "0.9.11"
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"]
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: 47
4
+ hash: 45
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 10
10
- version: 0.9.10
9
+ - 11
10
+ version: 0.9.11
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ace Suares