inline_forms 0.9.10 → 0.9.11
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/app/helpers/form_elements/check_box.rb +1 -1
- data/app/views/layouts/inline_forms.rhtml +16 -2
- data/inline_forms.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
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
|
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
|
-
|
28
|
+
<%= yield %>
|
15
29
|
</body>
|
16
30
|
</html>
|
data/inline_forms.gemspec
CHANGED
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: 45
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
|
-
-
|
10
|
-
version: 0.9.
|
9
|
+
- 11
|
10
|
+
version: 0.9.11
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ace Suares
|