templates/child/_form.html.twig line 1

Open in your IDE?
  1. <div class="w3-row-padding w3-hover-green w3-hover-teal w3-hover-text-sand w3-round w3-round-large w3-animate-opacity">
  2. {{ form_start(form) }}
  3. <div class="w3-third w3-padding w3-panel w3-hover-green w3-animate-left">
  4. <h3 class="w3-panel w3-red w3-round-large w3-hover-green w3-animate-zoom">{% trans %}Generals informations{% endtrans %}</h3>
  5. {{ form_row(form.sex) }}
  6. {{ form_row(form.dateOfBirth) }}
  7. {{ form_row(form.hospital) }}
  8. {{ form_row(form.otherContact) }}
  9. </div>
  10. <div class="w3-third w3-padding w3-panel w3-hover-red w3-round w3-animate-input w3-animate-top" >
  11. <h3 class="w3-panel w3-red w3-round-large w3-hover-green w3-animate-left">{% trans %}Father Informations{% endtrans %}</h3>
  12. {{ form_row(form.nameOfTheFather) }}
  13. {{ form_row(form.fatherContact) }}
  14. {{ form_row(form.fatherSEmail) }}
  15. {{ form_row(form.fatherSResidence) }}
  16. </div>
  17. <div class="w3-third w3-padding w3-panel w3-hover-yellow w3-round-large w3-animate-right" >
  18. <h3 class="w3-panel w3-red w3-round-large w3-hover-green w3-animate-bottom">{% trans %}Mother Informations{% endtrans %}</h3>
  19. {{ form_row(form.nameOfTheMother) }}
  20. {{ form_row(form.motherContact) }}
  21. {{ form_row(form.motherSEmail) }}
  22. {{ form_row(form.motherSResidence) }}
  23. </div>
  24. </div>
  25. <div class='w3-row'>
  26. <div class='w3-half w3-hover-teal w3-round-large w3-padding'>
  27. <label for='temoin'>{% trans %}Single{% endtrans %}</label>
  28. <input type='checkbox' onclick="myFunction('Demo1')">
  29. <span class="w3-text w3-text-light-gray ">{% trans %}Do not check if you are married{% endtrans %}</span>
  30. </div>
  31. <div class='w3-half w3-padding w3-hover-teal w3-round-large'>
  32. <label for='temoin'>{% trans %}Complete certificate{% endtrans %}</label>
  33. <input type='checkbox' onclick="myFunction('demo2')">
  34. <span class="w3-text w3-text-light-gray ">{% trans %}Check only if you have furthers
  35. informations about certificate{% endtrans %}</span>
  36. </div> <br>
  37. <div class="w3- w3-padding w3-panel w3-hover-red w3-round w3-animate-input w3-animate-top w3-container w3-hide" id="Demo1">
  38. <h3 class="w3-panel w3-red w3-round-large w3-hover-green w3-animate-left">{% trans %}Birth Witnesses(Only if not Married){% endtrans %}</h3>
  39. <div class='w3-half w3-padding'>
  40. {{ form_row(form.firstWitness) }}
  41. {{ form_row(form.firstWitnessNic) }}
  42. {{ form_row(form.firstWitnessPhoneNumber) }}
  43. </div>
  44. <div class='w3-half w3-padding'>
  45. {{ form_row(form.secondWitness) }}
  46. {{ form_row(form.secondWitnessNic) }}
  47. {{ form_row(form.secondWitnessPhoneNumber) }}
  48. </div>
  49. </div>
  50. </div>
  51. <div class="w3-hide" id="demo2">
  52. <div >
  53. {% set i=0 %}
  54. {% for item in form %}
  55. {% if i%3==0 %}
  56. </div>
  57. <div class='row w3-padding'>
  58. {% endif %}
  59. {% if item.rendered==0 and item.vars.name!='token' %}
  60. <div class="w3-third w3-padding w3-hover-teal w3-round-large w3-animate-right" >
  61. {{ form_row(item) }}
  62. {% set i= i+1 %}
  63. </div>
  64. {% endif %}
  65. {% endfor %}
  66. </div>
  67. </div>
  68. {% if app.request.attributes.get('_route') == 'child_dec' %}
  69. <button class="w3-btn w3-center w3-large ">{{ button_label|default('Save'|trans) }}</button>
  70. {% endif %}
  71. {#{ form_widget(form) }#}
  72. <button class="w3-btn w3-center w3-large ">{{ button_label|default('Save a birth certificate'|trans) }}</button>
  73. {{ form_end(form) }}
  74. <script>
  75. function myFunction(id) {
  76. var x = document.getElementById(id);
  77. if (x.className.indexOf("w3-show") == -1) {
  78. x.className += " w3-show";
  79. } else {
  80. x.className = x.className.replace(" w3-show", "");
  81. }
  82. }
  83. </script>