intesys_asset_manager 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +127 -0
- data/Rakefile +31 -0
- data/app/assets/images/loader.gif +0 -0
- data/app/assets/javascripts/asset_manager.js.coffee +149 -0
- data/app/assets/stylesheets/asset_manager.css.sass +85 -0
- data/app/assets/stylesheets/asset_manager/base/colors.css.sass +0 -0
- data/app/assets/stylesheets/asset_manager/base/fonts.css.sass +0 -0
- data/app/assets/stylesheets/asset_manager/controllers/asset_categories.css.sass +0 -0
- data/app/assets/stylesheets/asset_manager/controllers/assets.css.sass +104 -0
- data/app/assets/stylesheets/asset_manager/controllers/index.css.sass +0 -0
- data/app/assets/stylesheets/asset_manager/layout/footer.css.sass +0 -0
- data/app/assets/stylesheets/asset_manager/layout/generic.css.sass +17 -0
- data/app/assets/stylesheets/asset_manager/layout/header.css.sass +0 -0
- data/app/assets/stylesheets/asset_manager/layout/main.css.sass +26 -0
- data/app/assets/stylesheets/asset_manager/modules/alerts.css.sass +3 -0
- data/app/assets/stylesheets/asset_manager/modules/btn_group.css.sass +3 -0
- data/app/assets/stylesheets/asset_manager/modules/page_header.sass +12 -0
- data/app/assets/stylesheets/asset_manager/modules/quick_upload.css.sass +26 -0
- data/app/assets/stylesheets/asset_manager/modules/translations.css.sass +4 -0
- data/app/assets/stylesheets/asset_manager/plugins/plugins.css.sass +7 -0
- data/app/assets/stylesheets/asset_manager/resources/asset_categories/asset_category.css.sass +0 -0
- data/app/assets/stylesheets/asset_manager/resources/asset_instances/asset_instance.css.sass +4 -0
- data/app/assets/stylesheets/asset_manager/resources/assets/asset.css.sass +35 -0
- data/app/assets/stylesheets/asset_manager/resources/resource/resource.css.sass +0 -0
- data/app/controllers/asset_manager/application_controller.rb +4 -0
- data/app/controllers/asset_manager/asset_categories_controller.rb +56 -0
- data/app/controllers/asset_manager/asset_instances_controller.rb +22 -0
- data/app/controllers/asset_manager/assets_controller.rb +122 -0
- data/app/controllers/asset_manager/index_controller.rb +8 -0
- data/app/helpers/asset_manager/application_helper.rb +9 -0
- data/app/helpers/asset_manager/asset_instances_helper.rb +59 -0
- data/app/helpers/asset_manager/assets_helper.rb +145 -0
- data/app/helpers/asset_manager/links_helper.rb +21 -0
- data/app/inputs/asset_manager_input.rb +27 -0
- data/app/models/asset_manager/asset.rb +99 -0
- data/app/models/asset_manager/asset_association.rb +15 -0
- data/app/models/asset_manager/asset_category.rb +22 -0
- data/app/models/asset_manager/asset_instance.rb +33 -0
- data/app/models/asset_manager/asset_private_instance.rb +6 -0
- data/app/models/asset_manager/asset_public_instance.rb +6 -0
- data/app/uploaders/asset_manager/asset_private_uploader.rb +9 -0
- data/app/uploaders/asset_manager/asset_public_uploader.rb +12 -0
- data/app/uploaders/asset_manager/asset_uploader.rb +36 -0
- data/app/views/admin/asset_manager/assets/_asset.html.haml +7 -0
- data/app/views/admin/asset_manager/assets/_assets.html.haml +2 -0
- data/app/views/asset_manager/asset_categories/_form.html.haml +10 -0
- data/app/views/asset_manager/asset_categories/_translated_fields.html.haml +3 -0
- data/app/views/asset_manager/asset_categories/edit.html.haml +8 -0
- data/app/views/asset_manager/asset_categories/index.html.haml +43 -0
- data/app/views/asset_manager/asset_categories/new.html.haml +4 -0
- data/app/views/asset_manager/asset_categories/show.html.haml +30 -0
- data/app/views/asset_manager/asset_instances/_asset_instance.html.haml +14 -0
- data/app/views/asset_manager/asset_instances/_asset_instance_as_flag.html.haml +3 -0
- data/app/views/asset_manager/asset_instances/_asset_instances.html.haml +5 -0
- data/app/views/asset_manager/asset_instances/_asset_instances_as_flag.html.haml +12 -0
- data/app/views/asset_manager/assets/_asset.html.haml +3 -0
- data/app/views/asset_manager/assets/_asset_draggable.html.haml +8 -0
- data/app/views/asset_manager/assets/_asset_group_by_instance_context.html.haml +7 -0
- data/app/views/asset_manager/assets/_asset_instance_fields.haml +10 -0
- data/app/views/asset_manager/assets/_assets.html.haml +4 -0
- data/app/views/asset_manager/assets/_assets_draggable.html.haml +7 -0
- data/app/views/asset_manager/assets/_form.html.haml +63 -0
- data/app/views/asset_manager/assets/_new_actions.html.haml +8 -0
- data/app/views/asset_manager/assets/_quick_upload.html.haml +20 -0
- data/app/views/asset_manager/assets/_translated_fields.html.haml +4 -0
- data/app/views/asset_manager/assets/edit.html.haml +6 -0
- data/app/views/asset_manager/assets/index.html.haml +68 -0
- data/app/views/asset_manager/assets/new.html.haml +4 -0
- data/app/views/asset_manager/assets/quick_upload.js.erb +7 -0
- data/app/views/asset_manager/assets/select.html.haml +57 -0
- data/app/views/asset_manager/assets/select.js.erb +1 -0
- data/app/views/asset_manager/assets/show.html.haml +51 -0
- data/app/views/asset_manager/index/index.html.haml +6 -0
- data/app/views/asset_manager/partials/_form_errors.html.haml +7 -0
- data/app/views/asset_manager/partials/_locales_tabs.html.haml +4 -0
- data/app/views/asset_manager/partials/_pagination_status.html.haml +2 -0
- data/app/views/layouts/asset_manager/_base.html.haml +6 -0
- data/app/views/layouts/asset_manager/application.html.haml +15 -0
- data/app/views/layouts/asset_manager/partials/_flash_messages.html.haml +4 -0
- data/app/views/layouts/asset_manager/partials/_head.html.haml +11 -0
- data/app/views/layouts/asset_manager/partials/_header.html.haml +15 -0
- data/app/views/layouts/asset_manager/simple.html.haml +4 -0
- data/config/locales/en.yml +179 -0
- data/config/locales/it.yml +181 -0
- data/config/routes.rb +20 -0
- data/db/migrate/20120919130657_asset_manager_init.rb +44 -0
- data/db/migrate/20121005072255_acts_as_taggable_on_migration.rb +30 -0
- data/db/migrate/20121102141009_add_file_type_to_asset.rb +5 -0
- data/db/migrate/20130417082644_asset_manager_add_index_to_foreign_keys.rb +5 -0
- data/db/migrate/20140512090936_add_missing_unique_indices.acts_as_taggable_on_engine.rb +20 -0
- data/db/migrate/20140512090937_add_taggings_counter_cache_to_tags.acts_as_taggable_on_engine.rb +15 -0
- data/lib/asset_manager.rb +57 -0
- data/lib/asset_manager/all.rb +5 -0
- data/lib/asset_manager/engine.rb +29 -0
- data/lib/asset_manager/extensions/active_record.rb +152 -0
- data/lib/asset_manager/extensions/all.rb +1 -0
- data/lib/assets/images/bootstrap/glyphicons-halflings-white.png +0 -0
- data/lib/assets/images/bootstrap/glyphicons-halflings.png +0 -0
- data/lib/assets/javascripts/bootstrap2/bootstrap.js +2280 -0
- data/lib/assets/stylesheets/bootstrap2/bootstrap-responsive.css +1109 -0
- data/lib/assets/stylesheets/bootstrap2/bootstrap.css.erb +6167 -0
- data/lib/custom_versions.rb +20 -0
- data/lib/deprecated.rb +61 -0
- data/lib/intesys_asset_manager.rb +1 -0
- data/lib/intesys_asset_manager/version.rb +3 -0
- data/lib/tasks/asset_manager_tasks.rake +32 -0
- data/lib/touch_translation.rb +18 -0
- data/lib/translations.rb +19 -0
- data/spec/controllers/asset_manager/asset_categories_controller_spec.rb +164 -0
- data/spec/controllers/asset_manager/assets_controller_spec.rb +164 -0
- data/spec/controllers/asset_manager/index_controller_spec.rb +12 -0
- data/spec/factories/asset_manager_asset_associations.rb +10 -0
- data/spec/factories/asset_manager_asset_categories.rb +7 -0
- data/spec/factories/asset_manager_asset_instances.rb +9 -0
- data/spec/factories/asset_manager_assets.rb +8 -0
- data/spec/helpers/asset_manager/asset_categories_helper_spec.rb +5 -0
- data/spec/helpers/asset_manager/assets_helper_spec.rb +5 -0
- data/spec/helpers/asset_manager/index_helper_spec.rb +5 -0
- data/spec/models/asset_manager/asset_association_spec.rb +5 -0
- data/spec/models/asset_manager/asset_category_spec.rb +5 -0
- data/spec/models/asset_manager/asset_instance_spec.rb +7 -0
- data/spec/models/asset_manager/asset_spec.rb +5 -0
- data/spec/requests/asset_manager/asset_manager_asset_categories_spec.rb +11 -0
- data/spec/requests/asset_manager/asset_manager_assets_spec.rb +11 -0
- data/spec/routing/asset_manager/asset_categories_routing_spec.rb +35 -0
- data/spec/routing/asset_manager/assets_routing_spec.rb +35 -0
- data/spec/spec_helper.rb +18 -0
- data/spec/support/capybara.rb +8 -0
- data/spec/views/asset_manager/asset_categories/edit.html.haml_spec.rb +15 -0
- data/spec/views/asset_manager/asset_categories/index.html.haml_spec.rb +15 -0
- data/spec/views/asset_manager/asset_categories/new.html.haml_spec.rb +15 -0
- data/spec/views/asset_manager/asset_categories/show.html.haml_spec.rb +12 -0
- data/spec/views/asset_manager/assets/edit.html.haml_spec.rb +20 -0
- data/spec/views/asset_manager/assets/index.html.haml_spec.rb +23 -0
- data/spec/views/asset_manager/assets/new.html.haml_spec.rb +20 -0
- data/spec/views/asset_manager/assets/show.html.haml_spec.rb +17 -0
- data/spec/views/asset_manager/index/index.html.haml_spec.rb +5 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/aac.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/ai.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/aif.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/asp.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/aspx.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/avi.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/bin.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/bmp.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/css.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/db.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/default.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/dll.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/dll2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/doc.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/eps.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/exe1.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/exe2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/fav.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/genericBlue.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/genericGray.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/genericOrange.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/genericRed.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/genericTurquesa.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/gif.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/gz.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/help.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/help2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/hqx.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/html.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/htmlFirefox.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/htmlIE.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/htmlSafari1.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/htmlSafari2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/jpg.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/js.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/mov.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/mov2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/mp2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/mp3.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/mp4.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/mpg.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/pdf.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/php.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/pic.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/png.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/pps.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/ppt.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/psd.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/rar.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/rb.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/rtf.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/template.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/tif.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/ttf.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/txt.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/vbs.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/vbs2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/warning.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/wav.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/xls.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/xml.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/zip.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/zip2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/aac.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/ai.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/aif.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/asp.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/aspx.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/avi.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/bin.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/bmp.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/css.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/db.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/default.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/dll.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/dll2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/doc.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/eps.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/exe1.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/exe2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/fav.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/genericBlue.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/genericGray.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/genericOrange.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/genericRed.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/genericTurquesa.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/gif.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/gz.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/help.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/help2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/hqx.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/html.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/htmlFirefox.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/htmlIE.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/htmlSafari1.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/htmlSafari2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/jpg.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/js.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/mov.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/mov2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/mp2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/mp3.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/mp4.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/mpg.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/pdf.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/php.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/pic.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/png.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/pps.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/ppt.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/psd.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/rar.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/rb.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/rtf.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/template.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/tif.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/ttf.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/txt.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/vbs.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/vbs2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/warning.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/wav.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/xls.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/xml.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/zip.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/zip2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/aac.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/ai.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/aif.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/asp.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/aspx.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/avi.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/bin.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/bmp.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/css.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/db.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/default.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/dll.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/dll2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/doc.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/eps.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/exe1.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/exe2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/fav.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/genericBlue.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/genericGray.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/genericOrange.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/genericRed.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/genericTurquesa.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/gif.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/gz.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/help.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/help2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/hqx.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/html.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/htmlFirefox.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/htmlIE.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/htmlSafari1.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/htmlSafari2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/jpg.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/js.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/mov.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/mov2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/mp2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/mp3.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/mp4.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/mpg.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/pdf.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/php.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/pic.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/png.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/pps.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/ppt.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/psd.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/rar.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/rb.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/rtf.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/tif.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/ttf.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/txt.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/vbs.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/vbs2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/warning.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/wav.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/xls.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/xml.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/zip.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/zip2.png +0 -0
- data/vendor/assets/images/blank.gif +0 -0
- data/vendor/assets/images/clippy.swf +0 -0
- data/vendor/assets/images/fancybox_buttons.png +0 -0
- data/vendor/assets/images/fancybox_loading.gif +0 -0
- data/vendor/assets/images/fancybox_loading@2x.gif +0 -0
- data/vendor/assets/images/fancybox_overlay.png +0 -0
- data/vendor/assets/images/fancybox_sprite.png +0 -0
- data/vendor/assets/images/fancybox_sprite@2x.png +0 -0
- data/vendor/assets/images/ias/loader.gif +0 -0
- data/vendor/assets/javascripts/ias/jquery.ias.js +620 -0
- data/vendor/assets/stylesheets/ias/jquery.ias.css +8 -0
- metadata +748 -0
@@ -0,0 +1,10 @@
|
|
1
|
+
= semantic_form_for @asset_category, multipart: true, builder: FormtasticBootstrap::FormBuilder, namespace: 'asset_category' do |f|
|
2
|
+
= render partial: 'asset_manager/partials/form_errors', locals: { errors: f.object.errors }
|
3
|
+
.form-horizontal
|
4
|
+
= f.inputs t('.translations'), class: 'translations', data: { count: I18n.available_locales.count } do
|
5
|
+
= render 'asset_manager/partials/locales_tabs'
|
6
|
+
.tab-content
|
7
|
+
= f.semantic_fields_for :translations, @asset_category.translations do |ft|
|
8
|
+
= render 'translated_fields', f: ft
|
9
|
+
= f.actions
|
10
|
+
|
@@ -0,0 +1,43 @@
|
|
1
|
+
= content_for :page_title do
|
2
|
+
= am_title t('.title_asset_categories')
|
3
|
+
= content_for :page_actions do
|
4
|
+
= link_to(new_asset_category_path, class: 'btn') do
|
5
|
+
%i.icon-plus-sign
|
6
|
+
= t('.new_asset_category')
|
7
|
+
|
8
|
+
.row-fluid
|
9
|
+
.span10
|
10
|
+
- if @asset_categories.empty?
|
11
|
+
= t('.no_results')
|
12
|
+
- else
|
13
|
+
%table.table.table-striped.table-bordered.table-hover.table-condensed
|
14
|
+
%thead
|
15
|
+
%tr
|
16
|
+
%th= t('.id')
|
17
|
+
%th= t('.asset_category_title')
|
18
|
+
%th.actions= t('.actions')
|
19
|
+
%tbody
|
20
|
+
- @asset_categories.each do |asset_category|
|
21
|
+
%tr
|
22
|
+
%td.id= asset_category.id
|
23
|
+
%td= asset_category.title
|
24
|
+
%td.actions
|
25
|
+
%ul
|
26
|
+
%li= show_resource_link(asset_category)
|
27
|
+
%li= edit_resource_link(asset_category)
|
28
|
+
%li= delete_resource_link(asset_category)
|
29
|
+
|
30
|
+
= render partial: 'asset_manager/partials/pagination_status', locals: { collection: @asset_categories, total_records: @total_records }
|
31
|
+
= paginate @asset_categories, theme: 'bootstrap'
|
32
|
+
.span2
|
33
|
+
.well.filters
|
34
|
+
.filters-title= t('labels.filters')
|
35
|
+
= form_for @search, url: asset_categories_path, html: { method: :get, style: 'margin-bottom: 0' } do |f|
|
36
|
+
%div
|
37
|
+
= f.label :translations_title_contains, t('.title_contains')
|
38
|
+
= f.text_field :translations_title_contains
|
39
|
+
%div
|
40
|
+
%button.btn{ type: 'submit', name: 'commit' }
|
41
|
+
%i.icon-search
|
42
|
+
= t('.search')
|
43
|
+
= link_to t('.clear'), asset_categories_path
|
@@ -0,0 +1,30 @@
|
|
1
|
+
= content_for :page_title do
|
2
|
+
= am_title @asset_category.title
|
3
|
+
= content_for :page_actions do
|
4
|
+
= link_to(edit_asset_category_path(@asset_category), class: 'btn') do
|
5
|
+
%i.icon-pencil
|
6
|
+
= t('.edit')
|
7
|
+
|
8
|
+
%table.table.table-bordered.table-condensed.table-striped
|
9
|
+
%thead
|
10
|
+
%tr
|
11
|
+
%th{ colspan: 2 }= t('.general')
|
12
|
+
%tbody
|
13
|
+
%tr
|
14
|
+
%td= t('.id')
|
15
|
+
%td= @asset_category.id
|
16
|
+
%tr
|
17
|
+
%td= t('.created_at')
|
18
|
+
%td= @asset_category.created_at
|
19
|
+
%tr
|
20
|
+
%td= t('.updated_at')
|
21
|
+
%td= @asset_category.updated_at
|
22
|
+
|
23
|
+
%table.table.table-bordered.table-condensed.table-striped
|
24
|
+
%thead
|
25
|
+
%tr
|
26
|
+
%th{ colspan: 2 }= t('.details')
|
27
|
+
%tbody
|
28
|
+
%tr
|
29
|
+
%td= t('.title')
|
30
|
+
%td= @asset_category.translations.map{ |t| "[#{t.locale}] #{t.title}" }.join(', ')
|
@@ -0,0 +1,14 @@
|
|
1
|
+
- unless resource.nil?
|
2
|
+
- clippy ||= false
|
3
|
+
.resource[resource]
|
4
|
+
- if resource.file.version_exists?(:thumb) && File.exist?(resource.file.versions[:thumb].file.file)
|
5
|
+
= am_asset_instance_image(resource, version: :thumb, linked: true, link_options: { class: 'overlay', rel: "asset-#{resource.asset.id}"}, image_options: { class: 'img-polaroid' })
|
6
|
+
- elsif resource.file.version_exists?(:thumb_pdf) && File.exist?(resource.file.versions[:thumb_pdf].file.file)
|
7
|
+
= am_asset_instance_image(resource, version: :thumb_pdf, image_options: { class: 'img-polaroid', width: 50 })
|
8
|
+
- else
|
9
|
+
= image_tag am_ico_path(resource.asset.file_type), alt: ''
|
10
|
+
%span
|
11
|
+
= "(#{resource.instance_context})" if AssetManager::AssetInstance.instance_contexts_with_all.count > 1
|
12
|
+
= link_to resource.file_identifier, am_asset_instance_url(resource), target: '_blank'
|
13
|
+
- if clippy && AssetManager.with_clippy
|
14
|
+
= raw am_clippy(am_asset_instance_url(resource, download: true, force_frontend: true))
|
@@ -0,0 +1,12 @@
|
|
1
|
+
- if AssetManager::AssetInstance.instance_contexts_with_all.length > 1 && !collection.empty?
|
2
|
+
.group
|
3
|
+
- if collection.count == 1 && collection.first.instance_context.to_sym == AssetManager::AssetInstance.instance_context_all
|
4
|
+
.item
|
5
|
+
= render partial: 'asset_manager/asset_instances/asset_instance_as_flag', locals: { resource: collection.first }
|
6
|
+
- else
|
7
|
+
- AssetManager::AssetInstance.instance_contexts.each do |ic|
|
8
|
+
.item
|
9
|
+
- if (resource = collection.find_by_instance_context(ic.to_s))
|
10
|
+
= render partial: 'asset_manager/asset_instances/asset_instance_as_flag', locals: { resource: resource }
|
11
|
+
- else
|
12
|
+
%span= ic
|
@@ -0,0 +1,7 @@
|
|
1
|
+
- unless resource.nil?
|
2
|
+
.resource[resource]
|
3
|
+
.presentation{ style: "background: url(#{am_ico_path(resource.file_type, size: ico_size)}) no-repeat 0 0; padding-left: #{(ico_size.nil? ? 16 : ico_size.to_i) + 5}px" }
|
4
|
+
%p.title
|
5
|
+
= link_to_if (AssetManager::AssetInstance.instance_contexts_with_all.length == 1), resource.title, am_asset_url(resource)
|
6
|
+
%p.description= resource.description unless resource.description.nil?
|
7
|
+
= render partial: 'asset_manager/asset_instances/asset_instances_as_flag', locals: { collection: resource.asset_instances }
|
@@ -0,0 +1,10 @@
|
|
1
|
+
.nested-fields
|
2
|
+
.well.well-small
|
3
|
+
= f.inputs do
|
4
|
+
%div{ class: "#{AssetManager::AssetInstance.instance_contexts_with_all.length == 1 ? 'hide' : ''}" }
|
5
|
+
= f.input :instance_context, as: :select, collection: AssetManager::AssetInstance.instance_contexts_with_all, input_html: { style: 'width: 60px' }, label: t('.instance_context')
|
6
|
+
= f.input :file, as: :file
|
7
|
+
- unless f.object.file.blank? || f.object.id.blank?
|
8
|
+
.item= render partial: '/asset_manager/asset_instances/asset_instance', locals: { resource: f.object }
|
9
|
+
- unless AssetManager::AssetInstance.instance_contexts_with_all.length == 1
|
10
|
+
= link_to_remove_association '(x) ' + t('.remove_asset_instance'), f
|
@@ -0,0 +1,63 @@
|
|
1
|
+
= semantic_form_for @asset, multipart: true, builder: FormtasticBootstrap::FormBuilder, namespace: 'asset', class: 'form-horizontal' do |f|
|
2
|
+
= render partial: 'asset_manager/partials/form_errors', locals: { errors: f.object.errors }
|
3
|
+
= f.input :public, as: :hidden
|
4
|
+
.form-horizontal
|
5
|
+
= f.inputs t('.translations'), class: 'translations', data: { count: I18n.available_locales.count } do
|
6
|
+
= render 'asset_manager/partials/locales_tabs'
|
7
|
+
.tab-content
|
8
|
+
= f.semantic_fields_for :translations, @asset.translations do |ft|
|
9
|
+
= render 'translated_fields', f: ft
|
10
|
+
- if AssetManager.with_categories || AssetManager.with_tags
|
11
|
+
= f.inputs t('.general'), class: 'general' do
|
12
|
+
- if AssetManager.with_categories
|
13
|
+
= f.input :asset_category, collection: AssetManager::AssetCategory.sorted
|
14
|
+
- if AssetManager.with_tags
|
15
|
+
= f.input :tag_list
|
16
|
+
= f.inputs 'File/s', class: 'general' do
|
17
|
+
#asset_instances
|
18
|
+
- association_name = "asset_#{@asset.public ? 'public' : 'private'}_instances".to_sym
|
19
|
+
= f.semantic_fields_for association_name do |asset_instance|
|
20
|
+
= render 'asset_instance_fields', f: asset_instance
|
21
|
+
- unless AssetManager::AssetInstance.instance_contexts_with_all.length == 1
|
22
|
+
.links= link_to_add_association '(+) ' + t('.add_asset_instance'), f, association_name, partial: 'asset_instance_fields'
|
23
|
+
= f.actions
|
24
|
+
|
25
|
+
:javascript
|
26
|
+
$(document).ready(function() {
|
27
|
+
$('form').submit(function() {
|
28
|
+
submit = true;
|
29
|
+
|
30
|
+
// Check instance context
|
31
|
+
ics = new Array();
|
32
|
+
$('#asset_instances .nested-fields:visible').each(function() {
|
33
|
+
ic = $(this).find('select').val();
|
34
|
+
if ($.inArray(ic, ics) == -1) {
|
35
|
+
ics.push(ic);
|
36
|
+
} else {
|
37
|
+
submit = false;
|
38
|
+
alert('Non è possibile avere più files dello stesso contesto (' + ic + ')');
|
39
|
+
return false;
|
40
|
+
}
|
41
|
+
});
|
42
|
+
|
43
|
+
// Check files
|
44
|
+
numFiles = 0;
|
45
|
+
$('#asset_instances .nested-fields:visible').each(function() {
|
46
|
+
file = $(this).find('input[type=file]').val();
|
47
|
+
item = $(this).find('.item');
|
48
|
+
if (file || item) {
|
49
|
+
numFiles++;
|
50
|
+
}
|
51
|
+
});
|
52
|
+
if (! numFiles) {
|
53
|
+
submit = false;
|
54
|
+
alert('Non è possibile procedere senza aver selezionato un file');
|
55
|
+
return false;
|
56
|
+
}
|
57
|
+
|
58
|
+
if (! submit) {
|
59
|
+
return false;
|
60
|
+
}
|
61
|
+
});
|
62
|
+
});
|
63
|
+
|
@@ -0,0 +1,8 @@
|
|
1
|
+
- if AssetManager.public_asset_type?
|
2
|
+
= link_to(new_asset_path(public: true), class: 'btn') do
|
3
|
+
%i.icon-plus-sign
|
4
|
+
= (AssetManager.unique_asset_type? ? t('.new_asset') : t('.new_public_asset'))
|
5
|
+
- if AssetManager.private_asset_type?
|
6
|
+
= link_to(new_asset_path(public: false), class: 'btn') do
|
7
|
+
%i.icon-plus-sign
|
8
|
+
= (AssetManager.unique_asset_type? ? t('.new_asset') : t('.new_private_asset'))
|
@@ -0,0 +1,20 @@
|
|
1
|
+
#quick_upload
|
2
|
+
= link_to 'javascript:void(0)', class: 'link-upload' do
|
3
|
+
%i.icon-plus-sign
|
4
|
+
%span= t('.quick_upload')
|
5
|
+
.well.hide
|
6
|
+
= form_for AssetManager::Asset.new, url: quick_upload_assets_path do |f|
|
7
|
+
- asset_type = AssetManager.asset_types.first
|
8
|
+
= f.hidden_field :public, value: (asset_type == :public ? true : false)
|
9
|
+
= f.hidden_field :instance_context, name: "asset[asset_#{asset_type}_instances_attributes][0][instance_context]", value: AssetManager::AssetInstance.instance_context_all
|
10
|
+
= f.hidden_field :locale, name: 'asset[translations_attributes][0][locale]', value: I18n.default_locale
|
11
|
+
.row-fluid
|
12
|
+
.span4
|
13
|
+
= f.text_field :title, name: 'asset[translations_attributes][0][title]', class: 'span12', placeholder: 'Title'
|
14
|
+
.span4
|
15
|
+
= f.file_field :file, name: "asset[asset_#{asset_type}_instances_attributes][0][file]"
|
16
|
+
%script#template-upload{ type: 'text/x-tmpl'}
|
17
|
+
.upload
|
18
|
+
= '{%=o.name%}'
|
19
|
+
.progress.progress-striped.active
|
20
|
+
.bar{ style: 'width: 0%'}
|
@@ -0,0 +1,68 @@
|
|
1
|
+
= content_for :page_title do
|
2
|
+
= am_title t('.title_assets')
|
3
|
+
= content_for :page_actions do
|
4
|
+
= render partial: 'new_actions'
|
5
|
+
|
6
|
+
= render partial: 'quick_upload'
|
7
|
+
|
8
|
+
.row-fluid
|
9
|
+
.span10
|
10
|
+
- if @assets.empty?
|
11
|
+
= t('.no_results')
|
12
|
+
- else
|
13
|
+
%table.table.table-striped.table-bordered.table-hover.table-condensed
|
14
|
+
%thead
|
15
|
+
%tr
|
16
|
+
%th= t('.id')
|
17
|
+
%th= t('.asset_title')
|
18
|
+
-#%th= t('.description')
|
19
|
+
- if AssetManager.with_categories
|
20
|
+
%th= t('.asset_category')
|
21
|
+
- unless AssetManager.unique_asset_type?
|
22
|
+
%th= t('.public')
|
23
|
+
%th= t('.file_type')
|
24
|
+
%th= t('.asset_instances')
|
25
|
+
%th.actions= t('.actions')
|
26
|
+
%tbody
|
27
|
+
- @assets.each do |asset|
|
28
|
+
%tr
|
29
|
+
%td= asset.id
|
30
|
+
%td= asset.title
|
31
|
+
-#%td= asset.description
|
32
|
+
- if AssetManager.with_categories
|
33
|
+
%td= asset.asset_category.title rescue ''
|
34
|
+
- unless AssetManager.unique_asset_type?
|
35
|
+
%td= asset.public
|
36
|
+
%td= asset.file_type
|
37
|
+
%td= render partial: 'asset_manager/asset_instances/asset_instances', locals: { collection: asset.asset_instances, clippy: true }
|
38
|
+
%td.actions
|
39
|
+
%ul
|
40
|
+
%li= show_resource_link(asset)
|
41
|
+
%li= edit_resource_link(asset)
|
42
|
+
%li= delete_resource_link(asset)
|
43
|
+
|
44
|
+
= render partial: 'asset_manager/partials/pagination_status', locals: { collection: @assets, total_records: @total_records }
|
45
|
+
= paginate @assets, theme: 'bootstrap'
|
46
|
+
.span2
|
47
|
+
.well.filters
|
48
|
+
.filters-title= t('labels.filters')
|
49
|
+
= form_for @search, url: assets_path, html: { method: :get, style: 'margin-bottom: 0' } do |f|
|
50
|
+
%div
|
51
|
+
= f.label :translations_title_or_translations_description_contains, t('.title_or_description_contains')
|
52
|
+
= f.text_field :translations_title_or_translations_description_contains
|
53
|
+
- if AssetManager.with_categories
|
54
|
+
%div
|
55
|
+
= f.label :asset_category_id_equals, t('.asset_category_equal')
|
56
|
+
= f.collection_select :asset_category_id_equals, AssetManager::AssetCategory.sorted, :id, :title, include_blank: true
|
57
|
+
- unless AssetManager.unique_asset_type?
|
58
|
+
%div
|
59
|
+
= f.label :public_equals, t('.public_equal')
|
60
|
+
= f.select :public_equals, [true, false], include_blank: true
|
61
|
+
%div
|
62
|
+
= f.label :file_type_equals, t('.file_type_equal')
|
63
|
+
= f.select :file_type_equals, AssetManager::Asset.pluck(:file_type).uniq.compact, include_blank: true
|
64
|
+
%div
|
65
|
+
%button.btn{ type: 'submit', name: 'commit' }
|
66
|
+
%i.icon-search
|
67
|
+
= t('.search')
|
68
|
+
= link_to t('.clear'), assets_path, class: 'btn btn-link'
|
@@ -0,0 +1,7 @@
|
|
1
|
+
<% if @asset.new_record? %>
|
2
|
+
$('#quick_upload').find('.bar').addClass('bar-danger')
|
3
|
+
alert("Failed to upload painting: <%= j @asset.errors.full_messages.join(', ').html_safe %>");
|
4
|
+
<% else %>
|
5
|
+
$('#quick_upload').find('.bar').addClass('bar-success')
|
6
|
+
location.reload(true)
|
7
|
+
<% end %>
|
@@ -0,0 +1,57 @@
|
|
1
|
+
.sx
|
2
|
+
.search
|
3
|
+
.top
|
4
|
+
.well
|
5
|
+
= form_for @search, url: select_assets_path, html: { method: :get, class: 'form-inline', id: 'search' } do |f|
|
6
|
+
.row-fluid
|
7
|
+
.span10
|
8
|
+
- columns = 4
|
9
|
+
- columns -= 1 unless AssetManager.with_categories
|
10
|
+
- columns -= 1 unless AssetManager.with_tags
|
11
|
+
.row-fluid
|
12
|
+
%div{ class: "span#{12/columns}" }
|
13
|
+
= f.label :translations_title_contains, t('.filter.title_contains')
|
14
|
+
= f.text_field :translations_title_contains, style: 'width: 98%; padding-left: 1%; padding-right: 1%;'
|
15
|
+
- if AssetManager.with_categories
|
16
|
+
%div{ class: "span#{12/columns}" }
|
17
|
+
= f.label :asset_category_id_in, t('.filter.asset_categories')
|
18
|
+
= f.collection_select :asset_category_id_in, AssetManager::AssetCategory.sorted, :id, :title, {}, { multiple: :multiple }
|
19
|
+
- if AssetManager.with_tags
|
20
|
+
%div{ class: "span#{12/columns}" }
|
21
|
+
= f.label :tags, t('.filter.tags')
|
22
|
+
= select_tag :tags, options_from_collection_for_select(ActsAsTaggableOn::Tag.order(:name), 'name', 'name', params[:tags]), multiple: 'multiple', name: 'tags[]'
|
23
|
+
%div{ class: "span#{12/columns}" }
|
24
|
+
= f.label :file_type_in, t('.filter.file_types')
|
25
|
+
= f.select :file_type_in, AssetManager::Asset.all.map(&:file_type).uniq.compact.sort.reject(&:blank?), {}, { multiple: :multiple }
|
26
|
+
.span2
|
27
|
+
= hidden_field_tag :owner, @owner
|
28
|
+
= hidden_field_tag :id, @id
|
29
|
+
= hidden_field_tag :field, @field
|
30
|
+
= hidden_field_tag :multiple, @multiple
|
31
|
+
= f.label :submit, raw(' '), style: 'display: block'
|
32
|
+
%button.btn.btn-primary{ type: 'submit', name: 'commit' }
|
33
|
+
%i.icon-search.icon-white
|
34
|
+
= t('.search')
|
35
|
+
|
36
|
+
.collection.clearfix
|
37
|
+
= render partial: 'quick_upload'
|
38
|
+
#sortable1.connectedSortable.clearfix.resources.assets
|
39
|
+
= render partial: 'assets_draggable', locals: { assets: @assets, pagination: true }
|
40
|
+
.dx
|
41
|
+
.associations
|
42
|
+
.well.well-small{ style: 'margin-bottom: 0' }
|
43
|
+
%h6{ style: 'margin: 0'}= "#{@owner} [#{@field}]"
|
44
|
+
.assets-container-drag
|
45
|
+
#sortable2.connectedSortable
|
46
|
+
= render partial: 'assets_draggable', locals: { assets: @resource_assets }
|
47
|
+
.actions
|
48
|
+
%button.btn.btn-primary.select= t('.select')
|
49
|
+
%button.btn.cancel= t('.cancel')
|
50
|
+
|
51
|
+
.hide
|
52
|
+
.param-max= @max
|
53
|
+
.param-multiple= @multiple
|
54
|
+
.param-field= @field
|
55
|
+
.param-field-name= "#{ActiveModel::Naming.param_key(@owner.constantize)}[#{@owner.constantize.am_field_name(@field, @multiple)}]#{@multiple ? '[]' : ''}"
|
56
|
+
.param-save= @save
|
57
|
+
.param-resource-id= @id
|