templates/Navigation/navbarComponent.html.twig line 1

  1. <nav id="navbar">
  2. <div class="container">
  3. {% if app.user and not hideContents %}
  4. <a class="btn-menu-min open-menu-minimal">
  5. <span class="icon-menu-mobile"></span>
  6. </a>
  7. <ul>
  8. <li {{ selectedItem == 'dashboard' ? 'class="active"' }}>
  9. <a href="{{ path('app_home') }}" class="dashbord">Dashboard</a>
  10. </li>
  11. <li {{ selectedItem == 'myAccount' ? 'class="active"' }} id="account-menu">
  12. <a href="{{ path('app_account_my') }}" class="account">My Account</a>
  13. {% if app.token.originalToken is defined %}
  14. <a class="revert" href="{{ impersonation_exit_path(path('app_user_edit', {'id': app.user.id})) }}">Revert</a>
  15. {% endif %}
  16. </li>
  17. <li {{ selectedItem == 'registration_activity' ? 'class="active"' }}>
  18. <a href="{{ path('app_registration_activity') }}" class="registration">Registrations</a>
  19. </li>
  20. <li {{ selectedItem == 'properties' ? 'class="active"' }}>
  21. <a href="{{ path('app_property_list') }}" class="properties">Properties</a>
  22. </li>
  23. {# {% if app.user.type != constant('App\\ValueObject\\UserTypes::MUNICIPALITY') %}#}
  24. <li {{ selectedItem == 'invoices' ? 'class="active"' }}>
  25. <a href="{{ path('app_invoice_list') }}" class="invoicing">Invoicing</a>
  26. </li>
  27. {# {% endif %}#}
  28. <li {{ selectedItem == 'reports' ? 'class="active"' }}>
  29. <a href="{{ path('app_report_index') }}" class="reports">Reports</a>
  30. </li>
  31. {% if not is_granted('ROLE_ADMIN_MUNIREG') %}
  32. <li {{ selectedItem == 'users' ? 'class="active"' }}>
  33. <a href="{{ path('app_user_list') }}" class="users">Users</a>
  34. </li>
  35. {% endif %}
  36. {% if is_granted('PERMISSION_ROLE_SUPER_ADMIN') %}
  37. <li {{ selectedItem == 'employees' ? 'class="active"' }}>
  38. <a href="{{ path('app_employee_list') }}" class="employees">Employees</a>
  39. </li>
  40. {% endif %}
  41. {% if app.user.type == constant('App\\ValueObject\\UserTypes::MUNIREG') %}
  42. <li {{ selectedItem == 'municipalities' ? 'class="active"' }}>
  43. <a href="{{ path('app_municipality_list') }}" class="municipalities">Municipalities</a>
  44. </li>
  45. <li {{ selectedItem == 'organizations' ? 'class="active"' }}>
  46. <a href="{{ path('app_organization_list') }}" class="organizations">Organizations</a>
  47. </li>
  48. {% endif %}
  49. {% if app.user.type == constant('App\\ValueObject\\UserTypes::REGISTER_PARTY') and app.user.organization is not null %}
  50. <li {{ selectedItem == 'organizations' ? 'class="active"' }}>
  51. <a href="{{ path('app_organization_edit', { id: app.user.organization.id }) }}"
  52. class="organizations">Organization</a>
  53. </li>
  54. {% endif %}
  55. {% if app.user.type == constant('App\\ValueObject\\UserTypes::MUNICIPALITY') %}
  56. {% if app.user.isAdmin %}
  57. <li {{ selectedItem == 'municipalities' ? 'class="active"' }}>
  58. <a href="{{ path('app_municipality_edit', { id: app.user.municipality.id }) }}"
  59. class="municipalities">Municipality</a>
  60. </li>
  61. {% endif %}
  62. {% endif %}
  63. {% if is_granted('PERMISSION_ROLE_ADMIN_REGISTER_PARTY') %}
  64. {% if app.user.type != constant('App\\ValueObject\\UserTypes::MUNICIPALITY') %}
  65. <li {{ selectedItem == 'entity' ? 'class="active"' }}>
  66. <a href="{{ path('app_entity_list') }}" class="entities">Entities</a>
  67. </li>
  68. {% endif %}
  69. {% endif %}
  70. {% if app.user.type == constant('App\\ValueObject\\UserTypes::MUNIREG') %}
  71. <li {{ selectedItem == 'reviews' ? 'class="active"' }}>
  72. <a href="{{ path('app_review_index') }}" class="reviews">Reviews</a>
  73. </li>
  74. {% endif %}
  75. <li {{ selectedItem == 'contact' ? 'class="active"' }}>
  76. <a href="{{ path('app_contact_form') }}" class="contacts">Contact</a>
  77. </li>
  78. {% if app.user.type == constant('App\\ValueObject\\UserTypes::MUNIREG') %}
  79. <li class="{{ selectedItem == 'email-notifications' ? 'active' : '' }}">
  80. <a href="{{ path('app_email_notifications_list') }}" class="email_notifications">Email Notifications</a>
  81. </li>
  82. {% endif %}
  83. {% if is_granted('PERMISSION_ROLE_MUNIREG') %}
  84. <li class="{{ selectedItem == 'usersLoginLogs' ? 'active' : '' }}">
  85. <a href="{{ path('app_user_login_log') }}" class="users">User Login Log</a>
  86. </li>
  87. {% endif %}
  88. <li>
  89. <a href="#" class="open-menu-minimal">
  90. <span class="icon-arrow"></span>
  91. SWITCH TO COMPACT VIEW
  92. </a>
  93. </li>
  94. </ul>
  95. {% endif %}
  96. </div>
  97. {% if is_granted('PERMISSION_ROLE_MUNIREG') %}
  98. <a href="{{ path('app_changelog_list') }}" class="btn-footer-menu">Global Change Logs</a>
  99. {% endif %}
  100. </nav>