manage 1.1.1 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,4 @@
1
1
  //= require jquery
2
2
  //= require jquery_ujs
3
- //= require_tree .
3
+ //= require foundation
4
+ //= require manage/init
@@ -0,0 +1 @@
1
+ $(document).foundation()
@@ -0,0 +1,2 @@
1
+ @import "foundation";
2
+ @import "manage/layout";
@@ -0,0 +1,38 @@
1
+ .main {
2
+ margin: 0 10px;
3
+ }
4
+
5
+ .row {
6
+ width: auto;
7
+ max-width: none;
8
+ margin-left: -10px;
9
+ margin-right: -10px;
10
+ margin-bottom: 0;
11
+ }
12
+ .row .columns, .row .row .columns {
13
+ padding-left: 10px;
14
+ padding-right: 10px;
15
+ }
16
+
17
+ table {
18
+ width: 100%;
19
+
20
+ ul.inline-list {
21
+ margin-bottom: 0;
22
+ line-height: inherit;
23
+ }
24
+ }
25
+
26
+ .pagination li.active {
27
+ @extend .current;
28
+ }
29
+
30
+ body.index {
31
+ .panel {
32
+ padding: 0 10px;
33
+ }
34
+
35
+ fieldset {
36
+ margin: 0;
37
+ }
38
+ }
@@ -0,0 +1,20 @@
1
+ module Manage
2
+
3
+ module FormHelper
4
+ include SimpleForm::ActionViewExtensions::FormHelper
5
+
6
+ OPTIONS = {
7
+ wrapper: :foundation,
8
+ }
9
+
10
+ def manage_form_for(record, options={}, &block)
11
+ simple_form_for(record, options.merge(Manage::FormHelper::OPTIONS), &block)
12
+ end
13
+
14
+ def manage_fields_for(record_name, record_object = nil, options = {}, &block)
15
+ simple_fields_for(record_name, record_object = nil, options.merge(Manage::FormHelper::OPTIONS), &block)
16
+ end
17
+
18
+ end
19
+
20
+ end
@@ -1,7 +1,56 @@
1
- h1 Main menu
2
- p Override me in /views/layouts/manage/main_menu
3
- ul
4
- li link_to City.model_name.human(count: 2), manage.cities_path
5
- li link_to 'users', users_path
1
+ // Override me in /views/layouts/manage/main_menu
2
+
3
+ ul.right
4
+ li.divider.hide-for-small
5
+ li = link_to current_user.email, current_user
6
+ li.divider.hide-for-small
7
+ li = link_to City.model_name.human(count: 2), manage.cities_path
8
+ li.divider.hide-for-small
9
+ li = link_to 'users', users_path
10
+ li.divider.hide-for-small
6
11
  li = link_to AdminUser.model_name.human(count:2), admin_users_path
7
- li link_to 'terms', main_app.about_us_pages_path
12
+ li.divider.hide-for-small
13
+ li = link_to 'terms', main_app.about_us_pages_path
14
+ li.divider.hide-for-small
15
+ li.has-dropdown
16
+ a href="#" Main Item 1
17
+ ul.dropdown
18
+ li
19
+ label Dropdown Level 1 Label
20
+ li.has-dropdown
21
+ a href="#" Dropdown Level 1a
22
+ ul.dropdown
23
+ li
24
+ a href="#" Dropdown Level 2a
25
+ li
26
+ a href="#" Dropdown Level 2b
27
+ li.has-dropdown
28
+ a href="#">Dropdown Level 2c
29
+ ul.dropdown
30
+ li
31
+ a href="#" Dropdown Level 3a
32
+ li
33
+ a href="#" Dropdown Level 3b
34
+ li
35
+ a href="#" Dropdown Level 3c
36
+ li
37
+ a href="#" Dropdown Level 2d
38
+ li
39
+ a href="#" Dropdown Level 2e
40
+ li
41
+ a href="#" Dropdown Level 2f
42
+ li
43
+ a href="#" Dropdown Level 1b
44
+ li
45
+ a href="#" Dropdown Level 1c
46
+ li.divider
47
+ li
48
+ label Dropdown Level 1 Label
49
+ li
50
+ a href="#" Dropdown Level 1d
51
+ li
52
+ a href="#" Dropdown Level 1e
53
+ li
54
+ a href="#" Dropdown Level 1f
55
+ li.has-form
56
+ a.button href="http://foundation.zurb.com/docs" Sample button
@@ -1,27 +1,37 @@
1
1
  html
