rails-backbone-forms 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,134 @@
1
+ /* Form */
2
+ .bbf-form {
3
+ margin: 0;
4
+ padding: 0;
5
+ border: none;
6
+ }
7
+
8
+
9
+ /* Field */
10
+ .bbf-field {
11
+ margin: 1em 0;
12
+ list-style-type: none;
13
+ position: relative;
14
+ clear: both;
15
+ }
16
+
17
+ .bbf-field label {
18
+ float: left;
19
+ width: 25%;
20
+ }
21
+
22
+ .bbf-field .bbf-editor {
23
+ margin-left: 25%;
24
+ width: 74%;
25
+ }
26
+
27
+ .bbf-field input, .bbf-field textarea, .bbf-field select {
28
+ width: 100%;
29
+ }
30
+
31
+ .bbf-field .bbf-help {
32
+ margin-left: 25%;
33
+ width: 74%;
34
+ color: #999;
35
+ }
36
+
37
+ .bbf-field.bbf-error .bbf-editor {
38
+ outline: 1px solid red;
39
+ }
40
+
41
+
42
+ /* Radio */
43
+ .bbf-radio {
44
+ list-style-type: none;
45
+ }
46
+
47
+ .bbf-radio input {
48
+ width: auto;
49
+ }
50
+
51
+ .bbf-radio label {
52
+ float: none;
53
+ }
54
+
55
+
56
+ /* Checkboxes */
57
+ .bbf-checkboxes {
58
+ list-style-type: none;
59
+ }
60
+
61
+ .bbf-checkboxes input {
62
+ width: auto;
63
+ }
64
+
65
+ .bbf-checkboxes label {
66
+ float: none;
67
+ }
68
+
69
+
70
+ /* List */
71
+ .bbf-list ul {
72
+ list-style-type: none;
73
+ margin: 0;
74
+ padding: 0;
75
+ }
76
+
77
+ .bbf-list .bbf-error {
78
+ border: 1px solid red;
79
+ }
80
+
81
+ .bbf-list li {
82
+ clear: both;
83
+ width: 100%;
84
+ }
85
+
86
+ .bbf-list li .bbf-editor-container {
87
+ margin-right: 2em;
88
+ }
89
+
90
+ .bbf-list li .bbf-remove {
91
+ float: right;
92
+ width: 2em;
93
+ }
94
+
95
+ .bbf-list .bbf-actions {
96
+ text-align: center;
97
+ clear: both;
98
+ }
99
+
100
+ /* List.Modal */
101
+ .bbf-list-modal {
102
+ cursor: pointer;
103
+ border: 1px solid #ccc;
104
+ width: 208px;
105
+ border-radius: 3px;
106
+ padding: 4px;
107
+ color: #555;
108
+ }
109
+
110
+
111
+
112
+ /* Date */
113
+ .bbf-date .bbf-date {
114
+ width: 4em;
115
+ }
116
+
117
+ .bbf-date .bbf-month {
118
+ width: 9em;
119
+ }
120
+
121
+ .bbf-date .bbf-year {
122
+ width: 6em;
123
+ }
124
+
125
+
126
+ /* DateTime */
127
+ .bbf-datetime .bbf-date-container {
128
+ float: left;
129
+ margin-right: 1em;
130
+ }
131
+
132
+ .bbf-datetime select {
133
+ width: 4em;
134
+ }
@@ -0,0 +1,3 @@
1
+ /*
2
+ *= require rails-backbone-forms/backbone-forms.css
3
+ */
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rails-backbone-forms
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Aubrey Holland
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-09-01 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: ! 'Use the backbone-forms library https://github.com/powmedia/backbone-forms:
15
+ a "Form framework for BackboneJS with nested forms, editable lists and validation"'
16
+ email:
17
+ - aubreyholland@gmail.com
18
+ executables: []
19
+ extensions: []
20
+ extra_rdoc_files: []
21
+ files:
22
+ - .gitignore
23
+ - Gemfile
24
+ - README.md
25
+ - Rakefile
26
+ - lib/rails-backbone-forms.rb
27
+ - lib/rails/backbone/forms/engine.rb
28
+ - lib/rails/backbone/forms/version.rb
29
+ - rails-backbone-forms.gemspec
30
+ - vendor/assets/javascripts/rails-backbone-forms.js
31
+ - vendor/assets/javascripts/rails-backbone-forms/adapters/backbone.bootstrap-modal.js
32
+ - vendor/assets/javascripts/rails-backbone-forms/backbone-forms.js
33
+ - vendor/assets/javascripts/rails-backbone-forms/editors/jquery-ui.js
34
+ - vendor/assets/javascripts/rails-backbone-forms/editors/list.js
35
+ - vendor/assets/javascripts/rails-backbone-forms/jquery-ui-editors.js
36
+ - vendor/assets/javascripts/rails-backbone-forms/templates/bootstrap.js
37
+ - vendor/assets/javascripts/rails-backbone-forms/templates/default.js
38
+ - vendor/assets/stylesheets/rails-backbone-forms.css
39
+ - vendor/assets/stylesheets/rails-backbone-forms/editors/jquery-ui.css
40
+ - vendor/assets/stylesheets/rails-backbone-forms/templates/bootstrap.css
41
+ - vendor/assets/stylesheets/rails-backbone-forms/templates/default.css
42
+ homepage: ''
43
+ licenses: []
44
+ post_install_message:
45
+ rdoc_options: []
46
+ require_paths:
47
+ - lib
48
+ required_ruby_version: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ required_rubygems_version: !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - ! '>='
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ requirements: []
61
+ rubyforge_project: rails-backbone-forms
62
+ rubygems_version: 1.8.24
63
+ signing_key:
64
+ specification_version: 3
65
+ summary: Rails asset wrapper for backbone-forms
66
+ test_files: []