| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <!-- Footer -->
- <footer class="footer">
- <div class="row align-items-center justify-content-xl-between">
- <div class="col-xl-6">
- <div class="copyright text-center text-xl-left text-muted">
- © 2026 Direktorat Jenderal Infrastruktur Digital Kementerian Komdigi
- </div>
- </div>
- </div>
- </footer>
- <script>
- $('.deleteConfirmation').confirm({
- title: 'Delete',
- autoClose: 'no|8000',
- type: 'red',
- typeAnimated: true,
- icon: 'fas fa-trash',
- content: 'Are you sure to delete ?',
- buttons: {
- deleteUser: {
- text: 'Yes',
- btnClass: 'btn-danger',
- action: function () {
- location.href = this.$target.attr('href');
- }
- },
- no: function () {
- }
- }
- });
- $('.confirmation').confirm({
- title: 'Konfirmasi',
- type: 'green',
- typeAnimated: true,
- icon: 'fas fa-save',
- content: 'Anda yakin akan menyimpan data ?',
- buttons: {
- confirm: {
- text: 'Simpan',
- btnClass: 'btn-success',
- action: function () {
- var target = $(this)[0].$target[0].dataset.target;
- let valid = true;
- $('#'+target+' [required]').each(function() {
- if ($(this).is(':invalid') || !$(this).val()) valid = false;
- })
-
- if(!valid){
- alert("Data tidak valid, silakan cek kembali dan lengkapi formulir");
- }else{
- $('#'+target).trigger('submit')
- }
- }
- },
- cancel: {
- text: 'Batal'
- }
- }
- });
- </script>
|