2
2
  head
3
+ meta charset="utf-8"
4
+ meta name="viewport" content="width=device-width, initial-scale=1.0"
3
5
  title Manage
4
6
  = stylesheet_link_tag "manage/application", media: "all"
5
- = javascript_include_tag "manage/application"
7
+ = javascript_include_tag "vendor/custom.modernizr"
6
8
  = csrf_meta_tags
7
9
 
8
10
  body class="#{controller.action_name} #{controller_path.gsub(/[-\/]/, '-')} simple" data-locale=I18n.locale
9
- header
10
- = current_user.email
11
- = render '/layouts/manage/main_menu'
12
- row
11
+ nav.top-bar data-options="is_hover:false"
12
+ ul.title-area
13
+ li.name
14
+ h1
15
+ a href="/manage" Manage
16
+ li.toggle-topbar.menu-icon
17
+ a href="#"
18
+ span Menu
19
+ section.top-bar-section
20
+ = render '/layouts/manage/main_menu'
21
+
22
+ section.main
13
23
  #flash
14
24
  - flash.each do |key, value|
15
25
  - key = 'info' if key == :notice
16
- .alert_wrapper data-dismiss="alert"
17
- div(class="alert alert-#{key} #{key}")
18
- button(type="button" class="close" data-dismiss="alert") ×
19
- - if value.is_a?(Array)
20
- - value.each do |element|
21
- p #{element.html_safe}
22
- - else
23
- p #{value.html_safe}
24
- .clearfix
26
+ - key = 'alert' if key == :error
27
+ div data-alert="" class="alert-box #{key}"
28
+ - if value.is_a?(Array)
29
+ - value.each do |element|
30
+ p #{element.html_safe}
31
+ - else
32
+ p #{value.html_safe}
33
+ a.close href="#" ×
25
34
 
35
+ = yield
26
36
 
27
- = yield
37
+ = javascript_include_tag "manage/application"
@@ -1,7 +1,10 @@
1
1
  html
2
2
  head
3
+ meta charset="utf-8"
4
+ meta name="viewport" content="width=device-width, initial-scale=1.0"
3
5
  title Manage
4
6
  = stylesheet_link_tag "manage/application", media: "all"
7
+ = javascript_include_tag "vendor/custom.modernizr"
5
8
  = javascript_include_tag "manage/application"
6
9
  = csrf_meta_tags
7
10
 
@@ -1,4 +1,4 @@
1
- = simple_form_for [ resource ] do |f|
1
+ = manage_form_for [ resource ] do |f|
2
2
  - attributes.each do |attr|
3
3
  = f.input attr
4
- = f.submit
4
+ = f.submit class: 'button small'
@@ -2,6 +2,9 @@ h2 = t('manage.edit.title', model: resource_class.model_name.human)
2
2
 
3
3
  nav
4
4
  / = link_to 'index', collection_url
5
- = link_to t('manage.actions.index', model: resource_class.model_name.human(count: 2)), resource.class
5
+ / |  
6
+ = link_to t('manage.actions.index', model: resource_class.model_name.human(count: 2)), resource.class, class: 'button small secondary'
6
7
 
7
- = render "form", attributes: attributes
8
+ .row
9
+ .columns.large-6
10
+ = render "form", attributes: attributes
@@ -1,6 +1,12 @@
1
1
  nav
2
- = link_to t('manage.actions.new', model: resource_class.model_name.human), [:new, resource_class.name.tableize.singularize]
2
+ = link_to t('manage.actions.new', model: resource_class.model_name.human), [:new, resource_class.name.tableize.singularize], class: 'button small secondary'
3
3
 
4
- = render "index", attributes: attributes
4
+ = render "manage/resource/index/scopes"
5
+
6
+ .row
7
+ .columns.large-9
8
+ = render "manage/resource/index/table", attributes: attributes
9
+ .columns.large-3
10
+ = render "manage/resource/index/filters"
5
11
 
6
12
  = paginate collection
