doctype html
html
head
- if CmAdmin.config.enable_tracking
/ Google Tag Manager
script
| (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
| new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
| j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
| 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
| })(window,document,'script','dataLayer','GTM-N6898ZX9');
/ End Google Tag Manager
script
| window.dataLayer = window.dataLayer || [];
| dataLayer.push({
| 'projectName': "#{project_name_with_env}"
| });
title
= project_name_with_env
meta[name="viewport" content="width=device-width,initial-scale=1"]
= csrf_meta_tags
= csp_meta_tag
= stylesheet_link_tag 'cm_admin/cm_admin', media: 'all', 'data-turbolinks-track': 'reload'
- if CmAdmin::VersionManager.use_webpacker?
= stylesheet_pack_tag 'cm_admin/application', 'data-turbolinks-track': 'reload'
= javascript_pack_tag 'cm_admin/application', 'data-turbolinks-track': 'reload'
script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"
- elsif CmAdmin::VersionManager.use_importmap?
= javascript_importmap_tags
= javascript_import_module_tag "cm_admin/application"
= javascript_include_tag 'cm_admin/custom', 'data-turbolinks-track': 'reload'
= stylesheet_link_tag 'cm_admin/custom', media: 'all', 'data-turbolinks-track': 'reload'
link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet" /
script src="https://raw.githack.com/SortableJS/Sortable/master/Sortable.js"
link[rel="stylesheet" href="https://cdn.jsdelivr.net/npm/select2-bootstrap-5-theme@1.3.0/dist/select2-bootstrap-5-theme.min.css"]
link[rel="stylesheet" href="https://cdn.jsdelivr.net/npm/select2-bootstrap-5-theme@1.3.0/dist/select2-bootstrap-5-theme.rtl.min.css"]
body
- if CmAdmin.config.enable_tracking
/ Google Tag Manager (noscript)
noscript
iframe src="https://www.googletagmanager.com/ns.html?id=GTM-N6898ZX9" height="0" width="0" style="display:none;visibility:hidden"
/ End Google Tag Manager (noscript)
.cm-admin
= render 'layouts/left_sidebar_nav'
.panel-area
- if defined?(@action) && (@action&.layout_type.to_s == 'cm_association_show' || @action.parent == "show")
.show-page
.show-page__header.page-top-bar
== render 'cm_admin/main/top_navbar'
== render 'cm_admin/main/tabs', via_xhr: false
.show-page__inner
= yield
- elsif defined?(@action) && (@action&.layout_type.to_s == 'cm_association_index' || @action.parent == "index")
.show-page
.show-page__header.page-top-bar
== render 'cm_admin/main/top_navbar'
- if @ar_object.model_name
== render 'cm_admin/main/tabs', via_xhr: false
- if @associated_model && @associated_model.filters.present?
.filters-bar
== render partial: 'cm_admin/main/filters', locals: { filters: @associated_model.filters }
= yield
- else
= yield
= render 'layouts/cm_flash_message'
- unless (@current_action&.view_type == :kanban || params[:view_type] == 'kanban')
= render 'layouts/custom_action_modals'