katello 3.1.0.1 → 3.2.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of katello might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +8 -47
- data/app/assets/javascripts/katello/common/index.js +0 -1
- data/app/assets/javascripts/katello/providers/redhat/index.js +0 -1
- data/app/assets/stylesheets/katello/_katello_colors.scss +0 -2
- data/app/assets/stylesheets/katello/katello.scss +0 -2
- data/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb +45 -42
- data/app/controllers/katello/api/v2/activation_keys_controller.rb +7 -19
- data/app/controllers/katello/api/v2/api_controller.rb +3 -3
- data/app/controllers/katello/api/v2/capsule_content_controller.rb +3 -3
- data/app/controllers/katello/api/v2/content_uploads_controller.rb +2 -2
- data/app/controllers/katello/api/v2/content_view_filter_rules_controller.rb +29 -18
- data/app/controllers/katello/api/v2/content_view_filters_controller.rb +2 -2
- data/app/controllers/katello/api/v2/content_view_histories_controller.rb +1 -1
- data/app/controllers/katello/api/v2/content_view_puppet_modules_controller.rb +2 -2
- data/app/controllers/katello/api/v2/content_view_versions_controller.rb +10 -8
- data/app/controllers/katello/api/v2/content_views_controller.rb +5 -5
- data/app/controllers/katello/api/v2/environments_controller.rb +10 -9
- data/app/controllers/katello/api/v2/file_units_controller.rb +16 -0
- data/app/controllers/katello/api/v2/gpg_keys_controller.rb +4 -4
- data/app/controllers/katello/api/v2/host_autocomplete_controller.rb +2 -2
- data/app/controllers/katello/api/v2/host_collections_controller.rb +41 -13
- data/app/controllers/katello/api/v2/host_errata_controller.rb +12 -5
- data/app/controllers/katello/api/v2/host_packages_controller.rb +4 -4
- data/app/controllers/katello/api/v2/host_subscriptions_controller.rb +9 -9
- data/app/controllers/katello/api/v2/hosts_bulk_actions_controller.rb +52 -13
- data/app/controllers/katello/api/v2/organizations_controller.rb +3 -3
- data/app/controllers/katello/api/v2/packages_controller.rb +1 -1
- data/app/controllers/katello/api/v2/ping_controller.rb +2 -2
- data/app/controllers/katello/api/v2/products_bulk_actions_controller.rb +2 -2
- data/app/controllers/katello/api/v2/products_controller.rb +6 -16
- data/app/controllers/katello/api/v2/repositories_bulk_actions_controller.rb +1 -1
- data/app/controllers/katello/api/v2/repositories_controller.rb +60 -21
- data/app/controllers/katello/api/v2/repository_sets_controller.rb +3 -3
- data/app/controllers/katello/api/v2/root_controller.rb +2 -2
- data/app/controllers/katello/api/v2/subscriptions_controller.rb +19 -10
- data/app/controllers/katello/api/v2/sync_controller.rb +3 -3
- data/app/controllers/katello/api/v2/sync_plans_controller.rb +2 -2
- data/app/controllers/katello/api/v2/uebercerts_controller.rb +1 -1
- data/app/controllers/katello/application_controller.rb +7 -7
- data/app/controllers/katello/auto_complete_search_controller.rb +1 -1
- data/app/controllers/katello/concerns/api/api_controller.rb +1 -1
- data/app/controllers/katello/concerns/api/v2/hostgroups_controller_extensions.rb +19 -16
- data/app/controllers/katello/concerns/api/v2/repository_content_controller.rb +8 -6
- data/app/controllers/katello/concerns/authorization/api/v2/content_views_controller.rb +10 -6
- data/app/controllers/katello/concerns/organizations_controller_extensions.rb +1 -1
- data/app/controllers/katello/concerns/smart_proxies_controller_extensions.rb +1 -1
- data/app/controllers/katello/errors_controller.rb +2 -2
- data/app/controllers/katello/organizations_controller.rb +1 -1
- data/app/controllers/katello/products_controller.rb +4 -4
- data/app/controllers/katello/providers_controller.rb +2 -2
- data/app/helpers/katello/application_helper.rb +0 -240
- data/app/helpers/katello/concerns/hosts_and_hostgroups_helper_extensions.rb +19 -0
- data/app/lib/actions/candlepin/import_pool_handler.rb +11 -6
- data/app/lib/actions/katello/capsule_content/create_repos.rb +3 -3
- data/app/lib/actions/katello/capsule_content/sync.rb +23 -9
- data/app/lib/actions/katello/content_view/add_to_environment.rb +1 -1
- data/app/lib/actions/katello/content_view/errata_mail.rb +2 -2
- data/app/lib/actions/katello/content_view/incremental_updates.rb +60 -1
- data/app/lib/actions/katello/content_view/remove.rb +2 -2
- data/app/lib/actions/katello/content_view_environment/destroy.rb +1 -1
- data/app/lib/actions/katello/content_view_environment/reassign_objects.rb +2 -2
- data/app/lib/actions/katello/content_view_puppet_environment/create.rb +3 -1
- data/app/lib/actions/katello/host/attach_subscriptions.rb +13 -6
- data/app/lib/actions/katello/host/destroy.rb +0 -19
- data/app/lib/actions/katello/host/generate_applicability.rb +8 -3
- data/app/lib/actions/katello/host/hypervisors.rb +17 -9
- data/app/lib/actions/katello/host/hypervisors_update.rb +19 -44
- data/app/lib/actions/katello/host/reassign.rb +14 -0
- data/app/lib/actions/katello/host/register.rb +3 -22
- data/app/lib/actions/katello/host/remove_subscriptions.rb +15 -2
- data/app/lib/actions/katello/host/update.rb +0 -6
- data/app/lib/actions/katello/organization/destroy.rb +2 -2
- data/app/lib/actions/katello/product/content_destroy.rb +7 -9
- data/app/lib/actions/katello/product/destroy.rb +23 -7
- data/app/lib/actions/katello/repository/clear.rb +1 -0
- data/app/lib/actions/katello/repository/clone_file_content.rb +17 -0
- data/app/lib/actions/katello/repository/clone_to_environment.rb +2 -0
- data/app/lib/actions/katello/repository/clone_to_version.rb +2 -0
- data/app/lib/actions/katello/repository/create.rb +2 -1
- data/app/lib/actions/katello/repository/destroy.rb +20 -10
- data/app/lib/actions/katello/repository/errata_mail.rb +2 -2
- data/app/lib/actions/katello/repository/filtered_index_content.rb +2 -0
- data/app/lib/actions/katello/repository/import_upload.rb +6 -2
- data/app/lib/actions/katello/repository/{refresh_repostiory.rb → refresh_repository.rb} +0 -0
- data/app/lib/actions/katello/repository/remove_content.rb +2 -0
- data/app/lib/actions/katello/repository/sync.rb +8 -12
- data/app/lib/actions/katello/repository_set/disable_repository.rb +6 -5
- data/app/lib/actions/katello/repository_set/enable_repository.rb +1 -1
- data/app/lib/actions/katello/repository_set/scan_cdn.rb +1 -1
- data/app/lib/actions/pulp/abstract_async_task.rb +1 -1
- data/app/lib/actions/pulp/consumer/unassociate_units.rb +20 -0
- data/app/lib/actions/pulp/repository/copy_files.rb +11 -0
- data/app/lib/actions/pulp/repository/create.rb +5 -1
- data/app/lib/actions/pulp/repository/presenters/file_presenter.rb +1 -1
- data/app/lib/actions/pulp/repository/refresh.rb +4 -2
- data/app/lib/actions/pulp/repository/remove_file.rb +15 -0
- data/app/lib/actions/pulp/repository/sync.rb +3 -1
- data/app/lib/actions/pulp/repository_group/export.rb +1 -1
- data/app/lib/katello/errors.rb +1 -1
- data/app/lib/katello/lazy_accessor.rb +1 -1
- data/app/lib/katello/resources/candlepin.rb +14 -0
- data/app/lib/katello/util/cdn_var_substitutor.rb +5 -2
- data/app/lib/katello/util/model.rb +1 -2
- data/app/lib/katello/util/package.rb +2 -2
- data/app/models/katello/activation_key.rb +0 -49
- data/app/models/katello/authorization/content_view_version.rb +7 -0
- data/app/models/katello/candlepin/content.rb +15 -3
- data/app/models/katello/concerns/container_extensions.rb +1 -2
- data/app/models/katello/concerns/content_facet_host_extensions.rb +11 -1
- data/app/models/katello/concerns/host_managed_extensions.rb +4 -13
- data/app/models/katello/concerns/hostgroup_extensions.rb +0 -2
- data/app/models/katello/concerns/medium_extensions.rb +2 -2
- data/app/models/katello/concerns/organization_extensions.rb +0 -5
- data/app/models/katello/concerns/pulp_database_unit.rb +5 -1
- data/app/models/katello/concerns/smart_proxy_extensions.rb +21 -1
- data/app/models/katello/concerns/subscription_facet_host_extensions.rb +1 -2
- data/app/models/katello/content_view.rb +12 -6
- data/app/models/katello/content_view_component.rb +0 -3
- data/app/models/katello/content_view_environment.rb +2 -2
- data/app/models/katello/content_view_package_filter_rule.rb +13 -0
- data/app/models/katello/content_view_puppet_environment.rb +2 -2
- data/app/models/katello/content_view_repository.rb +2 -1
- data/app/models/katello/content_view_version.rb +9 -2
- data/app/models/katello/erratum.rb +1 -5
- data/app/models/katello/file_unit.rb +41 -0
- data/app/models/katello/glue/candlepin/activation_key.rb +2 -2
- data/app/models/katello/glue/candlepin/pool.rb +19 -14
- data/app/models/katello/glue/pulp/repo.rb +44 -10
- data/app/models/katello/host/content_facet.rb +6 -6
- data/app/models/katello/host/subscription_facet.rb +6 -8
- data/app/models/katello/kt_environment.rb +3 -5
- data/app/models/katello/package_group.rb +1 -3
- data/app/models/katello/pool.rb +7 -2
- data/app/models/katello/pool_with_quantities.rb +12 -0
- data/app/models/katello/product.rb +6 -0
- data/app/models/katello/provider.rb +1 -1
- data/app/models/katello/puppet_module.rb +1 -2
- data/app/models/katello/repository.rb +7 -3
- data/app/models/katello/repository_file.rb +9 -0
- data/app/models/katello/rpm.rb +1 -1
- data/app/models/katello/subscription_status.rb +1 -1
- data/app/models/katello/sync_plan.rb +2 -1
- data/app/models/katello/task_status.rb +3 -36
- data/app/models/setting/content.rb +4 -1
- data/app/overrides/add_activation_keys_input.rb +2 -2
- data/app/presenters/katello/activation_key_subscriptions_presenter.rb +10 -0
- data/app/services/katello/candlepin/consumer.rb +5 -1
- data/app/services/katello/pulp/file_unit.rb +13 -0
- data/app/views/dashboard/_errata_widget.html.erb +1 -1
- data/app/views/dashboard/_subscription_widget.html.erb +30 -8
- data/app/views/foreman/job_templates/install_errata.erb +1 -1
- data/app/views/katello/api/v2/activation_keys/product_content.json.rabl +1 -0
- data/app/views/katello/api/v2/capsule_content/sync_status.json.rabl +2 -2
- data/app/views/katello/api/v2/content_facet/base.json.rabl +2 -4
- data/app/views/katello/api/v2/{systems → content_facet}/erratum.json.rabl +0 -0
- data/app/views/katello/api/v2/content_facet/show.json.rabl +1 -1
- data/app/views/katello/api/v2/content_view_versions/base.json.rabl +5 -4
- data/app/views/katello/api/v2/environments/show.json.rabl +1 -1
- data/app/views/katello/api/v2/file_units/base.json.rabl +7 -0
- data/app/views/katello/api/v2/{systems → file_units}/index.json.rabl +1 -1
- data/app/views/katello/api/v2/file_units/show.json.rabl +3 -0
- data/app/views/katello/api/v2/host_errata/index.json.rabl +1 -1
- data/app/views/katello/api/v2/host_errata/show.json.rabl +1 -1
- data/app/views/katello/api/v2/package_groups/base.json.rabl +1 -1
- data/app/views/katello/api/v2/ping/show.json.rabl +1 -1
- data/app/views/katello/api/v2/repositories/base.json.rabl +2 -1
- data/app/views/katello/api/v2/repositories/show.json.rabl +1 -1
- data/app/views/katello/api/v2/subscription_facet/base.json.rabl +1 -1
- data/app/views/katello/api/v2/subscription_facet/base_with_root.json.rabl +0 -4
- data/app/views/katello/api/v2/subscription_facet/show.json.rabl +1 -5
- data/app/views/katello/api/v2/subscriptions/base.json.rabl +3 -3
- data/app/views/katello/api/v2/subscriptions/index.json.rabl +1 -0
- data/app/views/katello/api/v2/tasks/task_status_show.json.rabl +0 -1
- data/app/views/katello/providers/redhat/show.html.erb +1 -1
- data/app/views/katello/sync_management/_products.html.erb +5 -1
- data/app/views/overrides/activation_keys/_host_environment_select.html.erb +1 -9
- data/app/views/overrides/activation_keys/_host_synced_content_select.html.erb +1 -0
- data/config/routes/api/v2.rb +9 -2
- data/config/routes/overrides.rb +9 -0
- data/db/migrate/20150930183738_migrate_content_hosts.rb +1 -1
- data/db/migrate/20160617124149_remove_duplicate_view_filters.rb +38 -0
- data/db/migrate/20160627125310_delete_system.rb +7 -0
- data/db/migrate/20160722193256_add_verify_ssl_on_sync_to_repository.rb +9 -0
- data/db/migrate/20160727144242_add_registered_through_to_katello_subscription_facets.rb +5 -0
- data/db/migrate/20160808002834_add_files.rb +30 -0
- data/db/migrate/20160906181923_add_puppet_path_to_smart_proxy.rb +5 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.module.js +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-associations.controller.js +7 -6
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-add-subscriptions.html +6 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-associations-content-hosts.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-details.html +101 -102
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-subscriptions-list.html +3 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/new/views/activation-key-new.html +82 -83
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/views/activation-keys.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/bastion-katello-bootstrap.js +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/capsule-content.module.js +3 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/capsules/capsules.module.js +4 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/common/common.module.js +2 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/common/views/registration.html +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-action-subscriptions.controller.js +46 -72
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-action.controller.js +1 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/bulk-actions-errata.html +5 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/bulk-actions-host-collections.html +5 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/bulk-actions-subscriptions.html +79 -33
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts.module.js +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js +10 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-errata.html +27 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-packages.html +57 -45
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-add-subscriptions.controller.js +5 -18
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-base-subscriptions.controller.js +2 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-details.controller.js +2 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-subscriptions.controller.js +3 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-add-subscriptions.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-details.html +117 -118
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-info.html +13 -8
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-subscriptions-list.html +5 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/content-hosts.html +5 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.module.js +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.routes.js +26 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion-content-hosts.controller.js +11 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion-environments.controller.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion.controller.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/views/content-view-deletion.html +3 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/views/version-deletion-content-hosts.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/views/version-deletion-environments.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-available-file-repositories.controller.js +47 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-details.controller.js +8 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-file-repositories-list.controller.js +45 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/errata-filter-details.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/filters.html +3 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/package-filter-details.html +6 -6
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/views/content-view-puppet-module-names.html +6 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/views/content-view-puppet-modules.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-composite-available-content-views.html +2 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-composite-content-views-list.html +2 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-details.html +151 -140
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-docker-repositories.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-file-repositories.html +118 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-ostree-repositories.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-repositories.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-versions.html +13 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/content-view-version-content.controller.js +8 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/content-view-versions.module.js +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-details.html +8 -6
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-file.html +22 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version.html +6 -16
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/views/content-views.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-manifests/docker-manifests.module.js +6 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/details/views/docker-tags-details.html +59 -61
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.module.js +3 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/views/docker-tags.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-content-views.html +5 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-docker.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-errata.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-ostree.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-packages.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-puppet-modules.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-repositories.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/environments.module.js +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/errata-content-hosts.controller.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/views/errata-details-content-hosts.html +6 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/views/errata-details-repositories.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/views/errata-details.html +44 -45
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/errata.module.js +2 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/views/errata.html +5 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/details/gpg-key-details-info.controller.js +11 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/details/gpg-key-details.controller.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/details/views/gpg-key-details.html +52 -48
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/details/views/gpg-key-info.html +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/details/views/gpg-key-products.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/details/views/gpg-key-repositories.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/gpg-keys.module.js +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/new/views/gpg-key-new.html +62 -63
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/views/gpg-keys.html +6 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/views/host-collection-add-hosts.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/views/host-collection-details.html +85 -86
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/views/host-collection-hosts-list.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.module.js +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/new/views/host-collection-new.html +16 -17
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/views/host-collections.html +5 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-bulk-action.factory.js +28 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host.factory.js +1 -27
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/hosts.module.js +3 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/organization.factory.js +0 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/organizations.module.js +4 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/details/ostree-branches-details-repositories.controller.js +60 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/details/ostree-branches-details.controller.js +31 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/details/views/ostree-branches-details-info.html +23 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/details/views/ostree-branches-details-repositories.html +83 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/details/views/ostree-branches-details.html +43 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/ostree-branches.controller.js +67 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/ostree-branches.module.js +5 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/ostree-branches.routes.js +53 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/views/ostree-branches-table-collapsed.html +19 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/views/ostree-branches-table-full.html +21 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/views/ostree-branches.html +19 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/package-groups/package-groups.module.js +7 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/package-details.controller.js +17 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/packages-details-info.html +10 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/packages-details-repositories.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/packages-details.html +51 -52
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/packages.module.js +3 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/views/packages.html +5 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/views/product-details.html +72 -73
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/views/product-repositories.html +19 -7
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/views/discovery-create.html +144 -145
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/new/views/product-new.html +17 -18
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/products.module.js +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/views/products.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/views/puppet-modules-details.html +44 -40
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/puppet-modules.module.js +7 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/views/puppet-modules.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/repository-details-info.controller.js +11 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/views/repository-info.html +343 -324
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/new/new-repository.controller.js +4 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/new/views/repository-new.html +10 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/repositories.module.js +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/settings/settings.module.js +2 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/views/subscription-associations-content-hosts.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/views/subscription-details.html +46 -47
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/manifest-import.controller.js +10 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/views/manifest-import.html +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/views/manifest.html +41 -42
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions-helper.service.js +15 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.module.js +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/views/subscriptions.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/views/sync-plan-details.html +54 -55
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.module.js +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/views/sync-plans.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/tasks.module.js +3 -1
- data/engines/bastion_katello/lib/bastion_katello/engine.rb +1 -0
- data/lib/katello/engine.rb +11 -1
- data/lib/katello/permissions/host_permissions.rb +13 -1
- data/lib/katello/plugin.rb +20 -1
- data/lib/katello/tasks/reimport.rake +1 -0
- data/lib/katello/tasks/test.rake +8 -0
- data/lib/katello/tasks/unify_hosts.rake +91 -0
- data/lib/katello/tasks/upgrade_check.rake +3 -2
- data/lib/katello/tasks/upgrades/3.0/update_subscription_facet_backend_data.rake +2 -4
- data/lib/katello/version.rb +1 -1
- data/lib/proxy_api/pulp.rb +7 -0
- data/lib/proxy_api/pulp_node.rb +7 -0
- metadata +79 -67
- data/app/assets/javascripts/katello/common/jquery.jeditable.custominputs.js +0 -180
- data/app/assets/javascripts/katello/widgets/jquery.jeditable.helpers.js +0 -247
- data/app/assets/stylesheets/katello/widgets/_scrollpane.scss +0 -66
- data/app/controllers/katello/api/v2/systems_controller.rb +0 -213
- data/app/helpers/katello/activation_keys_helper.rb +0 -4
- data/app/helpers/katello/host_collection_events_helper.rb +0 -7
- data/app/helpers/katello/katello_form_builder.rb +0 -150
- data/app/helpers/katello/packages_helper.rb +0 -67
- data/app/helpers/katello/subscriptions_helper.rb +0 -32
- data/app/helpers/katello/system_events_helper.rb +0 -4
- data/app/helpers/katello/system_packages_helper.rb +0 -42
- data/app/lib/actions/katello/repository/incremental_import.rb +0 -61
- data/app/lib/actions/katello/subscription/subscribe.rb +0 -26
- data/app/lib/actions/katello/system/destroy.rb +0 -17
- data/app/lib/actions/katello/system/reassign.rb +0 -14
- data/app/models/katello/authorization/system.rb +0 -53
- data/app/models/katello/glue/candlepin/consumer.rb +0 -386
- data/app/models/katello/glue/pulp/consumer.rb +0 -171
- data/app/models/katello/hypervisor.rb +0 -15
- data/app/models/katello/system.rb +0 -283
- data/app/models/katello/system_activation_key.rb +0 -8
- data/app/models/katello/system_repository.rb +0 -8
- data/app/presenters/katello/activation_key_subscription_presenter.rb +0 -10
- data/app/views/katello/api/v2/errata/_applicable_errata.json.rabl +0 -3
- data/app/views/katello/api/v2/subscriptions/create.json.rabl +0 -3
- data/app/views/katello/api/v2/systems/_pool.json.rabl +0 -6
- data/app/views/katello/api/v2/systems/activate.json.rabl +0 -3
- data/app/views/katello/api/v2/systems/add_host_collections.json.rabl +0 -3
- data/app/views/katello/api/v2/systems/available_host_collections.json.rabl +0 -5
- data/app/views/katello/api/v2/systems/base.json.rabl +0 -35
- data/app/views/katello/api/v2/systems/enabled_repos.json.rabl +0 -3
- data/app/views/katello/api/v2/systems/events.json.rabl +0 -3
- data/app/views/katello/api/v2/systems/package.json.rabl +0 -5
- data/app/views/katello/api/v2/systems/package_profile.json.rabl +0 -7
- data/app/views/katello/api/v2/systems/pools.json.rabl +0 -7
- data/app/views/katello/api/v2/systems/regenerate_identity_certificates.json.rabl +0 -3
- data/app/views/katello/api/v2/systems/remove_host_collections.json.rabl +0 -3
- data/app/views/katello/api/v2/systems/show.json.rabl +0 -64
- data/app/views/katello/api/v2/systems/subscriptions.json.rabl +0 -8
- data/app/views/katello/api/v2/systems/upload_package_profile.json.rabl +0 -3
- data/db/seeds.d/105-roles_permissions.rb +0 -71
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host.factory.js +0 -25
- data/lib/katello/permissions/content_host_permissions.rb +0 -30
- data/lib/katello/tasks/yard.rake +0 -9
- data/vendor/assets/stylesheets/katello/jquery.jscrollpane.css +0 -120
@@ -1,180 +0,0 @@
|
|
1
|
-
$(document).ready(function() {
|
2
|
-
|
3
|
-
// override textfield
|
4
|
-
$.editable.types.text.content = function(string, settings, original) {
|
5
|
-
$(':input:first', this).val($("<div/>").html(string).text());
|
6
|
-
};
|
7
|
-
|
8
|
-
// override textarea
|
9
|
-
$.editable.types.textarea.content = function(string, settings, original) {
|
10
|
-
$(':input:first', this).val($("<div/>").html(string).text());
|
11
|
-
};
|
12
|
-
|
13
|
-
// Create a custom input type for checkboxes
|
14
|
-
$.editable.addInputType("checkbox", {
|
15
|
-
element : function(settings, original) {
|
16
|
-
var input = $('<input type="checkbox">');
|
17
|
-
$(this).append(input);
|
18
|
-
|
19
|
-
// Update <input>'s value when clicked
|
20
|
-
$(input).click(function() {
|
21
|
-
//var value = $(input).attr("checked") ? katelloI18n.checkbox_yes : katelloI18n.checkbox_no;
|
22
|
-
var value = $(input).attr("checked") ? true : false;
|
23
|
-
$(input).val(value);
|
24
|
-
});
|
25
|
-
return(input);
|
26
|
-
},
|
27
|
-
content : function(string, settings, original) {
|
28
|
-
var checked = string.indexOf(katelloI18n.checkbox_yes)!== -1 ? 1 : 0;
|
29
|
-
var input = $(':input:first', this);
|
30
|
-
$(input).attr("checked", checked);
|
31
|
-
var value = $(input).attr("checked") ? katelloI18n.checkbox_yes : katelloI18n.checkbox_no;
|
32
|
-
//var value = $(input).attr("checked") ? true : false;
|
33
|
-
|
34
|
-
$(input).val(value);
|
35
|
-
}
|
36
|
-
});
|
37
|
-
|
38
|
-
$.editable.addInputType('number', {
|
39
|
-
element : function(settings, original){
|
40
|
-
var width = settings.width ? settings.width : '40',
|
41
|
-
input = jQuery('<input type="number" ' +
|
42
|
-
'min="' + settings.min + '"' +
|
43
|
-
'max="' + settings.max + '"' +
|
44
|
-
'value="' + settings.value +
|
45
|
-
'" style="width:' + width + 'px;">');
|
46
|
-
$(this).append(input);
|
47
|
-
if (settings.unlimited !== undefined) {
|
48
|
-
var label = jQuery(' <label><input type="checkbox" value=""/> ' + katelloI18n.unlimited + '</label>');
|
49
|
-
$(this).append(label);
|
50
|
-
var unlimited = label.find("input");
|
51
|
-
$(unlimited).bind('click', function(){
|
52
|
-
if($(unlimited).is(":checked")){
|
53
|
-
$(input).val('');
|
54
|
-
$(input).attr("disabled", true);
|
55
|
-
} else {
|
56
|
-
$(input).val('');
|
57
|
-
$(input).removeAttr('disabled');
|
58
|
-
}
|
59
|
-
});
|
60
|
-
}
|
61
|
-
$(original).css('background-image', 'none');
|
62
|
-
return(input);
|
63
|
-
},
|
64
|
-
|
65
|
-
content : function(string, settings, original) {
|
66
|
-
var text_input = $('input', this).first();
|
67
|
-
text_input.val(string);
|
68
|
-
if (settings.unlimited !== undefined) {
|
69
|
-
var check_input = $('input', this).last();
|
70
|
-
if (string === settings.unlimited || string === katelloI18n.unlimited) {
|
71
|
-
text_input.val('');
|
72
|
-
check_input.attr('checked', 'checked');
|
73
|
-
text_input.attr("disabled", true);
|
74
|
-
} else {
|
75
|
-
check_input.removeAttr('checked');
|
76
|
-
text_input.removeAttr('disabled');
|
77
|
-
}
|
78
|
-
}
|
79
|
-
},
|
80
|
-
|
81
|
-
submit : function(settings, original) {
|
82
|
-
if (settings.unlimited !== undefined) {
|
83
|
-
var text_input = $('input', this).first();
|
84
|
-
if (text_input.val() === '') {
|
85
|
-
text_input.val(settings.unlimited);
|
86
|
-
}
|
87
|
-
}
|
88
|
-
}
|
89
|
-
});
|
90
|
-
|
91
|
-
$.editable.addInputType("multiselect", {
|
92
|
-
element: function (settings, original) {
|
93
|
-
var select = $('<select multiple="multiple" />');
|
94
|
-
|
95
|
-
if (settings.width !== 'none') { select.width(settings.width); }
|
96
|
-
if (settings.size) { select.attr('size', settings.size); }
|
97
|
-
|
98
|
-
$(this).append(select);
|
99
|
-
return (select);
|
100
|
-
},
|
101
|
-
content: function (data, settings, original) {
|
102
|
-
var json;
|
103
|
-
|
104
|
-
/* If it is string assume it is json. */
|
105
|
-
if (data instanceof String) {
|
106
|
-
json = JSON.parse(data);
|
107
|
-
} else {
|
108
|
-
/* Otherwise assume it is a hash already. */
|
109
|
-
json = data;
|
110
|
-
}
|
111
|
-
for (var key in json) {
|
112
|
-
if (json.hasOwnProperty(key) && 'selected' !== key) {
|
113
|
-
var option = $('<option />').val(key).append(json[key]);
|
114
|
-
$('select', this).append(option);
|
115
|
-
}
|
116
|
-
}
|
117
|
-
|
118
|
-
if ($(this).val() === json['selected'] ||
|
119
|
-
$(this).html() === $.trim(original.revert)) {
|
120
|
-
$(this).attr('selected', 'selected');
|
121
|
-
}
|
122
|
-
|
123
|
-
/* Loop option again to set selected. IE needed this... */
|
124
|
-
$('select', this).children().each(function () {
|
125
|
-
if (json.selected) {
|
126
|
-
var option = $(this);
|
127
|
-
$.each(json.selected, function (index, value) {
|
128
|
-
if (option.val() === value) {
|
129
|
-
option.attr('selected', 'selected');
|
130
|
-
}
|
131
|
-
});
|
132
|
-
} else {
|
133
|
-
if (original.revert.indexOf($(this).html()) !== -1) {
|
134
|
-
$(this).attr('selected', 'selected');
|
135
|
-
}
|
136
|
-
}
|
137
|
-
});
|
138
|
-
}
|
139
|
-
});
|
140
|
-
|
141
|
-
$.editable.addInputType( 'datepicker', {
|
142
|
-
/* create input element */
|
143
|
-
element: function( settings, original ) {
|
144
|
-
var form = $( this ), input = $( '<input data-change="false"/>' );
|
145
|
-
if (settings.width !== 'none') { input.width(settings.width); }
|
146
|
-
if (settings.height !== 'none') { input.height(settings.height); }
|
147
|
-
input.attr( 'autocomplete','off' );
|
148
|
-
form.append( input );
|
149
|
-
return input;
|
150
|
-
},
|
151
|
-
|
152
|
-
content : function(string, settings, original) {
|
153
|
-
$(':input:first', this).val($.trim(string));
|
154
|
-
},
|
155
|
-
|
156
|
-
/* attach jquery.ui.datepicker to the input element */
|
157
|
-
plugin: function( settings, original ) {
|
158
|
-
var form = this, input = form.find( "input" );
|
159
|
-
settings.onblur = 'nothing';
|
160
|
-
|
161
|
-
datepicker = {
|
162
|
-
// keep track of date selection state
|
163
|
-
onSelect: function() {
|
164
|
-
input.attr('data-change', 'true');
|
165
|
-
},
|
166
|
-
// reset form if we lose focus and date was not selected
|
167
|
-
onClose: function() {
|
168
|
-
if ($(this).attr('data-change') === 'false') {
|
169
|
-
original.reset( form );
|
170
|
-
}
|
171
|
-
}
|
172
|
-
};
|
173
|
-
input.datepicker(datepicker).keyup(function(e) {
|
174
|
-
if (e.keyCode === 8 || e.keyCode === 46) {
|
175
|
-
$.datepicker._clearDate(this);
|
176
|
-
}
|
177
|
-
});
|
178
|
-
}
|
179
|
-
});
|
180
|
-
});
|
@@ -1,247 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Helper functions that may be included and used from pages using
|
3
|
-
* inline editing via jeditable.
|
4
|
-
*/
|
5
|
-
|
6
|
-
$(document).ready(function() {
|
7
|
-
|
8
|
-
KT.editable = (function(){
|
9
|
-
var common_settings = {
|
10
|
-
method : 'PUT',
|
11
|
-
cancel : katelloI18n.cancel,
|
12
|
-
submit : katelloI18n.save,
|
13
|
-
indicator : katelloI18n.saving,
|
14
|
-
tooltip : katelloI18n.clickToEdit,
|
15
|
-
placeholder : katelloI18n.clickToEdit,
|
16
|
-
submitdata : $.extend({ authenticity_token: AUTH_TOKEN }, KT.common.getSearchParams()),
|
17
|
-
onerror : function(settings, original, xhr) {
|
18
|
-
original.reset();
|
19
|
-
$("#notification").replaceWith(xhr.responseText);
|
20
|
-
}
|
21
|
-
};
|
22
|
-
|
23
|
-
var initialize = function() {
|
24
|
-
initialize_panel_element();
|
25
|
-
initialize_ajaxfileupload();
|
26
|
-
initialize_textfield();
|
27
|
-
initialize_textarea();
|
28
|
-
initialize_multiselect();
|
29
|
-
initialize_select();
|
30
|
-
initialize_number();
|
31
|
-
initialize_datepicker();
|
32
|
-
initialize_timepicker();
|
33
|
-
};
|
34
|
-
|
35
|
-
var initialize_panel_element = function() {
|
36
|
-
$('.edit_panel_element').each(function() {
|
37
|
-
$(this).editable('destroy');
|
38
|
-
var settings = {
|
39
|
-
type : 'text',
|
40
|
-
data : null,
|
41
|
-
width : 270,
|
42
|
-
name : $(this).attr('name'),
|
43
|
-
onsuccess : function(result, status, xhr) {
|
44
|
-
var id = $('#panel_element_id');
|
45
|
-
KT.panel.list.refresh(id.attr('value'), id.attr('data-ajax_url'));
|
46
|
-
}
|
47
|
-
};
|
48
|
-
$(this).editable($(this).attr('data-url'), $.extend(common_settings, settings));
|
49
|
-
});
|
50
|
-
};
|
51
|
-
|
52
|
-
var initialize_ajaxfileupload = function() {
|
53
|
-
$('.ajaxfileupload').each(function() {
|
54
|
-
$(this).editable('destroy');
|
55
|
-
$(this).editable($(this).attr('url'), {
|
56
|
-
type : 'ajaxupload',
|
57
|
-
data : null,
|
58
|
-
method : 'PUT',
|
59
|
-
name : $(this).attr('name'),
|
60
|
-
cancel : katelloI18n.cancel,
|
61
|
-
submit : katelloI18n.upload,
|
62
|
-
indicator : katelloI18n.uploading,
|
63
|
-
tooltip : katelloI18n.clickToEdit,
|
64
|
-
placeholder : katelloI18n.clickToEdit,
|
65
|
-
submitdata : {authenticity_token: AUTH_TOKEN},
|
66
|
-
onerror : function(settings, original, xhr) {
|
67
|
-
original.reset();
|
68
|
-
$("#notification").replaceWith(xhr.responseText);
|
69
|
-
}
|
70
|
-
});
|
71
|
-
});
|
72
|
-
};
|
73
|
-
|
74
|
-
var initialize_textfield = function() {
|
75
|
-
$('.edit_textfield').each(function() {
|
76
|
-
var element = $(this);
|
77
|
-
$(this).editable('destroy');
|
78
|
-
var settings = {
|
79
|
-
type : 'text',
|
80
|
-
data : null,
|
81
|
-
width : 270,
|
82
|
-
name : $(this).attr('name'),
|
83
|
-
onsuccess : function(result, status, xhr) {
|
84
|
-
element.text(KT.utils.unescape(result)); // hax
|
85
|
-
},
|
86
|
-
onerror : function(settings, original, xhr) {
|
87
|
-
original.reset();
|
88
|
-
}
|
89
|
-
};
|
90
|
-
$(this).editable($(this).attr('data-url'), $.extend(common_settings, settings));
|
91
|
-
});
|
92
|
-
};
|
93
|
-
|
94
|
-
var initialize_textarea = function() {
|
95
|
-
$('.edit_textarea').each(function() {
|
96
|
-
$(this).editable('destroy');
|
97
|
-
var element = $(this);
|
98
|
-
var settings = {
|
99
|
-
type : 'textarea',
|
100
|
-
data : null,
|
101
|
-
name : element.attr('name'),
|
102
|
-
rows : 8,
|
103
|
-
cols : 36,
|
104
|
-
maxlength : element.data('maxlength'),
|
105
|
-
onsuccess : function(result, status, xhr) {
|
106
|
-
element.text(KT.utils.unescape(result)); // hax
|
107
|
-
},
|
108
|
-
onerror : function(settings, original, xhr) {
|
109
|
-
original.reset();
|
110
|
-
}
|
111
|
-
};
|
112
|
-
$(this).editable($(this).attr('data-url'), $.extend(common_settings, settings));
|
113
|
-
});
|
114
|
-
};
|
115
|
-
|
116
|
-
var initialize_select = function() {
|
117
|
-
$('.edit_select').each(function(){
|
118
|
-
$(this).editable('destroy');
|
119
|
-
var element = $(this);
|
120
|
-
var settings = {
|
121
|
-
type : 'select',
|
122
|
-
name : element.attr('name'),
|
123
|
-
data : jQuery.proxy(function() { return $(this).data("options"); }, this),
|
124
|
-
onsuccess : function(result, status, xhr){
|
125
|
-
var data = element.data('options');
|
126
|
-
|
127
|
-
data["selected"] = result;
|
128
|
-
element.html(data[result]);
|
129
|
-
}
|
130
|
-
};
|
131
|
-
$(this).editable($(this).attr('data-url'), $.extend(common_settings, settings));
|
132
|
-
});
|
133
|
-
};
|
134
|
-
|
135
|
-
var initialize_multiselect = function() {
|
136
|
-
$('.edit_multiselect').each(function() {
|
137
|
-
$(this).editable('destroy');
|
138
|
-
var element = $(this);
|
139
|
-
var settings = {
|
140
|
-
type : 'multiselect',
|
141
|
-
name : element.attr('name'),
|
142
|
-
data : jQuery.proxy(function() { return $(this).data("options"); }, this)
|
143
|
-
};
|
144
|
-
$(this).editable($(this).attr('data-url'), $.extend(common_settings, settings));
|
145
|
-
});
|
146
|
-
};
|
147
|
-
|
148
|
-
var initialize_number = function() {
|
149
|
-
$('.edit_number').each(function() {
|
150
|
-
$(this).editable('destroy');
|
151
|
-
var element = $(this);
|
152
|
-
var settings = {
|
153
|
-
method : 'POST',
|
154
|
-
type : 'number',
|
155
|
-
data : null,
|
156
|
-
value : $.trim($(this).html()),
|
157
|
-
height : 10,
|
158
|
-
width : 35,
|
159
|
-
onblur : 'ignore',
|
160
|
-
name : $(this).attr('name'),
|
161
|
-
min : $(this).data('min'),
|
162
|
-
max : $(this).data('max'),
|
163
|
-
unlimited : $(this).data('unlimited'),
|
164
|
-
image : $(this).css('background-image'),
|
165
|
-
submitdata : {authenticity_token: AUTH_TOKEN},
|
166
|
-
onsuccess : function(result, status, xhr){
|
167
|
-
element.css('background-image', settings.image);
|
168
|
-
if ($(this).data('unlimited') !== undefined) {
|
169
|
-
if (parseInt(result,10) === $(this).data('unlimited')) {
|
170
|
-
element.html(katelloI18n.unlimited);
|
171
|
-
} else {
|
172
|
-
element.html(result);
|
173
|
-
}
|
174
|
-
} else {
|
175
|
-
element.html(result);
|
176
|
-
}
|
177
|
-
},
|
178
|
-
onresetcomplete : function(settings, original){
|
179
|
-
element.css('background-image', settings.image);
|
180
|
-
}
|
181
|
-
};
|
182
|
-
element.editable(element.attr('data-url'), $.extend(common_settings, settings));
|
183
|
-
});
|
184
|
-
};
|
185
|
-
|
186
|
-
var initialize_datepicker = function() {
|
187
|
-
$('.edit_datepicker').each(function() {
|
188
|
-
$(this).editable('destroy');
|
189
|
-
var settings = {
|
190
|
-
type : 'datepicker',
|
191
|
-
data : null,
|
192
|
-
width : 100,
|
193
|
-
name : $(this).attr('name')
|
194
|
-
};
|
195
|
-
$(this).editable($(this).attr('data-url'), $.extend(common_settings, settings));
|
196
|
-
});
|
197
|
-
};
|
198
|
-
|
199
|
-
var initialize_timepicker = function() {
|
200
|
-
$('.edit_timepicker').each(function() {
|
201
|
-
$(this).editable('destroy');
|
202
|
-
$(this).editable($(this).attr('data-url'), {
|
203
|
-
type : 'timepicker',
|
204
|
-
data : null,
|
205
|
-
width : 300,
|
206
|
-
method : 'PUT',
|
207
|
-
name : $(this).attr('name'),
|
208
|
-
cancel : katelloI18n.cancel,
|
209
|
-
submit : katelloI18n.save,
|
210
|
-
indicator : katelloI18n.saving,
|
211
|
-
tooltip : katelloI18n.clickToEdit,
|
212
|
-
placeholder : katelloI18n.clickToEdit,
|
213
|
-
submitdata : $.extend({ authenticity_token: AUTH_TOKEN }, KT.common.getSearchParams()),
|
214
|
-
onsuccess : function(result, status, xhr) {
|
215
|
-
var plan_time = $("#plan_time").text();
|
216
|
-
var current_plan = $("#current_plan").text();
|
217
|
-
if (plan_time !== current_plan) {
|
218
|
-
$("#current_plan").text(plan_time);
|
219
|
-
}
|
220
|
-
var id = $('#plan_id');
|
221
|
-
list.refresh(id.attr('value'), id.attr('data-ajax_url'));
|
222
|
-
},
|
223
|
-
onerror : function(settings, original, xhr) {
|
224
|
-
original.reset();
|
225
|
-
$("#notification").replaceWith(xhr.responseText);
|
226
|
-
}
|
227
|
-
});
|
228
|
-
});
|
229
|
-
};
|
230
|
-
|
231
|
-
initialize();
|
232
|
-
|
233
|
-
return {
|
234
|
-
initialize : initialize,
|
235
|
-
initialize_panel_element : initialize_panel_element,
|
236
|
-
initialize_ajaxfileupload : initialize_ajaxfileupload,
|
237
|
-
initialize_textfield : initialize_textfield,
|
238
|
-
initialize_textarea : initialize_textarea,
|
239
|
-
initialize_select : initialize_select,
|
240
|
-
initialize_multiselect : initialize_multiselect,
|
241
|
-
initialize_number : initialize_number,
|
242
|
-
initialize_datepicker : initialize_datepicker,
|
243
|
-
initialize_timepicker : initialize_timepicker
|
244
|
-
};
|
245
|
-
}());
|
246
|
-
});
|
247
|
-
|
@@ -1,66 +0,0 @@
|
|
1
|
-
@import "katello/katello_base";
|
2
|
-
|
3
|
-
|
4
|
-
.jspContainer {
|
5
|
-
.jspHorizontalBar, .jspVerticalBar, .jspTrack {
|
6
|
-
background: transparent !important;
|
7
|
-
}
|
8
|
-
|
9
|
-
.jspDrag {
|
10
|
-
background: $kselected_color !important;
|
11
|
-
border-radius: 10px;
|
12
|
-
opacity: 0.3;
|
13
|
-
}
|
14
|
-
|
15
|
-
|
16
|
-
.jspTrack {
|
17
|
-
.jspActive, .jspHover, .jspDrag:hover {
|
18
|
-
background: $jScrollPane-bar_color;
|
19
|
-
opacity: 0.3;
|
20
|
-
}
|
21
|
-
}
|
22
|
-
|
23
|
-
.jspArrow
|
24
|
-
{
|
25
|
-
background: url(../image/ui-icons_222222_256x240.png) no-repeat;
|
26
|
-
|
27
|
-
-moz-border-radius: 10px;
|
28
|
-
-webkit-border-radius: 10px;
|
29
|
-
border-radius: 10px;
|
30
|
-
|
31
|
-
&:hover { background-image: url('../image/ui-icons_cd0a0a_256x240.png'); }
|
32
|
-
}
|
33
|
-
|
34
|
-
.jspVerticalBar {
|
35
|
-
&, .jspDrag, .jspTrack{
|
36
|
-
width: 10px;
|
37
|
-
}
|
38
|
-
.jspActive {
|
39
|
-
background-image: url('../image/ui-icons_cd0a0a_256x240.png');
|
40
|
-
}
|
41
|
-
.jspDisabled, .jspDisabled:hover {
|
42
|
-
background-color: transparent;
|
43
|
-
background-image: url('../image/ui-icons_888888_256x240.png');
|
44
|
-
}
|
45
|
-
.jspArrow { height: 15px; }
|
46
|
-
}
|
47
|
-
|
48
|
-
.jspHorizontalBar {
|
49
|
-
height: auto;
|
50
|
-
|
51
|
-
.jspDisabled, .jspDisabled:hover {
|
52
|
-
background-color: transparent;
|
53
|
-
background-image: url('../image/ui-icons_888888_256x240.png');
|
54
|
-
}
|
55
|
-
.jspArrow { width: 15px; }
|
56
|
-
.jspDrag {
|
57
|
-
height: 10px;
|
58
|
-
}
|
59
|
-
.jspCorner { display: none; }
|
60
|
-
}
|
61
|
-
|
62
|
-
.jspArrowUp { background-position: 0 0; }
|
63
|
-
.jspArrowDown { background-position: -64px 0 !important; }
|
64
|
-
.jspArrowLeft { background-position: -96px 0 !important; }
|
65
|
-
.jspArrowRight{ background-position: -32px 0 !important; }
|
66
|
-
}
|