mix-rails 0.23.1 → 0.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +3 -0
- data/MIX_RAILS_VERSION +1 -1
- data/README.md +2 -1
- data/admix/Gemfile +0 -1
- data/admix/admix.gemspec +0 -1
- data/admix/app/assets/javascripts/admix/application.js.coffee +30 -2
- data/admix/app/assets/stylesheets/admix/application.css +6 -1
- data/admix/app/assets/stylesheets/admix/wice_grid.css.scss +143 -0
- data/admix/app/controllers/admix/inherited_controller.rb +13 -34
- data/admix/app/controllers/admix/registrations_controller.rb +2 -0
- data/admix/app/controllers/admix/rest_controller.rb +46 -0
- data/admix/app/helpers/admix/tab.rb +33 -0
- data/admix/app/helpers/admix_helper.rb +76 -0
- data/admix/app/views/admix/inherited/_actions.haml +7 -0
- data/admix/app/views/admix/inherited/_column_actions.haml +3 -0
- data/admix/app/views/admix/inherited/_empty_grid.haml +3 -0
- data/admix/{spec/dummy/app/mailers/.gitkeep → app/views/admix/inherited/_form_config.haml} +0 -0
- data/admix/app/views/admix/inherited/_grid.haml +5 -0
- data/admix/app/views/admix/inherited/_grid_actions.haml +1 -0
- data/admix/app/views/admix/inherited/_grid_columns.haml +11 -0
- data/admix/app/views/admix/inherited/edit.html.haml +3 -3
- data/admix/app/views/admix/inherited/form.html.haml +52 -0
- data/admix/app/views/admix/inherited/index.html.haml +3 -5
- data/admix/app/views/admix/inherited/new.html.haml +3 -3
- data/admix/app/views/admix/inherited/show.html.haml +3 -5
- data/admix/app/views/admix/rest/_actions.haml +7 -0
- data/admix/app/views/admix/rest/_column_actions.haml +3 -0
- data/admix/app/views/admix/rest/_empty_grid.haml +3 -0
- data/admix/{spec/dummy/app/models/.gitkeep → app/views/admix/rest/_form_config.haml} +0 -0
- data/admix/app/views/admix/rest/_grid.haml +5 -0
- data/admix/app/views/admix/rest/_grid_actions.haml +1 -0
- data/admix/app/views/admix/rest/_grid_columns.haml +11 -0
- data/admix/app/views/admix/rest/edit.html.haml +5 -0
- data/admix/app/views/admix/rest/form.html.haml +50 -0
- data/admix/app/views/admix/rest/index.html.haml +3 -0
- data/admix/app/views/admix/rest/new.html.haml +3 -0
- data/admix/app/views/admix/rest/show.html.haml +3 -0
- data/admix/app/views/layouts/admix/{admix.html.haml → admix.haml} +2 -2
- data/admix/app/views/layouts/admix/{login.html.haml → login.haml} +1 -1
- data/admix/config/admix_navigation.rb +34 -49
- data/admix/config/application.rb +0 -2
- data/admix/config/initializers/admix.rb +0 -3
- data/admix/config/initializers/wice_grid_config.rb +142 -0
- data/admix/config/locales/admix.pt-BR.yml +10 -3
- data/admix/config/locales/wice_grid.yml +502 -0
- data/admix/lib/admix.rb +1 -3
- data/admix/lib/admix/engine.rb +28 -0
- data/admix/lib/admix/version.rb +2 -2
- data/lib/mix-rails.rb +23 -2
- data/lib/mix-rails/addresses.rb +1 -0
- data/lib/mix-rails/admix.rb +1 -5
- data/lib/mix-rails/all.rb +6 -2
- data/mix-rails-addresses/.gitignore +7 -0
- data/mix-rails-addresses/Gemfile +18 -0
- data/mix-rails-addresses/MIT-LICENSE +20 -0
- data/mix-rails-addresses/README.rdoc +3 -0
- data/mix-rails-addresses/Rakefile +29 -0
- data/{admix/spec/dummy/lib/assets → mix-rails-addresses/app/assets/images/mix-rails-addresses}/.gitkeep +0 -0
- data/{admix/spec/dummy/log → mix-rails-addresses/app/assets/javascripts/mix-rails-addresses}/.gitkeep +0 -0
- data/{mix-rails-albums/spec/dummy/app/mailers → mix-rails-addresses/app/assets/stylesheets/mix-rails-addresses}/.gitkeep +0 -0
- data/{mix-rails-albums/spec/dummy/app/models → mix-rails-addresses/app/controllers}/.gitkeep +0 -0
- data/mix-rails-addresses/app/controllers/cities_controller.rb +12 -0
- data/mix-rails-addresses/app/controllers/states_controller.rb +11 -0
- data/{mix-rails-albums/spec/dummy/lib/assets → mix-rails-addresses/app/helpers}/.gitkeep +0 -0
- data/{mix-rails-albums/spec/dummy/log → mix-rails-addresses/app/mailers}/.gitkeep +0 -0
- data/mix-rails-addresses/app/models/address.rb +13 -0
- data/mix-rails-addresses/app/models/city.rb +8 -0
- data/mix-rails-addresses/app/models/state.rb +9 -0
- data/{mix-rails-auth/spec/dummy/app/mailers → mix-rails-addresses/app/views}/.gitkeep +0 -0
- data/mix-rails-addresses/config/locales/addresses.pt-BR.yml +3 -0
- data/mix-rails-addresses/config/routes.rb +5 -0
- data/mix-rails-addresses/db/migrate/20130306144900_create_states.rb +10 -0
- data/mix-rails-addresses/db/migrate/20130306145007_create_cities.rb +12 -0
- data/mix-rails-addresses/db/migrate/20130306172839_create_addresses.rb +17 -0
- data/mix-rails-addresses/db/migrate/20130311130844_add_latitude_longitude_to_address.rb +6 -0
- data/mix-rails-addresses/db/seeds.rb +31 -0
- data/mix-rails-addresses/lib/mix-rails-addresses.rb +4 -0
- data/mix-rails-addresses/lib/mix-rails-addresses/engine.rb +8 -0
- data/mix-rails-addresses/lib/mix-rails-addresses/version.rb +10 -0
- data/mix-rails-addresses/lib/tasks/mix-rails-addresses_tasks.rake +4 -0
- data/mix-rails-addresses/mix-rails-addresses.gemspec +21 -0
- data/mix-rails-addresses/script/rails +8 -0
- data/{admix → mix-rails-addresses}/spec/dummy/README.rdoc +8 -8
- data/{admix → mix-rails-addresses}/spec/dummy/Rakefile +0 -0
- data/{admix → mix-rails-addresses}/spec/dummy/app/assets/javascripts/application.js +0 -0
- data/{admix → mix-rails-addresses}/spec/dummy/app/assets/stylesheets/application.css +0 -0
- data/{admix → mix-rails-addresses}/spec/dummy/app/controllers/application_controller.rb +0 -0
- data/{admix → mix-rails-addresses}/spec/dummy/app/helpers/application_helper.rb +0 -0
- data/{mix-rails-auth/spec/dummy/app/models → mix-rails-addresses/spec/dummy/app/mailers}/.gitkeep +0 -0
- data/{mix-rails-auth/spec/dummy/lib/assets → mix-rails-addresses/spec/dummy/app/models}/.gitkeep +0 -0
- data/{admix → mix-rails-addresses}/spec/dummy/app/views/layouts/application.html.erb +0 -0
- data/{admix → mix-rails-addresses}/spec/dummy/config.ru +0 -0
- data/{admix → mix-rails-addresses}/spec/dummy/config/application.rb +4 -4
- data/{admix → mix-rails-addresses}/spec/dummy/config/boot.rb +0 -0
- data/mix-rails-addresses/spec/dummy/config/database.yml +42 -0
- data/{admix → mix-rails-addresses}/spec/dummy/config/environment.rb +0 -0
- data/{admix → mix-rails-addresses}/spec/dummy/config/environments/development.rb +6 -0
- data/{mix-rails-albums → mix-rails-addresses}/spec/dummy/config/environments/production.rb +3 -0
- data/{mix-rails-auth → mix-rails-addresses}/spec/dummy/config/environments/test.rb +2 -0
- data/{admix → mix-rails-addresses}/spec/dummy/config/initializers/backtrace_silencers.rb +0 -0
- data/{admix → mix-rails-addresses}/spec/dummy/config/initializers/inflections.rb +0 -0
- data/{admix → mix-rails-addresses}/spec/dummy/config/initializers/mime_types.rb +0 -0
- data/{admix → mix-rails-addresses}/spec/dummy/config/initializers/secret_token.rb +1 -1
- data/{admix → mix-rails-addresses}/spec/dummy/config/initializers/session_store.rb +0 -0
- data/{mix-rails-albums → mix-rails-addresses}/spec/dummy/config/initializers/wrap_parameters.rb +4 -0
- data/{admix → mix-rails-addresses}/spec/dummy/config/locales/en.yml +0 -0
- data/{admix → mix-rails-addresses}/spec/dummy/config/routes.rb +0 -0
- data/{mix-rails-auth/spec/dummy/log → mix-rails-addresses/spec/dummy/lib/assets}/.gitkeep +0 -0
- data/{mix-rails-core/spec/dummy/app/mailers → mix-rails-addresses/spec/dummy/log}/.gitkeep +0 -0
- data/{admix → mix-rails-addresses}/spec/dummy/public/404.html +0 -0
- data/{admix → mix-rails-addresses}/spec/dummy/public/422.html +0 -0
- data/{admix → mix-rails-addresses}/spec/dummy/public/500.html +0 -0
- data/{admix → mix-rails-addresses}/spec/dummy/public/favicon.ico +0 -0
- data/{admix → mix-rails-addresses}/spec/dummy/script/rails +0 -0
- data/mix-rails-addresses/spec/models/address_spec.rb +5 -0
- data/mix-rails-addresses/spec/models/city_spec.rb +5 -0
- data/mix-rails-addresses/spec/models/state_spec.rb +5 -0
- data/mix-rails-albums/app/assets/javascripts/backbone/templates/photos/thumbnail.hamlc.erb +1 -1
- data/mix-rails-albums/app/assets/javascripts/backbone/templates/photos/upload_index.hamlc.erb +4 -5
- data/mix-rails-albums/app/controllers/albums_controller.rb +2 -1
- data/mix-rails-albums/app/helpers/admix/albums_helper.rb +2 -6
- data/mix-rails-albums/app/models/concerns/album.rb +4 -2
- data/mix-rails-albums/app/models/photo.rb +1 -1
- data/mix-rails-albums/app/views/admix/albums/_form_config.haml +9 -0
- data/mix-rails-albums/app/views/admix/albums/_grid_actions.haml +1 -0
- data/mix-rails-albums/app/views/admix/albums/_grid_columns.haml +9 -0
- data/mix-rails-albums/app/views/admix/albums/_show.html.haml +1 -1
- data/mix-rails-albums/app/views/templates/albums/index.haml +2 -0
- data/mix-rails-albums/app/views/templates/albums/show.haml +2 -0
- data/mix-rails-albums/config/locales/albums.pt-BR.yml +2 -1
- data/mix-rails-albums/db/migrate/20130219111930_remove_polymorphic_association_from_photos.rb +6 -0
- data/mix-rails-albums/lib/mix-rails-albums/engine.rb +6 -9
- data/mix-rails-albums/lib/mix-rails-albums/version.rb +2 -2
- data/mix-rails-auth/app/views/admix/roles/_form_config.haml +4 -0
- data/mix-rails-auth/app/views/admix/users/_form_config.haml +7 -0
- data/mix-rails-auth/config/locales/auth.pt-BR.yml +1 -0
- data/mix-rails-auth/config/routes.rb +1 -1
- data/mix-rails-auth/lib/mix-rails-auth/engine.rb +7 -16
- data/mix-rails-auth/lib/mix-rails-auth/version.rb +2 -2
- data/mix-rails-core/Gemfile +1 -1
- data/mix-rails-core/app/assets/images/blank.gif +0 -0
- data/mix-rails-core/app/assets/images/jqzoom/advertise.jpg +0 -0
- data/mix-rails-core/app/assets/images/jqzoom/zoomloader.gif +0 -0
- data/mix-rails-core/app/assets/images/loadinfo.net.gif +0 -0
- data/mix-rails-core/app/assets/javascripts/angular-google-maps.js +531 -0
- data/mix-rails-core/app/assets/javascripts/angular-ui.min.js +7 -0
- data/mix-rails-core/app/assets/javascripts/angular.min.js +161 -0
- data/mix-rails-core/app/assets/javascripts/gmaps.js +1909 -0
- data/mix-rails-core/app/assets/javascripts/jquery-gmaps-latlon-picker.js +231 -0
- data/mix-rails-core/app/assets/javascripts/jquery.jqzoom.js +1 -0
- data/mix-rails-core/app/assets/javascripts/jquery.krioImageLoader.js +47 -0
- data/mix-rails-core/app/assets/javascripts/jquery.lazyload.js +227 -0
- data/mix-rails-core/app/assets/javascripts/jquery.maskedinput.js +290 -0
- data/mix-rails-core/app/assets/javascripts/jquery.meio.mask.min.js +1 -0
- data/mix-rails-core/app/assets/javascripts/jquery.ui.addresspicker.js +194 -0
- data/mix-rails-core/app/assets/javascripts/jquery/jquery.jqzoom-core.js +733 -0
- data/mix-rails-core/app/assets/javascripts/multizoom.js +388 -0
- data/mix-rails-core/app/assets/stylesheets/angular-ui.min.css +1 -0
- data/mix-rails-core/app/assets/stylesheets/jquery-gmaps-latlon-picker.css +2 -0
- data/mix-rails-core/app/assets/stylesheets/jquery.jqzoom.css +3 -0
- data/mix-rails-core/app/assets/stylesheets/jquery/jquery.jqzoom.css.erb +120 -0
- data/mix-rails-core/app/assets/stylesheets/multizoom.css +48 -0
- data/mix-rails-core/app/helpers/core_helper.rb +4 -0
- data/mix-rails-core/app/inputs/cell_input.rb +5 -0
- data/mix-rails-core/app/inputs/cep_input.rb +5 -0
- data/mix-rails-core/app/inputs/phone_input.rb +5 -0
- data/mix-rails-core/app/inputs/state_input.rb +5 -0
- data/mix-rails-core/app/models/attachment.rb +4 -1
- data/mix-rails-core/app/models/category.rb +4 -1
- data/mix-rails-core/app/models/ckeditor/asset.rb +7 -0
- data/mix-rails-core/app/models/ckeditor/attachment_file.rb +7 -0
- data/mix-rails-core/app/models/ckeditor/picture.rb +7 -0
- data/mix-rails-core/app/uploaders/ckeditor_attachment_file_uploader.rb +36 -0
- data/mix-rails-core/app/uploaders/ckeditor_picture_uploader.rb +47 -0
- data/mix-rails-core/app/views/admix/categories/_form_config.haml +3 -0
- data/mix-rails-core/config/initializers/ckeditor.rb +21 -0
- data/mix-rails-core/config/initializers/defaults_rails.rb +10 -1
- data/mix-rails-core/config/locales/core.pt-BR.yml +25 -2
- data/mix-rails-core/config/routes.rb +2 -0
- data/mix-rails-core/db/migrate/20130226152256_create_ckeditor_assets.rb +26 -0
- data/mix-rails-core/lib/mix-rails-core.rb +3 -0
- data/mix-rails-core/lib/mix-rails-core/version.rb +2 -2
- data/mix-rails-core/mix-rails-core.gemspec +0 -4
- data/mix-rails-message-board/app/controllers/board_messages_controller.rb +1 -1
- data/mix-rails-message-board/app/views/admix/board_messages/_form_config.haml +8 -0
- data/mix-rails-message-board/app/views/admix/board_messages/_grid_actions.haml +8 -0
- data/mix-rails-message-board/app/views/admix/board_messages/_grid_columns.haml +9 -0
- data/mix-rails-message-board/app/views/admix/board_replies/_form_config.haml +8 -0
- data/mix-rails-message-board/app/views/admix/board_replies/_grid_actions.haml +8 -0
- data/mix-rails-message-board/app/views/admix/board_replies/_grid_columns.haml +9 -0
- data/mix-rails-message-board/config/locales/message-board.pt-BR.yml +1 -0
- data/mix-rails-message-board/lib/mix-rails-message-board/engine.rb +12 -9
- data/mix-rails-message-board/lib/mix-rails-message-board/version.rb +2 -2
- data/mix-rails-settings/app/models/setting.rb +8 -0
- data/mix-rails-settings/app/views/admix/settings/_form_config.haml +9 -0
- data/mix-rails-settings/app/views/admix/settings/_grid_columns.haml +16 -0
- data/mix-rails-settings/lib/mix-rails-settings/engine.rb +8 -17
- data/mix-rails-settings/lib/mix-rails-settings/version.rb +2 -2
- data/mix-rails-songs/app/views/admix/songs/_form_config.haml +8 -0
- data/mix-rails-songs/app/views/admix/songs/_grid_columns.haml +9 -0
- data/mix-rails-songs/lib/mix-rails-songs/version.rb +2 -2
- data/mix-rails-videos/app/views/admix/videos/_form_config.haml +3 -0
- data/mix-rails-videos/lib/mix-rails-videos/version.rb +2 -2
- data/mix-rails-vouchers/app/views/admix/vouchers/_form_config.haml +15 -0
- data/mix-rails-vouchers/config/locales/vouchers.pt-BR.yml +3 -2
- data/mix-rails-vouchers/lib/mix-rails-vouchers/version.rb +2 -2
- data/mix-rails-wireframe/lib/mix-rails-wireframe/version.rb +2 -2
- data/mix-rails-writer/app/controllers/news_controller.rb +1 -1
- data/mix-rails-writer/app/models/post.rb +1 -1
- data/mix-rails-writer/app/views/admix/posts/_form_config.haml +15 -0
- data/mix-rails-writer/app/views/admix/posts/_grid_columns.haml +9 -0
- data/mix-rails-writer/config/locales/writer.pt-BR.yml +2 -0
- data/mix-rails-writer/lib/mix-rails-writer/engine.rb +6 -9
- data/mix-rails-writer/lib/mix-rails-writer/version.rb +2 -2
- data/mix-rails.gemspec +19 -22
- data/tasks/release.rb +2 -0
- data/version.rb +2 -2
- metadata +271 -485
- data/admix/app/views/admix/inherited/_form.html.haml +0 -14
- data/admix/app/views/admix/inherited/_table_actions.html.haml +0 -3
- data/admix/config/initializers/locale.rb +0 -1
- data/admix/lib/admix/table-actions.rb +0 -17
- data/admix/spec/dummy/config/environments/production.rb +0 -64
- data/admix/spec/dummy/config/environments/test.rb +0 -35
- data/admix/spec/dummy/config/initializers/wrap_parameters.rb +0 -10
- data/admix/spec/dummy/config/mongoid.yml +0 -80
- data/mix-rails-albums/app/models/admix/albums_datagrid.rb +0 -32
- data/mix-rails-albums/app/models/admix/photos_datagrid.rb +0 -15
- data/mix-rails-albums/app/views/admix/albums/_form_fields.html.haml +0 -4
- data/mix-rails-albums/app/views/admix/albums/_table_actions.html.haml +0 -4
- data/mix-rails-albums/spec/dummy/README.rdoc +0 -261
- data/mix-rails-albums/spec/dummy/Rakefile +0 -7
- data/mix-rails-albums/spec/dummy/app/assets/javascripts/application.js +0 -15
- data/mix-rails-albums/spec/dummy/app/assets/stylesheets/application.css +0 -13
- data/mix-rails-albums/spec/dummy/app/controllers/application_controller.rb +0 -3
- data/mix-rails-albums/spec/dummy/app/helpers/application_helper.rb +0 -2
- data/mix-rails-albums/spec/dummy/app/views/layouts/application.html.erb +0 -14
- data/mix-rails-albums/spec/dummy/config.ru +0 -4
- data/mix-rails-albums/spec/dummy/config/application.rb +0 -65
- data/mix-rails-albums/spec/dummy/config/boot.rb +0 -10
- data/mix-rails-albums/spec/dummy/config/environment.rb +0 -5
- data/mix-rails-albums/spec/dummy/config/environments/development.rb +0 -31
- data/mix-rails-albums/spec/dummy/config/environments/test.rb +0 -35
- data/mix-rails-albums/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/mix-rails-albums/spec/dummy/config/initializers/inflections.rb +0 -15
- data/mix-rails-albums/spec/dummy/config/initializers/mime_types.rb +0 -5
- data/mix-rails-albums/spec/dummy/config/initializers/secret_token.rb +0 -7
- data/mix-rails-albums/spec/dummy/config/initializers/session_store.rb +0 -8
- data/mix-rails-albums/spec/dummy/config/locales/en.yml +0 -5
- data/mix-rails-albums/spec/dummy/config/mongoid.yml +0 -80
- data/mix-rails-albums/spec/dummy/config/routes.rb +0 -58
- data/mix-rails-albums/spec/dummy/public/404.html +0 -26
- data/mix-rails-albums/spec/dummy/public/422.html +0 -26
- data/mix-rails-albums/spec/dummy/public/500.html +0 -25
- data/mix-rails-albums/spec/dummy/public/favicon.ico +0 -0
- data/mix-rails-albums/spec/dummy/script/rails +0 -6
- data/mix-rails-auth/app/models/admix/roles_datagrid.rb +0 -14
- data/mix-rails-auth/app/models/admix/users_datagrid.rb +0 -19
- data/mix-rails-auth/app/views/admix/roles/_form_fields.html.haml +0 -2
- data/mix-rails-auth/app/views/admix/users/_form_fields.html.haml +0 -3
- data/mix-rails-auth/app/views/admix/users/_table_actions.html.haml +0 -3
- data/mix-rails-auth/spec/dummy/README.rdoc +0 -261
- data/mix-rails-auth/spec/dummy/Rakefile +0 -7
- data/mix-rails-auth/spec/dummy/app/assets/javascripts/application.js +0 -15
- data/mix-rails-auth/spec/dummy/app/assets/stylesheets/application.css +0 -13
- data/mix-rails-auth/spec/dummy/app/controllers/application_controller.rb +0 -3
- data/mix-rails-auth/spec/dummy/app/helpers/application_helper.rb +0 -2
- data/mix-rails-auth/spec/dummy/app/views/layouts/application.html.erb +0 -14
- data/mix-rails-auth/spec/dummy/config.ru +0 -4
- data/mix-rails-auth/spec/dummy/config/application.rb +0 -65
- data/mix-rails-auth/spec/dummy/config/boot.rb +0 -10
- data/mix-rails-auth/spec/dummy/config/environment.rb +0 -5
- data/mix-rails-auth/spec/dummy/config/environments/development.rb +0 -31
- data/mix-rails-auth/spec/dummy/config/environments/production.rb +0 -64
- data/mix-rails-auth/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/mix-rails-auth/spec/dummy/config/initializers/inflections.rb +0 -15
- data/mix-rails-auth/spec/dummy/config/initializers/mime_types.rb +0 -5
- data/mix-rails-auth/spec/dummy/config/initializers/secret_token.rb +0 -7
- data/mix-rails-auth/spec/dummy/config/initializers/session_store.rb +0 -8
- data/mix-rails-auth/spec/dummy/config/initializers/wrap_parameters.rb +0 -10
- data/mix-rails-auth/spec/dummy/config/locales/en.yml +0 -5
- data/mix-rails-auth/spec/dummy/config/routes.rb +0 -58
- data/mix-rails-auth/spec/dummy/public/404.html +0 -26
- data/mix-rails-auth/spec/dummy/public/422.html +0 -26
- data/mix-rails-auth/spec/dummy/public/500.html +0 -25
- data/mix-rails-auth/spec/dummy/public/favicon.ico +0 -0
- data/mix-rails-auth/spec/dummy/script/rails +0 -6
- data/mix-rails-core/app/assets/javascripts/jquery/jquery.maskedinput-1.3.min.js +0 -7
- data/mix-rails-core/app/models/admix/categories_datagrid.rb +0 -14
- data/mix-rails-core/app/views/admix/categories/_form_fields.haml +0 -1
- data/mix-rails-core/spec/dummy/README.rdoc +0 -261
- data/mix-rails-core/spec/dummy/Rakefile +0 -7
- data/mix-rails-core/spec/dummy/app/assets/javascripts/application.js +0 -15
- data/mix-rails-core/spec/dummy/app/assets/stylesheets/application.css +0 -13
- data/mix-rails-core/spec/dummy/app/controllers/application_controller.rb +0 -3
- data/mix-rails-core/spec/dummy/app/helpers/application_helper.rb +0 -2
- data/mix-rails-core/spec/dummy/app/models/.gitkeep +0 -0
- data/mix-rails-core/spec/dummy/app/views/layouts/application.html.erb +0 -14
- data/mix-rails-core/spec/dummy/config.ru +0 -4
- data/mix-rails-core/spec/dummy/config/application.rb +0 -65
- data/mix-rails-core/spec/dummy/config/boot.rb +0 -10
- data/mix-rails-core/spec/dummy/config/environment.rb +0 -5
- data/mix-rails-core/spec/dummy/config/environments/development.rb +0 -31
- data/mix-rails-core/spec/dummy/config/environments/production.rb +0 -64
- data/mix-rails-core/spec/dummy/config/environments/test.rb +0 -35
- data/mix-rails-core/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/mix-rails-core/spec/dummy/config/initializers/inflections.rb +0 -15
- data/mix-rails-core/spec/dummy/config/initializers/mime_types.rb +0 -5
- data/mix-rails-core/spec/dummy/config/initializers/secret_token.rb +0 -7
- data/mix-rails-core/spec/dummy/config/initializers/session_store.rb +0 -8
- data/mix-rails-core/spec/dummy/config/initializers/wrap_parameters.rb +0 -10
- data/mix-rails-core/spec/dummy/config/locales/en.yml +0 -5
- data/mix-rails-core/spec/dummy/config/routes.rb +0 -58
- data/mix-rails-core/spec/dummy/lib/assets/.gitkeep +0 -0
- data/mix-rails-core/spec/dummy/log/.gitkeep +0 -0
- data/mix-rails-core/spec/dummy/public/404.html +0 -26
- data/mix-rails-core/spec/dummy/public/422.html +0 -26
- data/mix-rails-core/spec/dummy/public/500.html +0 -25
- data/mix-rails-core/spec/dummy/public/favicon.ico +0 -0
- data/mix-rails-core/spec/dummy/script/rails +0 -6
- data/mix-rails-message-board/app/models/admix/board_messages_datagrid.rb +0 -31
- data/mix-rails-message-board/app/models/admix/board_replies_datagrid.rb +0 -29
- data/mix-rails-message-board/app/views/admix/board_messages/_form_fields.html.haml +0 -5
- data/mix-rails-message-board/app/views/admix/board_replies/_form_fields.html.haml +0 -5
- data/mix-rails-message-board/spec/dummy/README.rdoc +0 -261
- data/mix-rails-message-board/spec/dummy/Rakefile +0 -7
- data/mix-rails-message-board/spec/dummy/app/assets/javascripts/application.js +0 -15
- data/mix-rails-message-board/spec/dummy/app/assets/stylesheets/application.css +0 -13
- data/mix-rails-message-board/spec/dummy/app/controllers/application_controller.rb +0 -3
- data/mix-rails-message-board/spec/dummy/app/helpers/application_helper.rb +0 -2
- data/mix-rails-message-board/spec/dummy/app/mailers/.gitkeep +0 -0
- data/mix-rails-message-board/spec/dummy/app/models/.gitkeep +0 -0
- data/mix-rails-message-board/spec/dummy/app/views/layouts/application.html.erb +0 -14
- data/mix-rails-message-board/spec/dummy/config.ru +0 -4
- data/mix-rails-message-board/spec/dummy/config/application.rb +0 -65
- data/mix-rails-message-board/spec/dummy/config/boot.rb +0 -10
- data/mix-rails-message-board/spec/dummy/config/environment.rb +0 -5
- data/mix-rails-message-board/spec/dummy/config/environments/development.rb +0 -31
- data/mix-rails-message-board/spec/dummy/config/environments/production.rb +0 -64
- data/mix-rails-message-board/spec/dummy/config/environments/test.rb +0 -35
- data/mix-rails-message-board/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/mix-rails-message-board/spec/dummy/config/initializers/inflections.rb +0 -15
- data/mix-rails-message-board/spec/dummy/config/initializers/mime_types.rb +0 -5
- data/mix-rails-message-board/spec/dummy/config/initializers/secret_token.rb +0 -7
- data/mix-rails-message-board/spec/dummy/config/initializers/session_store.rb +0 -8
- data/mix-rails-message-board/spec/dummy/config/initializers/wrap_parameters.rb +0 -10
- data/mix-rails-message-board/spec/dummy/config/locales/en.yml +0 -5
- data/mix-rails-message-board/spec/dummy/config/routes.rb +0 -58
- data/mix-rails-message-board/spec/dummy/lib/assets/.gitkeep +0 -0
- data/mix-rails-message-board/spec/dummy/log/.gitkeep +0 -0
- data/mix-rails-message-board/spec/dummy/public/404.html +0 -26
- data/mix-rails-message-board/spec/dummy/public/422.html +0 -26
- data/mix-rails-message-board/spec/dummy/public/500.html +0 -25
- data/mix-rails-message-board/spec/dummy/public/favicon.ico +0 -0
- data/mix-rails-message-board/spec/dummy/script/rails +0 -6
- data/mix-rails-settings/app/models/admix/settings_datagrid.rb +0 -27
- data/mix-rails-settings/app/views/admix/settings/_form_fields.html.haml +0 -5
- data/mix-rails-settings/spec/dummy/README.rdoc +0 -261
- data/mix-rails-settings/spec/dummy/Rakefile +0 -7
- data/mix-rails-settings/spec/dummy/app/assets/javascripts/application.js +0 -15
- data/mix-rails-settings/spec/dummy/app/assets/stylesheets/application.css +0 -13
- data/mix-rails-settings/spec/dummy/app/controllers/application_controller.rb +0 -3
- data/mix-rails-settings/spec/dummy/app/helpers/application_helper.rb +0 -2
- data/mix-rails-settings/spec/dummy/app/mailers/.gitkeep +0 -0
- data/mix-rails-settings/spec/dummy/app/models/.gitkeep +0 -0
- data/mix-rails-settings/spec/dummy/app/views/layouts/application.html.erb +0 -14
- data/mix-rails-settings/spec/dummy/config.ru +0 -4
- data/mix-rails-settings/spec/dummy/config/application.rb +0 -66
- data/mix-rails-settings/spec/dummy/config/boot.rb +0 -10
- data/mix-rails-settings/spec/dummy/config/environment.rb +0 -5
- data/mix-rails-settings/spec/dummy/config/environments/development.rb +0 -31
- data/mix-rails-settings/spec/dummy/config/environments/production.rb +0 -64
- data/mix-rails-settings/spec/dummy/config/environments/test.rb +0 -35
- data/mix-rails-settings/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/mix-rails-settings/spec/dummy/config/initializers/inflections.rb +0 -15
- data/mix-rails-settings/spec/dummy/config/initializers/mime_types.rb +0 -5
- data/mix-rails-settings/spec/dummy/config/initializers/secret_token.rb +0 -7
- data/mix-rails-settings/spec/dummy/config/initializers/session_store.rb +0 -8
- data/mix-rails-settings/spec/dummy/config/initializers/wrap_parameters.rb +0 -10
- data/mix-rails-settings/spec/dummy/config/locales/en.yml +0 -5
- data/mix-rails-settings/spec/dummy/config/mongoid.yml +0 -80
- data/mix-rails-settings/spec/dummy/config/routes.rb +0 -59
- data/mix-rails-settings/spec/dummy/lib/assets/.gitkeep +0 -0
- data/mix-rails-settings/spec/dummy/log/.gitkeep +0 -0
- data/mix-rails-settings/spec/dummy/public/404.html +0 -26
- data/mix-rails-settings/spec/dummy/public/422.html +0 -26
- data/mix-rails-settings/spec/dummy/public/500.html +0 -25
- data/mix-rails-settings/spec/dummy/public/favicon.ico +0 -0
- data/mix-rails-settings/spec/dummy/script/rails +0 -6
- data/mix-rails-songs/app/models/admix/songs_datagrid.rb +0 -20
- data/mix-rails-songs/app/views/admix/songs/_form_fields.html.haml +0 -4
- data/mix-rails-songs/spec/dummy/README.rdoc +0 -261
- data/mix-rails-songs/spec/dummy/Rakefile +0 -7
- data/mix-rails-songs/spec/dummy/app/assets/javascripts/application.js +0 -15
- data/mix-rails-songs/spec/dummy/app/assets/stylesheets/application.css +0 -13
- data/mix-rails-songs/spec/dummy/app/controllers/application_controller.rb +0 -3
- data/mix-rails-songs/spec/dummy/app/helpers/application_helper.rb +0 -2
- data/mix-rails-songs/spec/dummy/app/mailers/.gitkeep +0 -0
- data/mix-rails-songs/spec/dummy/app/models/.gitkeep +0 -0
- data/mix-rails-songs/spec/dummy/app/views/layouts/application.html.erb +0 -14
- data/mix-rails-songs/spec/dummy/config.ru +0 -4
- data/mix-rails-songs/spec/dummy/config/application.rb +0 -65
- data/mix-rails-songs/spec/dummy/config/boot.rb +0 -10
- data/mix-rails-songs/spec/dummy/config/environment.rb +0 -5
- data/mix-rails-songs/spec/dummy/config/environments/development.rb +0 -31
- data/mix-rails-songs/spec/dummy/config/environments/production.rb +0 -64
- data/mix-rails-songs/spec/dummy/config/environments/test.rb +0 -35
- data/mix-rails-songs/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/mix-rails-songs/spec/dummy/config/initializers/inflections.rb +0 -15
- data/mix-rails-songs/spec/dummy/config/initializers/mime_types.rb +0 -5
- data/mix-rails-songs/spec/dummy/config/initializers/secret_token.rb +0 -7
- data/mix-rails-songs/spec/dummy/config/initializers/session_store.rb +0 -8
- data/mix-rails-songs/spec/dummy/config/initializers/wrap_parameters.rb +0 -10
- data/mix-rails-songs/spec/dummy/config/locales/en.yml +0 -5
- data/mix-rails-songs/spec/dummy/config/routes.rb +0 -58
- data/mix-rails-songs/spec/dummy/lib/assets/.gitkeep +0 -0
- data/mix-rails-songs/spec/dummy/log/.gitkeep +0 -0
- data/mix-rails-songs/spec/dummy/public/404.html +0 -26
- data/mix-rails-songs/spec/dummy/public/422.html +0 -26
- data/mix-rails-songs/spec/dummy/public/500.html +0 -25
- data/mix-rails-songs/spec/dummy/public/favicon.ico +0 -0
- data/mix-rails-songs/spec/dummy/script/rails +0 -6
- data/mix-rails-videos/app/models/admix/videos_datagrid.rb +0 -21
- data/mix-rails-videos/app/views/admix/videos/_form_fields.html.haml +0 -1
- data/mix-rails-videos/spec/dummy/README.rdoc +0 -261
- data/mix-rails-videos/spec/dummy/Rakefile +0 -7
- data/mix-rails-videos/spec/dummy/app/assets/javascripts/application.js +0 -15
- data/mix-rails-videos/spec/dummy/app/assets/stylesheets/application.css +0 -13
- data/mix-rails-videos/spec/dummy/app/controllers/application_controller.rb +0 -3
- data/mix-rails-videos/spec/dummy/app/helpers/application_helper.rb +0 -2
- data/mix-rails-videos/spec/dummy/app/mailers/.gitkeep +0 -0
- data/mix-rails-videos/spec/dummy/app/models/.gitkeep +0 -0
- data/mix-rails-videos/spec/dummy/app/views/layouts/application.html.erb +0 -14
- data/mix-rails-videos/spec/dummy/config.ru +0 -4
- data/mix-rails-videos/spec/dummy/config/application.rb +0 -65
- data/mix-rails-videos/spec/dummy/config/boot.rb +0 -10
- data/mix-rails-videos/spec/dummy/config/environment.rb +0 -5
- data/mix-rails-videos/spec/dummy/config/environments/development.rb +0 -31
- data/mix-rails-videos/spec/dummy/config/environments/production.rb +0 -64
- data/mix-rails-videos/spec/dummy/config/environments/test.rb +0 -35
- data/mix-rails-videos/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/mix-rails-videos/spec/dummy/config/initializers/inflections.rb +0 -15
- data/mix-rails-videos/spec/dummy/config/initializers/mime_types.rb +0 -5
- data/mix-rails-videos/spec/dummy/config/initializers/secret_token.rb +0 -7
- data/mix-rails-videos/spec/dummy/config/initializers/session_store.rb +0 -8
- data/mix-rails-videos/spec/dummy/config/initializers/wrap_parameters.rb +0 -10
- data/mix-rails-videos/spec/dummy/config/locales/en.yml +0 -5
- data/mix-rails-videos/spec/dummy/config/routes.rb +0 -58
- data/mix-rails-videos/spec/dummy/lib/assets/.gitkeep +0 -0
- data/mix-rails-videos/spec/dummy/log/.gitkeep +0 -0
- data/mix-rails-videos/spec/dummy/public/404.html +0 -26
- data/mix-rails-videos/spec/dummy/public/422.html +0 -26
- data/mix-rails-videos/spec/dummy/public/500.html +0 -25
- data/mix-rails-videos/spec/dummy/public/favicon.ico +0 -0
- data/mix-rails-videos/spec/dummy/script/rails +0 -6
- data/mix-rails-vouchers/app/models/admix/vouchers_datagrid.rb +0 -18
- data/mix-rails-vouchers/app/views/admix/vouchers/_form_fields.html.haml +0 -6
- data/mix-rails-vouchers/spec/dummy/README.rdoc +0 -261
- data/mix-rails-vouchers/spec/dummy/Rakefile +0 -7
- data/mix-rails-vouchers/spec/dummy/app/assets/javascripts/application.js +0 -15
- data/mix-rails-vouchers/spec/dummy/app/assets/stylesheets/application.css +0 -13
- data/mix-rails-vouchers/spec/dummy/app/controllers/application_controller.rb +0 -3
- data/mix-rails-vouchers/spec/dummy/app/helpers/application_helper.rb +0 -2
- data/mix-rails-vouchers/spec/dummy/app/mailers/.gitkeep +0 -0
- data/mix-rails-vouchers/spec/dummy/app/models/.gitkeep +0 -0
- data/mix-rails-vouchers/spec/dummy/app/views/layouts/application.html.erb +0 -14
- data/mix-rails-vouchers/spec/dummy/config.ru +0 -4
- data/mix-rails-vouchers/spec/dummy/config/application.rb +0 -65
- data/mix-rails-vouchers/spec/dummy/config/boot.rb +0 -10
- data/mix-rails-vouchers/spec/dummy/config/environment.rb +0 -5
- data/mix-rails-vouchers/spec/dummy/config/environments/development.rb +0 -31
- data/mix-rails-vouchers/spec/dummy/config/environments/production.rb +0 -64
- data/mix-rails-vouchers/spec/dummy/config/environments/test.rb +0 -35
- data/mix-rails-vouchers/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/mix-rails-vouchers/spec/dummy/config/initializers/inflections.rb +0 -15
- data/mix-rails-vouchers/spec/dummy/config/initializers/mime_types.rb +0 -5
- data/mix-rails-vouchers/spec/dummy/config/initializers/secret_token.rb +0 -7
- data/mix-rails-vouchers/spec/dummy/config/initializers/session_store.rb +0 -8
- data/mix-rails-vouchers/spec/dummy/config/initializers/wrap_parameters.rb +0 -10
- data/mix-rails-vouchers/spec/dummy/config/locales/en.yml +0 -5
- data/mix-rails-vouchers/spec/dummy/config/routes.rb +0 -58
- data/mix-rails-vouchers/spec/dummy/lib/assets/.gitkeep +0 -0
- data/mix-rails-vouchers/spec/dummy/log/.gitkeep +0 -0
- data/mix-rails-vouchers/spec/dummy/public/404.html +0 -26
- data/mix-rails-vouchers/spec/dummy/public/422.html +0 -26
- data/mix-rails-vouchers/spec/dummy/public/500.html +0 -25
- data/mix-rails-vouchers/spec/dummy/public/favicon.ico +0 -0
- data/mix-rails-vouchers/spec/dummy/script/rails +0 -6
- data/mix-rails-wireframe/spec/dummy/README.rdoc +0 -261
- data/mix-rails-wireframe/spec/dummy/Rakefile +0 -7
- data/mix-rails-wireframe/spec/dummy/app/assets/javascripts/application.js +0 -15
- data/mix-rails-wireframe/spec/dummy/app/assets/stylesheets/application.css +0 -13
- data/mix-rails-wireframe/spec/dummy/app/controllers/application_controller.rb +0 -3
- data/mix-rails-wireframe/spec/dummy/app/helpers/application_helper.rb +0 -2
- data/mix-rails-wireframe/spec/dummy/app/mailers/.gitkeep +0 -0
- data/mix-rails-wireframe/spec/dummy/app/models/.gitkeep +0 -0
- data/mix-rails-wireframe/spec/dummy/app/views/layouts/application.html.erb +0 -14
- data/mix-rails-wireframe/spec/dummy/config.ru +0 -4
- data/mix-rails-wireframe/spec/dummy/config/application.rb +0 -65
- data/mix-rails-wireframe/spec/dummy/config/boot.rb +0 -10
- data/mix-rails-wireframe/spec/dummy/config/environment.rb +0 -5
- data/mix-rails-wireframe/spec/dummy/config/environments/development.rb +0 -31
- data/mix-rails-wireframe/spec/dummy/config/environments/production.rb +0 -64
- data/mix-rails-wireframe/spec/dummy/config/environments/test.rb +0 -35
- data/mix-rails-wireframe/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/mix-rails-wireframe/spec/dummy/config/initializers/inflections.rb +0 -15
- data/mix-rails-wireframe/spec/dummy/config/initializers/mime_types.rb +0 -5
- data/mix-rails-wireframe/spec/dummy/config/initializers/secret_token.rb +0 -7
- data/mix-rails-wireframe/spec/dummy/config/initializers/session_store.rb +0 -8
- data/mix-rails-wireframe/spec/dummy/config/initializers/wrap_parameters.rb +0 -10
- data/mix-rails-wireframe/spec/dummy/config/locales/en.yml +0 -5
- data/mix-rails-wireframe/spec/dummy/config/routes.rb +0 -58
- data/mix-rails-wireframe/spec/dummy/lib/assets/.gitkeep +0 -0
- data/mix-rails-wireframe/spec/dummy/log/.gitkeep +0 -0
- data/mix-rails-wireframe/spec/dummy/public/404.html +0 -26
- data/mix-rails-wireframe/spec/dummy/public/422.html +0 -26
- data/mix-rails-wireframe/spec/dummy/public/500.html +0 -25
- data/mix-rails-wireframe/spec/dummy/public/favicon.ico +0 -0
- data/mix-rails-wireframe/spec/dummy/script/rails +0 -6
- data/mix-rails-writer/app/models/admix/news_datagrid.rb +0 -34
- data/mix-rails-writer/app/views/admix/posts/_form_fields.html.haml +0 -6
- data/mix-rails-writer/spec/dummy/README.rdoc +0 -261
- data/mix-rails-writer/spec/dummy/Rakefile +0 -7
- data/mix-rails-writer/spec/dummy/app/assets/javascripts/application.js +0 -15
- data/mix-rails-writer/spec/dummy/app/assets/stylesheets/application.css +0 -13
- data/mix-rails-writer/spec/dummy/app/controllers/application_controller.rb +0 -3
- data/mix-rails-writer/spec/dummy/app/helpers/application_helper.rb +0 -2
- data/mix-rails-writer/spec/dummy/app/mailers/.gitkeep +0 -0
- data/mix-rails-writer/spec/dummy/app/models/.gitkeep +0 -0
- data/mix-rails-writer/spec/dummy/app/views/layouts/application.html.erb +0 -14
- data/mix-rails-writer/spec/dummy/config.ru +0 -4
- data/mix-rails-writer/spec/dummy/config/application.rb +0 -65
- data/mix-rails-writer/spec/dummy/config/boot.rb +0 -10
- data/mix-rails-writer/spec/dummy/config/environment.rb +0 -5
- data/mix-rails-writer/spec/dummy/config/environments/development.rb +0 -31
- data/mix-rails-writer/spec/dummy/config/environments/production.rb +0 -64
- data/mix-rails-writer/spec/dummy/config/environments/test.rb +0 -35
- data/mix-rails-writer/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/mix-rails-writer/spec/dummy/config/initializers/inflections.rb +0 -15
- data/mix-rails-writer/spec/dummy/config/initializers/mime_types.rb +0 -5
- data/mix-rails-writer/spec/dummy/config/initializers/secret_token.rb +0 -7
- data/mix-rails-writer/spec/dummy/config/initializers/session_store.rb +0 -8
- data/mix-rails-writer/spec/dummy/config/initializers/wrap_parameters.rb +0 -10
- data/mix-rails-writer/spec/dummy/config/locales/en.yml +0 -5
- data/mix-rails-writer/spec/dummy/config/routes.rb +0 -58
- data/mix-rails-writer/spec/dummy/lib/assets/.gitkeep +0 -0
- data/mix-rails-writer/spec/dummy/log/.gitkeep +0 -0
- data/mix-rails-writer/spec/dummy/public/404.html +0 -26
- data/mix-rails-writer/spec/dummy/public/422.html +0 -26
- data/mix-rails-writer/spec/dummy/public/500.html +0 -25
- data/mix-rails-writer/spec/dummy/public/favicon.ico +0 -0
- data/mix-rails-writer/spec/dummy/script/rails +0 -6
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 4e77873e55e5d77aa9d71095afb04b3bc49033e4
|
4
|
+
data.tar.gz: 93b7689359b3e7ec2338a4d971c85e16f9ce7868
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 66dd6c86f80ddd37df54b5dfde0cf137b7266f9d08b8db184d885541689b4354e5ada855f7666faff83b4e36a6fd000aec52dd365543540c43dad9e906175b9b
|
7
|
+
data.tar.gz: 495667d46d0cd3c6be3ad4eabec8c6a3b67a72120bacd39c0735b1991dc5172b0d81bb406cb3d53c4667900a4c4f7d2c5e6ed59d874eaf776e1cc7a9c5ff1e0b
|
data/Gemfile
CHANGED
@@ -1,9 +1,12 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
|
+
|
2
3
|
Encoding.default_external = Encoding::UTF_8
|
3
4
|
|
4
5
|
# Specify your gem's dependencies in mix-rails.gemspec
|
5
6
|
gemspec
|
6
7
|
|
8
|
+
gem 'default_value_for', github: 'FooBarWidget/default_value_for', branch: 'master'
|
9
|
+
|
7
10
|
group :development do
|
8
11
|
gem 'capistrano'
|
9
12
|
gem 'rvm-capistrano'
|
data/MIX_RAILS_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.24.0
|
data/README.md
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
[![Build Status](https://travis-ci.org/mixinternet/mix-rails.png)](https://travis-ci.org/mixinternet/mix-rails)
|
4
4
|
[![Dependency Status](https://gemnasium.com/mixinternet/mix-rails.png)](https://gemnasium.com/mixinternet/mix-rails)
|
5
|
+
[![Code Climate](https://codeclimate.com/github/mixinternet/mix-rails.png)](https://codeclimate.com/github/mixinternet/mix-rails)
|
5
6
|
|
6
7
|
MixRails is a CMS based on Ruby on Rails.
|
7
8
|
|
@@ -10,7 +11,7 @@ MixRails is a CMS based on Ruby on Rails.
|
|
10
11
|
|
11
12
|
Create a new rails project.
|
12
13
|
|
13
|
-
$ rails new myproject
|
14
|
+
$ rails new myproject --skip-bundle
|
14
15
|
|
15
16
|
Add this line to your application's Gemfile:
|
16
17
|
|
data/admix/Gemfile
CHANGED
@@ -19,7 +19,6 @@ gem 'haml-rails'
|
|
19
19
|
gem 'coffee-script'
|
20
20
|
gem 'inherited_resources'
|
21
21
|
gem 'simple_form'
|
22
|
-
gem 'datagrid'
|
23
22
|
|
24
23
|
# Declare any dependencies that are still in development here instead of in
|
25
24
|
# your gemspec. These might include edge Rails or gems from your path or
|
data/admix/admix.gemspec
CHANGED
@@ -1,9 +1,11 @@
|
|
1
|
+
|
1
2
|
#= require jquery
|
2
3
|
#= require jquery_ujs
|
3
4
|
#= require underscore
|
4
5
|
#= require backbone
|
5
6
|
#= require jquery/jquery.livequery
|
6
7
|
#= require fancybox
|
8
|
+
#= require wice_grid
|
7
9
|
#= require jquery.ui.all
|
8
10
|
#= require bootstrap
|
9
11
|
#= require ../../nicedit/nicEdit
|
@@ -12,7 +14,13 @@
|
|
12
14
|
# ./tipsy_init
|
13
15
|
#= require jquery.qtip.js
|
14
16
|
#= require jquery.globalmoney
|
17
|
+
#= require ckeditor/init
|
18
|
+
#= require jquery.meio.mask.min
|
19
|
+
#= require jquery.ui.addresspicker
|
15
20
|
|
21
|
+
#= require angular.min
|
22
|
+
#= require angular-ui.min
|
23
|
+
#= require gmaps
|
16
24
|
|
17
25
|
|
18
26
|
Backbone.emulateHTTP = true
|
@@ -29,7 +37,7 @@ $ ->
|
|
29
37
|
style:
|
30
38
|
classes: 'qtip-bootstrap'
|
31
39
|
|
32
|
-
$('.
|
40
|
+
$('.zoom-image').livequery ->
|
33
41
|
$(@).fancybox();
|
34
42
|
|
35
43
|
$('.currency').livequery ->
|
@@ -44,4 +52,24 @@ $ ->
|
|
44
52
|
$(this).datepicker
|
45
53
|
altFormat: "yy-mm-dd"
|
46
54
|
dateFormat: "dd/mm/yy"
|
47
|
-
altField: $(this).next()
|
55
|
+
altField: $(this).next()
|
56
|
+
|
57
|
+
$(".cell, .phone").livequery ->
|
58
|
+
$(@).setMask('(84) 9999-9999')
|
59
|
+
|
60
|
+
$(".cep").livequery ->
|
61
|
+
$(@).setMask('99999-999')
|
62
|
+
|
63
|
+
# window.admix = angular.module('admix', ['ui'])
|
64
|
+
# .config(["$httpProvider", function(provider) {
|
65
|
+
# provider.defaults.headers.common['X-CSRF-Token'] = $('meta[name=csrf-token]').attr('content');
|
66
|
+
# .controller 'FormController', ($scope) ->
|
67
|
+
# console.log 'init From Controller'
|
68
|
+
# $scope.method = $(AdmixForm._method).val()
|
69
|
+
# $scope.authenticity_token = $(AdmixForm.authenticity_token).val()
|
70
|
+
# $scope.utf8 = $(AdmixForm.utf8).val()
|
71
|
+
|
72
|
+
# console.log $scope
|
73
|
+
|
74
|
+
|
75
|
+
# angular.bootstrap(document, ['admix'])
|
@@ -15,6 +15,7 @@
|
|
15
15
|
*= require ./admix_bootstrap
|
16
16
|
*= require ./style
|
17
17
|
*= require jquery.qtip.css
|
18
|
+
*= require ./wice_grid
|
18
19
|
*= require_self
|
19
20
|
*/
|
20
21
|
|
@@ -25,4 +26,8 @@
|
|
25
26
|
|
26
27
|
form abbr {
|
27
28
|
color: red;
|
28
|
-
}
|
29
|
+
}
|
30
|
+
|
31
|
+
#gmapa img {
|
32
|
+
max-width: none;
|
33
|
+
}
|
@@ -0,0 +1,143 @@
|
|
1
|
+
@mixin icon-dimensions {
|
2
|
+
width: 16px;
|
3
|
+
height: 16px;
|
4
|
+
}
|
5
|
+
|
6
|
+
.wg-detached-filter{
|
7
|
+
a.date-label {text-decoration: none;}
|
8
|
+
a.date-label:hover {text-decoration: line-through;}
|
9
|
+
}
|
10
|
+
|
11
|
+
.wice-grid{
|
12
|
+
|
13
|
+
.clickable{
|
14
|
+
cursor: pointer;
|
15
|
+
margin-bottom: 2px;
|
16
|
+
margin-right: 2px;
|
17
|
+
}
|
18
|
+
|
19
|
+
|
20
|
+
a.date-label {text-decoration: none;}
|
21
|
+
a.date-label:hover {text-decoration: line-through;}
|
22
|
+
|
23
|
+
.ui-datepicker-trigger, .wg-detached-filter .ui-datepicker-trigger{
|
24
|
+
cursor: pointer;
|
25
|
+
}
|
26
|
+
|
27
|
+
.desc, .asc{
|
28
|
+
padding-right: 18px;
|
29
|
+
text-decoration:none;
|
30
|
+
}
|
31
|
+
|
32
|
+
.desc {
|
33
|
+
background: transparent url(/assets/icons/grid/arrow_down.gif) right no-repeat
|
34
|
+
}
|
35
|
+
.asc {
|
36
|
+
background: transparent url(/assets/icons/grid/arrow_up.gif) right no-repeat
|
37
|
+
}
|
38
|
+
|
39
|
+
.submit.clickable{
|
40
|
+
background: transparent url(/assets/icons/grid/table_refresh.png) no-repeat;
|
41
|
+
@include icon-dimensions;
|
42
|
+
}
|
43
|
+
|
44
|
+
.reset.clickable{
|
45
|
+
background: transparent url(/assets/icons/grid/table.png) no-repeat;
|
46
|
+
@include icon-dimensions;
|
47
|
+
}
|
48
|
+
|
49
|
+
|
50
|
+
.wg-show-filter.clickable,
|
51
|
+
.wg-hide-filter.clickable{
|
52
|
+
background: transparent url(/assets/icons/grid/page_white_find.png) no-repeat;
|
53
|
+
@include icon-dimensions;
|
54
|
+
}
|
55
|
+
|
56
|
+
|
57
|
+
.export-to-csv-button.clickable{
|
58
|
+
background: transparent url(/assets/icons/grid/page_white_excel.png) no-repeat;
|
59
|
+
@include icon-dimensions;
|
60
|
+
}
|
61
|
+
|
62
|
+
.clickable.select-all{
|
63
|
+
background: transparent url(/assets/icons/grid/tick_all.png) no-repeat;
|
64
|
+
@include icon-dimensions;
|
65
|
+
float:left;
|
66
|
+
}
|
67
|
+
|
68
|
+
.clickable.deselect-all{
|
69
|
+
background: transparent url(/assets/icons/grid/untick_all.png) no-repeat;
|
70
|
+
@include icon-dimensions;
|
71
|
+
float:left;
|
72
|
+
}
|
73
|
+
|
74
|
+
.custom-dropdown-container {
|
75
|
+
position: relative;
|
76
|
+
padding-right: 18px;
|
77
|
+
|
78
|
+
|
79
|
+
.collapse-multi-select-icon, .expand-multi-select-icon{
|
80
|
+
width: 12px;
|
81
|
+
height: 12px;
|
82
|
+
position:absolute;
|
83
|
+
top:0;
|
84
|
+
right:0;
|
85
|
+
}
|
86
|
+
|
87
|
+
.collapse-multi-select-icon{
|
88
|
+
background: transparent url(/assets/icons/grid/collapse.gif) no-repeat;
|
89
|
+
}
|
90
|
+
|
91
|
+
.expand-multi-select-icon{
|
92
|
+
background: transparent url(/assets/icons/grid/expand.gif) no-repeat;
|
93
|
+
}
|
94
|
+
|
95
|
+
}
|
96
|
+
|
97
|
+
.text-filter-container {
|
98
|
+
position: relative; padding-right: 13px;
|
99
|
+
.negation-checkbox {
|
100
|
+
position:absolute;
|
101
|
+
top:0;
|
102
|
+
right:0;
|
103
|
+
}
|
104
|
+
}
|
105
|
+
|
106
|
+
|
107
|
+
/* in case of twitter bootstrap :) */
|
108
|
+
thead th select{
|
109
|
+
width: auto;
|
110
|
+
}
|
111
|
+
|
112
|
+
.pagination{
|
113
|
+
margin: 0px;
|
114
|
+
float: left;
|
115
|
+
}
|
116
|
+
|
117
|
+
|
118
|
+
tr.wg-filter-row input[type=text] {
|
119
|
+
width: 100px;
|
120
|
+
}
|
121
|
+
|
122
|
+
.pagination_status {
|
123
|
+
font-weight: bold;
|
124
|
+
float: right;
|
125
|
+
}
|
126
|
+
|
127
|
+
}
|
128
|
+
|
129
|
+
.wice-grid-query-panel{
|
130
|
+
li {list-style-type: none; }
|
131
|
+
|
132
|
+
ul {margin-left: 0 }
|
133
|
+
|
134
|
+
a.wice-grid-delete-query .delete-icon{
|
135
|
+
background: transparent url(/assets/icons/grid/delete.png) no-repeat;
|
136
|
+
float: left;
|
137
|
+
@include icon-dimensions;
|
138
|
+
}
|
139
|
+
}
|
140
|
+
|
141
|
+
.table-striped td.active-filter {
|
142
|
+
background-color: #f9f9e9 !important;
|
143
|
+
}
|
@@ -1,25 +1,20 @@
|
|
1
1
|
module Admix
|
2
2
|
class InheritedController < Admix::AdmixController
|
3
|
+
|
3
4
|
helper :all
|
4
5
|
|
5
6
|
inherit_resources
|
6
|
-
include InheritedResources::DSL
|
7
7
|
|
8
|
+
include InheritedResources::DSL
|
8
9
|
rescue_from ActiveRecord::DeleteRestrictionError do |exception|
|
9
10
|
#resource.errors.add(:base, exception)
|
10
11
|
flash[:alert] = I18n.t('errors.dependent')
|
11
12
|
redirect_to collection_url
|
12
13
|
end
|
13
14
|
|
14
|
-
# destroy! do |success, failure|
|
15
|
-
# failure.html { redirect_to polymorphic_path(resource) }
|
16
|
-
# end
|
17
|
-
|
18
15
|
# TODO: Add authorization here.
|
19
|
-
|
20
16
|
|
21
|
-
|
22
|
-
before_filter :generate_datagrid , only: [:index ]
|
17
|
+
before_filter :load_grid , only: [:index ]
|
23
18
|
|
24
19
|
|
25
20
|
# Add a breadcrumb, in this case nested resources. ;)
|
@@ -31,22 +26,29 @@ module Admix
|
|
31
26
|
}
|
32
27
|
|
33
28
|
before_filter -> { breadcrumbs.add t("#{collection_name}.#{collection_name}"), collection_url, :i18n => false }
|
34
|
-
before_filter -> { breadcrumbs.add "#{
|
29
|
+
before_filter -> { breadcrumbs.add "#{crumb_field}" , resource_url, :i18n => false } , except: [:index, :new, :create ]
|
35
30
|
before_filter -> { breadcrumbs.add t("admix.crud.new.title"), :i18n => false } , only: [:new ]
|
36
31
|
before_filter -> { @crumb_field = crumb_field } , only: [:edit ]
|
37
32
|
|
38
33
|
protected
|
39
34
|
|
40
35
|
def crumb_field
|
41
|
-
if resource.respond_to?(:name)
|
36
|
+
field_name = if resource.respond_to?(:name)
|
42
37
|
:name
|
43
38
|
elsif resource.respond_to?(:title)
|
44
39
|
:title
|
45
40
|
elsif resource.respond_to?(:email)
|
46
41
|
:email
|
47
42
|
else
|
48
|
-
"Implement crumb_field method in #{self}"
|
43
|
+
raise "Implement crumb_field method in #{self}"
|
49
44
|
end
|
45
|
+
|
46
|
+
resource[field_name]
|
47
|
+
|
48
|
+
end
|
49
|
+
|
50
|
+
def load_grid
|
51
|
+
@grid = initialize_grid(resource_class)
|
50
52
|
end
|
51
53
|
|
52
54
|
def collection_name
|
@@ -61,28 +63,5 @@ module Admix
|
|
61
63
|
raise "TODO: We need implement this in #{self}"
|
62
64
|
end
|
63
65
|
|
64
|
-
def generate_datagrid
|
65
|
-
@report = report
|
66
|
-
@assets = @report.assets.paginate(:page => params[:page], :per_page => 10)
|
67
|
-
end
|
68
|
-
|
69
|
-
def report
|
70
|
-
datagrid_class.new(params[datagrid_param_name])
|
71
|
-
end
|
72
|
-
|
73
|
-
def datagrid_class
|
74
|
-
@datagrid_class = guess_datagrid_class
|
75
|
-
end
|
76
|
-
|
77
|
-
private
|
78
|
-
def guess_datagrid_class
|
79
|
-
"#{self.class.name}".gsub("Controller", "Datagrid").constantize
|
80
|
-
end
|
81
|
-
|
82
|
-
def datagrid_param_name
|
83
|
-
guess_datagrid_class.to_s.underscore.gsub('/', '_')
|
84
|
-
end
|
85
|
-
|
86
|
-
|
87
66
|
end
|
88
67
|
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
class Admix::RestController < Admix::AdmixController
|
2
|
+
|
3
|
+
inherit_resources
|
4
|
+
|
5
|
+
before_filter -> {
|
6
|
+
if defined?(parent_type)
|
7
|
+
breadcrumbs.add t("#{parent_type.to_s.gsub('_', '').pluralize}.#{parent_type.to_s.gsub('_', '').pluralize}") , polymorphic_path([:admix, parent_class])
|
8
|
+
breadcrumbs.add "#{parent.name}" , parent_url
|
9
|
+
end
|
10
|
+
}
|
11
|
+
|
12
|
+
before_filter -> { breadcrumbs.add t("#{collection_name}.#{collection_name}"), collection_url, :i18n => false }
|
13
|
+
before_filter -> { breadcrumbs.add "#{crumb_field}" , resource_url, :i18n => false } , except: [:index, :new, :create ]
|
14
|
+
before_filter -> { breadcrumbs.add t("admix.crud.new.title"), :i18n => false } , only: [:new ]
|
15
|
+
before_filter -> { @crumb_field = crumb_field } , only: [:edit ]
|
16
|
+
|
17
|
+
protected
|
18
|
+
|
19
|
+
def crumb_field
|
20
|
+
field_name = if resource.respond_to?(:name)
|
21
|
+
:name
|
22
|
+
elsif resource.respond_to?(:title)
|
23
|
+
:title
|
24
|
+
elsif resource.respond_to?(:email)
|
25
|
+
:email
|
26
|
+
else
|
27
|
+
raise "Implement crumb_field method in #{self}"
|
28
|
+
end
|
29
|
+
|
30
|
+
resource[field_name]
|
31
|
+
|
32
|
+
end
|
33
|
+
|
34
|
+
def load_grid
|
35
|
+
@grid = initialize_grid(resource_class)
|
36
|
+
end
|
37
|
+
|
38
|
+
def collection_name
|
39
|
+
@collection_name = resource_class.to_s.underscore.pluralize.gsub("::", "_")
|
40
|
+
end
|
41
|
+
|
42
|
+
def resource_name
|
43
|
+
resource_class.to_s.downcase
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
module Admix
|
2
|
+
class Tab
|
3
|
+
|
4
|
+
# include ActionView::Helpers::CaptureHelper
|
5
|
+
# include ActionView::Helpers::TagHelper
|
6
|
+
|
7
|
+
attr_reader :tab_id, :header, :content, :view_context, :options
|
8
|
+
|
9
|
+
def initialize(view_context, tab_name, tab_id = nil, options={}, &block)
|
10
|
+
@view_context ||= view_context
|
11
|
+
@tab_id = "tab-#{tab_name}".parameterize.to_sym unless tab_id
|
12
|
+
@tab_name = tab_name
|
13
|
+
|
14
|
+
@options = options
|
15
|
+
|
16
|
+
@header = view_context.content_tag :li, class: (options[:first] ? 'active' : '') do
|
17
|
+
view_context.link_to(@tab_name, "##{@tab_id}")
|
18
|
+
end
|
19
|
+
|
20
|
+
@content = ''.html_safe
|
21
|
+
yield(self)
|
22
|
+
end
|
23
|
+
|
24
|
+
def tab_header(&block)
|
25
|
+
@header = block_given? ? @view_context.capture(&block) : ''
|
26
|
+
end
|
27
|
+
|
28
|
+
def tab_content(&block)
|
29
|
+
@content = block_given? ? @view_context.capture(&block) : ''
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
end
|