redde 0.1.18 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +2 -0
- data/.hound.yml +2 -0
- data/.rubocop.yml +19 -0
- data/.travis.yml +5 -4
- data/Gemfile +8 -5
- data/MIT-LICENSE +20 -0
- data/README.md +96 -105
- data/Rakefile +20 -1
- data/app/assets/fonts/redde-admin.eot +0 -0
- data/app/assets/fonts/redde-admin.svg +12 -0
- data/app/assets/fonts/redde-admin.ttf +0 -0
- data/app/assets/fonts/redde-admin.woff +0 -0
- data/app/assets/images/redde/close-hover.svg +4 -0
- data/app/assets/images/redde/close.svg +6 -0
- data/app/assets/images/redde/enter.svg +4 -0
- data/app/assets/images/redde/eye.svg +5 -0
- data/app/assets/images/redde/eye_disactive.svg +5 -0
- data/app/assets/images/redde/main-menu/cog.svg +8 -0
- data/app/assets/images/redde/main-menu/cog_active.svg +8 -0
- data/app/assets/images/redde/main-menu/folder.svg +4 -0
- data/app/assets/images/redde/main-menu/folder_active.svg +4 -0
- data/app/assets/images/redde/main-menu/home.svg +4 -0
- data/app/assets/images/redde/main-menu/home_active.svg +4 -0
- data/app/assets/images/redde/main-menu/list.svg +4 -0
- data/app/assets/images/redde/main-menu/list_active.svg +4 -0
- data/app/assets/images/redde/next.svg +7 -0
- data/app/assets/images/redde/plus.svg +3 -0
- data/app/assets/images/redde/sel.svg +6 -0
- data/app/assets/images/redde/user.svg +12 -0
- data/app/assets/javascripts/redde/fileapi.js.coffee +17 -0
- data/app/assets/javascripts/redde/index.js.coffee +12 -0
- data/app/assets/javascripts/redde/redactor/index.coffee +8 -0
- data/{lib/generators/redde/layout/templates/assets/redactor/javascripts/jquery-migrate-1.2.1.js → app/assets/javascripts/redde/redactor/jquery-migrate-1.3.0.js} +215 -34
- data/{lib/generators/redde/layout/templates/assets/redactor/javascripts → app/assets/javascripts/redde}/redactor/redactor.js.erb +250 -250
- data/app/assets/javascripts/redde/sortTree/index.js.coffee +47 -0
- data/app/assets/javascripts/redde/sortable.coffee +47 -0
- data/{spec/dummy/app/assets/stylesheets/admin → app/assets/stylesheets/redde}/blocks/error-msg.sass +4 -2
- data/app/assets/stylesheets/redde/blocks/flash-msg.sass +22 -0
- data/app/assets/stylesheets/redde/blocks/list-v2.sass +96 -0
- data/app/assets/stylesheets/redde/blocks/photos-uploader.sass +21 -0
- data/app/assets/stylesheets/redde/blocks/photos.sass +56 -0
- data/app/assets/stylesheets/redde/blocks/redde-form.sass +55 -0
- data/app/assets/stylesheets/redde/blocks/sort-tree.sass +46 -0
- data/app/assets/stylesheets/redde/defaults/btn.sass +30 -0
- data/app/assets/stylesheets/redde/defaults/del.sass +23 -0
- data/app/assets/stylesheets/redde/defaults/index.sass +87 -0
- data/app/assets/stylesheets/redde/defaults/inp.sass +20 -0
- data/app/assets/stylesheets/redde/defaults/reset.sass +25 -0
- data/app/assets/stylesheets/redde/defaults/sbm.sass +32 -0
- data/app/assets/stylesheets/redde/defaults/sel.sass +29 -0
- data/app/assets/stylesheets/redde/fonts.sass +42 -0
- data/app/assets/stylesheets/redde/index.scss +5 -0
- data/app/assets/stylesheets/redde/layouts/header.sass +63 -0
- data/app/assets/stylesheets/redde/layouts/main-menu.sass +63 -0
- data/app/assets/stylesheets/redde/layouts/main.sass +48 -0
- data/app/assets/stylesheets/redde/layouts/page-header.sass +34 -0
- data/app/assets/stylesheets/redde/layouts/page-sidebar.sass +9 -0
- data/app/assets/stylesheets/redde/mixins.sass +10 -0
- data/{spec/dummy/app/assets/stylesheets → app/assets/stylesheets/redde}/redactor/index.scss +46 -49
- data/app/assets/stylesheets/redde-admin/blocks/list-v2.sass +96 -0
- data/app/assets/stylesheets/redde-admin/defaults/del.sass +23 -0
- data/app/controllers/admin/base_controller.rb +81 -0
- data/{lib/generators/redde/layout/templates/controllers → app/controllers/admin}/managers_controller.rb +10 -6
- data/app/controllers/admin/redde_photos_controller.rb +31 -0
- data/app/controllers/admin/system_commands_controller.rb +11 -0
- data/app/form_builders/redde_form_builder.rb +106 -0
- data/app/helpers/redde/admin_helper.rb +33 -0
- data/app/helpers/redde/form_helper.rb +59 -0
- data/app/helpers/redde/index_helper.rb +61 -0
- data/{lib/redde/concerns/layout.rb → app/models/concerns/redde/layouts.rb} +1 -1
- data/app/models/concerns/redde/photoable.rb +5 -0
- data/{lib/redde/concerns → app/models/concerns/redde}/sluggable.rb +6 -3
- data/app/models/concerns/redde/tree_sortable.rb +40 -0
- data/{lib/redde/concerns → app/models/concerns/redde}/with_photo.rb +5 -5
- data/app/models/redde/photo.rb +16 -0
- data/app/models/redde/system_command.rb +43 -0
- data/{lib → app/models}/redde/url_generator.rb +7 -3
- data/{lib/generators/redde/photo/templates/uploader.rb → app/uploaders/photo_uploader.rb} +4 -4
- data/app/views/admin/base/_tree_item.html.haml +10 -0
- data/app/views/admin/base/edit.html.haml +21 -0
- data/app/views/admin/base/index.html.haml +68 -0
- data/app/views/admin/base/tree.html.haml +14 -0
- data/app/views/admin/managers/edit.html.haml +11 -0
- data/app/views/admin/managers/index.html.haml +17 -0
- data/{lib/generators/redde/layout/templates/base → app/views/admin/redde}/_header.html.haml +5 -6
- data/app/views/admin/redde/_main_menu.html.haml +12 -0
- data/app/views/admin/redde/_page_header.html.haml +3 -0
- data/app/views/admin/redde/_sidebar.html.haml +16 -0
- data/{lib/generators/redde/layout/templates/base → app/views/admin/redde}/_validate.haml +2 -2
- data/app/views/admin/redde_photos/_photo.haml +11 -0
- data/app/views/admin/redde_photos/_photos.haml +28 -0
- data/app/views/admin/system_commands/index.html.haml +25 -0
- data/app/views/kaminari/redde/_first_page.html.haml +9 -0
- data/app/views/kaminari/redde/_gap.html.haml +8 -0
- data/app/views/kaminari/redde/_last_page.html.haml +9 -0
- data/app/views/kaminari/redde/_next_page.html.haml +9 -0
- data/app/views/kaminari/redde/_page.html.haml +10 -0
- data/app/views/kaminari/redde/_paginator.html.haml +18 -0
- data/app/views/kaminari/redde/_prev_page.html.haml +9 -0
- data/{lib/generators/redde/layout/templates → app/views}/layouts/admin.html.haml +28 -29
- data/{lib/generators/redde/layout/templates → app/views}/layouts/login.html.haml +32 -32
- data/bin/rails +12 -0
- data/config/locales/paginate.ru.yml +9 -0
- data/config/routes.rb +8 -0
- data/db/migrate/20160121152706_create_redde_photos.rb +16 -0
- data/lib/generators/redde/layout/layout_generator.rb +3 -26
- data/lib/generators/redde/layout/templates/assets/javascripts/admin.js +1 -0
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin.css +15 -0
- data/lib/generators/redde/scaffold/scaffold_generator.rb +45 -8
- data/lib/generators/redde/scaffold/templates/controllers/controller.rb +2 -45
- data/lib/generators/redde/scaffold/templates/edit.html.haml +4 -9
- data/lib/generators/redde/scaffold/templates/index.html.haml +2 -6
- data/lib/generators/redde/scaffold/templates/ru.yml +14 -0
- data/lib/redde/engine.rb +16 -0
- data/lib/redde/version.rb +1 -1
- data/lib/redde.rb +20 -4
- data/lib/tasks/redde_tasks.rake +4 -0
- data/redde.gemspec +44 -22
- metadata +482 -455
- data/Guardfile +0 -24
- data/LICIENSE.md +0 -21
- data/lib/generators/redde/layout/templates/assets/images/admin/del.png +0 -0
- data/lib/generators/redde/layout/templates/assets/images/admin/folder_.png +0 -0
- data/lib/generators/redde/layout/templates/assets/javascripts/admin/index.js +0 -20
- data/lib/generators/redde/layout/templates/assets/redactor/javascripts/redactor/index.coffee +0 -4
- data/lib/generators/redde/layout/templates/assets/redactor/stylesheets/redactor/index.scss +0 -369
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/blocks/error-msg.sass +0 -47
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/blocks/notice.scss +0 -39
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/blocks/photos.scss +0 -31
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/blocks/sortable.sass +0 -44
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/custom/index.scss +0 -1
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/defaults/index.scss +0 -131
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/defaults/input.sass +0 -35
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/defaults/reset.sass +0 -33
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/defaults/table.scss +0 -24
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/index.scss +0 -6
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/layouts/header.sass +0 -50
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/layouts/launchbar.sass +0 -23
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/layouts/main.sass +0 -38
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/layouts/page-header.sass +0 -22
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/layouts/page-sidebar.sass +0 -24
- data/lib/generators/redde/layout/templates/base/_launchbar.html.haml +0 -11
- data/lib/generators/redde/layout/templates/base/_sidebar.html.haml +0 -14
- data/lib/generators/redde/layout/templates/controllers/base_controller.rb +0 -28
- data/lib/generators/redde/layout/templates/form_builders/redde_form_builder.rb +0 -63
- data/lib/generators/redde/layout/templates/helpers/admin_helper.rb +0 -94
- data/lib/generators/redde/photo/photo_generator.rb +0 -35
- data/lib/generators/redde/photo/templates/controller.rb +0 -20
- data/lib/generators/redde/photo/templates/create_photos.rb +0 -16
- data/lib/generators/redde/photo/templates/photo.rb +0 -4
- data/lib/generators/redde/photo/templates/photos/_photo.haml +0 -5
- data/lib/generators/redde/photo/templates/photos/_photos.haml +0 -19
- data/lib/generators/redde/photo/templates/photos/create.js.erb +0 -1
- data/lib/redde/concerns/photoable.rb +0 -17
- data/spec/dummy/.rspec +0 -1
- data/spec/dummy/README.rdoc +0 -28
- data/spec/dummy/Rakefile +0 -6
- data/spec/dummy/app/assets/images/admin/addphoto.png +0 -0
- data/spec/dummy/app/assets/images/admin/ajaxloader2.gif +0 -0
- data/spec/dummy/app/assets/images/admin/arrow_down.png +0 -0
- data/spec/dummy/app/assets/images/admin/arrow_enter.png +0 -0
- data/spec/dummy/app/assets/images/admin/arrow_right.png +0 -0
- data/spec/dummy/app/assets/images/admin/coins.png +0 -0
- data/spec/dummy/app/assets/images/admin/confirm.png +0 -0
- data/spec/dummy/app/assets/images/admin/del.png +0 -0
- data/spec/dummy/app/assets/images/admin/delete.png +0 -0
- data/spec/dummy/app/assets/images/admin/email.png +0 -0
- data/spec/dummy/app/assets/images/admin/error-label-triangle.png +0 -0
- data/spec/dummy/app/assets/images/admin/error.png +0 -0
- data/spec/dummy/app/assets/images/admin/favicon.png +0 -0
- data/spec/dummy/app/assets/images/admin/fio.png +0 -0
- data/spec/dummy/app/assets/images/admin/folder.png +0 -0
- data/spec/dummy/app/assets/images/admin/folder_.png +0 -0
- data/spec/dummy/app/assets/images/admin/icon_eye.gif +0 -0
- data/spec/dummy/app/assets/images/admin/lightbox/css/jquery.lightbox-0.5.css +0 -101
- data/spec/dummy/app/assets/images/admin/lightbox/images/lightbox-blank.gif +0 -0
- data/spec/dummy/app/assets/images/admin/lightbox/images/lightbox-btn-close.gif +0 -0
- data/spec/dummy/app/assets/images/admin/lightbox/images/lightbox-btn-next.gif +0 -0
- data/spec/dummy/app/assets/images/admin/lightbox/images/lightbox-btn-prev.gif +0 -0
- data/spec/dummy/app/assets/images/admin/lightbox/images/lightbox-ico-loading.gif +0 -0
- data/spec/dummy/app/assets/images/admin/lightbox/js/jquery.js +0 -32
- data/spec/dummy/app/assets/images/admin/lightbox/js/jquery.lightbox-0.5.js +0 -477
- data/spec/dummy/app/assets/images/admin/lightbox/js/jquery.lightbox-0.5.min.js +0 -42
- data/spec/dummy/app/assets/images/admin/lightbox/js/jquery.lightbox-0.5.pack.js +0 -14
- data/spec/dummy/app/assets/images/admin/logo.png +0 -0
- data/spec/dummy/app/assets/images/admin/logo_reddeshop.png +0 -0
- data/spec/dummy/app/assets/images/admin/move_handler.png +0 -0
- data/spec/dummy/app/assets/images/admin/phone.png +0 -0
- data/spec/dummy/app/assets/images/admin/photo_ico.png +0 -0
- data/spec/dummy/app/assets/images/admin/print.png +0 -0
- data/spec/dummy/app/assets/images/admin/refresh.png +0 -0
- data/spec/dummy/app/assets/images/admin/submit.png +0 -0
- data/spec/dummy/app/assets/images/admin/submit_hover.png +0 -0
- data/spec/dummy/app/assets/images/admin/view.png +0 -0
- data/spec/dummy/app/assets/images/admin/view_mk.png +0 -0
- data/spec/dummy/app/assets/images/redactor/icons.png +0 -0
- data/spec/dummy/app/assets/images/redactor/plugins/file.html +0 -3
- data/spec/dummy/app/assets/images/redactor/plugins/image.html +0 -39
- data/spec/dummy/app/assets/images/redactor/plugins/image_edit.html +0 -35
- data/spec/dummy/app/assets/images/redactor/plugins/link.html +0 -74
- data/spec/dummy/app/assets/images/redactor/plugins/table.html +0 -25
- data/spec/dummy/app/assets/images/redactor/plugins/video.html +0 -15
- data/spec/dummy/app/assets/javascripts/admin/jquery.mjs.nestedSortable.js +0 -429
- data/spec/dummy/app/assets/javascripts/admin.js +0 -21
- data/spec/dummy/app/assets/javascripts/application.js +0 -14
- data/spec/dummy/app/assets/javascripts/jquery-migrate-1.2.1.js +0 -521
- data/spec/dummy/app/assets/javascripts/redactor/langs/en.js +0 -76
- data/spec/dummy/app/assets/javascripts/redactor/langs/ru.js +0 -75
- data/spec/dummy/app/assets/javascripts/redactor/redactor.js.erb +0 -2248
- data/spec/dummy/app/assets/javascripts/redactor/toolbars/default.js +0 -219
- data/spec/dummy/app/assets/stylesheets/admin/blocks/list.scss +0 -22
- data/spec/dummy/app/assets/stylesheets/admin/blocks/notice.scss +0 -39
- data/spec/dummy/app/assets/stylesheets/admin/blocks/orders.scss +0 -22
- data/spec/dummy/app/assets/stylesheets/admin/blocks/paginate.sass +0 -28
- data/spec/dummy/app/assets/stylesheets/admin/blocks/pagination.scss +0 -28
- data/spec/dummy/app/assets/stylesheets/admin/blocks/partners.scss +0 -15
- data/spec/dummy/app/assets/stylesheets/admin/blocks/phead-tabs.sass +0 -27
- data/spec/dummy/app/assets/stylesheets/admin/blocks/photos.scss +0 -31
- data/spec/dummy/app/assets/stylesheets/admin/blocks/sortable.sass +0 -44
- data/spec/dummy/app/assets/stylesheets/admin/custom/index.scss +0 -1
- data/spec/dummy/app/assets/stylesheets/admin/defaults/index.scss +0 -131
- data/spec/dummy/app/assets/stylesheets/admin/defaults/input.sass +0 -35
- data/spec/dummy/app/assets/stylesheets/admin/defaults/reset.sass +0 -33
- data/spec/dummy/app/assets/stylesheets/admin/defaults/table.scss +0 -24
- data/spec/dummy/app/assets/stylesheets/admin/index.scss +0 -6
- data/spec/dummy/app/assets/stylesheets/admin/layouts/header.sass +0 -50
- data/spec/dummy/app/assets/stylesheets/admin/layouts/launchbar.sass +0 -23
- data/spec/dummy/app/assets/stylesheets/admin/layouts/login.sass +0 -25
- data/spec/dummy/app/assets/stylesheets/admin/layouts/main.sass +0 -38
- data/spec/dummy/app/assets/stylesheets/admin/layouts/page-header.sass +0 -22
- data/spec/dummy/app/assets/stylesheets/admin/layouts/page-sidebar.sass +0 -24
- data/spec/dummy/app/assets/stylesheets/admin/layouts/sidebar.sass +0 -30
- data/spec/dummy/app/assets/stylesheets/admin/shop/_filter.scss +0 -16
- data/spec/dummy/app/assets/stylesheets/admin/shop/_order-sh.scss +0 -59
- data/spec/dummy/app/assets/stylesheets/admin/shop/_pe.scss +0 -43
- data/spec/dummy/app/assets/stylesheets/redactor/wym.css +0 -136
- data/spec/dummy/app/controllers/admin/base_controller.rb +0 -28
- data/spec/dummy/app/controllers/admin/managers_controller.rb +0 -36
- data/spec/dummy/app/controllers/application_controller.rb +0 -6
- data/spec/dummy/app/controllers/articles_controller.rb +0 -8
- data/spec/dummy/app/controllers/managers/registrations_controller.rb +0 -21
- data/spec/dummy/app/helpers/admin_helper.rb +0 -94
- data/spec/dummy/app/models/article.rb +0 -4
- data/spec/dummy/app/models/article_category.rb +0 -2
- data/spec/dummy/app/models/photo.rb +0 -3
- data/spec/dummy/app/views/admin/base/_header.html.haml +0 -12
- data/spec/dummy/app/views/admin/base/_launchbar.html.haml +0 -11
- data/spec/dummy/app/views/admin/base/_sidebar.html.haml +0 -14
- data/spec/dummy/app/views/admin/base/_validate.haml +0 -8
- data/spec/dummy/app/views/admin/base/welcome.haml +0 -2
- data/spec/dummy/app/views/admin/photos/_photo.haml +0 -5
- data/spec/dummy/app/views/admin/photos/_photos.haml +0 -19
- data/spec/dummy/app/views/admin/photos/create.js.erb +0 -1
- data/spec/dummy/app/views/admin/photos/destroy.js.erb +0 -1
- data/spec/dummy/app/views/articles/show.html.haml +0 -2
- data/spec/dummy/app/views/layouts/admin.html.haml +0 -29
- data/spec/dummy/app/views/layouts/application.html.erb +0 -15
- data/spec/dummy/app/views/layouts/login.html.haml +0 -32
- data/spec/dummy/bin/bundle +0 -3
- data/spec/dummy/bin/rails +0 -4
- data/spec/dummy/bin/rake +0 -4
- data/spec/dummy/config/application.rb +0 -33
- data/spec/dummy/config/boot.rb +0 -5
- data/spec/dummy/config/database.yml +0 -25
- data/spec/dummy/config/environment.rb +0 -5
- data/spec/dummy/config/environments/development.rb +0 -29
- data/spec/dummy/config/environments/production.rb +0 -80
- data/spec/dummy/config/environments/test.rb +0 -36
- data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
- data/spec/dummy/config/initializers/inflections.rb +0 -16
- data/spec/dummy/config/initializers/mime_types.rb +0 -5
- data/spec/dummy/config/initializers/secret_token.rb +0 -12
- data/spec/dummy/config/initializers/session_store.rb +0 -3
- data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/spec/dummy/config/locales/en.yml +0 -36
- data/spec/dummy/config/routes.rb +0 -4
- data/spec/dummy/config.ru +0 -4
- data/spec/dummy/db/migrate/20130908123351_create_articles.rb +0 -9
- data/spec/dummy/db/migrate/20140128152208_create_article_categories.rb +0 -11
- data/spec/dummy/db/migrate/20140607122532_create_photos.rb +0 -16
- data/spec/dummy/db/schema.rb +0 -98
- data/spec/dummy/public/404.html +0 -58
- data/spec/dummy/public/422.html +0 -58
- data/spec/dummy/public/500.html +0 -57
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/generators/layout_generator_spec.rb +0 -42
- data/spec/generators/photo_generator_spec.rb +0 -32
- data/spec/generators/scaffold_generator_spec.rb +0 -58
- data/spec/models/sluggable_spec.rb +0 -42
- data/spec/models/url_generator_spec.rb +0 -18
- data/spec/models/with_photo_spec.rb +0 -25
- data/spec/spec_helper.rb +0 -52
- /data/{lib/generators/redde/layout/templates/assets/redactor → app/assets}/images/.keep +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/addphoto.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/ajaxloader2.gif +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/arrow_down.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/arrow_enter.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/arrow_right.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/coins.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/confirm.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/delete.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/email.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/error.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/favicon.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/fio.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/icon_eye.gif +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/css/jquery.lightbox-0.5.css +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/images/lightbox-blank.gif +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/images/lightbox-btn-close.gif +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/images/lightbox-btn-next.gif +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/images/lightbox-btn-prev.gif +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/images/lightbox-ico-loading.gif +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/js/jquery.js +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/js/jquery.lightbox-0.5.js +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/js/jquery.lightbox-0.5.min.js +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/js/jquery.lightbox-0.5.pack.js +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/logo_reddeshop.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/phone.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/photo_ico.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/print.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/refresh.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/submit.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/submit_hover.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/view.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/view_mk.png +0 -0
- /data/{lib/generators/redde/layout/templates/assets/images/admin → app/assets/images/redde}/error-label-triangle.png +0 -0
- /data/{lib/generators/redde/layout/templates/assets/images/admin → app/assets/images/redde}/folder.png +0 -0
- /data/{lib/generators/redde/layout/templates/assets/images/admin → app/assets/images/redde}/logo.png +0 -0
- /data/{lib/generators/redde/layout/templates/assets/images/admin/move_handler.png → app/assets/images/redde/move-handler.png} +0 -0
- /data/{lib/generators/redde/layout/templates/assets/redactor/images → app/assets/images/redde}/redactor/icons.png +0 -0
- /data/{lib/generators/redde/layout/templates/assets/redactor/images → app/assets/images/redde}/redactor/plugins/file.html +0 -0
- /data/{lib/generators/redde/layout/templates/assets/redactor/images → app/assets/images/redde}/redactor/plugins/image.html +0 -0
- /data/{lib/generators/redde/layout/templates/assets/redactor/images → app/assets/images/redde}/redactor/plugins/image_edit.html +0 -0
- /data/{lib/generators/redde/layout/templates/assets/redactor/images → app/assets/images/redde}/redactor/plugins/link.html +0 -0
- /data/{lib/generators/redde/layout/templates/assets/redactor/images → app/assets/images/redde}/redactor/plugins/table.html +0 -0
- /data/{lib/generators/redde/layout/templates/assets/redactor/images → app/assets/images/redde}/redactor/plugins/video.html +0 -0
- /data/{lib/generators/redde/layout/templates/assets/redactor/javascripts → app/assets/javascripts/redde}/redactor/langs/en.js +0 -0
- /data/{lib/generators/redde/layout/templates/assets/redactor/javascripts → app/assets/javascripts/redde}/redactor/langs/ru.js +0 -0
- /data/{lib/generators/redde/layout/templates/assets/redactor/javascripts → app/assets/javascripts/redde}/redactor/toolbars/default.js +0 -0
- /data/{lib/generators/redde/layout/templates/assets/javascripts/admin → app/assets/javascripts/redde/sortTree}/jquery.mjs.nestedSortable.js +0 -0
- /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/blocks/list.scss +0 -0
- /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/blocks/orders.scss +0 -0
- /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/blocks/paginate.sass +0 -0
- /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/blocks/pagination.scss +0 -0
- /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/blocks/partners.scss +0 -0
- /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/blocks/phead-tabs.sass +0 -0
- /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/layouts/login.sass +0 -0
- /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/layouts/sidebar.sass +0 -0
- /data/{lib/generators/redde/layout/templates/assets/redactor/stylesheets → app/assets/stylesheets/redde}/redactor/wym.css +0 -0
- /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/shop/_filter.scss +0 -0
- /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/shop/_order-sh.scss +0 -0
- /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/shop/_pe.scss +0 -0
- /data/{spec/dummy/app/assets/images → app/controllers}/.keep +0 -0
- /data/{lib/generators/redde/layout/templates → app}/controllers/managers/registrations_controller.rb +0 -0
- /data/{spec/dummy/app/models → app/helpers}/.keep +0 -0
- /data/{spec/dummy/lib/assets → app/mailers}/.keep +0 -0
- /data/{spec/dummy/log → app/models}/.keep +0 -0
- /data/{spec/dummy/app/assets/stylesheets/application.css.scss → app/views/.keep} +0 -0
- /data/{lib/generators/redde/layout/templates → app/views/admin}/base/welcome.haml +0 -0
- /data/{lib/generators/redde/photo/templates/photos → app/views/admin/redde_photos}/destroy.js.erb +0 -0
@@ -0,0 +1,47 @@
|
|
1
|
+
#= require jquery-ui/sortable
|
2
|
+
#= require ./jquery.mjs.nestedSortable.js
|
3
|
+
|
4
|
+
$ ->
|
5
|
+
$('[data-sort-tree]').each ->
|
6
|
+
$this = $(this)
|
7
|
+
|
8
|
+
opts = $this.data('sort-tree')
|
9
|
+
|
10
|
+
if $.isPlainObject( opts ) && opts.url
|
11
|
+
url = opts.url
|
12
|
+
delete opts.url
|
13
|
+
else if (typeof opts == 'string') && opts != ""
|
14
|
+
url = opts
|
15
|
+
opts = {}
|
16
|
+
|
17
|
+
unless url? || url == ""
|
18
|
+
url = location.pathname + "/sort"
|
19
|
+
|
20
|
+
defs =
|
21
|
+
# disableNesting: 'no-nest'
|
22
|
+
# handle: '[data-sort-tree-handle]'
|
23
|
+
# listType: 'ol'
|
24
|
+
forcePlaceholderSize: true
|
25
|
+
helper: 'clone'
|
26
|
+
items: '[data-sort-tree-item]'
|
27
|
+
maxLevels: 2
|
28
|
+
opacity: .6
|
29
|
+
placeholder: 'sort-tree__placeholder'
|
30
|
+
revert: 250
|
31
|
+
rootID: 'root'
|
32
|
+
tabSize: 25
|
33
|
+
tolerance: 'pointer'
|
34
|
+
toleranceElement: '[data-sort-tree-tolerance]'
|
35
|
+
errorClass: 'sort-tree__error'
|
36
|
+
update: ->
|
37
|
+
serialized = $this.nestedSortable('serialize')
|
38
|
+
$.ajax
|
39
|
+
method: 'POST'
|
40
|
+
url: url
|
41
|
+
data: serialized
|
42
|
+
|
43
|
+
$this.nestedSortable $.extend( {}, defs, opts )
|
44
|
+
|
45
|
+
return
|
46
|
+
|
47
|
+
return
|
@@ -0,0 +1,47 @@
|
|
1
|
+
#= require jquery-ui/sortable
|
2
|
+
|
3
|
+
###
|
4
|
+
variants:
|
5
|
+
data-sortable
|
6
|
+
data-sortable = 'url'
|
7
|
+
data-sortable = {}
|
8
|
+
data-sortable = {url: 'url', ...}
|
9
|
+
###
|
10
|
+
|
11
|
+
$ ->
|
12
|
+
$("[data-sortable]").each ->
|
13
|
+
$this = $(this)
|
14
|
+
|
15
|
+
opts = $this.data('sortable')
|
16
|
+
|
17
|
+
if $.isPlainObject( opts ) && opts.url
|
18
|
+
url = opts.url
|
19
|
+
delete opts.url
|
20
|
+
else if (typeof opts == 'string') && opts != ""
|
21
|
+
url = opts
|
22
|
+
opts = {}
|
23
|
+
|
24
|
+
unless url? || url == ""
|
25
|
+
url = location.pathname + "/sort"
|
26
|
+
|
27
|
+
defs =
|
28
|
+
dropOnEmpty: false
|
29
|
+
cursor: "crosshair"
|
30
|
+
opacity: 0.75
|
31
|
+
handle: ".handle"
|
32
|
+
axis: "y"
|
33
|
+
items: "tr"
|
34
|
+
scroll: true
|
35
|
+
update: ->
|
36
|
+
$.ajax
|
37
|
+
type: "post"
|
38
|
+
data: $this.sortable("serialize") # + '&authenticity_token=#{u(form_authenticity_token)}',
|
39
|
+
dataType: "script"
|
40
|
+
url: url
|
41
|
+
|
42
|
+
opts = $.extend( {}, defs, opts )
|
43
|
+
$this.sortable opts
|
44
|
+
|
45
|
+
return
|
46
|
+
|
47
|
+
return
|
data/{spec/dummy/app/assets/stylesheets/admin → app/assets/stylesheets/redde}/blocks/error-msg.sass
RENAMED
@@ -1,3 +1,5 @@
|
|
1
|
+
//= depend_on_asset redde/error-label-triangle.png
|
2
|
+
|
1
3
|
.error-msg
|
2
4
|
position: relative
|
3
5
|
z-index: 2
|
@@ -30,7 +32,7 @@
|
|
30
32
|
margin-top: 1px
|
31
33
|
width: 7px
|
32
34
|
height: 4px
|
33
|
-
background: image-url('
|
35
|
+
background: image-url('redde/error-label-triangle.png') 0 100% no-repeat
|
34
36
|
&:after
|
35
37
|
content: ''
|
36
38
|
position: absolute
|
@@ -44,4 +46,4 @@
|
|
44
46
|
|
45
47
|
ul.error-msg__list
|
46
48
|
overflow: hidden
|
47
|
-
padding: 1px 0 1px 25px
|
49
|
+
padding: 1px 0 1px 25px
|
@@ -0,0 +1,22 @@
|
|
1
|
+
.flash-msg
|
2
|
+
padding: 7px 15px
|
3
|
+
margin: 10px 30px
|
4
|
+
border-radius: 4px
|
5
|
+
border: 1px solid
|
6
|
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25)
|
7
|
+
font-size: 13px
|
8
|
+
line-height: 18px
|
9
|
+
color: #fff
|
10
|
+
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25)
|
11
|
+
background-repeat: repeat-x
|
12
|
+
z-index: 1000
|
13
|
+
position: relative
|
14
|
+
|
15
|
+
&._notice
|
16
|
+
background-color: #57A957
|
17
|
+
background-image: linear-gradient(to bottom, #62c462, #57a957)
|
18
|
+
|
19
|
+
&._alert
|
20
|
+
background-color: #c43c35
|
21
|
+
background-image: linear-gradient(to bottom, #ee5f5b, #c43c35)
|
22
|
+
border-color: #c43c35 #c43c35 #882a25
|
@@ -0,0 +1,96 @@
|
|
1
|
+
//= depend_on_asset redde/move-handler.png
|
2
|
+
//= depend_on_asset redde/eye.svg
|
3
|
+
//= depend_on_asset redde/eye_disactive.svg
|
4
|
+
//= depend_on_asset redde/close.svg
|
5
|
+
//= depend_on_asset redde/close-hover.svg
|
6
|
+
|
7
|
+
.list-v2
|
8
|
+
width: auto
|
9
|
+
border-collapse: collapse
|
10
|
+
border-collapse: separate
|
11
|
+
border-spacing: 0
|
12
|
+
margin-left: -30px
|
13
|
+
margin-right: -30px
|
14
|
+
|
15
|
+
.list-v2__col
|
16
|
+
&:first-child,
|
17
|
+
&:last-child,
|
18
|
+
&._del
|
19
|
+
width: 0.01%
|
20
|
+
|
21
|
+
.list-v2__head
|
22
|
+
font-size: 11px
|
23
|
+
text-transform: uppercase
|
24
|
+
background: #d7e4ef
|
25
|
+
padding: 13px 0 13px 30px
|
26
|
+
border-bottom: 1px solid #dddddd
|
27
|
+
// border-bottom: 0 none
|
28
|
+
// border-top: 1px solid #ddd
|
29
|
+
|
30
|
+
&:first-child,
|
31
|
+
&:last-child
|
32
|
+
background: #d7e4ef
|
33
|
+
padding-left: 0
|
34
|
+
min-width: 10px
|
35
|
+
|
36
|
+
&._img
|
37
|
+
padding-left: 20px
|
38
|
+
|
39
|
+
.list-v2__head_first
|
40
|
+
padding-left: 0
|
41
|
+
|
42
|
+
.list-v2__cell
|
43
|
+
padding: 3px 0 3px 30px
|
44
|
+
vertical-align: middle
|
45
|
+
font-size: 13px
|
46
|
+
color: #000
|
47
|
+
cursor: pointer
|
48
|
+
width: auto
|
49
|
+
border-bottom: 1px solid #dddddd
|
50
|
+
// border-top: 1px solid #ddd
|
51
|
+
// border-bottom: 0 none
|
52
|
+
|
53
|
+
&._img
|
54
|
+
width: 1%
|
55
|
+
padding-left: 20px
|
56
|
+
|
57
|
+
tr:hover > &
|
58
|
+
background-color: #fff5d4
|
59
|
+
|
60
|
+
&:first-child,
|
61
|
+
&:last-child
|
62
|
+
padding-left: 0
|
63
|
+
width: 10px
|
64
|
+
border-bottom: 0 none
|
65
|
+
|
66
|
+
&._handle
|
67
|
+
min-width: 23px
|
68
|
+
width: 0.01%
|
69
|
+
background: image-url('redde/move-handler.png') no-repeat center
|
70
|
+
|
71
|
+
&._eye
|
72
|
+
padding-left: 7px
|
73
|
+
width: 0.01%
|
74
|
+
|
75
|
+
.list-v2__cell_first
|
76
|
+
padding-left: 0
|
77
|
+
|
78
|
+
.list-v2__img
|
79
|
+
border-radius: 2px
|
80
|
+
display: block
|
81
|
+
|
82
|
+
.list-v2__eye
|
83
|
+
display: block
|
84
|
+
width: 20px
|
85
|
+
height: 20px
|
86
|
+
background: image-url('redde/eye.svg') no-repeat center
|
87
|
+
&._disactive
|
88
|
+
background-image: image-url('redde/eye_disactive.svg')
|
89
|
+
|
90
|
+
.list-v2__del
|
91
|
+
background: image-url('redde/close.svg') no-repeat center
|
92
|
+
display: block
|
93
|
+
width: 20px
|
94
|
+
height: 20px
|
95
|
+
&:hover
|
96
|
+
background: image-url('redde/close-hover.svg') no-repeat center
|
@@ -0,0 +1,21 @@
|
|
1
|
+
.photos-uploader
|
2
|
+
margin-top: 10px
|
3
|
+
|
4
|
+
.photos-uploader__btn
|
5
|
+
position: relative
|
6
|
+
display: inline-block
|
7
|
+
overflow: hidden
|
8
|
+
vertical-align: top
|
9
|
+
|
10
|
+
&.icon-upload:before
|
11
|
+
margin-left: -0.25em
|
12
|
+
margin-right: 0.35em
|
13
|
+
|
14
|
+
.photos-uploader__inp
|
15
|
+
font-size: 50px
|
16
|
+
position: absolute
|
17
|
+
top: -10px
|
18
|
+
right: -40px
|
19
|
+
z-index: 2
|
20
|
+
cursor: pointer
|
21
|
+
opacity: 0
|
@@ -0,0 +1,56 @@
|
|
1
|
+
.photos
|
2
|
+
margin: 5px 0 5px -3px
|
3
|
+
overflow: hidden
|
4
|
+
list-style: none
|
5
|
+
|
6
|
+
.photos__item
|
7
|
+
width: 119px
|
8
|
+
height: 119px
|
9
|
+
border: 1px solid #ccc
|
10
|
+
float: left
|
11
|
+
margin: 0 0 3px 3px
|
12
|
+
position: relative
|
13
|
+
|
14
|
+
&.ui-sortable-helper
|
15
|
+
&, & > *
|
16
|
+
cursor: crosshair
|
17
|
+
|
18
|
+
.photos__link
|
19
|
+
text-decoration: none
|
20
|
+
display: block
|
21
|
+
width: 100%
|
22
|
+
height: 100%
|
23
|
+
background: #ccc
|
24
|
+
background-repeat: no-repeat
|
25
|
+
background-position: center
|
26
|
+
position: relative
|
27
|
+
|
28
|
+
.photos__title
|
29
|
+
position: absolute
|
30
|
+
background: rgba(#eef3f7, 0.85)
|
31
|
+
color: #000
|
32
|
+
font-size: 11px
|
33
|
+
padding: 5px 6px
|
34
|
+
left: -1px
|
35
|
+
bottom: -1px
|
36
|
+
right: -1px
|
37
|
+
padding-right: 20px
|
38
|
+
overflow: hidden
|
39
|
+
text-overflow: ellipsis
|
40
|
+
white-space: nowrap
|
41
|
+
|
42
|
+
.photos__item:hover &
|
43
|
+
white-space: normal
|
44
|
+
padding-right: 6px
|
45
|
+
word-break: break-all
|
46
|
+
|
47
|
+
.photos__del
|
48
|
+
width: 24px
|
49
|
+
height: 24px
|
50
|
+
overflow: hidden
|
51
|
+
position: absolute
|
52
|
+
bottom: 0
|
53
|
+
right: 0
|
54
|
+
|
55
|
+
.photos__img
|
56
|
+
display: block
|
@@ -0,0 +1,55 @@
|
|
1
|
+
.redde-form
|
2
|
+
|
3
|
+
.redde-form__tbl
|
4
|
+
border-collapse: collapse
|
5
|
+
width: 100%
|
6
|
+
font-size: 13px
|
7
|
+
|
8
|
+
.redde-form__thead
|
9
|
+
font-size: 13px
|
10
|
+
font-weight: bold
|
11
|
+
text-transform: uppercase
|
12
|
+
color: #176e99
|
13
|
+
padding-top: 18px
|
14
|
+
padding-bottom: 18px
|
15
|
+
|
16
|
+
.redde-form__cell._lbl
|
17
|
+
width: 1%
|
18
|
+
white-space: nowrap
|
19
|
+
padding-right: 15px
|
20
|
+
|
21
|
+
.redde-form__inp
|
22
|
+
width: 100%
|
23
|
+
|
24
|
+
.redde-form__inp,
|
25
|
+
.redde-form__sel
|
26
|
+
.redde-form__row._error &
|
27
|
+
border-color: #fb4657
|
28
|
+
box-shadow: 0 0 0 1px #fb4657
|
29
|
+
|
30
|
+
// .redde-form__row
|
31
|
+
|
32
|
+
.redde-form__cell
|
33
|
+
padding-top: 10px
|
34
|
+
vertical-align: baseline
|
35
|
+
&._label
|
36
|
+
width: 1px
|
37
|
+
padding-right: 10px
|
38
|
+
|
39
|
+
.redde-form__label
|
40
|
+
font-size: 13px
|
41
|
+
white-space: nowrap
|
42
|
+
&._required:after
|
43
|
+
content: "*"
|
44
|
+
color: #f83f3f
|
45
|
+
|
46
|
+
.redde-form__actions
|
47
|
+
margin-top: 20px
|
48
|
+
|
49
|
+
.redde-form__sbm
|
50
|
+
margin-left: 15px
|
51
|
+
&:first-child
|
52
|
+
margin-left: 0
|
53
|
+
|
54
|
+
.redde-form__action-lnk
|
55
|
+
margin-left: 15px
|
@@ -0,0 +1,46 @@
|
|
1
|
+
//= depend_on_asset redde/folder.png
|
2
|
+
//= depend_on_asset redde/defaults/del.css
|
3
|
+
|
4
|
+
.sort-tree
|
5
|
+
// сделать через класс не получилось всвязи особенности скрипта, при создании нового вложенного списка класс не добавляется => искользуем каскады
|
6
|
+
&, ol
|
7
|
+
list-style-type: none
|
8
|
+
list-style: none
|
9
|
+
|
10
|
+
ol
|
11
|
+
margin-left: 25px
|
12
|
+
|
13
|
+
.sort-tree__wrap
|
14
|
+
background: image-url("redde/folder.png") no-repeat 0 2px
|
15
|
+
padding-left: 25px
|
16
|
+
cursor: move
|
17
|
+
position: relative
|
18
|
+
&:hover
|
19
|
+
background-color: #ffc
|
20
|
+
|
21
|
+
.sort-tree__link
|
22
|
+
line-height: 20px
|
23
|
+
|
24
|
+
.sort-tree__controls
|
25
|
+
position: absolute
|
26
|
+
right: 0
|
27
|
+
margin: 0
|
28
|
+
line-height: 20px
|
29
|
+
z-index: 1
|
30
|
+
top: 0
|
31
|
+
|
32
|
+
.sort-tree__btn
|
33
|
+
display: inline-block
|
34
|
+
vertical-align: middle
|
35
|
+
line-height: 20px
|
36
|
+
text-decoration: none
|
37
|
+
color: #999
|
38
|
+
|
39
|
+
.sort-tree__placeholder
|
40
|
+
background-color: #CCFF99
|
41
|
+
outline: 1px dashed green
|
42
|
+
|
43
|
+
.sort-tree__error
|
44
|
+
// должен быть после .sort-tree__placeholder
|
45
|
+
background: #fbe3e4
|
46
|
+
outline: 1px dashed red
|
@@ -0,0 +1,30 @@
|
|
1
|
+
//= depend_on_asset redde/next.svg
|
2
|
+
|
3
|
+
@import redde/mixins
|
4
|
+
|
5
|
+
%base
|
6
|
+
display: inline-block
|
7
|
+
text-decoration: none
|
8
|
+
border-radius: 2px
|
9
|
+
font-family: $family
|
10
|
+
line-height: (14/12)
|
11
|
+
|
12
|
+
.btn
|
13
|
+
@extend %base
|
14
|
+
color: #fff
|
15
|
+
background-color: #53a0c6
|
16
|
+
padding: 8px 13px
|
17
|
+
|
18
|
+
&._a_next:after
|
19
|
+
content: '\A0'
|
20
|
+
display: inline-block
|
21
|
+
width: 6px
|
22
|
+
background: image-url('redde/next.svg') no-repeat left center
|
23
|
+
margin-left: 7px
|
24
|
+
|
25
|
+
// .btn-trans
|
26
|
+
// @extend %base
|
27
|
+
// color: #404344
|
28
|
+
// background: #fff
|
29
|
+
// border: 1px solid #d4d0cf
|
30
|
+
// padding: 7px 12px
|
@@ -0,0 +1,23 @@
|
|
1
|
+
//= depend_on_asset redde/close.svg
|
2
|
+
//= depend_on_asset redde/close-hover.svg
|
3
|
+
|
4
|
+
%del
|
5
|
+
display: inline-block
|
6
|
+
width: 20px
|
7
|
+
height: 20px
|
8
|
+
background: image-url('redde/close.svg') center no-repeat
|
9
|
+
text-decoration: none
|
10
|
+
|
11
|
+
.del
|
12
|
+
@extend %del
|
13
|
+
&:before
|
14
|
+
content: '\A0'
|
15
|
+
&:hover
|
16
|
+
background-image: image-url('redde/close-hover.svg')
|
17
|
+
|
18
|
+
.a_del
|
19
|
+
&:after
|
20
|
+
@extend %del
|
21
|
+
content: '\A0'
|
22
|
+
&:hover:after
|
23
|
+
background-image: image-url('redde/close-hover.svg')
|
@@ -0,0 +1,87 @@
|
|
1
|
+
//= require ./reset
|
2
|
+
//= require_self
|
3
|
+
//= require_directory .
|
4
|
+
|
5
|
+
.ac_results
|
6
|
+
padding: 0px
|
7
|
+
border: 1px solid black
|
8
|
+
background-color: white
|
9
|
+
overflow: hidden
|
10
|
+
z-index: 99999
|
11
|
+
|
12
|
+
.ac_results ul
|
13
|
+
width: 100%
|
14
|
+
list-style-position: outside
|
15
|
+
list-style: none
|
16
|
+
padding: 0
|
17
|
+
margin: 0
|
18
|
+
|
19
|
+
.ac_results li
|
20
|
+
margin: 0px
|
21
|
+
padding: 2px 5px
|
22
|
+
cursor: default
|
23
|
+
display: block
|
24
|
+
/*
|
25
|
+
*if width will be 100% horizontal scrollbar will apear
|
26
|
+
*when scroll mode will be used
|
27
|
+
/*width: 100%;
|
28
|
+
font: menu
|
29
|
+
font-size: 12px
|
30
|
+
/*
|
31
|
+
*it is very important, if line-height not setted or setted
|
32
|
+
*in relative units scroll will be broken in firefox
|
33
|
+
line-height: 16px
|
34
|
+
overflow: hidden
|
35
|
+
color: #004D83
|
36
|
+
|
37
|
+
/*.ac_results li strong {color:#4490BC;}
|
38
|
+
.ac_loading
|
39
|
+
background: white image-url("admin/ajaxloader2.gif") right center no-repeat
|
40
|
+
|
41
|
+
.ac_odd
|
42
|
+
background-color: #eee
|
43
|
+
|
44
|
+
.ac_over
|
45
|
+
background-color: #4490BC
|
46
|
+
color: #fff !important
|
47
|
+
|
48
|
+
.ac_results2
|
49
|
+
min-width: 333px
|
50
|
+
max-width: 600px
|
51
|
+
width: auto !important
|
52
|
+
|
53
|
+
.tbl
|
54
|
+
border-collapse: collapse
|
55
|
+
width: 100%
|
56
|
+
.for_img
|
57
|
+
width: 1px
|
58
|
+
text-align: left
|
59
|
+
padding-right: 5px
|
60
|
+
border-bottom: 3px solid #EDEDED
|
61
|
+
vertical-align: bottom
|
62
|
+
tr.bot
|
63
|
+
th, td
|
64
|
+
border-bottom-width: 3px
|
65
|
+
th
|
66
|
+
vertical-align: top
|
67
|
+
th, td
|
68
|
+
vertical-align: middle
|
69
|
+
th
|
70
|
+
padding: 5px 10px 5px 5px
|
71
|
+
width: 1%
|
72
|
+
td
|
73
|
+
width: auto
|
74
|
+
padding-top: 4px
|
75
|
+
td.handle
|
76
|
+
width: 25px
|
77
|
+
text-align: left
|
78
|
+
vertical-align: middle
|
79
|
+
th.handle
|
80
|
+
width: auto
|
81
|
+
td.handle img
|
82
|
+
display: block
|
83
|
+
th
|
84
|
+
width: auto
|
85
|
+
td.last
|
86
|
+
text-align: right
|
87
|
+
width: 1px
|
@@ -0,0 +1,20 @@
|
|
1
|
+
@import redde/mixins
|
2
|
+
|
3
|
+
.inp
|
4
|
+
box-sizing: border-box
|
5
|
+
display: inline-block
|
6
|
+
color: #404344
|
7
|
+
font-size: 13px
|
8
|
+
line-height: 21px
|
9
|
+
font-family: $family
|
10
|
+
padding: 6px 10px
|
11
|
+
border: 1px solid #cdd1d7
|
12
|
+
border-radius: 3px
|
13
|
+
outline: none
|
14
|
+
|
15
|
+
&::placeholder
|
16
|
+
color: #989c9f
|
17
|
+
|
18
|
+
&:focus
|
19
|
+
border-color: #5bacd4
|
20
|
+
box-shadow: 0 0 0 1px #5bacd4
|
@@ -0,0 +1,25 @@
|
|
1
|
+
@import redde/mixins
|
2
|
+
|
3
|
+
*
|
4
|
+
margin: 0
|
5
|
+
padding: 0
|
6
|
+
|
7
|
+
th
|
8
|
+
text-align: left
|
9
|
+
|
10
|
+
a
|
11
|
+
color: $link
|
12
|
+
&:hover
|
13
|
+
text-decoration:none
|
14
|
+
|
15
|
+
html,
|
16
|
+
body
|
17
|
+
width: 100%
|
18
|
+
height: 100%
|
19
|
+
|
20
|
+
body
|
21
|
+
min-width: 1000px
|
22
|
+
overflow-y: scroll
|
23
|
+
background-color: #F3F1EC
|
24
|
+
text-align: left
|
25
|
+
font: 12px $family
|
@@ -0,0 +1,32 @@
|
|
1
|
+
@import redde/mixins
|
2
|
+
|
3
|
+
.sbm
|
4
|
+
display: inline-block
|
5
|
+
background: #19709b
|
6
|
+
color: #fff
|
7
|
+
font-size: 13px
|
8
|
+
font-family: $family
|
9
|
+
padding: 9px 20px
|
10
|
+
border: 0 none
|
11
|
+
border-radius: 3px
|
12
|
+
cursor: pointer
|
13
|
+
outline: none
|
14
|
+
|
15
|
+
&[disabled]
|
16
|
+
background: #9ea2a4
|
17
|
+
cursor: default
|
18
|
+
|
19
|
+
&:hover
|
20
|
+
background: mix(#19709b, #388cb5)
|
21
|
+
background: linear-gradient(#19709b 70%, #388cb5 100%)
|
22
|
+
|
23
|
+
&:active
|
24
|
+
background: mix(#186991, #10435c)
|
25
|
+
background: linear-gradient(to top, #186991 80%, #10435c 100%)
|
26
|
+
|
27
|
+
&._save:before
|
28
|
+
content: "\A0"
|
29
|
+
display: inline-block
|
30
|
+
width: 16px
|
31
|
+
margin-right: 10px
|
32
|
+
background: image-url('redde/enter.svg') no-repeat 0 5px
|
@@ -0,0 +1,29 @@
|
|
1
|
+
//= depend_on_asset redde/sel.svg
|
2
|
+
|
3
|
+
@import redde/mixins
|
4
|
+
|
5
|
+
.sel
|
6
|
+
box-sizing: border-box
|
7
|
+
display: inline-block
|
8
|
+
color: #404344
|
9
|
+
font-size: 13px
|
10
|
+
line-height: 21px
|
11
|
+
font-family: $family
|
12
|
+
padding: 6px 10px
|
13
|
+
padding-right: (10px + 11px + 10px)
|
14
|
+
border: 1px solid #cdd1d7
|
15
|
+
border-radius: 3px
|
16
|
+
outline: none
|
17
|
+
-webkit-appearance: none
|
18
|
+
background: #fff image-url('redde/sel.svg') no-repeat right 10px top 14px
|
19
|
+
|
20
|
+
// &::placeholder
|
21
|
+
// color: #989c9f
|
22
|
+
|
23
|
+
&:focus
|
24
|
+
border-color: #5bacd4
|
25
|
+
box-shadow: 0 0 0 1px #5bacd4
|
26
|
+
|
27
|
+
// &._err
|
28
|
+
// border-color: #fb4657
|
29
|
+
// box-shadow: 0 0 0 1px #fb4657
|