templates/sidebar.html.twig line 1

Open in your IDE?
  1. <!--nav class="w3-sidebar w3-red w3-collapse w3-top w3-large w3-padding" style="z-index: 3; width: 300px; font-weight: bold; display: block;" id="mySidebar"><br>
  2. <a href="javascript:void(0)" onclick="w3_close()" class="w3-button w3-hide w3-pink w3-transparent-large w3-display-topleft" style="width:100%;font-size:22px">Close Menu</a>
  3. <div class="w3-container">
  4. <h3 class="w3-padding-64"><b>Company<br>Name</b></h3>
  5. </div>
  6. <div class="w3-bar-block">
  7. <a href="#" onclick="w3_close()" class="w3-bar-item w3-button w3-hover-white">Home</a>
  8. <a href="#showcase" onclick="w3_close()" class="w3-bar-item w3-button w3-hover-white">Showcase</a>
  9. <a href="#services" onclick="w3_close()" class="w3-bar-item w3-button w3-hover-white">Services</a>
  10. <a href="#designers" onclick="w3_close()" class="w3-bar-item w3-button w3-hover-white">Designers</a>
  11. <a href="#packages" onclick="w3_close()" class="w3-bar-item w3-button w3-hover-white">Packages</a>
  12. <a href="#contact" onclick="w3_close()" class="w3-bar-item w3-button w3-hover-white">Contact</a>
  13. </div>
  14. </nav-->
  15. <nav class="w3-sidebar w3-round w3-bar-block w3-collapse w3-leftbar w3-rightbar w3-border-red w3-animate-left w3-card w3-hover-border-pink w3-hover-white w3-teal " style="z-index:3;width:250px;" id="mySidebar">
  16. <a class="w3-bar-item w3-button w3-border-bottom w3-large w3-center w3-hover-red" href="{{ path('home') }}"><img class="w3-round-xxlarge w3-image" src="{{ asset('./birth3.png') }}" style="width:100%;color: red;text-align: center;"alt="BIRTH"></a>
  17. <a class="w3-bar-item w3-button w3-hide w3-pink w3-transparent-large w3-hover-red w3-large" href="javascript:void(0)" onclick="w3_close()">{% trans %}Close {% endtrans %}<i class="fa fa-remove"></i></a>
  18. <a class="w3-bar-item w3-button w3-hover-red" href="{{ path('home') }}"><span class='fa fa-home fa-2x'> </span>{% trans %} Home{% endtrans %}</a>
  19. <div>
  20. <a class="w3-bar-item w3-button w3-hover-teal" onclick="myAccordion('lang')" href="javascript:void(0)"><span class='fa fa-language '> </span> {% trans %}Language{% endtrans %} <i class="fa fa-caret-down"></i></a>
  21. <div id="lang" class="w3-hide w3-pink w3-transparent ">
  22. {% if app.request.attributes.get('id') %}
  23. <a class="dropdown-item w3-bar-item" href="{{ path( app.request.attributes.get('_route') ,{_locale:'en',id:app.request.attributes.get('id')}) }}"><img class="w3-round" src="{{ asset('image/us.png') }}" width="32px" alt="en">{% trans %}English{% endtrans %}</a>
  24. <a class="dropdown-item w3-bar-item" href="{{ path( app.request.attributes.get('_route') ,{_locale:'fr',id:app.request.attributes.get('id')}) }}"><img class="w3-round" src="{{ asset('image/fr.webp') }}" width="32px" alt="fr">{% trans %}French{% endtrans %}</a>
  25. {% else %}
  26. <a class="dropdown-item w3-bar-item" href="{{ path( app.request.attributes.get('_route') ,{_locale:'en'}) }}"><img class="w3-round" src="{{ asset('image/us.png') }}" width="32px" alt="en">{% trans %}English{% endtrans %}</a>
  27. <a class="dropdown-item w3-bar-item" href="{{ path( app.request.attributes.get('_route') ,{_locale:'fr'}) }}"><img class="w3-round" src="{{ asset('image/fr.webp') }}" width="32px" alt="fr">{% trans %}French{% endtrans %}</a>
  28. {% endif %}
  29. </div>
  30. </div>
  31. <!--
  32. <a class="w3-bar-item w3-button w3-red" href="#">Home</a>
  33. <a class="w3-bar-item w3-button" href="#">Link 1</a>
  34. <a class="w3-bar-item w3-button" href="#">Link 2</a>
  35. <a class="w3-bar-item w3-button" href="#">Link 3</a>
  36. <a class="w3-bar-item w3-button" href="#">Link 4</a>
  37. <a class="w3-bar-item w3-button" href="#">Link 5</a>
  38. -->
  39. {% if is_granted('IS_AUTHENTICATED_FULLY') %}
  40. <div>
  41. <!--a class="w3-bar-item w3-button w3-hover-teal" onclick="myAccordion('demo')" href="javascript:void(0)">{% trans %}Profile{% endtrans %} <i class="fa fa-caret-down"></i></a>
  42. <div id="demo" class="w3-hide w3-pink w3-transparent">
  43. <a class="w3-bar-item w3-button" href="#">Link</a>
  44. <a class="w3-bar-item w3-button" href="#">Link</a>
  45. <a class="w3-bar-item w3-button" href="#">Link</a>
  46. </div-->
  47. </div>
  48. <div>
  49. <a class="w3-bar-item w3-button w3-hover-teal" onclick="myAccordion('demo_birth')" href="javascript:void(0)"><span class="fa-child fa"></span> {% trans %}Birth{% endtrans %} <i class="fa fa-caret-down"></i></a>
  50. <div id="demo_birth" class="w3-hide w3-pink w3-transparent ">
  51. <a class="w3-bar-item w3-button w3-hover-red" href="{{ path('child_new') }}">{% trans %}Record a birth{% endtrans %}</a>
  52. <a class="w3-bar-item w3-button w3-hover-red" href="{{ path('child_index') }}">{% trans %}All Birth Certificate{% endtrans %}</a>
  53. <a class="w3-bar-item w3-button w3-hover-red" href="{{ path('child_test') }}">{% trans %}Complete Birth certificate {% endtrans %}</a>
  54. </div>
  55. </div>
  56. <div>
  57. <a class="w3-bar-item w3-button w3-hover-teal" onclick="myAccordion('demo_marriage')" href="javascript:void(0)"><span class="fa-random fa"></span> {% trans %}Marriage{% endtrans %}<i class="fa fa-caret-down"></i></a>
  58. <div id="demo_marriage" class="w3-hide w3-pink w3-transparent">
  59. <a class="w3-bar-item w3-button" href="{{ path('marriage_certificate_new') }}">{% trans %}Record a Wedding{% endtrans %}</a>
  60. <a class="w3-bar-item w3-button w3-hover-red" href="{{ path('marriage_certificate_index') }}">{% trans %}All marriage Certificate{% endtrans %}</a>
  61. <a class="w3-bar-item w3-button w3-hover-red" href="{{ path('marriage_test') }}">{% trans %}Complete Marriage certificate {% endtrans %}</a>
  62. </div>
  63. </div>
  64. <div>
  65. <a class="w3-bar-item w3-button w3-hover-teal" onclick="myAccordion('demo_death')" href="javascript:void(0)"><span class="fa-ban fa"></span> {% trans %}Death{% endtrans %} <i class="fa fa-caret-down"></i></a>
  66. <div id="demo_death" class="w3-hide w3-pink w3-transparent">
  67. <a class="w3-bar-item w3-button" href="{{ path('death_certificate_new') }}">{% trans %}Record a death{% endtrans %}</a>
  68. <a class="w3-bar-item w3-button w3-hover-red" href="{{ path('death_certificate_index') }}">{% trans %}All Death Certificate{% endtrans %}</a>
  69. <a class="w3-bar-item w3-button w3-hover-red" href="{{ path('death_test') }}">{% trans %}Complete death certificate {% endtrans %}</a>
  70. </div>
  71. </div>
  72. {% if is_granted('ROLE_HABITECH') or is_granted('ROLE_CEC') %}
  73. <br>
  74. <div>
  75. <a class="w3-bar-item w3-button w3-hover-teal" onclick="myAccordion('demo_hospital')" href="javascript:void(0)"><span class="fa-hospital-o fa"></span> {% trans %}Hospital{% endtrans %}<i class="fa fa-caret-down"></i></a>
  76. <div id="demo_hospital" class="w3-hide w3-pink w3-transparent">
  77. <a class="w3-bar-item w3-button" href="{{ path('hospital_new') }}">{% trans %}new Hospital{% endtrans %}</a>
  78. <a class="w3-bar-item w3-button w3-hover-red" href="{{ path('hospital_index') }}">{% trans %}All hospitals{% endtrans %}</a>
  79. </div>
  80. </div>
  81. <div>
  82. <a class="w3-bar-item w3-button w3-hover-teal" onclick="myAccordion('demo_subdivision')" href="javascript:void(0)"><span class="fa-universal-access fa"></span> {% trans %}Subdivision{% endtrans %}<i class="fa fa-caret-down"></i></a>
  83. <div id="demo_subdivision" class="w3-hide w3-pink w3-transparent">
  84. <a class="w3-bar-item w3-button" href="{{ path('subdivision_new') }}">{% trans %}new subdivision{% endtrans %}</a>
  85. <a class="w3-bar-item w3-button w3-hover-red" href="{{ path('subdivision_index') }}">{% trans %}All Subdivisions{% endtrans %}</a>
  86. </div>
  87. </div>
  88. <br>
  89. <div class="">
  90. <a class="w3-bar-item w3-button w3-hover-teal" href="{{ path('app_register') }}"><span class="fa fa-user-plus"></span> {% trans %}Register {% endtrans %}</a>
  91. </div>
  92. {% endif %}
  93. {% else %}
  94. <div>
  95. <a class="w3-bar-item w3-button w3-hover-teal" onclick="myAccordion('demo_birth')" href="javascript:void(0)"><span class="fa-address-card-o fa"></span> {% trans %}Birth{% endtrans %} <i class="fa fa-caret-down"></i></a>
  96. <div id="demo_birth" class="w3-hide w3-pink w3-transparent">
  97. <a class="w3-bar-item w3-button w3-hover-red" href="{{ path('child_new') }}">{% trans %}Record a birth{% endtrans %}</a>
  98. <a class="w3-bar-item w3-button w3-hover-red" href="{{ path('child_test') }}">{% trans %}Complete Birth certificate {% endtrans %}</a>
  99. </div>
  100. </div>
  101. <div>
  102. <a class="w3-bar-item w3-button w3-hover-teal" onclick="myAccordion('demo_marriage')" href="javascript:void(0)"><span class="fa-random fa"></span> {% trans %}Marriage{% endtrans %}<i class="fa fa-caret-down"></i></a>
  103. <div id="demo_marriage" class="w3-hide w3-pink w3-transparent">
  104. <a class="w3-bar-item w3-button" href="{{ path('marriage_certificate_new') }}">{% trans %}Record a Wedding{% endtrans %}</a>
  105. <a class="w3-bar-item w3-button w3-hover-red" href="{{ path('marriage_test') }}">{% trans %}Complete Marriage certificate {% endtrans %}</a>
  106. </div>
  107. </div>
  108. <div>
  109. <a class="w3-bar-item w3-button w3-hover-teal" onclick="myAccordion('demo_death')" href="javascript:void(0)"><span class="fa-ban fa"></span> {% trans %}Death{% endtrans %} <i class="fa fa-caret-down"></i></a>
  110. <div id="demo_death" class="w3-hide w3-pink w3-transparent">
  111. <a class="w3-bar-item w3-button" href="{{ path('death_certificate_new') }}">{% trans %}Record a death{% endtrans %}</a>
  112. <a class="w3-bar-item w3-button w3-hover-red" href="{{ path('death_test') }}">{% trans %}Complete death certificate {% endtrans %}</a>
  113. </div>
  114. </div>
  115. {% endif %}
  116. <div class="w3-row w3-padding-large w3-panel w3-hover-pink w3-round-large">
  117. <marquee behavior="" ><h4 class="w3-center">{% trans %}Social solutions, we have them{% endtrans %}</h4></marquee>
  118. <marquee class="w3-righ-bar" direction="right">
  119. <a href="https://habitechsolution.com"> <img src="{{ asset('./solutions/habitech.png') }}" class="w3-image w3-round-large w3-small" style="height: 125px"></a>
  120. <a href="https://birth.habitechsolution.com"><img src="{{ asset('./solutions/favicon.png') }}" class="w3-image w3-round-large w3-small" alt="..." style="height: 125px"></a>
  121. <a href="https://rapmis.habitechsolution.com"> <img src="{{ asset('./solutions/rap.png') }}" class="w3-image w3-round-large w3-small" alt="..." style="height: 125px"></a>
  122. <a href="http://facebook/kideats"> <img src="{{ asset('./solutions/kideat.jpg') }}" class="w3-image w3-round-large w3-small" alt="..." style="height: 125px"></a>
  123. <a href="http://easykeep.habitechsolution.com"><img src="{{ asset('./solutions/easykeep.jpg') }}" class="w3-image w3-circle w3-small" alt="..." style="height: 125px"></a>
  124. <a href="http://santalert.habitechsolution.com"> <img src="{{ asset('./solutions/santalert.jpg') }}" class="w3-image w3-circle w3-small" alt="..." style="height: 125px"></a>
  125. <a href="http://habitechsolution.com"> <img src="{{ asset('./solutions/archidoc.png') }}" class="w3-image w3-circle w3-small" alt="..." style="height: 125px"></a>
  126. </marquee>
  127. </div>
  128. </nav>
  129. <div class="w3-overlay w3-hide-large w3-animate-opacity" onclick="w3_close()" style="cursor:pointer" id="myOverlay"></div>
  130. <div id="myTop" class="w3-container w3-hide-large w3-theme w3-large w3-animate-fading ">
  131. <p><i class="fa fa-eye w3-button w3-red w3-large pull-right" onclick="w3_open()"></i>
  132. </p>
  133. </div>
  134. <div id="myTop" class="w3-container w3-theme w3-large w3-animate-zoom w3-teal ">
  135. <marquee class="w3-container w3-theme w3-large w3-animate-input "> Birth,
  136. {% trans %} Integrated digital solution of a proactive nature for the almost
  137. instantaneous establishment of birth certificates with the aim of reducing the problems of statelessness,
  138. and other all-out corollaries due to the non-possession of a birth certificate.{% endtrans %}
  139. </marquee>
  140. </div>
  141. <!--script>
  142. // Script to open and close sidebar
  143. function w3_open() {
  144. document.getElementById("mySidebar").style.display = "block";
  145. document.getElementById("myOverlay").style.display = "block";
  146. }
  147. function w3_close() {
  148. document.getElementById("mySidebar").style.display = "none";
  149. document.getElementById("myOverlay").style.display = "none";
  150. }
  151. // Modal Image Gallery
  152. function onClick(element) {
  153. document.getElementById("img01").src = element.src;
  154. document.getElementById("modal01").style.display = "block";
  155. var captionText = document.getElementById("caption");
  156. captionText.innerHTML = element.alt;
  157. }
  158. </script-->
  159. <script>
  160. // Open and close the sidebar on medium and small screens
  161. function w3_open() {
  162. document.getElementById("mySidebar").style.display = "block";
  163. document.getElementById("myOverlay").style.display = "block";
  164. }
  165. function w3_close() {
  166. document.getElementById("mySidebar").style.display = "none";
  167. document.getElementById("myOverlay").style.display = "none";
  168. }
  169. // Change style of top container on scroll
  170. window.onscroll = function() {myFunction()};
  171. function myFunction() {
  172. if (document.body.scrollTop > 80 || document.documentElement.scrollTop > 80) {
  173. document.getElementById("myTop").classList.add("w3-card-4", "w3-animate-opacity");
  174. document.getElementById("myIntro").classList.add("w3-show-inline-block");
  175. } else {
  176. document.getElementById("myIntro").classList.remove("w3-show-inline-block");
  177. document.getElementById("myTop").classList.remove("w3-card-4", "w3-animate-opacity");
  178. }
  179. }
  180. // Accordions
  181. function myAccordion(id) {
  182. var x = document.getElementById(id);
  183. if (x.className.indexOf("w3-show") == -1) {
  184. x.className += " w3-show";
  185. x.previousElementSibling.className += " w3-theme";
  186. } else {
  187. x.className = x.className.replace("w3-show", "");
  188. x.previousElementSibling.className =
  189. x.previousElementSibling.className.replace(" w3-theme", "");
  190. }
  191. }
  192. </script>