templates/frontend/dataset/form.html.twig line 1

Open in your IDE?
  1. {% extends 'frontend/base.html.twig' %}
  2. {% block body %}
  3.     <div class="page-bar-hero overflow-hidden">
  4.         <div class="container h-100">
  5.             <div class="position-relative py-4">
  6.                 <img class="img-building" src="{{ asset('assets/background/building.png') }}">
  7.                 <div class="d-flex align-items-center justify-content-between mb-5 position-relative">
  8.                     <h3 class="text-light mb-0 font-weight-bold">Form
  9.                     </br>Permintaan Data</h3>
  10.             </div>
  11.         </div>
  12.     </div>
  13. </div>
  14. <div class="form-request position-relative">
  15.     <div class="container">
  16.         <div class="card-wrapper rounded-lg">
  17.             <div class="card-body shadow-sm p-3 border rounded-lg bg-white">
  18.                 <div class="text-center rounded-lg p-2" style="background-color: #9E0A0A">
  19.                     <h3 class="text-light mb-0 fs-5">
  20.                         <i class="bi bi-file-earmark-bar-graph"></i>
  21.                         Form Permintaan Data
  22.                     </h3>
  23.                 </div>
  24.                 <br>
  25.                 {{ form_start(form) }}
  26.                 <div class="form-group row">
  27.                     <label class="col-md-3 col-form-label">{{ form_label(form.nama) }}</label>
  28.                     <div class="col-md-9">
  29.                         {{ form_widget(form.nama) }}
  30.                     </div>
  31.                 </div>
  32.                 <div class="form-group row">
  33.                     <label class="col-md-3 col-form-label">{{ form_label(form.telepon) }}</label>
  34.                     <div class="col-md-9">
  35.                         {{ form_widget(form.telepon) }}
  36.                     </div>
  37.                 </div>
  38.                 <div class="form-group row">
  39.                     <label class="col-md-3 col-form-label">{{ form_label(form.email) }}</label>
  40.                     <div class="col-md-9">
  41.                         {{ form_widget(form.email) }}
  42.                     </div>
  43.                 </div>
  44.                 <div class="form-group row">
  45.                     <label class="col-md-3 col-form-label">{{ form_label(form.pekerjaan) }}</label>
  46.                     <div class="col-md-9">
  47.                         {{ form_widget(form.pekerjaan) }}
  48.                     </div>
  49.                 </div>
  50.                 <div class="form-group row">
  51.                     <label class="col-md-3 col-form-label">{{ form_label(form.desk_pekerjaan) }}</label>
  52.                     <div class="col-md-9">
  53.                         {{ form_widget(form.desk_pekerjaan) }}
  54.                     </div>
  55.                 </div>
  56.                 <div class="form-group row">
  57.                     <label class="col-md-3 col-form-label">{{ form_label(form.judul_data) }}</label>
  58.                     <div class="col-md-9">
  59.                         {{ form_widget(form.judul_data) }}
  60.                     </div>
  61.                 </div>
  62.                 <div class="form-group row">
  63.                     <label class="col-md-3 col-form-label">Apakah anda mengetahui Perangkat Daerah (PD) penghasil sumber dataset terkait?</label>
  64.                     <div class="col-md-9">
  65.                         <label>
  66.                             <input name="pd" type="radio" value="1" class="mr-2" checked="" onchange="showPd(this.value)"><span>Ya</span>
  67.                         </label>
  68.                         <label>
  69.                             <input name="pd" type="radio" value="2" class="mr-2" onchange="showPd(this.value)"><span>Tidak</span>
  70.                         </label>
  71.                     </div>
  72.                 </div>
  73.                 <div class="form-group row">
  74.                     <label class="col-md-3 col-form-label">{{ form_label(form.div) }}</label>
  75.                     <div class="col-md-9">
  76.                         {{ form_widget(form.div) }}
  77.                     </div>
  78.                 </div>
  79.                 <div class="form-group row">
  80.                     <label class="col-md-3 col-form-label">{{ form_label(form.desk_kebutuhan) }}</label>
  81.                     <div class="col-md-9">
  82.                         {{ form_widget(form.desk_kebutuhan) }}
  83.                     </div>
  84.                 </div>
  85.                 <div class="form-group row">
  86.                     <label class="col-md-3 col-form-label">{{ form_label(form.tujuan_data) }}</label>
  87.                     <div class="col-md-9">
  88.                         {{ form_widget(form.tujuan_data) }}
  89.                     </div>
  90.                 </div>
  91.                 {{ form_widget(form.submit, { 'attr': { 'class': 'btn bg-primary w-100 d-block text-light' }}) }}
  92.                 {{ form_end(form) }}
  93.             </div>
  94.         </div>
  95.     </div>
  96. </div>
  97. <script>
  98.     function showPd(id) {
  99. var id_pd = $("#pd");
  100. var perangkat = $("#t_permohonan_div")
  101. if (id == 1) {
  102. perangkat.show()
  103. perangkat.attr("required", "required")
  104. $('#div').show()
  105. } else {
  106. perangkat.hide()
  107. perangkat.removeAttr("required")
  108. $('#div').hide()
  109. }
  110. };
  111. </script>{% endblock %}