admix 0.16.0 → 0.22.0
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/javascripts/admix/application.js.coffee +21 -3
- data/app/assets/stylesheets/admix/admix_bootstrap.scss +18 -1
- data/app/assets/stylesheets/admix/application.css +4 -0
- data/app/assets/stylesheets/admix/style.css +0 -1
- data/app/controllers/admix/inherited_controller.rb +9 -10
- data/app/helpers/admix_helper.rb +6 -0
- data/app/views/admix/inherited/_form.html.haml +2 -2
- data/app/views/admix/inherited/index.html.haml +1 -2
- data/app/views/admix/inherited/show.html.haml +1 -2
- data/app/views/layouts/admix/admix.html.haml +36 -33
- data/app/views/layouts/admix/login.html.haml +1 -1
- data/config/admix_navigation.rb +7 -5
- data/lib/admix.rb +0 -2
- data/lib/admix/version.rb +1 -1
- metadata +1001 -1053
- data/app/assets/javascripts/admix/dates.js.coffee +0 -6
- data/app/inputs/datepicker_input.rb +0 -6
- data/app/inputs/richtext_input.rb +0 -5
- data/config/initializers/formtastic.rb +0 -76
@@ -1,76 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
Formtastic::Helpers::FormHelper.builder = FormtasticBootstrap::FormBuilder
|
3
|
-
# Set the default text field size when input is a string. Default is nil.
|
4
|
-
# Formtastic::FormBuilder.default_text_field_size = 50
|
5
|
-
|
6
|
-
# Set the default text area height when input is a text. Default is 20.
|
7
|
-
# Formtastic::FormBuilder.default_text_area_height = 5
|
8
|
-
|
9
|
-
# Set the default text area width when input is a text. Default is nil.
|
10
|
-
# Formtastic::FormBuilder.default_text_area_width = 50
|
11
|
-
|
12
|
-
# Should all fields be considered "required" by default?
|
13
|
-
# Defaults to true.
|
14
|
-
# Formtastic::FormBuilder.all_fields_required_by_default = true
|
15
|
-
|
16
|
-
# Should select fields have a blank option/prompt by default?
|
17
|
-
# Defaults to true.
|
18
|
-
# Formtastic::FormBuilder.include_blank_for_select_by_default = true
|
19
|
-
|
20
|
-
# Set the string that will be appended to the labels/fieldsets which are required
|
21
|
-
# It accepts string or procs and the default is a localized version of
|
22
|
-
# '<abbr title="required">*</abbr>'. In other words, if you configure formtastic.required
|
23
|
-
# in your locale, it will replace the abbr title properly. But if you don't want to use
|
24
|
-
# abbr tag, you can simply give a string as below
|
25
|
-
# Formtastic::FormBuilder.required_string = "(required)"
|
26
|
-
|
27
|
-
# Set the string that will be appended to the labels/fieldsets which are optional
|
28
|
-
# Defaults to an empty string ("") and also accepts procs (see required_string above)
|
29
|
-
# Formtastic::FormBuilder.optional_string = "(optional)"
|
30
|
-
|
31
|
-
# Set the way inline errors will be displayed.
|
32
|
-
# Defaults to :sentence, valid options are :sentence, :list, :first and :none
|
33
|
-
# Formtastic::FormBuilder.inline_errors = :sentence
|
34
|
-
# Formtastic uses the following classes as default for hints, inline_errors and error list
|
35
|
-
|
36
|
-
# If you override the class here, please ensure to override it in your stylesheets as well
|
37
|
-
# Formtastic::FormBuilder.default_hint_class = "inline-hints"
|
38
|
-
# Formtastic::FormBuilder.default_inline_error_class = "inline-errors"
|
39
|
-
# Formtastic::FormBuilder.default_error_list_class = "errors"
|
40
|
-
|
41
|
-
# Set the method to call on label text to transform or format it for human-friendly
|
42
|
-
# reading when formtastic is used without object. Defaults to :humanize.
|
43
|
-
# Formtastic::FormBuilder.label_str_method = :humanize
|
44
|
-
|
45
|
-
# Set the array of methods to try calling on parent objects in :select and :radio inputs
|
46
|
-
# for the text inside each @<option>@ tag or alongside each radio @<input>@. The first method
|
47
|
-
# that is found on the object will be used.
|
48
|
-
# Defaults to ["to_label", "display_name", "full_name", "name", "title", "username", "login", "value", "to_s"]
|
49
|
-
# Formtastic::FormBuilder.collection_label_methods = [
|
50
|
-
# "to_label", "display_name", "full_name", "name", "title", "username", "login", "value", "to_s"]
|
51
|
-
|
52
|
-
# Specifies if labels/hints for input fields automatically be looked up using I18n.
|
53
|
-
# Default value: true. Overridden for specific fields by setting value to true,
|
54
|
-
# i.e. :label => true, or :hint => true (or opposite depending on initialized value)
|
55
|
-
# Formtastic::FormBuilder.i18n_lookups_by_default = false
|
56
|
-
|
57
|
-
# Specifies if I18n lookups of the default I18n Localizer should be cached to improve performance.
|
58
|
-
# Defaults to true.
|
59
|
-
# Formtastic::FormBuilder.i18n_cache_lookups = false
|
60
|
-
|
61
|
-
# Specifies the class to use for localization lookups. You can create your own
|
62
|
-
# class and use it instead by subclassing Formtastic::Localizer (which is the default).
|
63
|
-
# Formtastic::FormBuilder.i18n_localizer = MyOwnLocalizer
|
64
|
-
|
65
|
-
# You can add custom inputs or override parts of Formtastic by subclassing Formtastic::FormBuilder and
|
66
|
-
# specifying that class here. Defaults to Formtastic::FormBuilder.
|
67
|
-
# Formtastic::Helpers::FormHelper.builder = MyCustomBuilder
|
68
|
-
|
69
|
-
# You can opt-in to Formtastic's use of the HTML5 `required` attribute on `<input>`, `<select>`
|
70
|
-
# and `<textarea>` tags by setting this to false (defaults to true).
|
71
|
-
# Formtastic::FormBuilder.use_required_attribute = true
|
72
|
-
|
73
|
-
# You can opt-in to new HTML5 browser validations (for things like email and url inputs) by setting
|
74
|
-
# this to false. Doing so will add a `novalidate` attribute to the `<form>` tag.
|
75
|
-
# See http://diveintohtml5.org/forms.html#validation for more info.
|
76
|
-
# Formtastic::FormBuilder.perform_browser_validations = true
|