@@ -0,0 +1,11 @@
1
+ form
2
+ fieldset
3
+ legend Filter
4
+ .row
5
+ .columns.large-12
6
+ label Name
7
+ input type="text" placeholder="Name"
8
+ .row
9
+ .columns.large-12
10
+ label City
11
+ input type="text" placeholder="City"
@@ -0,0 +1,11 @@
1
+ .panel
2
+ dl.sub-nav
3
+ dt Filter:
4
+ dd.active
5
+ a href="#" All
6
+ dd
7
+ a href="#" Active
8
+ dd
9
+ a href="#" Pending
10
+ dd
11
+ a href="#" Suspended
@@ -0,0 +1,16 @@
1
+ table
2
+ thead
3
+ tr
4
+ - attributes.each do |attr|
5
+ th= resource_class.human_attribute_name(attr)
6
+ th = t('.actions')
7
+ tbody
8
+ - collection.each do |resource|
9
+ tr
10
+ - attributes.each do |attr|
11
+ td = resource.public_send(attr).to_s
12
+ td
13
+ ul.inline-list
14
+ li = link_to t('manage.actions.show'), [resource]
15
+ li = link_to t('manage.actions.edit'), [:edit, resource]
16
+ li = link_to t('manage.actions.destroy'), [resource], method: :delete, data: { confirm: t('manage.confirmations.Are you sure')}
@@ -1,4 +1,5 @@
1
1
  h2 = t('manage.new.title', model: resource_class.model_name.human)
2
2
 
3
-
4
- = render "form", attributes: attributes
3
+ .row
4
+ .columns.large-6
5
+ = render "form", attributes: attributes
@@ -1,11 +1,10 @@
1
1
  nav
2
- = link_to t('manage.actions.index', model: resource_class.model_name.human(count: 2)), resource.class
3
- = link_to t('manage.actions.edit'), resource.class
2
+ = link_to t('manage.actions.index', model: resource_class.model_name.human(count: 2)), resource.class, class: 'button small secondary'
3
+ |  
4
+ = link_to t('manage.actions.edit'), [:edit, resource], class: 'button small'
4
5
 
5
6
  article
6
7
  dl
7
8
  - resource_class.attribute_names.each do |attr|
8
9
  dt= resource_class.human_attribute_name(attr)
