ui_bibz 2.3.0 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/Gemfile.lock +1 -1
- data/app/assets/stylesheets/forms.sass +4 -2
- data/lib/ui_bibz/infos.rb +1 -1
- data/lib/ui_bibz/ui/core/forms/selects/dropdown_select_field.rb +1 -2
- data/test/simple_form_test.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1b45b64db461e47a4b01d4c984f35665de025e4929fe50897c90ebf3bba029e
|
4
|
+
data.tar.gz: 2980666aabde0630ef505237b2f312e8f110de80f31e462826b7087c78a05c4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23ceb3373e560586bbd7cbcf10e6ca1d3c70a34c3f89240b884559136dae9f99eb46a9d2396930e4dbe9a2ba7f5134f3e0579337c493a4617e451f8074f78ddf
|
7
|
+
data.tar.gz: b54fbd5d7421c57eac7a59923ce74fe119a2877498854fb77bbdbd8246ad699ca8ce8106d9133e916a56a307c33be2d5fdacad1d6bf70cd81f94731548933c1a
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
data/lib/ui_bibz/infos.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module UiBibz
|
2
2
|
NAME = "Ui Bibz"
|
3
|
-
VERSION = "2.3.
|
3
|
+
VERSION = "2.3.1"
|
4
4
|
DESCRIPTION = "A Rails Interface Framework using Bootstrap."
|
5
5
|
SUMMARY = "Create your project with Ui Bibz. Over a thirty reusable components built to provide iconography, dropdowns, input groups, navigation, alerts, and much more."
|
6
6
|
LICENSE = "MIT"
|
@@ -79,8 +79,7 @@ module UiBibz::Ui::Core::Forms::Selects
|
|
79
79
|
h[:multiple] = true if options[:multiple]
|
80
80
|
h[:disabled] = options[:state] == :disabled
|
81
81
|
h[:include_blank] = options[:include_blank]
|
82
|
-
h[:
|
83
|
-
h[:title] = options[:placeholder] unless options[:placeholder].nil?
|
82
|
+
h[:title] = h.delete(:prompt) unless options[:prompt].nil?
|
84
83
|
end)
|
85
84
|
end
|
86
85
|
|
data/test/simple_form_test.rb
CHANGED
@@ -47,7 +47,7 @@ class SimpleFormTest < ActionView::TestCase
|
|
47
47
|
f.input :name_fr, as: :ui_dropdown_select_field, collection: @users, label_method: :name_fr
|
48
48
|
end
|
49
49
|
|
50
|
-
expected = "<form class=\"simple_form edit_user\" id=\"edit_user_1\" action=\"/users/1\" accept-charset=\"UTF-8\" method=\"post\"><input name=\"utf8\" type=\"hidden\" value=\"✓\" /><input type=\"hidden\" name=\"_method\" value=\"patch\" /><div class=\"form-group ui_dropdown_select_field optional user_name_fr\"><label class=\"control-label ui_dropdown_select_field optional\" for=\"user_name_fr\">Name fr</label><select name=\"user[name_fr]\" id=\"user_name_fr\" class=\"dropdown-select-field\" data-style=\"btn-secondary\"
|
50
|
+
expected = "<form class=\"simple_form edit_user\" id=\"edit_user_1\" action=\"/users/1\" accept-charset=\"UTF-8\" method=\"post\"><input name=\"utf8\" type=\"hidden\" value=\"✓\" /><input type=\"hidden\" name=\"_method\" value=\"patch\" /><div class=\"form-group ui_dropdown_select_field optional user_name_fr\"><label class=\"control-label ui_dropdown_select_field optional\" for=\"user_name_fr\">Name fr</label><select name=\"user[name_fr]\" id=\"user_name_fr\" class=\"dropdown-select-field\" data-style=\"btn-secondary\"><option value=\"1\">test1</option>
|
51
51
|
<option value=\"2\">test2</option></select></div></form>"
|
52
52
|
|
53
53
|
assert_equal expected, actual
|
@@ -59,7 +59,7 @@ class SimpleFormTest < ActionView::TestCase
|
|
59
59
|
f.input :name_fr, as: :ui_dropdown_select_field, collection: @continents, toto: 'lala', grouped: true, group_method: :countries
|
60
60
|
end
|
61
61
|
|
62
|
-
expected = "<form class=\"simple_form edit_user\" id=\"edit_user_1\" action=\"/users/1\" accept-charset=\"UTF-8\" method=\"post\"><input name=\"utf8\" type=\"hidden\" value=\"✓\" /><input type=\"hidden\" name=\"_method\" value=\"patch\" /><div class=\"form-group ui_dropdown_select_field optional user_name_fr\"><label class=\"control-label ui_dropdown_select_field optional\" for=\"user_name_fr\">Name fr</label><select name=\"user[name_fr]\" id=\"user_name_fr\" class=\"dropdown-select-field\" data-style=\"btn-secondary\"
|
62
|
+
expected = "<form class=\"simple_form edit_user\" id=\"edit_user_1\" action=\"/users/1\" accept-charset=\"UTF-8\" method=\"post\"><input name=\"utf8\" type=\"hidden\" value=\"✓\" /><input type=\"hidden\" name=\"_method\" value=\"patch\" /><div class=\"form-group ui_dropdown_select_field optional user_name_fr\"><label class=\"control-label ui_dropdown_select_field optional\" for=\"user_name_fr\">Name fr</label><select name=\"user[name_fr]\" id=\"user_name_fr\" class=\"dropdown-select-field\" data-style=\"btn-secondary\"><optgroup label=\"Europe\"><option value=\"1\">France</option>
|
63
63
|
<option value=\"2\">Deutchland</option></optgroup></select></div></form>"
|
64
64
|
|
65
65
|
assert_equal expected, actual
|