Skip to content

Commit

Permalink
user interaction for some view
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelSipayung committed Jan 27, 2024
1 parent 3a2eeca commit c5f9d22
Show file tree
Hide file tree
Showing 9 changed files with 138 additions and 0 deletions.
14 changes: 14 additions & 0 deletions app/views/shared/_achievement_form.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<% provide(:title, "Parent Information") %>
<h1>Informasi Prestasi Akademik/ Non Akademik</h1>
<div class="row">
<div col-md-6 col-md-offset-3>
<%= form_with(model: @achievement, local: true, data: {turbo: false}) do |f| %>
<%= render "shared/error_messages", object: f.object %>
<%= f.text_field :nama_prestasi, class: 'form-control', placeholder: 'Nama Prestasi' %>
<%= f.text_field :tingkat, class: 'form-control', placeholder: 'Tingkat' %>
<%= f.text_field :tahun, class: 'form-control', placeholder: 'Tahun' %>
<%= f.text_field :kategori, class: 'form-control', placeholder: 'Kategori' %>
<%= f.submit "Simpan", class: 'btn btn-primary' %>
<% end %>
</div>
</div>
17 changes: 17 additions & 0 deletions app/views/shared/_address_form.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<% provide(:title, "Parent Information") %>
<h1>Informasi Data Orang Tua</h1>
<div class="row">
<div col-md-6 col-md-offset-3>
<%= form_with(model: @address, local: true, data: {turbo: false}) do |f| %>
<%= render "shared/error_messages", object: f.object %>
<%= f.text_field :alamat, class: 'form-control', placeholder: 'Alamat' %>
<%= f.text_field :kelurahan, class: 'form-control', placeholder: 'Kelurahan' %>
<%= f.text_field :provinsi, class: 'form-control', placeholder: 'Provinsi' %>
<%= f.text_field :kabupaten, class: 'form-control', placeholder: 'Kabupaten' %>
<%= f.text_field :kecamatan, class: 'form-control', placeholder: 'Kecamatan' %>
<%= f.text_field :kode_pos, class: 'form-control', placeholder: 'Kode Pos' %>
<%= f.text_field :no_telepon, class: 'form-control', placeholder: 'No Telepon' %>
<%= f.submit "Simpan", class: 'btn btn-primary' %>
<% end %>
</div>
</div>
14 changes: 14 additions & 0 deletions app/views/shared/_extra_form.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<% provide(:title, "Parent Information") %>
<h1>Informasi Kegiatan Ekstrakurikuler</h1>
<div class="row">
<div col-md-6 col-md-offset-3>
<%= form_with(model: @extra, local: true, data: {turbo: false}) do |f| %>
<%= render "shared/error_messages", object: f.object %>
<%= f.text_field :nama_kegiatan, class: 'form-control', placeholder: 'Nama Kegiatan' %>
<%= f.text_field :predikat, class: 'form-control', placeholder: 'Predikat' %>
<%= f.text_field :mulai, class: 'form-control', placeholder: 'Mulai' %>
<%= f.text_field :berakhir, class: 'form-control', placeholder: 'Berakhir' %>
<%= f.submit "Simpan", class: 'btn btn-primary' %>
<% end %>
</div>
</div>
12 changes: 12 additions & 0 deletions app/views/shared/_language_form.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<% provide(:title, "Language Ability Information") %>
<h1>Informasi Kemampuan Bahasa Asing</h1>
<div class="row">
<div col-md-6 col-md-offset-3>
<%= form_with(model: @language, local: true, data: {turbo: false}) do |f| %>
<%= render "shared/error_messages", object: f.object %>
<%= f.text_field :nama_bahasa, class: 'form-control', placeholder: 'Nama Bahasa Asing' %>
<%= f.text_field :tingkat, class: 'form-control', placeholder: 'Tingkat' %>
<%= f.submit "Simpan", class: 'btn btn-primary' %>
<% end %>
</div>
</div>
14 changes: 14 additions & 0 deletions app/views/shared/_major_form.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<% provide(:title, "Majors Information") %>
<h1>Informasi Pilihan Jurusan</h1>
<div class="row">
<div col-md-6 col-md-offset-3>
<%= form_with(model: @major, local: true, data: {turbo: false}) do |f| %>
<%= render "shared/error_messages", object: f.object %>
<%= f.text_field :jurusan_1, class: 'form-control', placeholder: 'Jurusan 1' %>
<%= f.text_field :jurusan_2, class: 'form-control', placeholder: 'Jurusan 2' %>
<%= f.text_field :jurusan_3, class: 'form-control', placeholder: 'Jurusan 3' %>
<%= f.text_field :gelombang, class: 'form-control', placeholder: 'Gelombang' %>
<%= f.submit "Simpan", class: 'btn btn-primary' %>
<% end %>
</div>
</div>
14 changes: 14 additions & 0 deletions app/views/shared/_organization_form.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<% provide(:title, "Parent Information") %>
<h1>Informasi Kegiatan Ekstrakurikuler</h1>
<div class="row">
<div col-md-6 col-md-offset-3>
<%= form_with(model: @organization, local: true, data: {turbo: false}) do |f| %>
<%= render "shared/error_messages", object: f.object %>
<%= f.text_field :nama_organisasi, class: 'form-control', placeholder: 'Nama Organisasi' %>
<%= f.text_field :jabatan, class: 'form-control', placeholder: 'Jabatan' %>
<%= f.text_field :mulai, class: 'form-control', placeholder: 'Mulai' %>
<%= f.text_field :berakhir, class: 'form-control', placeholder: 'Berakhir' %>
<%= f.submit "Simpan", class: 'btn btn-primary' %>
<% end %>
</div>
</div>
20 changes: 20 additions & 0 deletions app/views/shared/_parent_form.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<% provide(:title, "Parent Information") %>
<h1>Informasi Data Orang Tua</h1>
<div class="row">
<div col-md-6 col-md-offset-3>
<%= form_with(model: @parent, local: true, data: {turbo: false}) do |f| %>
<%= render "shared/error_messages", object: f.object %>
<%= f.text_field :nama_ayah, class: 'form-control', placeholder: 'Nama Ayah' %>
<%= f.text_field :nama_ibu, class: 'form-control', placeholder: 'Nama Ibu' %>
<%= f.text_field :nik_ayah, class: 'form-control', placeholder: 'Nik Ayah' %>
<%= f.text_field :nik_ibu, class: 'form-control', placeholder: 'Nik Ibu' %>
<%= f.text_field :pendidikan_ayah, class: 'form-control', placeholder: 'Pendidikan Ayah' %>
<%= f.text_field :pendidikan_ibu, class: 'form-control', placeholder: 'Nomor Induk Kependudukan' %>
<%= f.text_field :pekerjaan_ayah, class: 'form-control', placeholder: 'Pekerjaan Ayah' %>
<%= f.text_field :pekerjaan_ibu, class: 'form-control', placeholder: 'Pekerjaan Ibu' %>
<%= f.text_field :tanggal_lahir_ayah, class: 'form-control', placeholder: 'Tanggal Lahir Ayah' %>
<%= f.text_field :tanggal_lahir_ibu, class: 'form-control', placeholder: 'Tanggal Lahir Ibu' %>
<%= f.submit "Simpan", class: 'btn btn-primary' %>
<% end %>
</div>
</div>
19 changes: 19 additions & 0 deletions app/views/shared/_personal_form.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<% provide(:title, "Personal Information") %>
<h1>Informasi Data Pribadi Siswa</h1>
<div class="row">
<div col-md-6 col-md-offset-3>
<%= form_with(model: @personal, local: true, data: {turbo: false}) do |f| %>
<%= render "shared/error_messages", object: f.object %>
<%= f.text_field :nama_lengkap, class: 'form-control', placeholder: 'Nama Lengkap' %>
<%= f.text_field :agama, class: 'form-control', placeholder: 'Agama' %>
<%= f.text_field :jenis_kelamin, class: 'form-control', placeholder: 'Jenis Kelamin' %>
<%= f.text_field :tempat_lahir, class: 'form-control', placeholder: 'Tempat Lahir' %>
<%= f.text_field :tanggal_lahir, class: 'form-control', placeholder: 'Tanggal Lahir' %>
<%= f.text_field :nik, class: 'form-control', placeholder: 'Nomor Induk Kependudukan' %>
<%= f.text_field :nisn, class: 'form-control', placeholder: 'Nomor Induk Siswa Nasional' %>
<%= f.text_field :no_kps, class: 'form-control', placeholder: 'Nomor Kartu Perlindungan Sosial' %>
<%= f.text_field :domisili, class: 'form-control', placeholder: 'Kabupaten Domisili' %>
<%= f.submit "Simpan", class: 'btn btn-primary' %>
<% end %>
</div>
</div>
14 changes: 14 additions & 0 deletions app/views/shared/_source_form.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<% provide(:title, "Registration Information") %>
<h1>Sumber Informasi Penerimaan Mahasiswa Baru</h1>
<div class="row">
<div col-md-6 col-md-offset-3>
<%= form_with(model: @source, local: true, data: {turbo: false}) do |f| %>
<%= render "shared/error_messages", object: f.object %>
<%= f.text_field :sumber_informasi, class: 'form-control', placeholder: 'Sumber Informasi PMB-DEL' %>
<%= f.text_field :motivasi, class: 'form-control', placeholder: 'Motivasi' %>
<%= f.text_field :jumlah_n, class: 'form-control', placeholder: 'Jumlah N' %>

<%= f.submit "Simpan", class: 'btn btn-primary' %>
<% end %>
</div>
</div>

0 comments on commit c5f9d22

Please sign in to comment.