9
- dd= resource.public_send(attr)
10
-
11
-
10
+ dd= resource.public_send(attr)
@@ -0,0 +1,142 @@
1
+ # Use this setup block to configure all options available in SimpleForm.
2
+ SimpleForm.setup do |config|
3
+ # Wrappers are used by the form builder to generate a
4
+ # complete input. You can remove any component from the
5
+ # wrapper, change the order or even add your own to the
6
+ # stack. The options given below are used to wrap the
7
+ # whole input.
8
+ config.wrappers :default, class: :input,
9
+ hint_class: :field_with_hint, error_class: :field_with_errors do |b|
10
+ ## Extensions enabled by default
11
+ # Any of these extensions can be disabled for a
12
+ # given input by passing: `f.input EXTENSION_NAME => false`.
13
+ # You can make any of these extensions optional by
14
+ # renaming `b.use` to `b.optional`.
15
+
16
+ # Determines whether to use HTML5 (:email, :url, ...)
17
+ # and required attributes
18
+ b.use :html5
19
+
20
+ # Calculates placeholders automatically from I18n
21
+ # You can also pass a string as f.input placeholder: "Placeholder"
22
+ b.use :placeholder
23
+
24
+ ## Optional extensions
25
+ # They are disabled unless you pass `f.input EXTENSION_NAME => :lookup`
26
+ # to the input. If so, they will retrieve the values from the model
27
+ # if any exists. If you want to enable the lookup for any of those
28
+ # extensions by default, you can change `b.optional` to `b.use`.
29
+
30
+ # Calculates maxlength from length validations for string inputs
31
+ b.optional :maxlength
32
+
33
+ # Calculates pattern from format validations for string inputs
34
+ b.optional :pattern
35
+
36
+ # Calculates min and max from length validations for numeric inputs
37
+ b.optional :min_max
38
+
39
+ # Calculates readonly automatically from readonly attributes
40
+ b.optional :readonly
41
+
42
+ ## Inputs
43
+ b.use :label_input
44
+ b.use :hint, wrap_with: { tag: :span, class: :hint }
45
+ b.use :error, wrap_with: { tag: :span, class: :error }
46
+ end
47
+
48
+ # The default wrapper to be used by the FormBuilder.
49
+ config.default_wrapper = :default
50
+
51
+ # Define the way to render check boxes / radio buttons with labels.
52
+ # Defaults to :nested for bootstrap config.
53
+ # inline: input + label
54
+ # nested: label > input
55
+ config.boolean_style = :nested
56
+
57
+ # Default class for buttons
58
+ config.button_class = 'btn'
59
+
60
+ # Method used to tidy up errors. Specify any Rails Array method.
61
+ # :first lists the first message for each field.
62
+ # Use :to_sentence to list all errors for each field.
63
+ # config.error_method = :first
64
+
65
+ # Default tag used for error notification helper.
66
+ config.error_notification_tag = :div
67
+
68
+ # CSS class to add for error notification helper.
69
+ config.error_notification_class = 'alert alert-error'
70
+
71
+ # ID to add for error notification helper.
72
+ # config.error_notification_id = nil
73
+
74
+ # Series of attempts to detect a default label method for collection.
75
+ # config.collection_label_methods = [ :to_label, :name, :title, :to_s ]
76
+
77
+ # Series of attempts to detect a default value method for collection.
78
+ # config.collection_value_methods = [ :id, :to_s ]
79
+
80
+ # You can wrap a collection of radio/check boxes in a pre-defined tag, defaulting to none.
81
+ # config.collection_wrapper_tag = nil
82
+
83
+ # You can define the class to use on all collection wrappers. Defaulting to none.
84
+ # config.collection_wrapper_class = nil
85
+
86
+ # You can wrap each item in a collection of radio/check boxes with a tag,
87
+ # defaulting to :span. Please note that when using :boolean_style = :nested,
88
+ # SimpleForm will force this option to be a label.
89
+ # config.item_wrapper_tag = :span
90
+
91
+ # You can define a class to use in all item wrappers. Defaulting to none.
92
+ # config.item_wrapper_class = nil
93
+
94
+ # How the label text should be generated altogether with the required text.
95
+ # config.label_text = lambda { |label, required| "#{required} #{label}" }
96
+
97
+ # You can define the class to use on all labels. Default is nil.
98
+ config.label_class = 'control-label'
99
+
100
+ # You can define the class to use on all forms. Default is simple_form.
101
+ # config.form_class = :simple_form
102
+
103
+ # You can define which elements should obtain additional classes
104
+ # config.generate_additional_classes_for = [:wrapper, :label, :input]
105
+
106
+ # Whether attributes are required by default (or not). Default is true.
107
+ # config.required_by_default = true
108
+
109
+ # Tell browsers whether to use the native HTML5 validations (novalidate form option).
110
+ # These validations are enabled in SimpleForm's internal config but disabled by default
111
+ # in this configuration, which is recommended due to some quirks from different browsers.
112
+ # To stop SimpleForm from generating the novalidate option, enabling the HTML5 validations,
113
+ # change this configuration to true.
114
+ config.browser_validations = false
115
+
116
+ # Collection of methods to detect if a file type was given.
117
+ # config.file_methods = [ :mounted_as, :file?, :public_filename ]
118
+
119
+ # Custom mappings for input types. This should be a hash containing a regexp
120
+ # to match as key, and the input type that will be used when the field name
121
+ # matches the regexp as value.
122
+ # config.input_mappings = { /count/ => :integer }
123
+
124
+ # Custom wrappers for input types. This should be a hash containing an input
125
+ # type as key and the wrapper that will be used for all inputs with specified type.
126
+ # config.wrapper_mappings = { string: :prepend }
127
+
128
+ # Default priority for time_zone inputs.
129
+ # config.time_zone_priority = nil
130
+
131
+ # Default priority for country inputs.
132
+ # config.country_priority = nil
133
+
134
+ # When false, do not use translations for labels.
135
+ # config.translate_labels = true
136
+
137
+ # Automatically discover new inputs in Rails' autoload path.
138
+ # config.inputs_discovery = true
139
+
140
+ # Cache SimpleForm inputs discovery
141
+ # config.cache_discovery = !Rails.env.development?
142
+ end
@@ -0,0 +1,17 @@
1
+ # Use this setup block to configure all options available in SimpleForm.
2
+ SimpleForm.setup do |config|
3
+ config.wrappers :foundation, class: :input, hint_class: :field_with_hint, error_class: :error do |b|
4
+ b.use :html5
5
+ b.use :placeholder
6
+ b.optional :maxlength
7
+ b.optional :pattern
8
+ b.optional :min_max
9
+ b.optional :readonly
10
+ b.use :label_input
11
+ b.use :error, wrap_with: { tag: :small }
12
+
13
+ # Uncomment the following line to enable hints. The line is commented out by default since Foundation
14
+ # does't provide styles for hints. You will need to provide your own CSS styles for hints.
15
+ # b.use :hint, wrap_with: { tag: :span, class: :hint }
16
+ end
17
+ end
@@ -12,6 +12,12 @@ bg:
12
12
  title: Създаване на %{model}
