Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- HALAMAN -->
- <div class="mx-2">
- <div class="bg-white rounded-md h-12 flex items-center justify-between shadow-lg">
- <div class="p-4 text-gray-400 text-xs sm:text-sm">Pinjam Jaminan</div>
- <div class="p-4 cursor-pointer" (click)="get()">
- <svg class="w-5 hover:text-blue-600" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
- <path fill-rule="evenodd" d="M4 2a1 1 0 011 1v2.101a7.002 7.002 0 0111.601 2.566 1 1 0 11-1.885.666A5.002 5.002 0 005.999 7H9a1 1 0 010 2H4a1 1 0 01-1-1V3a1 1 0 011-1zm.008 9.057a1 1 0 011.276.61A5.002 5.002 0 0014.001 13H11a1 1 0 110-2h5a1 1 0 011 1v5a1 1 0 11-2 0v-2.101a7.002 7.002 0 01-11.601-2.566 1 1 0 01.61-1.276z" clip-rule="evenodd" />
- </svg>
- </div>
- </div>
- </div>
- <!-- CONTENT -->
- <div class="mx-2 mt-5">
- <div class="m-2 flex flex-col">
- <!-- <div class="grid grid-cols-1 gap-1 m-4">
- <div class="">
- <label>Periode Tanggal </label>
- </div>
- <div class="">
- <input type="date" class="text-xs border-2 w-48 border-gray-400 px-3 h-6 shadow-inner text-gray-500 bg-white"
- name="startDate" [ngModel]="tglFilter.startDate | date:'yyyy-MM-dd'" (change)="gantiFormatTgl1($event)">
- </div>
- <div class="">S/D</div>
- <div class="">
- <input type="date" class="text-xs border-2 w-48 border-gray-400 px-3 h-6 shadow-inner text-gray-500 bg-white"
- name="endDate" [ngModel]="tglFilter.endDate | date:'yyyy-MM-dd'" (change)="gantiFormatTgl2($event)">
- </div>
- </div> -->
- <div class="flex flex-col sm:flex-row sm:justify-between m-4 pt-5 text-xs sm:text-sm space-y-2">
- <div class="inline">
- <label>Pilih Provinsi </label>
- <select class="focus:ring-indigo-500 focus:border-indigo-500 h-full py-0 pl-2 pr-7 border-transparent bg-transparent text-gray-500 sm:text-sm rounded-md shadow-md"
- name="provinsi"
- (change)="selectLoopProvinsi()"
- [(ngModel)]="tbl.provinsi">
- <option disabled
- [selected]="tbl.provinsi == null || tbl.provinsi == ''"
- value="">Pilih Provinsi</option>
- <option
- *ngFor="let provinsi of provinsis;"
- [ngValue]="provinsi.id">
- {{provinsi.deskripsi}}</option>
- </select>
- </div>
- <div class="inline">
- <label class="mr-3">Cari Berdasarkan</label>
- <select class="p-1 bg-white text-gray-700 shadow-md rounded-lg" name="modelSlctBerdasarkan" [(ngModel)]="modelSlctBerdasarkan" (change)="selectBerdasarkan($event)">
- <option *ngFor="let cariberdasarkan of arraySlctBerdasarkan">{{cariberdasarkan}}</option>
- </select>
- </div>
- </div>
- <div class="flex flex-col sm:flex-row sm:justify-between m-4 pt-5 text-xs sm:text-sm space-y-2">
- <div class="inline">
- <label>Pilih Kabupaten </label>
- <select class="focus:ring-indigo-500 focus:border-indigo-500 h-full py-0 pl-2 pr-7 border-transparent bg-transparent text-gray-500 sm:text-sm rounded-md shadow-md"
- name="idKab"
- (change)="selectLoopKabupaten()"
- [(ngModel)]="tbl.idKab">
- <option disabled
- [selected]="tbl.idKab == null || tbl.idKab == ''"
- value="">Pilih Kabupaten</option>
- <option
- *ngFor="let kabupaten of kabupatens;"
- [ngValue]="kabupaten.id">
- {{kabupaten.deskripsi}}</option>
- </select>
- </div>
- <div class="inline" *ngIf="modelSlctBerdasarkan === 'ID Mitra' || modelSlctBerdasarkan === 'Status'">
- <input class="appearance-none border border-transparent py-1 px-3 bg-white text-gray-700 placeholder-gray-400 shadow-md rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-600 focus:border-transparent"
- type="text" placeholder="{{modelSlctBerdasarkan}} ..." (keyup)="searchStringType($event, modelSlctBerdasarkan)" value="">
- </div>
- <div class="inline" *ngIf="modelSlctBerdasarkan === 'ID Proposal'">
- <input class="appearance-none border border-transparent py-1 px-3 bg-white text-gray-700 placeholder-gray-400 shadow-md rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-600 focus:border-transparent"
- type="number" placeholder="{{modelSlctBerdasarkan}} ..." (keyup)="searchNumberType($event, modelSlctBerdasarkan)" value="">
- </div>
- </div>
- <div class="flex flex-col sm:flex-row sm:justify-between m-4 pt-5 text-xs sm:text-sm space-y-2">
- <div class="inline">
- <label>Pilih Kecamatan </label>
- <select class="focus:ring-indigo-500 focus:border-indigo-500 h-full py-0 pl-2 pr-7 border-transparent bg-transparent text-gray-500 sm:text-sm rounded-md shadow-md"
- name="idKec"
- [(ngModel)]="tbl.idKec"
- (change)="selectLoopKecamatan()"
- [(ngModel)]="tbl.idKec">
- <option disabled
- [selected]="tbl.idKec == null || tbl.idKec == ''"
- value="">Pilih Pecamatan</option>
- <option
- *ngFor="let kecamatan of kecamatans;"
- [ngValue]="kecamatan.id">
- {{kecamatan.deskripsi}}</option>
- </select>
- </div>
- <div class="inline">
- </div>
- <div class="inline" >
- </div>
- </div>
- <!-- <div *ngIf="loadingPage" class="flex flex justify-center h-screen"><img class="max-w-sm" src="../../../assets/img/spinner.svg" alt="loading"></div> -->
- <div class="animate-pulse" *ngIf="loadingPage">
- <div class="h-3 bg-gray-200 mt-3 mb-6 rounded"></div>
- <div class="h-3 bg-gray-300 mb-6 rounded"></div>
- <div class="h-3 bg-gray-200 mb-6 rounded"></div>
- <div class="h-3 bg-gray-300 mb-6 rounded"></div>
- <div class="h-3 bg-gray-200 mb-6 rounded"></div>
- <div class="h-3 bg-gray-200 mt-3 mb-6 rounded"></div>
- <div class="h-3 bg-gray-300 mb-6 rounded"></div>
- <div class="h-3 bg-gray-200 mb-6 rounded"></div>
- <div class="h-3 bg-gray-300 mb-6 rounded"></div>
- <div class="h-3 bg-gray-200 mb-6 rounded"></div>
- <div class="h-3 bg-gray-200 mt-3 mb-6 rounded"></div>
- <div class="h-3 bg-gray-300 mb-6 rounded"></div>
- <div class="h-3 bg-gray-200 mb-6 rounded"></div>
- <div class="h-3 bg-gray-300 mb-6 rounded"></div>
- <div class="h-3 bg-gray-200 mb-6 rounded"></div>
- <div class="h-3 bg-gray-200 mt-3 mb-6 rounded"></div>
- <div class="h-3 bg-gray-300 mb-6 rounded"></div>
- <div class="h-3 bg-gray-200 mb-6 rounded"></div>
- <div class="h-3 bg-gray-300 mb-6 rounded"></div>
- <div class="h-3 bg-gray-200 mb-6 rounded"></div>
- </div>
- <div class="bg-white shadow-xl rounded-lg ">
- <div class="grid grid-cols-6 gap-6">
- <div class="col-span-6">
- <div class="overflow-x-auto">
- <table class="ml-auto mr-auto" *ngIf="!loadingPage">
- <tr class="bg-gray-50 text-xs text-gray-800 uppercase">
- <th class="px-2 py-2 border">no</th>
- <th class="px-2 py-2 border">id mitra</th>
- <th class="px-2 py-2 border">nama mitra</th>
- <th class="px-2 py-2 border" colspan="2">alamat</th>
- <th class="px-2 py-2 border">status</th>
- <th class="px-2 py-2 border" colspan="2">aksi</th>
- </tr>
- <tbody class="bg-white divide-y divide-gray-200" *ngFor="let item of tbls | slice:sliceAwal:sliceAkhir; let i = index">
- <tr class="text-center text-xs text-gray-500 uppercase border">
- <td rowspan="3" class="px-2 py-2 border">{{i+1}}</td>
- <td rowspan="3" class="px-2 py-2 border">{{item.idMitra}}</td>
- <td rowspan="3" class="px-2 py-2 border">{{item.namaMitra}}</td>
- <th class="px-2 py-3 border">Provinsi</th>
- <td class="px-2 py-3 border">{{item.provinsi}}</td>
- <td rowspan="3" class="px-2 py-2 border">
- <div class="px-2 rounded-md font-semibold w-48 text-xs"
- [ngClass]="{'bg-green-100': item.status === 'Cair', 'bg-yellow-100': item.status === 'Belum Cair', 'bg-blue-100': item.status === 'Sdh Melakukan Covernote', 'bg-red-100': item.status === 'PENDING'}">
- {{item.status}}
- </div>
- </td>
- <td rowspan="3" class="px-2 py-2 border">
- <button class="p-2 hover:bg-blue-600 hover:text-blue-100 rounded-lg" (click)="modalPilihanSP3(item)">
- <svg class="w-4" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24" stroke="currentColor">
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 15l-2 5L9 9l11 4-5 2zm0 0l5 5M7.188 2.239l.777 2.897M5.136 7.965l-2.898-.777M13.95 4.05l-2.122 2.122m-5.657 5.656l-2.12 2.122" />
- </svg>
- <label class="sr-only">covernote</label>
- </button>
- </td>
- <!-- <td rowspan="3" class="px-2 py-2 border">
- <button class="p-2 hover:bg-yellow-600 hover:text-yellow-100 rounded-lg" (click)="modalSubmit(item)">
- <svg class="w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
- <path d="M17.414 2.586a2 2 0 00-2.828 0L7 10.172V13h2.828l7.586-7.586a2 2 0 000-2.828z" />
- <path fill-rule="evenodd" d="M2 6a2 2 0 012-2h4a1 1 0 010 2H4v10h10v-4a1 1 0 112 0v4a2 2 0 01-2 2H4a2 2 0 01-2-2V6z" clip-rule="evenodd" />
- </svg>
- <label class="sr-only">Adendum</label>
- </button>
- </td> -->
- <td rowspan="3" class="px-2 py-2 border">
- <button class="p-2 hover:bg-green-600 hover:text-green-100 rounded-lg" (click)="modalSubmit(item)">
- <svg class="w-4" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4M7.835 4.697a3.42 3.42 0 001.946-.806 3.42 3.42 0 014.438 0 3.42 3.42 0 001.946.806 3.42 3.42 0 013.138 3.138 3.42 3.42 0 00.806 1.946 3.42 3.42 0 010 4.438 3.42 3.42 0 00-.806 1.946 3.42 3.42 0 01-3.138 3.138 3.42 3.42 0 00-1.946.806 3.42 3.42 0 01-4.438 0 3.42 3.42 0 00-1.946-.806 3.42 3.42 0 01-3.138-3.138 3.42 3.42 0 00-.806-1.946 3.42 3.42 0 010-4.438 3.42 3.42 0 00.806-1.946 3.42 3.42 0 013.138-3.138z" />
- </svg>
- <label class="sr-only">Submit</label>
- </button>
- </td>
- </tr>
- <tr class="text-center text-xs text-gray-500 uppercase border">
- <th class="px-2 py-3 border">kabupaten</th>
- <td class="px-2 py-2 border">{{item.kabupaten}}</td>
- </tr>
- <tr class="text-center text-xs text-gray-500 uppercase border">
- <th class="px-2 py-3 border">kecamatan</th>
- <td class="px-2 py-2 border">{{item.kecamatan}}</td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- <div class="px-4 py-3 flex items-center justify-end border-t border-gray-200 sm:px-6" *ngIf="!loadingPage">
- <nav class="relative z-0 inline-flex shadow-sm -space-x-px" aria-label="Pagination" *ngFor="let page of pageKe | slice:0:10; let j = index;">
- <div>
- <a class="relative inline-flex items-center px-4 py-2 border border-gray-300 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 page-item"
- [ngClass]="{ 'bg-blue-400': j === 0 }" (click)="activePage($event, j)">{{j+1}}</a>
- </div>
- </nav>
- </div>
- </div>
- </div>
- <!-- SEMUA TOAST NNTI DI JADIKAN GLOBAL -->
- <div class="fixed right-0 top-0 m-5 z-10" *ngIf="isToastSukses || isToastGagal">
- <div class="flex items-center bg-green-500 border-l-4 border-green-700 py-2 px-3 shadow-md mb-2 animate-pulse" *ngIf="isToastSukses">
- <div class="text-green-500 rounded-full bg-white mr-3">
- <svg class="w-8" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" />
- </svg>
- </div>
- <div class="text-white max-w-xs ">
- Data Berhasil Disimpan
- </div>
- </div>
- <div class="flex items-center bg-red-500 border-l-4 border-red-700 py-2 px-3 shadow-md mb-2 animate-pulse" *ngIf="isToastGagal">
- <div class="text-red-500 rounded-full bg-white mr-3">
- <svg class="w-8" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z" />
- </svg>
- </div>
- <div class="text-white max-w-xs ">
- {{pesanError}}
- </div>
- </div>
- </div>
- <!-- MODAL -->
- <div id="myModalPilihanUtamaAdendum" class="modal">
- <div class="modal-content-sm">
- <div class="flex flex-row justify-between items-center">
- <p class="text-xl">Pilihan Cover Note</p>
- <span class="close" style="color: red;" (click)="modalClose()">×</span>
- </div>
- <hr class="border border-collapse mb-10">
- <div *ngIf="loadingPage" class="flex flex justify-center h-screen"><img class="max-w-sm" src="../../../assets/img/spinner.svg" alt="loading"></div>
- <div *ngIf="!loadingPage">
- <div class="mt-10 sm:mt-0">
- <div class="md:grid md:grid-cols-3 md:gap-6">
- <div class="mt-5 md:mt-0 md:col-span-3">
- <form action="#" method="POST">
- <div class="shadow overflow-hidden sm:rounded-md">
- <div class="px-4 py-5 bg-white space-y-6 sm:p-6">
- <fieldset>
- <div class="flex justify-between">
- <div class="text-base font-medium text-gray-900 inline">Utama</div>
- <div class="flex items-center">
- <button class="p-2 text-blue-500 hover:text-blue-300 rounded-lg" (click)="masukDetailCoverNote('UTAMA')">
- <svg class="w-4" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24" stroke="currentColor">
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 15l-2 5L9 9l11 4-5 2zm0 0l5 5M7.188 2.239l.777 2.897M5.136 7.965l-2.898-.777M13.95 4.05l-2.122 2.122m-5.657 5.656l-2.12 2.122" />
- </svg>
- <label class="sr-only">Masuk Utama</label>
- </button>
- <!-- <button class="p-2 text-yellow-500 hover:text-yellow-300 rounded-lg" (click)="masukDetailCoverNote()">
- <svg class="w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
- <path d="M17.414 2.586a2 2 0 00-2.828 0L7 10.172V13h2.828l7.586-7.586a2 2 0 000-2.828z" />
- <path fill-rule="evenodd" d="M2 6a2 2 0 012-2h4a1 1 0 010 2H4v10h10v-4a1 1 0 112 0v4a2 2 0 01-2 2H4a2 2 0 01-2-2V6z" clip-rule="evenodd" />
- </svg>
- <label class="sr-only">Edit Utama</label>
- </button> -->
- </div>
- </div>
- <!-- <div class="flex justify-between border-b border-t border-gray-200">
- <div class="text-base font-medium text-gray-900">Addendum</div>
- <button class="p-2 hover:text-green-500 rounded-lg" (click)="addAdedndum()" *ngIf="isAddAdendum">
- <svg class="w-4" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v3m0 0v3m0-3h3m-3 0H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z" />
- </svg>
- <label class="sr-only">Add Adendum</label>
- </button>
- <button class="p-2 text-blue-500 hover:text-blue-300 rounded-lg" (click)="masukDetailCoverNote('ADENDUM')">
- <svg class="w-4" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24" stroke="currentColor">
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 15l-2 5L9 9l11 4-5 2zm0 0l5 5M7.188 2.239l.777 2.897M5.136 7.965l-2.898-.777M13.95 4.05l-2.122 2.122m-5.657 5.656l-2.12 2.122" />
- </svg>
- <label class="sr-only">Masuk Adendum</label>
- </button>
- </div> -->
- <!-- <div class="bg-gray-50 flex flex-row m-2 items-center justify-between" *ngFor="let adendum of arrayAdendum; let i = index; let last = last;">
- <div class="text-base font-medium text-gray-600">- Addendum {{i+1}}</div>
- <div class="flex items-center">
- <button class="p-2 text-blue-500 hover:text-blue-300 rounded-lg" (click)="masukDetailCoverNote('ADENDUM')">
- <svg class="w-4" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24" stroke="currentColor">
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 15l-2 5L9 9l11 4-5 2zm0 0l5 5M7.188 2.239l.777 2.897M5.136 7.965l-2.898-.777M13.95 4.05l-2.122 2.122m-5.657 5.656l-2.12 2.122" />
- </svg>
- <label class="sr-only">Masuk Adendum</label>
- </button>
- </div>
- </div> -->
- <!-- LIST ADDENDUM -->
- </fieldset>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- MODAL SUBMIT -->
- <div id="myModalSubmit" class="modal">
- <div class="modal-content">
- <div class="flex flex-row justify-between items-center">
- <p class="text-xl">Submit Cover Note</p>
- <span class="close" style="color: red;" (click)="modalClose()">×</span>
- </div>
- <hr class="border border-collapse mb-10">
- <div *ngIf="loadingSubmit" class="flex flex justify-center h-screen"><img class="max-w-sm" src="../../../assets/img/spinner.svg" alt="loading"></div>
- <div *ngIf="!loadingSubmit">
- <div class="mt-10 sm:mt-0">
- <div class="md:grid md:grid-cols-3 md:gap-6">
- <div class="mt-5 md:mt-0 md:col-span-3">
- <form action="#" method="POST">
- <div class="shadow overflow-hidden sm:rounded-md">
- <div class="px-4 py-5 bg-white space-y-6 sm:p-6">
- <fieldset>
- <div class="text-base font-medium text-gray-900 inline">ID Proposal</div>
- <div class="text-sm text-gray-500 inline ml-5">{{modelSubmit.idProposal}}</div>
- <div class="mt-4 space-y-4">
- <!-- <div class="flex items-center">
- <input id="push_everything" name="push_notifications" type="radio" class="focus:ring-indigo-500 h-4 w-4 text-indigo-600">
- <label for="push_everything" class="ml-3 block text-sm font-medium text-gray-700">
- Everything
- </label>
- </div> -->
- <div class="flex items-start">
- <div class="flex items-center h-5">
- <input id="isApproveShow" name="isApproveShow" type="checkbox" class="focus:ring-indigo-500 h-4 w-4 text-indigo-600 rounded"
- [(ngModel)]="modelSubmit.isApproveCheck" (change)="checkboxApprove()" [checked]="modelSubmit.isApproveCheck === true" [value]="modelSubmit.isApproveCheck">
- </div>
- <div class="ml-3 text-sm">
- <label for="comments" class="font-medium text-gray-700">Approve</label>
- </div>
- </div>
- <div *ngIf="modelSubmit.isApproveCheck">
- <!-- <textarea rows="4" name="approveKeterangan"
- [(ngModel)]="modelSubmit.approveKeterangan"
- autocomplete="off" class="mt-2 p-1 focus:outline-none focus:ring-2 focus:ring-blue-500 block w-full shadow-md sm:text-sm rounded-md disabled:opacity-50 disabled:cursor-not-allowed">
- </textarea> -->
- <textarea name="alamatPerusahaanNotaris"class="w-full min-h-[100px] max-h-[300px]
- h-28 appearance-none block w-full bg-grey-lighter text-grey-darker border border-grey-lighter
- rounded-lg py-4 px-4"
- name="approveKeterangan"
- [(ngModel)]="modelSubmit.approveKeterangan" placeholder="Ketik Keterangan Approve"></textarea>
- </div>
- </div>
- </fieldset>
- </div>
- <div class="px-4 py-3 bg-gray-50 text-right sm:px-6">
- <button (click)="btnSaveSubmit()" type="submit" class="inline-flex justify-center py-2 px-6 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-green-500 hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500 disabled:opacity-50 disabled:cursor-not-allowed" >
- Submit
- <svg class="w-5 ml-2" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 19l9 2-9-18-9 18 9-2zm0 0v-8" />
- </svg>
- </button>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement