templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <title>{% block title %}{% endblock %}Verticals CRM - Deveo</title>
  6.         <link rel="icon" type="image/x-icon" href="{{ asset('images/favicon.ico') }}">
  7.         
  8.         {% block stylesheets %}
  9.             {{ encore_entry_link_tags('app') }}
  10.         {% endblock %}
  11.         {% block javascripts %}
  12.             {{ encore_entry_script_tags('app') }}
  13.             <script src="{{ asset('bundles/fosjsrouting/js/router.js') }}"></script>
  14.             <script src="{{ path('fos_js_routing_js', { callback: 'fos.Router.setData' }) }}"></script>
  15.         {% endblock %}
  16.     </head>
  17.     <body>
  18.         <div id="header">
  19.             <div class="row">
  20.                 <div class="col-5">
  21.                     <div class="p-2">
  22.                         <div id="logo"></div>
  23.                     </div>
  24.                 </div>
  25.                 <div class="col-2 pt-3" id="verticals-text-logo">
  26.                     Verticals
  27.                 </div>
  28.                 <div class="col-5 text-end">
  29.                     {% if is_granted('IS_AUTHENTICATED_FULLY') %}
  30.                         <div class="float-end p-3">
  31.                             <div class="float-start" style="padding-right: 1em;">
  32.                                 <span style="margin-right: 6px;">{{ app.user.firstname }}</span>
  33.                                 <i class="fa fa-user-circle-o fa-lg text-primary" aria-hidden="true"></i>
  34.                             </div>
  35.                             <div class="float-start" style="color: rgba(0, 0, 0, 0.2); padding-right: 1em;">
  36.                                 |
  37.                             </div>
  38.                             <div class="float-start">
  39.                                 <a href="{{ path('logout') }}" class="text-secondary">
  40.                                     <span style="margin-right: 6px;">Sign Out</span>
  41.                                     <i class="fa fa-sign-out fa-lg" aria-hidden="true"></i>
  42.                                 </a>
  43.                             </div>
  44.                         </div>
  45.                     {% endif %}
  46.                 </div>
  47.             </div>
  48.         </div>
  49.         <div class="row">
  50.             <div class="col-2">
  51.                 <div class="wrapper">
  52.                     <nav id="sidebar" class="p-2">
  53.                         <ul class="list-unstyled components">
  54.                             {% if is_granted('ROLE_PM') or is_granted('ROLE_EDM') or is_granted('ROLE_EPA') %}
  55.                                 <li>
  56.                                     <div class="module-title">
  57.                                         <i class="fa fa-users" aria-hidden="true"></i> 
  58.                                         Contact
  59.                                     </div>
  60.                                     <ul class="list-unstyled menu-module">
  61.                                         {% if (
  62.                                             is_granted('ROLE_EDM') 
  63.                                             or is_granted('ROLE_EPA')
  64.                                             ) and is_granted('ROLE_ADMIN') == false
  65.                                         %}
  66.                                             <li>
  67.                                                 <a href="{{ path('homepage') }}" title="Homepage">Homepage</a>
  68.                                             </li>
  69.                                         {% endif %}
  70.                                         {% if is_granted('ROLE_PM') or is_granted('ROLE_EDM') or is_granted('ROLE_EPA') %}
  71.                                             <li>
  72.                                                 <a href="{{ path('contact_management_contact_management_index') }}" title="Contact Management">
  73.                                                     Contact Management
  74.                                                 </a>
  75.                                             </li>
  76.                                         {% endif %}
  77.                                         <li>
  78.                                             <a title="Contact Search" onclick="javascript:window.open('{{ path('contact_management_contact_search_form') }}', '', 'width=960, height=700, menubar=no, status=yes, scrollbars=yes, resizable=yes');" href="javascript:void(0);">Contact Search</a>
  79.                                         </li>
  80.                                         {% if is_granted('ROLE_ADMIN') %}
  81.                                             <li>
  82.                                                 <a href="{{ path('contact_management_contact_import') }}" title="Contact Import">Contact Import</a>
  83.                                             </li>
  84.                                             <li>
  85.                                                 <a href="{{ path('contact_management_bounces_import') }}" title="Bounces Import">Bounces Import</a>
  86.                                             </li>
  87.                                             <li>
  88.                                                 <a href="{{ path('contact_management_bulk_delete') }}" title="Bulk Delete">Bulk Delete</a>
  89.                                             </li>
  90.                                             <li>
  91.                                                 <a href="{{ path('contact_management_contact_trash') }}" title="Contact Trash">Contact Trash</a>
  92.                                             </li>
  93.                                             <li>
  94.                                                 <a href="{{ path('administration_csp_trash') }}" title="Company Trash">Company Trash</a>
  95.                                             </li>
  96.                                         {% endif %}
  97.                                     </ul>
  98.                                 </li>
  99.                             {% endif %}
  100.                             {% if
  101.                                 is_granted('ROLE_PM')
  102.                                 or is_granted('ROLE_USER')
  103.                                 or is_granted('ROLE_CUSTOMER')
  104.                                 or is_granted('ROLE_EDM')
  105.                                 or is_granted('ROLE_EPA')
  106.                             %}
  107.                                 <li>
  108.                                     <div class="module-title">
  109.                                         <i class="fa fa-bullhorn" aria-hidden="true"></i> Campaign
  110.                                     </div>
  111.                                     <ul class="list-unstyled menu-module">
  112.                                         {% if is_granted('ROLE_PM') %}
  113.                                             <li>
  114.                                                 <a href="{{ path('campaign_campaign_management_index') }}" title="Campaign Management">
  115.                                                     Campaign Management
  116.                                                 </a>
  117.                                             </li>
  118.                                         {% endif %}
  119.                                         <li>
  120.                                             <a href="{{ path('campaign_my_campaigns_index') }}" title="My Campaigns">
  121.                                                 My Campaigns
  122.                                             </a>
  123.                                         </li>
  124.                                         {% if is_granted('ROLE_USER') and is_granted('ROLE_ADMIN') == false %}
  125.                                             <li>
  126.                                                 <a href="{{ path('campaign_calls_of_the_day') }}" title="Calls of the day">
  127.                                                     Calls of the day
  128.                                                 </a>
  129.                                             </li>
  130.                                         {% endif %}
  131.                                     </ul>
  132.                                 </li>
  133.                             {% endif %}
  134.                             {% if
  135.                                 is_granted('ROLE_PM')
  136.                                 or is_granted('ROLE_EX_UPDATE')
  137.                                 or is_granted('ROLE_EDM')
  138.                                 or is_granted('ROLE_EPA')
  139.                             %}
  140.                                 <li>
  141.                                     <div class="module-title">
  142.                                         <i class="fa fa-cogs" aria-hidden="true"></i> Administration
  143.                                     </div>
  144.                                     <ul class="list-unstyled menu-module">
  145.                                         {% if is_granted('ROLE_PM') %}
  146.                                             <li>
  147.                                                 <a href="{{ path('administration_user_management_index') }}" title="User Management">
  148.                                                     User Management
  149.                                                 </a>
  150.                                             </li>
  151.                                         {% endif %}
  152.                                         {% if
  153.                                             is_granted('ROLE_EX_UPDATE')
  154.                                             or is_granted('ROLE_PM')
  155.                                             or is_granted('ROLE_EDM')
  156.                                             or is_granted('ROLE_EPA')
  157.                                         %}
  158.                                             <li>
  159.                                                 <a href="{{ path('administration_csp_management_index') }}" title="Company Management">
  160.                                                     Company Management
  161.                                                 </a>
  162.                                             </li>
  163.                                         {% endif %}
  164.                                         {% if is_granted('ROLE_ADMIN') %}
  165.                                             <li>
  166.                                                 <a href="{{ path('administration_csptype_management_index') }}" title="Industry Management">
  167.                                                     Industry Management
  168.                                                 </a>
  169.                                             </li>
  170.                                             <li>
  171.                                                 <a href="{{ path('administration_company_type_management_index') }}" title="Company type Management">
  172.                                                     Company type Management
  173.                                                 </a>
  174.                                             </li>
  175.                                         {% endif %}
  176.                                         {% if is_granted('ROLE_PM') %}
  177.                                             <li>
  178.                                                 <a href="{{ path('administration_customer_management_index') }}" title="Customer Management">
  179.                                                     Customer Management
  180.                                                 </a>
  181.                                             </li>
  182.                                         {% endif %}
  183.                                         {% if
  184.                                             is_granted('ROLE_EX_UPDATE')
  185.                                             or is_granted('ROLE_PM')
  186.                                             or is_granted('ROLE_EDM')
  187.                                             or is_granted('ROLE_EPA')
  188.                                         %}
  189.                                             <li>
  190.                                                 <a href="{{ path('administration_conference_management_index') }}" title="Conference Management">
  191.                                                     Conference Management
  192.                                                 </a>
  193.                                             </li>
  194.                                         {% endif %}
  195.                                         {% if is_granted('ROLE_EPA') %}
  196.                                             <li>
  197.                                                 <a href="{{ path('administration_source_management_index') }}" title="Source Management">
  198.                                                     Source Management
  199.                                                 </a>
  200.                                             </li>
  201.                                         {% endif %}
  202.                                         {% if is_granted('ROLE_ADMIN') %}
  203.                                             <li>
  204.                                                 <a href="{{ path('administration_campaigntype_management_index') }}" title="Campaign Type Management">
  205.                                                     Campaign Type Management
  206.                                                 </a>
  207.                                             </li>
  208.                                         {% endif %}
  209.                                     </ul>
  210.                                 </li>
  211.                             {% endif %}
  212.                             {% if 
  213.                                 is_granted('ROLE_PM') 
  214.                                 or is_granted('ROLE_USER') 
  215.                                 or is_granted('ROLE_CUSTOMER') 
  216.                                 or is_granted('ROLE_SALES') 
  217.                                 or is_granted('ROLE_EPA')
  218.                             %}
  219.                                 <li>
  220.                                     <div class="module-title">
  221.                                         <i class="fa fa-bar-chart" aria-hidden="true"></i> Statistics
  222.                                     </div>
  223.                                     <ul class="list-unstyled menu-module">
  224.                                         {% if is_granted('ROLE_PM') or is_granted('ROLE_USER') or is_granted('ROLE_CUSTOMER') %}
  225.                                             <li>
  226.                                                 <a href="{{ path('statistics_reporting_index') }}" title="Reporting">
  227.                                                     Reporting
  228.                                                 </a>
  229.                                             </li>
  230.                                         {% endif %}
  231.                                         {% if is_granted('ROLE_PM') or is_granted('ROLE_USER') or is_granted('ROLE_EPA') %}
  232.                                             <li>
  233.                                                 <a href="{{ path('statistics_by_time_unit') }}" title="By time unit">
  234.                                                     By time unit
  235.                                                 </a>
  236.                                             </li>
  237.                                         {% endif %}
  238.                                         {% if is_granted('ROLE_PM') or is_granted('ROLE_SALES') %}
  239.                                             <li>
  240.                                                 <a href="{{ path('statistics_breakdown') }}" title="Breakdown">
  241.                                                     Breakdown
  242.                                                 </a>
  243.                                             </li>
  244.                                         {% endif %}
  245.                                         {% if is_granted('ROLE_PM') or is_granted('ROLE_USER') or is_granted('ROLE_EPA') %}
  246.                                             <li>
  247.                                                 <a href="{{ path('statistics_editing_records') }}" title="CRM Editing Records">
  248.                                                     CRM Editing Records
  249.                                                 </a>
  250.                                             </li>
  251.                                         {% endif %}
  252.                                     </ul>
  253.                                 </li>
  254.                             {% endif %}
  255.                             {% if 
  256.                                 is_granted('ROLE_PM')
  257.                                 or is_granted('ROLE_UPDATE')
  258.                                 or is_granted('ROLE_EX_UPDATE')
  259.                                 or is_granted('ROLE_EDM')
  260.                                 or is_granted('ROLE_EPA')
  261.                             %}
  262.                                 <li>
  263.                                     <div class="module-title">
  264.                                         <i class="fa fa-undo" aria-hidden="true"></i> Update Management
  265.                                     </div>
  266.                                     <ul class="list-unstyled menu-module">
  267.                                         {% if is_granted('ROLE_PM') or is_granted('ROLE_UPDATE') or is_granted('ROLE_EDM') or is_granted('ROLE_EPA') %}
  268.                                             <li>
  269.                                                 <a href="{{ path('updates_duplicates') }}" title="Duplicates - Same Name &amp; Company">
  270.                                                     Duplicates - Same Name &amp; Company
  271.                                                 </a>
  272.                                             </li>
  273.                                             <li>
  274.                                                 <a href="{{ path('updates_email_duplicates') }}" title="Email Address Duplicates">
  275.                                                     Email Address Duplicates
  276.                                                 </a>
  277.                                             </li>
  278.                                         {% endif %}
  279.                                         {% if is_granted('ROLE_PM') or is_granted('ROLE_UPDATE') or is_granted('ROLE_EDM')  or is_granted('ROLE_EPA') %}
  280.                                             <li>
  281.                                                 <a href="{{ path('updates_incomplete_contact_search') }}" title="Incomplete contact search">
  282.                                                     Incomplete contact search
  283.                                                 </a>
  284.                                             </li>
  285.                                         {% endif %}
  286.                                     </ul>
  287.                                 </li>
  288.                             {% endif %}
  289.                         </ul>
  290.                     </nav>
  291.                 </div>
  292.             </div>
  293.             {% include 'modals.html.twig' %}
  294.             
  295.             <div class="col-10">
  296.                 <div id="content">
  297.                     {% for label, messages in app.flashes %}
  298.                         {% for message in messages %}
  299.                             <div class="flash-message flash-{{ label }}">
  300.                                 {{ message|raw }}
  301.                             </div>
  302.                         {% endfor %}
  303.                     {% endfor %}
  304.                     {% block body %}{% endblock %}
  305.                 </div>
  306.             </div>
  307.         </div>
  308.         <div id="footer">
  309.             CSP CRM | Deveo&copy;
  310.         </div>
  311.     </body>
  312. </html>