13
13
  confirmations:
14
14
  Are you sure: Шуре ли сте?
15
+
16
+ # Pages
17
+ resource:
18
+ index:
19
+ actions: 'Действия'
20
+
15
21
  flash:
16
22
  actions:
17
23
  create:
@@ -0,0 +1,26 @@
1
+ en:
2
+ simple_form:
3
+ "yes": 'Yes'
4
+ "no": 'No'
5
+ required:
6
+ text: 'required'
7
+ mark: '*'
8
+ # You can uncomment the line below if you need to overwrite the whole required html.
9
+ # When using html, text and mark won't be used.
10
+ # html: '<abbr title="required">*</abbr>'
11
+ error_notification:
12
+ default_message: "Please review the problems below:"
13
+ # Labels and hints examples
14
+ # labels:
15
+ # defaults:
16
+ # password: 'Password'
17
+ # user:
18
+ # new:
19
+ # email: 'E-mail to sign in.'
20
+ # edit:
21
+ # email: 'E-mail.'
22
+ # hints:
23
+ # defaults:
24
+ # username: 'User name to sign in.'
25
+ # password: 'No special characters, please.'
26
+
@@ -1,6 +1,7 @@
1
1
  require 'kaminari'
2
2
  require 'responders'
3
3
  require 'inherited_resources'
4
+ require 'zurb-foundation'
4
5
 
5
6
  module Manage
6
7
  class Engine < ::Rails::Engine
@@ -1,3 +1,3 @@
1
1
  module Manage
2
- VERSION = "1.1.1"
2
+ VERSION = "1.2.0"
3
3
  end
@@ -0,0 +1,13 @@
1
+ <%%= simple_form_for(@<%= singular_table_name %>) do |f| %>
2
+ <%%= f.error_notification %>
3
+
4
+ <div class="form-inputs">
5
+ <%- attributes.each do |attribute| -%>
6
+ <%%= f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %> %>
7
+ <%- end -%>
8
+ </div>
9
+
10
+ <div class="form-actions">
11
+ <%%= f.button :submit %>
12
+ </div>
13
+ <%% end %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: manage
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-08-23 00:00:00.000000000 Z
13
+ date: 2013-08-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -108,6 +108,86 @@ dependencies:
108
108
  - - '>='
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: sass-rails
113
+ requirement: !ruby/object:Gem::Requirement
114
+ none: false
115
+ requirements:
116
+ - - ~>
117
+ - !ruby/object:Gem::Version
118
+ version: 4.0.0
119
+ type: :runtime
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ none: false
123
+ requirements:
124
+ - - ~>
125
+ - !ruby/object:Gem::Version
126
+ version: 4.0.0
127
+ - !ruby/object:Gem::Dependency
128
+ name: coffee-rails
129
+ requirement: !ruby/object:Gem::Requirement
130
+ none: false
131
+ requirements:
132
+ - - ~>
133
+ - !ruby/object:Gem::Version
134
+ version: 4.0.0
135
+ type: :runtime
136
+ prerelease: false
137
+ version_requirements: !ruby/object:Gem::Requirement
138
+ none: false
139
+ requirements:
140
+ - - ~>
141
+ - !ruby/object:Gem::Version
142
+ version: 4.0.0
143
+ - !ruby/object:Gem::Dependency
144
+ name: uglifier
145
+ requirement: !ruby/object:Gem::Requirement
146
+ none: false
147
+ requirements:
148
+ - - '>='
149
+ - !ruby/object:Gem::Version
150
+ version: 1.3.0
151
+ type: :runtime
152
+ prerelease: false
153
+ version_requirements: !ruby/object:Gem::Requirement
154
+ none: false
155
+ requirements:
156
+ - - '>='
157
+ - !ruby/object:Gem::Version
158
+ version: 1.3.0
159
+ - !ruby/object:Gem::Dependency
160
+ name: compass-rails
161
+ requirement: !ruby/object:Gem::Requirement
162
+ none: false
163
+ requirements:
164
+ - - '>='
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ type: :runtime
168
+ prerelease: false
169
+ version_requirements: !ruby/object:Gem::Requirement
170
+ none: false
171
+ requirements:
172
+ - - '>='
173
+ - !ruby/object:Gem::Version
174
+ version: '0'
175
+ - !ruby/object:Gem::Dependency
176
+ name: zurb-foundation
177
+ requirement: !ruby/object:Gem::Requirement
178
+ none: false
179
+ requirements:
180
+ - - ~>
181
+ - !ruby/object:Gem::Version
182
+ version: 4.0.0
183
+ type: :runtime
184
+ prerelease: false
185
+ version_requirements: !ruby/object:Gem::Requirement
186
+ none: false
187
+ requirements:
188
+ - - ~>
189
+ - !ruby/object:Gem::Version
190
+ version: 4.0.0
111
191
  - !ruby/object:Gem::Dependency
