flexa_lib 0.3.3 → 0.3.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/flexa_lib.gemspec +1 -1
- data/lib/flexa_lib/inputs/date_picker_input.rb +9 -21
- data/lib/flexa_lib/inputs.rb +1 -1
- data/lib/generators/flexa_lib/lookup/templates/lookup_view.erb +1 -1
- data/vendor/assets/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/vendor/assets/images/ui-bg_flat_0_eeeeee_40x100.png +0 -0
- data/vendor/assets/images/ui-bg_flat_55_ffffff_40x100.png +0 -0
- data/vendor/assets/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/vendor/assets/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/vendor/assets/images/ui-bg_highlight-soft_100_f6f6f6_1x100.png +0 -0
- data/vendor/assets/images/ui-bg_highlight-soft_25_0073ea_1x100.png +0 -0
- data/vendor/assets/images/ui-bg_highlight-soft_50_dddddd_1x100.png +0 -0
- data/vendor/assets/images/ui-icons_0073ea_256x240.png +0 -0
- data/vendor/assets/images/ui-icons_454545_256x240.png +0 -0
- data/vendor/assets/images/ui-icons_666666_256x240.png +0 -0
- data/vendor/assets/images/ui-icons_ff0084_256x240.png +0 -0
- data/vendor/assets/images/ui-icons_ffffff_256x240.png +0 -0
- data/vendor/assets/javascripts/flexa-themejs.js +15 -2
- data/vendor/assets/javascripts/jquery-ui-1.8.18.custom.min.js +356 -0
- data/vendor/assets/stylesheets/_datepicker.scss +130 -0
- data/vendor/assets/stylesheets/flexa-theme.css.scss +5 -0
- data/vendor/assets/stylesheets/jquery-ui-1.8.18.custom.css +565 -0
- metadata +256 -270
data/flexa_lib.gemspec
CHANGED
|
@@ -1,34 +1,22 @@
|
|
|
1
|
-
module
|
|
1
|
+
module FlexaFormtasticBootstrap
|
|
2
2
|
module Inputs
|
|
3
|
-
class DatePickerInput < Formtastic::Inputs::
|
|
3
|
+
class DatePickerInput < Formtastic::Inputs::DatetimeInput
|
|
4
|
+
include Base
|
|
5
|
+
include Base::Stringish
|
|
6
|
+
include Base::Timeish
|
|
4
7
|
|
|
5
8
|
def to_html
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
label_html <<
|
|
9
|
-
builder.text_field(options[:lookup][:display], input_html_options) <<
|
|
10
|
-
template.link_to(options[:lookup][:display],options[:lookup][:path],{:target=>"_blank",:class=>"btn"})<<
|
|
11
|
-
builder.hidden_field(method, {})
|
|
9
|
+
generic_input_wrapping do
|
|
10
|
+
builder.text_field(method, input_html_options)
|
|
12
11
|
end
|
|
13
12
|
end
|
|
14
13
|
|
|
15
|
-
def label_html_options
|
|
16
|
-
{}.tap do |opts|
|
|
17
|
-
opts[:for] ||= input_html_options[:id]
|
|
18
|
-
opts[:class] = [opts[:class]]
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
#def input_html_options
|
|
23
|
-
# super.reject { |k, v| [:min, :max, :step].include?(k) }
|
|
24
|
-
#end
|
|
25
|
-
|
|
26
14
|
def wrapper_html_options
|
|
27
|
-
super.merge(:class => "#{super[:class]} datePicker" )
|
|
15
|
+
#super.merge(:class => "#{super[:class]} datePicker" )
|
|
28
16
|
end
|
|
29
17
|
|
|
30
18
|
def input_html_options
|
|
31
|
-
super.merge(:class => "
|
|
19
|
+
super.merge(:class => "datepicker_flexa")
|
|
32
20
|
end
|
|
33
21
|
|
|
34
22
|
end
|
data/lib/flexa_lib/inputs.rb
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<%%= flexa_table_for @<%=class_name.pluralize.downcase%>, :actions=>[:select] do -%>
|
|
1
|
+
<%%= flexa_table_for @<%=class_name.underscore.pluralize.downcase%>, :actions=>[:select] do -%>
|
|
2
2
|
<% if colunas.count>0 %><% colunas.each do |coluna| %><%% column :<%=coluna%>, :title=>"<%=coluna.humanize%>" %><% end %><% end %>
|
|
3
3
|
<%% end -%>
|
|
4
4
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
//= require bootstrap
|
|
10
10
|
//= require populate
|
|
11
11
|
//= require 'jquery.cookie'
|
|
12
|
+
//= require 'jquery-ui-1.8.18.custom.min'
|
|
12
13
|
|
|
13
14
|
$(document).ready(function(){
|
|
14
15
|
|
|
@@ -63,10 +64,22 @@ $(document).ready(function(){
|
|
|
63
64
|
|
|
64
65
|
try {
|
|
65
66
|
$('input.ui-datepicker').datepicker();
|
|
66
|
-
|
|
67
|
+
//$('.datePicker').datepicker();
|
|
68
|
+
|
|
69
|
+
$(".datepicker_flexa").datepicker({
|
|
70
|
+
//mostrar select com mes e com ano(de 10 em 10)
|
|
71
|
+
changeMonth: true,
|
|
72
|
+
changeYear: true,
|
|
73
|
+
//mostra a data em outros meses
|
|
74
|
+
showOtherMonths: true,
|
|
75
|
+
selectOtherMonths: true,
|
|
76
|
+
//formato da data
|
|
77
|
+
dateFormat: 'dd/mm/yy'
|
|
78
|
+
});
|
|
79
|
+
|
|
67
80
|
} catch(err) {
|
|
68
81
|
null;
|
|
69
82
|
}
|
|
70
83
|
|
|
71
84
|
});
|
|
72
|
-
|
|
85
|
+
//fim do arquivo flexa-themejs.js
|