{#
This file is part of the Sonata package.
(c) Thomas Rabaix <[email protected]>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{%- set _preview = block('preview') is defined ? block('preview')|trim : null %}
{% set _form = block('form') is defined ? block('form')|trim : null %}
{% set _show = block('show') is defined ? block('show')|trim : null %}
{% set _list_table = block('list_table') is defined ? block('list_table')|trim : null %}
{% set _list_filters = block('list_filters') is defined ? block('list_filters')|trim : null %}
{% set _tab_menu = block('tab_menu') is defined ? block('tab_menu')|trim : null %}
{% set _content = block('content') is defined ? block('content')|trim : null %}
{% set _title = block('title') is defined ? block('title')|trim : null %}
{% set _breadcrumb = block('breadcrumb') is defined ? block('breadcrumb')|trim : null %}
{% set _actions = block('actions') is defined ? block('actions')|trim : null %}
{% set _navbar_title = block('navbar_title') is defined ? block('navbar_title')|trim : null %}
{% set _list_filters_actions = block('list_filters_actions') is defined ? block('list_filters_actions')|trim : null -%}
<!DOCTYPE html>
<html {% block html_attributes %}class="no-js"{% endblock %}>
<head>
<link rel="shortcut icon" href="{{ asset('bundles/applicationinternitcontent/images/favicon.png') }}">
{% block meta_tags %}
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="UTF-8">
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
{% endblock %}
<meta data-sonata-admin='{{ {
config: {
CONFIRM_EXIT: sonata_admin.adminPool.getOption('confirm_exit'),
USE_SELECT2: sonata_admin.adminPool.getOption('use_select2'),
USE_ICHECK: sonata_admin.adminPool.getOption('use_icheck'),
USE_STICKYFORMS: sonata_admin.adminPool.getOption('use_stickyforms'),
DEBUG: sonata_admin.adminPool.getOption('js_debug'),
},
translations: {
CONFIRM_EXIT: 'confirm_exit'|trans({}, 'SonataAdminBundle'),
},
}|json_encode()|raw }}'
>
{% block stylesheets %}
<link href="https://fonts.googleapis.com/css?family=Muli:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i&display=swap" rel="stylesheet">
{% for stylesheet in sonata_admin.adminPool.getOption('stylesheets', []) %}
<link rel="stylesheet" href="{{ asset(stylesheet) }}">
{% endfor %}
{% endblock %}
{% block javascripts %}
{% block sonata_javascript_config %}
{% endblock %}
{% block sonata_javascript_pool %}
{% for javascript in sonata_admin.adminPool.getOption('javascripts', []) %}
<script src="{{ asset(javascript) }}"></script>
{% endfor %}
{% endblock %}
{# localize moment #}
{% set localeForMoment = canonicalize_locale_for_moment() %}
{% if localeForMoment %}
<script src="{{ asset(
'bundles/sonatacore/vendor/moment/locale/' ~
localeForMoment ~
'.js'
) }}"></script>
{% endif %}
{# localize select2 #}
{#
{% if sonata_admin.adminPool.getOption('use_select2') %}
{% set localeForSelect2 = canonicalize_locale_for_select2() %}
{% if localeForSelect2 %}
<script src="{{ asset('bundles/sonatacore/vendor/select2/select2_locale_' ~ localeForSelect2 ~ '.js') }}"></script>
{% endif %}
{% endif %}
#}
<script type="text/javascript" src="{{ asset('bundles/applicationinternitproposal/js/vue.min.js') }}"></script>
<!-- <script type="text/javascript" src="{{ asset('bundles/applicationinternitproposal/js/vueDev.js') }}"></script>-->
{% endblock %}
<title>
{% block sonata_head_title %}
{{ 'Admin'|trans({}, 'SonataAdminBundle') }}
{% if _title is not empty %}
{{ _title|striptags|raw }}
{% else %}
{% if action is defined %}
-
{% for menu in breadcrumbs_builder.breadcrumbs(admin, action) %}
{% if not loop.first %}
{% if loop.index != 2 %}
>
{% endif %}
{%- set translation_domain = menu.extra('translation_domain', 'messages') -%}
{%- set label = menu.label -%}
{%- if translation_domain is not same as(false) -%}
{%- set label = label|trans(menu.extra('translation_params', {}), translation_domain) -%}
{%- endif -%}
{{ label }}
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
{% endblock %}
</title>
</head>
<body
{% block body_attributes -%}
class="sonata-bc skin-black fixed
{% if app.request.cookies.get('sonata_sidebar_hide') -%}
sidebar-collapse
{%- endif -%}"
{%- endblock -%}
>
<div >
<div class="wrapper">
{% block sonata_left_side %}
{# active or '' #}
<aside class="main-sidebar active" style="background-image: linear-gradient(#B01618, #B01618);">
{% block logo %}
{% spaceless %}
<a class="logo" href="{{ path('sonata_admin_dashboard') }}">
<img src="{{ asset('img/logo-calper.jpg') }}" alt="Internit Logo" style="max-width: 130px !important; width: 130px !important;">
</a>
{% endspaceless %}
{% endblock %}
<section class="sidebar">
{% block sonata_side_nav %}
{# {% block side_bar_before_nav %} {% endblock %}
{% block side_bar_nav %}
{{ knp_menu_render('sonata_admin_sidebar', {template: get_global_template('knp_menu_template')}) }}
{% endblock side_bar_nav %} #}
<ul class="sidebar-menu" style="overflow-y: auto;">
<span id="tooltipNew" style="background-color: #4A0D0E;"></span>
<li class="treeview first {#content-submenu#}">
<a href="{{ path('sonata_admin_dashboard') }}" class="">
<i class="fas fa-home"></i>
<span>Home</span>
</a>
{#
<ul class="sidebar-submenu">
<li class="subitem">
<a href="#">
<span>Nome</spam>
</a>
</li>
<li class="subitem">
<a href="#">
<span>Nome</spam>
</a>
</li>
<li class="subitem">
<a href="#">
<span>Nome</spam>
</a>
</li>
</ul>
#}
</li>
{# {% if is_granted('ROLE_CORRETOR') == true %}
<li class="treeview">
<a href="{{ path('admin_internit_commission_commission_commission') }}" class="" title="Configurações">
<i class="fas fa-cog"></i>
<span>Comissões</span>
</a>
</li>
{% endif %}
{% if is_granted('ROLE_IMOBILIARIA') == true %}
<li class="treeview">
<a href="{{ path('admin_internit_commission_commission_receivement') }}" class="" title="Configurações">
<i class="fas fa-cog"></i>
<span>Recebimentos</span>
</a>
</li>
{% endif %}
{% if is_granted('ROLE_CONSTRUTORA') == true %}
<li class="treeview">
<a href="{{ path('admin_internit_commission_commission_payment') }}" class="" title="Configurações">
<i class="fas fa-cog"></i>
<span>Pagamentos</span>
</a>
</li>
{% endif %} #}
{#
<li class="treeview">
<a href="/admin/sonata/user/group/list" class="">
<i class="fas fa-cog"></i>
<span>Grupos</span>
</a>
</li>
#}
{% if is_granted('ROLE_CORRETOR') == true %}
{#<li class="treeview">
<a href="{{ path('admin_internit_realestate_realty_list') }}" class="">
<i class="fas fa-building"></i>
<span>Empreendimentos</span>
</a>
</li>#}
{% endif %}
{% if is_granted('ROLE_IMOBILIARIA') == true %}
<li class="treeview last">
<a href="{{ path('admin_internit_realestate_realestate_list') }}" class="">
<i class="fas fa-hotel"></i>
<span>Imobiliárias</span>
</a>
</li>
{% endif %}
{% if is_granted('ROLE_IMOBILIARIA') == true %}
<li class="treeview last">
<a href="{{ path('admin_sonata_user_user_list') }}" class="">
<i class="fas fa-user-tie"></i>
<span>Usuários</span>
</a>
</li>
{% endif %}
{#{% if is_granted('ROLE_CORRETOR') == true %}
<li class="treeview">
<a href="{{ path('admin_internit_realestate_realty_listMirror') }}" class="" >
<i class="fas fa-search-dollar"></i>
<span>Espelho de vendas</span>
</a>
</li>
{% endif %}#}
{# <li class="treeview">
<a href="{{ path('admin_internit_proposal_proposal_realtyList') }}" class="">
<i class="fas fa-file-alt"></i>
<span>Propostas</span>
</a>
</li>#}
{# <li class="treeview">
<a href="{{ path('admin_internit_requestkey_requestkey_createRequest') }}" class="">
<i class="fas fa-key"></i>
<span>Solicitar Chave</span>
</a>
</li> #}
{% if is_granted('ROLE_CONSTRUTORA') == true %}
<li class="treeview last">
<a href="{{ path('admin_internit_lead_product_list') }}" class=" " title="Leads">
<i class="fas fa-address-card"></i>
<span>Leads</span>
</a>
</li>
{% endif %}
{# {% if is_granted('ROLE_CONSTRUTORA') == true %}
<li class="treeview last">
<a href="{{ path('admin_internit_chatbotlead_product_list') }}" class=" " title="Leads">
<i class="fas fa-robot"></i>
<span>Leads do Chatbot</span>
</a>
</li>
{% endif %} #}
{% if 'ROLE_IMOBILIARIA' in app.user.roles %}
<li class="treeview">
<a class=""
href="{{ path('admin_internit_lead_realestateemail_list') }}" title="E-mails para leads">
<i class="fas fa-address-book"></i>
<span>E-mails de leads das imobiliárias</span>
</a>
</li>
{% endif %}
{# <li class="treeview">
<a href="{{ path('admin_internit_salesgoal_salesgoal_showSalesGoal') }}" class="">
<i class="fas fa-chart-line"></i>
<span>Metas de Vendas</span>
</a>
</li> #}
{# <li class="treeview">
<a href="{{ path('admin_internit_ranking_ranking_showRanking') }}" class="">
<i class="fas fa-medal"></i>
<span>Ranking</span>
</a>
</li>#}
{# <li class="treeview">
<a href="{{ path('admin_internit_contact_contactus_create') }}" class="" title="Fale Conosco">
<i class="fas fa-headset"></i>
<span>Fale Conosco</span>
</a>
</li>#}
{# {% if is_granted('ROLE_CORRETOR') == true %}
<li class="treeview">
<a href="{{ path('admin_internit_client_client_list') }}" class="" title="Cadastrar Cliente">
<i class="fas fa-user-plus"></i>
<span>Clientes</span>
</a>
</li>
{% endif %}#}
{#{% if is_granted('ROLE_IMOBILIARIA') == true %}#}
{# <li class="treeview">
<a href="{{ path('admin_internit_quiz_quiz_view') }}" class="" title="Quiz">
<i class="fas fa-trophy"></i>
<span>Quiz</span>
</a>
</li>#}
{#{% endif %}#}
{# {% if is_granted('ROLE_CONSTRUTORA') == true %}
<li class="treeview last">
<a href="{{ path('admin_internit_communication_communication_create') }}" class=" " title="Comunicados">
<i class="fas fa-envelope"></i>
<span>Comunicados</span>
</a>
</li>
{% endif %}#}
{# {% if is_granted('ROLE_CONSTRUTORA') == true %}
<li class="treeview">
<a href="/admin/internit/learningresource/learningresource/list" class="" title="EAD">
<i class="fas fa-book"></i>
<span>EAD</span>
</a>
</li>
{% endif %}#}
{# O método hasRole foi criado para verificar se um User tem o ROLE específico.
A função is_granted é parte do framework e verifica se o User tem o ROLE específico OU
que esteja em uma posição maior na hierarquia. #}
{% if app.user.hasRole(['ROLE_CONSTRUTORA']) %}
<li class="treeview">
<a href="/admin/internit/builder/builder/create" class="" title="Construtora">
<i class="fas fa-pencil-ruler"></i>
<span>Construtora</span>
</a>
</li>
{% endif %}
{% if app.user.hasRole(['ROLE_CONSTRUTORA']) %}
<li class="treeview">
<a href="/admin/internit/setting/setting/1/edit" class="" title="Configurações">
<i class="fas fa-cog"></i>
<span>Configurações</span>
</a>
</li>
{% endif %}
</ul>
{% endblock sonata_side_nav %}
</section>
</aside>
{% endblock sonata_left_side %}
{% block sonata_wrapper %}
<div class="conteudo">
{% block sonata_header %}
<header class="header">
{% block sonata_header_noscript_warning %}
<noscript>
<div class="noscript-warning">
{{ 'noscript_warning'|trans({}, 'SonataAdminBundle') }}
</div>
</noscript>
{% endblock %}
{% block sonata_nav %}
<nav class="navbar navbar-static-top" role="navigation">
{#
{{ app.session.get('menuOption') }}
{{ app.session.set('menuOption', 0) }}
#}
{# class active #}
<a href="javascript:;" class="toggleMenu active" role="button" title="Menu">
<span></span>
<span></span>
<span></span>
</a>
<div class="mark-beta"><h5> Versão Beta</h5></div>
{% block sonata_top_nav_menu %}
{#% if app.user and is_granted(sonata_admin.adminPool.getOption('role_admin')) %#}
<div class="navbar-custom-menu">
<ul class="nav navbar-nav">
{% block sonata_top_nav_menu_add_block %}
{# <li class="dropdown notificacao">
<a class="dropdown-toggle" href="{{ path('admin_internit_communication_communication_showCommunication') }}">
<i class="fas fa-envelope"></i> <!--span class="number">0</span-->
</a>
</li>#}
{% endblock %}
{% block sonata_top_nav_menu_user_block %}
<li class="dropdown user-menu">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
<span>{{app.user.getFirstname()}}</span>
</a>
<ul class="dropdown-menu dropdown-user">
{#% include get_global_template('user_block') %#}
<li class="dropdown user-menu open">
<ul class="dropdown-menu dropdown-user">
<li class="user-footer">
<div class="pull-left">
<a href="/admin/sonata/user/user/{{ app.user.id }}/edit" class="btn btn-default btn-flat"><i class="fa fa-user"></i> Perfil</a>
</div>
<div class="pull-right">
<a href="/admin/logout" class="btn btn-default btn-flat"><i class="fas fa-sign-out-alt"></i> Sair</a>
</div>
</li>
</ul>
</li>
</ul>
</li>
{% endblock %}
</ul>
</div>
{#% endif %#}
{% endblock %}
</nav>
{% endblock sonata_nav %}
</header>
{% endblock sonata_header %}
<div class="content-wrapper">
{% block sonata_page_content %}
<section class="content-header">
{% block sonata_page_content_header %}
{% block sonata_page_content_nav %}
{% if _navbar_title is not empty
or _tab_menu is not empty
or _actions is not empty
or _list_filters_actions is not empty
%}
<nav class="navbar navbar-default" role="navigation">
<div class="container-fluid">
{% block tab_menu_navbar_header %}
{% if _navbar_title is not empty %}
<div class="navbar-header">
<a class="navbar-brand" href="#">{{ _navbar_title|raw }}</a>
</div>
{% endif %}
{% endblock %}
<div class="navbar-collapse">
{% if _tab_menu is not empty %}
<div class="navbar-left">
{{ _tab_menu|raw }}
</div>
{% endif %}
{% if admin is defined and action is defined and action == 'list' and admin.listModes|length > 1 %}
<div class="nav navbar-right btn-group">
{% for mode, settings in admin.listModes %}
<a href="{{ admin.generateUrl('list', app.request.query.all|merge({_list_mode: mode})) }}" class="btn btn-default navbar-btn btn-sm{% if admin.getListMode() == mode %} active{% endif %}"><i class="{{ settings.class }}"></i></a>
{% endfor %}
</div>
{% endif %}
{% block sonata_admin_content_actions_wrappers %}
{% if _actions|replace({ '<li>': '', '</li>': '' })|trim is not empty %}
<ul class="nav navbar-nav navbar-right">
{% if _actions|split('</a>')|length > 2 %}
<li class="dropdown sonata-actions">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ 'link_actions'|trans({}, 'SonataAdminBundle') }} <b class="caret"></b></a>
<ul class="dropdown-menu" role="menu">
{{ _actions|raw }}
</ul>
</li>
{% else %}
{{ _actions|raw }}
{% endif %}
</ul>
{% endif %}
{% endblock sonata_admin_content_actions_wrappers %}
{% if _list_filters_actions is not empty %}
{{ _list_filters_actions|raw }}
{% endif %}
</div>
</div>
</nav>
{% endif %}
{% endblock sonata_page_content_nav %}
{% endblock sonata_page_content_header %}
</section>
<section class="content">
{% block sonata_admin_content %}
{% block notice %}
{% include '@SonataCore/FlashMessage/render.html.twig' %}
{% endblock notice %}
{% if _preview is not empty %}
<div class="sonata-ba-preview">{{ _preview|raw }}</div>
{% endif %}
{% if _content is not empty %}
<div class="sonata-ba-content">{{ _content|raw }}</div>
{% endif %}
{% if _show is not empty %}
<div class="sonata-ba-show">{{ _show|raw }}</div>
{% endif %}
{% if _form is not empty %}
<div class="sonata-ba-form">{{ _form|raw }}</div>
{% endif %}
{% if _list_filters is not empty %}
<div class="row">
{{ _list_filters|raw }}
</div>
{% endif %}
{% if _list_table is not empty %}
<div class="row">
{{ _list_table|raw }}
</div>
{% endif %}
{% endblock sonata_admin_content %}
</section>
{% endblock sonata_page_content %}
</div>
</div>
{% endblock sonata_wrapper %}
</div>
{% if sonata_admin.adminPool.getOption('use_bootlint') %}
{% block bootlint %}
{# Bootlint - https://github.com/twbs/bootlint#in-the-browser #}
<script type="text/javascript">
javascript:(function(){var s=document.createElement("script");s.onload=function(){bootlint.showLintReportForCurrentDocument([], {hasProblems: false, problemFree: false});};s.src="https://maxcdn.bootstrapcdn.com/bootlint/latest/bootlint.min.js";document.body.appendChild(s)})();
</script>
{% endblock %}
{% endif %}
</div>
</body>
</html>