templates/basic.html.twig line 1

Open in your IDE?
  1.         <!-- Content Header (Page header) -->
  2.         <style>
  3.         .float-right {
  4.     float: right!important;
  5. }
  6. h5 {
  7.     font-size: 16px;
  8.     font-weight: 400;
  9.     }
  10.         </style>
  11.         
  12.         
  13.         {% if ((breadcrumb is defined) == true) and (breadcrumb == false) %}  
  14.         {%else%}
  15.             <div class="">
  16.         <div class="row wrapper border-bottom white-bg page-heading " id="breadcrumbs">
  17.             {% if ((additionalinfoinheader is defined) == true) and (additionalinfoinheader == true) %}
  18.                 <div class="col-xl-4 col-lg-4 col-md-5 col-sm-12">
  19.             {% else %}
  20.                 <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12">
  21.             {% endif %}
  22.                     {% if ((additionalinfoinheader is defined) == true) and (additionalinfoinheader == true) %}
  23.                         <h2>{{ block('pagetitle') }} <small class="m-l-sm">{{ block('pagesubtitle') }}&nbsp</small></h2>
  24.                     {% else %}
  25.                         <h2></h2>
  26.                     {% endif %}
  27.                     <div class="d-none d-md-block">
  28.                         
  29.                     <ol class="breadcrumb">
  30.                         <li class="breadcrumb-item"><a href="{{ path('app_innerhome') }}"><i class="fa fa-home"></i> Home</a></li>
  31.             {{ block('breadcrumbs') }}
  32.                         
  33.                     </ol>
  34.                     </div>
  35.                 </div>
  36.                     {% if ((additionalinfoinheader is defined) == true) and (additionalinfoinheader == true) %}
  37.                     <div class="col-xl-8 col-lg-8 col-md-7 col-sm-12 text-right float-right">
  38.                         
  39.                      {% if kernel_service.getApplicationInfoValue("Kernel.LocationPageMenu") == "LocationPageMenu.RightTop" %}
  40.                     
  41.                     {% if block('toppagenavigation') is defined %}
  42.                         {{ block('toppagenavigation') }}
  43.                     {% else %}
  44.                     
  45.                     {% if additionalmenu is defined %}
  46.                     {% set leftmenu = kernel_service.getmenu(additionalmenu ~ "_menu") %}
  47.                     <ul class="screenmenu float-right text-right" id="additionalmenu1">
  48.                 {% for menuitem in leftmenu.menuItems %}
  49.                     {% if menuitem.parent is null %}
  50.                         {% set showmenuitem = false %}
  51.                         {% if app.user.userfunction %}
  52.                             {% for role in app.user.userfunction.roles %}
  53.                                 {% for role2 in menuitem.roles %}
  54.                                     {% if role.id == role2.id%}
  55.                                         {% set showmenuitem = true %}
  56.                                     {% endif %}
  57.                                 {% endfor %}
  58.                             {% endfor %}
  59.                         {% endif %}
  60.                         {% if showmenuitem == true %}
  61.                             
  62.                             {% set data = menuitem.pathParameters %}
  63.                                                 {% set extra = [] %}
  64.                                                 {% for keyval in data|split(',') %}
  65.                                                      {% set keyval2 = keyval|split(':') %}
  66.                                                      {% if keyval2|length == 2%}
  67.                                                         {% set keyval21 = keyval2[0] %}
  68.                                                         {% set keyval22 = keyval2[1] %}
  69.                                                         {% set extra = extra|merge({(keyval21) : keyval22}) %}
  70.                                                      {% endif %}
  71.                                                 {% endfor %}
  72.                             
  73.                         {% if menuitem.children|length == 0 %}
  74.                 <li class="screenmenu-item {{ path(menuitem.action.path) }}" id="menuItem{{menuitem.name}}">
  75.                     <a class="screenmenu-item" href="{%if menuitem.action%}{{ path(menuitem.action.path) }}{% else %}{% endif %}" >
  76.                         {{menuitem.name | trans}}
  77.                    </a>
  78.                    </li>
  79.                         {% else %}
  80.                             <li class="screenmenu-item {{ path(menuitem.action.path,extra) }} 
  81.                                 {% for menuitem2 in leftmenu.menuItems %}
  82.                                         {% if menuitem2.parent %}
  83.                                             {% if menuitem2.parent.id == menuitem.id %}
  84.                                                 {{ path(menuitem2.action.path) }} 
  85.                                               {% endif %}
  86.                                         {% endif %}
  87.                                     {% endfor %}  
  88.                                 " id="menuItem{{menuitem.name}}">
  89.                                 <a href="#" class="dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" >
  90.                                          {{menuitem.name | trans}}
  91.                                </a>
  92.                               
  93.                                <ul class="dropdown-menu">
  94.                                     {% for menuitem2 in leftmenu.menuItems %}
  95.                                          {% set data = menuitem2.pathParameters %}
  96.                                                 {% set extra = [] %}
  97.                                                 {% for keyval in data|split(',') %}
  98.                                                      {% set keyval2 = keyval|split(':') %}
  99.                                                      {% if keyval2|length == 2%}
  100.                                                         {% set keyval21 = keyval2[0] %}
  101.                                                         {% set keyval22 = keyval2[1] %}
  102.                                                         {% set extra = extra|merge({(keyval21) : keyval22}) %}
  103.                                                      {% endif %}
  104.                                                 {% endfor %}
  105.                                         {% if menuitem2.parent %}
  106.                                             {% if menuitem2.parent.id == menuitem.id %}
  107.                                                 <li class="{{ path(menuitem2.action.path,extra) }}"><a href="{{  path(menuitem2.action.path,extra) }}">{{menuitem2.name | trans}}</a></li>
  108.                                             {% endif %}
  109.                                         {% endif %}
  110.                                     {% endfor %}
  111.                                 </ul>
  112.                             </li>
  113.                          {% endif %}
  114.                     {% endif %}
  115.                     {% endif %}
  116.                 {% endfor %}
  117.                 </ul>
  118.                     
  119.                     </div>
  120.                     {% endif %}
  121.                     {% endif %}
  122.                     {% endif %}
  123.                     {% endif %}
  124.             </div>
  125.         </div>
  126.         {%endif%}
  127.         
  128.         <div class="wrapper wrapper-content">
  129.         <div class="row">
  130.         
  131.         {% if ((kernel_service.getApplicationInfoValue("Kernel.LocationPageMenu") == "LocationPageMenu.Left" ) and (additionalmenu is defined)) or (((leftnavigation is defined) == true) and leftnavigation == true) %}  
  132.                 {% if block('leftnavigation') is defined %}
  133.                     {{ block('leftnavigation') }}
  134.                  {% endif %}
  135.                 {% if block('toppagenavigation') is defined %}
  136.                     <div class="col-sm-4 col-lg-2" >
  137.                         {{ block('toppagenavigation') }}
  138.                     </div>
  139.                      {% else %}
  140.                     
  141.                     {% if additionalmenu is defined %}
  142.                     {% set leftmenu = kernel_service.getmenu(additionalmenu ~ "_menu") %}
  143.                     <div class="col-md-2">
  144.                         <div class="ibox">
  145.     <div class="ibox-title">
  146.         <h5>{% if leftmenu.menu %}{{ leftmenu.menu.name |trans }}{% endif %}</h5>
  147.         <div class="ibox-tools">
  148.         </div>
  149.     </div>
  150.     <div class="ibox-content">  
  151.                     <ul class="folder-list m-b-md" style="padding: 0" id="additionalmenu2">
  152.                 {% for menuitem in leftmenu.menuItems %}
  153.                     {% if menuitem.parent is null %}
  154.                         {% set showmenuitem = false %}
  155.                         {% if app.user.userfunction %}
  156.                             {% for role in app.user.userfunction.roles %}
  157.                                 {% for role2 in menuitem.roles %}
  158.                                     {% if role.id == role2.id%}
  159.                                         {% set showmenuitem = true %}
  160.                                     {% endif %}
  161.                                 {% endfor %}
  162.                             {% endfor %}
  163.                         {% endif %}
  164.                         {% if showmenuitem == true %}
  165.                         {% if menuitem.children|length == 0 %}
  166.                             {% set data = menuitem.pathParameters %}
  167.                                                 {% set extra = [] %}
  168.                                                 {% for keyval in data|split(',') %}
  169.                                                      {% set keyval2 = keyval|split(':') %}
  170.                                                      {% if keyval2|length == 2%}
  171.                                                         {% set keyval21 = keyval2[0] %}
  172.                                                         {% set keyval22 = keyval2[1] %}
  173.                                                         {% set extra = extra|merge({(keyval21) : keyval22}) %}
  174.                                                      {% endif %}
  175.                                                 {% endfor %}
  176.                 <li class="{{ path(menuitem.action.path,extra) }}" id="menuItem{{menuitem.name}}">
  177.                     <a href="{%if menuitem.action%}{{ path(menuitem.action.path,extra) }}{% else %}{% endif %}" >
  178.                         {{menuitem.name | trans}}
  179.                    </a>
  180.                    </li>
  181.                         {% else %}
  182.                             
  183.                                     {% for menuitem2 in leftmenu.menuItems %}
  184.                                         {% if menuitem2.parent %}
  185.                                             {% if menuitem2.parent.id == menuitem.id %}
  186.                                                 {% set data = menuitem2.pathParameters %}
  187.                                                 {% set extra = [] %}
  188.                                                 {% for keyval in data|split(',') %}
  189.                                                      {% set keyval2 = keyval|split(':') %}
  190.                                                      {% if keyval2|length == 2%}
  191.                                                         {% set keyval21 = keyval2[0] %}
  192.                                                         {% set keyval22 = keyval2[1] %}
  193.                                                         {% set extra = extra|merge({(keyval21) : keyval22}) %}
  194.                                                      {% endif %}
  195.                                                 {% endfor %}
  196.                                                 
  197.                                                 <li class="{{ path(menuitem2.action.path,extra) }}"><a href="{{  path(menuitem2.action.path,extra ) }}">{{menuitem2.name | trans}}</a></li>
  198.                                             {% endif %}
  199.                                         {% endif %}
  200.                                     {% endfor %}
  201.                          {% endif %}
  202.                     {% endif %}
  203.                     {% endif %}
  204.                 {% endfor %}
  205.                 </ul>
  206.                     </div></div></div>
  207.                     {% endif %}
  208.                     {% endif %}
  209.             <div class="col-sm-8 col-lg-10" >
  210.         {%else%}
  211.         
  212.             {% if ((navmenu is defined) and (navmenu == true) or ((rightmenu is defined) and (rightmenu == true))) %}
  213.                 <div class="col-sm-8 col-lg-10" >
  214.             {%else%}
  215.                 <div class="col-lg-12">
  216.             {%endif%}
  217.         {%endif%}
  218.         
  219.         {% if ((boxandnavigation is defined) == false) or boxandnavigation == true %}  
  220.         
  221.         <div class="ibox">
  222.                     <div class="ibox-title">
  223.                         <h5> {% if (((additionalinfoinheader is defined) == true) and (additionalinfoinheader == true)) and (block('secondpagetitle') is defined) %}
  224.                             {{ block('secondpagetitle') }}{% if (block('secondpagesubtitle') is defined) %} <small class="m-l-sm">{{ block('secondpagesubtitle') }}&nbsp</small>{% endif %}
  225.                         {%else%}{{ block('pagetitle') }} <small class="m-l-sm">{{ block('pagesubtitle') }}&nbsp</small>{% endif%}</h5>
  226.                         <div class="ibox-tools">
  227.                             <div class="d-sm-none d-md-block">
  228.                                     {% if block('toolsnagivation') is defined %}
  229.                                         {{ block('toolsnagivation') }}
  230.                                     {% endif %}
  231.                             {{ block('pagenavigation') }}
  232.                                 {% if ((additionalinfoinheader is defined) == true) and (additionalinfoinheader == true) %}
  233.                                     {% else %}
  234.                             {{ block('toppagenavigation') }}
  235.                             {% endif %}
  236.                             </div>
  237.                         </div>
  238.                     </div>
  239.                     <div class="ibox-content">
  240.                     <div class="d-none d-sm-block d-md-none">
  241.                             {{ block('pagenavigation') }}
  242.                                  {% if ((additionalinfoinheader is defined) == true) and (additionalinfoinheader == true) %}
  243.                                     {% else %}
  244.                             {{ block('toppagenavigation') }}
  245.                             {% endif %}
  246.                             </div>
  247.         {%endif%}
  248.         {% set flashMessages = app.session.flashbag.get('notice') %}
  249.         {% if false %}
  250.          {% if flashMessages %}
  251.                 <div class="alert alert-info alert-dismissable">
  252.                     <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
  253.                     <i class="icon fa fa-info"></i>
  254.                     {% for flashMessage in flashMessages %}
  255.                      {{ flashMessage }}
  256.                      {% endfor %}
  257.                   </div>
  258.          {% endif %}
  259.          {% endif %}
  260.          
  261.          {% set flashMessages = app.session.flashbag.get('success') %}
  262.          {% if flashMessages %}
  263.         <div id="toastrmessage" class="d-none">
  264.                     {% for flashMessage in flashMessages %}
  265.                      {{ flashMessage }}
  266.                      {% endfor %}
  267.                   </div>
  268.          {% endif %}
  269.          {% set flashMessages = app.session.flashbag.get('error') %}
  270.          {% if flashMessages %}
  271.                 <div id="toastrmessageerror" class="d-none">
  272.                     {% for flashMessage in flashMessages %}
  273.                      {{ flashMessage }}
  274.                      {% endfor %}
  275.                   </div>
  276.          {% endif %}
  277.          {% set flashMessages = app.session.flashbag.get('warning') %}
  278.          {% if flashMessages %}
  279.                 <div id="toastrmessagewarning" class="d-none">
  280.                     {% for flashMessage in flashMessages %}
  281.                      {{ flashMessage }}
  282.                      {% endfor %}
  283.                   </div>
  284.          {% endif %}
  285.          
  286.          {{ block('body') }}
  287.                       
  288.                       {% if ((boxandnavigation is defined) == false) or boxandnavigation == true %}  
  289.                     </div>
  290.                     
  291.                             
  292.                           {% set _block = block('pagenavigation') %}
  293.                             
  294.                             {% if kernel_service.getApplicationInfoValue("Kernel.ShowBottonsAtBottomInTemplate") == true %}
  295.                           {% if _block is not empty %}
  296.                               <div class="ibox-footer">
  297.                                   {{ _block|raw }}
  298.                                   &nbsp;
  299.                                   <div class="hidden-xs hidden-sm">
  300.                                       &nbsp;
  301.                                   </div>
  302.                               </div>
  303.                           {% endif %}
  304.                           {% endif %}
  305.                 </div>
  306.                 {%endif%}
  307.         </div>
  308.   {% if ((navmenu is defined) and (navmenu == true) or ((rightmenu is defined) and (rightmenu == true))) %}
  309.          
  310.                 <div class="col-sm-4 col-lg-2" >
  311.                 <div class="ibox float-e-margins">
  312.                             
  313.                             <div class="ibox-content">
  314.                 
  315.                                 {% if ((navmenu is defined) and (navmenu == true)) %}
  316.                                         {{ app.session.get("sub_menu") | raw }}
  317.                                 {%else%}
  318.                                     {{ block('rightmenucontent') }}
  319.                                 {%endif%}
  320.         
  321.             </div></div>
  322.             </div>
  323.             
  324.             {%endif%}
  325.             
  326.             </div>                     
  327. <div class="d-none" id="specific_javascript">
  328. {% block javascripts %}
  329.     
  330. {% endblock %}
  331. </div>