112
192
  name: sqlite3
113
193
  requirement: !ruby/object:Gem::Requirement
@@ -136,16 +216,18 @@ files:
136
216
  - app/views/layouts/manage/sign_in.html.slim
137
217
  - app/views/sessions/new.html.slim
138
218
  - app/views/manage/resource/index.html.slim
139
- - app/views/manage/resource/_index.html.slim
140
219
  - app/views/manage/resource/_form.html.slim
141
220
  - app/views/manage/resource/show.html.slim
221
+ - app/views/manage/resource/index/_table.html.slim
222
+ - app/views/manage/resource/index/_filters.html.slim
223
+ - app/views/manage/resource/index/_scopes.html.slim
142
224
  - app/views/manage/resource/new.html.slim
143
225
  - app/views/manage/resource/edit.html.slim
144
226
  - app/views/manage/admin_users/_form.html.slim
145
- - app/assets/javascripts/manage/resource.js
146
227
  - app/assets/javascripts/manage/application.js
147
- - app/assets/stylesheets/manage/application.css
148
- - app/assets/stylesheets/manage/resource.css
228
+ - app/assets/javascripts/manage/init.js.coffee
229
+ - app/assets/stylesheets/manage/application.css.scss
230
+ - app/assets/stylesheets/manage/layout.css.scss
149
231
  - app/controllers/manage/responder.rb
150
232
  - app/controllers/manage/resource_controller.rb
151
233
  - app/controllers/manage/admin_users_controller.rb
@@ -153,14 +235,19 @@ files:
153
235
  - app/controllers/manage/application_controller.rb
154
236
  - app/controllers/manage/dashboards_controller.rb
155
237
  - app/helpers/manage/resource_helper.rb
238
+ - app/helpers/manage/form_helper.rb
156
239
  - app/helpers/manage/application_helper.rb
157
240
  - config/routes.rb
158
241
  - config/locales/bg.yml
242
+ - config/locales/simple_form.en.yml
159
243
  - config/locales/en.yml
244
+ - config/initializers/simple_form_foundation.rb
245
+ - config/initializers/simple_form.rb
160
246
  - lib/manage/version.rb
161
247
  - lib/manage/engine.rb
162
248
  - lib/manage.rb
163
249
  - lib/tasks/manage_tasks.rake
250
+ - lib/templates/erb/scaffold/_form.html.erb
164
251
  - MIT-LICENSE
165
252
  - Rakefile
166
253
  - README.rdoc
@@ -1,2 +0,0 @@
1
- // Place all the behaviors and hooks related to the matching controller here.
2
- // All this logic will automatically be available in application.js.
@@ -1,13 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the top of the
9
- * compiled file, but it's generally better to create a new file per style scope.
10
- *
11
- *= require_self
12
- *= require_tree .
13
- */
@@ -1,4 +0,0 @@
1
- /*
2
- Place all the styles related to the matching controller here.
3
- They will automatically be included in application.css.
4
- */
@@ -1,17 +0,0 @@
1
- table
2
- thead
3
- tr
4
- - attributes.each do |attr|
5
- th= resource_class.human_attribute_name(attr)
6
- th &nbsp;
7
- tbody
8
- - collection.each do |resource|
9
- tr[resource]
10
- - attributes.each do |attr|
11
- td= resource.public_send(attr).to_s.truncate(20)
12
- td
13
- = link_to t('manage.actions.show'), [resource]
14
- |
15
- = link_to t('manage.actions.edit'), [:edit, resource]
16
- |
17
- = link_to t('manage.actions.destroy'), [resource], method: :delete, data: { confirm: t('manage.confirmations.Are you sure')}