step 18 : animate modal show and hover button cancel, save
This commit is contained in:
466
v1/settings.html
466
v1/settings.html
@@ -157,243 +157,251 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- modal add desktop -->
|
<!-- modal add desktop -->
|
||||||
<div x-show="showDialogAdd">
|
<div x-show="showDialogAdd" x-transition.duration.200ms class="fixed z-10 inset-0">
|
||||||
<div class="fixed z-10 inset-0">
|
<div class="flex items-center justify-center min-h-screen bg-[#0F0F0F4D] transition-all">
|
||||||
<div class="flex items-center justify-center min-h-screen bg-[#0F0F0F4D] transition-all">
|
<!-- box -->
|
||||||
<!-- box -->
|
<div class="flex flex-col bg-white rounded-lg w-2/3">
|
||||||
<div class="flex flex-col bg-white rounded-lg w-2/3">
|
<!-- header -->
|
||||||
<!-- header -->
|
<div class="bg-[#2196F3] flex w-full h-10 rounded-tl-lg rounded-tr-lg">
|
||||||
<div class="bg-[#2196F3] flex w-full h-10 rounded-tl-lg rounded-tr-lg">
|
<h3 class="text-xl font-bold uppercase text-white px-4 py-1">add</h3>
|
||||||
<h3 class="text-xl font-bold uppercase text-white px-4 py-1">add</h3>
|
</div>
|
||||||
</div>
|
<!-- body -->
|
||||||
<!-- body -->
|
<div class="flex flex-1 bg-white px-6 py-5">
|
||||||
<div class="flex flex-1 bg-white px-6 py-5">
|
<div class="relative w-full">
|
||||||
<div class="relative w-full">
|
<!-- <p x-text="selectedJenis.idJenis"></p><br /> -->
|
||||||
<!-- <p x-text="selectedJenis.idJenis"></p><br /> -->
|
<!-- buka dropdown -->
|
||||||
<!-- buka dropdown -->
|
<fieldset @click.outside="openJenis = false"
|
||||||
<fieldset @click.outside="openJenis = false"
|
class="relative border border-gray-400 rounded-md focus-within:border-blue-500 focus-within:ring-1 focus-within:ring-blue-500 px-3 pt-2 pb-2">
|
||||||
class="relative border border-gray-400 rounded-md focus-within:border-blue-500 focus-within:ring-1 focus-within:ring-blue-500 px-3 pt-2 pb-2">
|
<span x-text="selectedJenis.idJenis != -1 ? 'Jenis' : selectedJenis.namaJenis"
|
||||||
<span x-text="selectedJenis.idJenis != -1 ? 'Jenis' : selectedJenis.namaJenis"
|
class="pointer-events-none absolute start-2.5 top-0 -translate-y-1/2 bg-white p-0.5 text-xs text-gray-700 transition-all peer-placeholder-shown:top-1/2 peer-placeholder-shown:text-sm peer-focus:top-0 peer-focus:text-xs">
|
||||||
class="pointer-events-none absolute start-2.5 top-0 -translate-y-1/2 bg-white p-0.5 text-xs text-gray-700 transition-all peer-placeholder-shown:top-1/2 peer-placeholder-shown:text-sm peer-focus:top-0 peer-focus:text-xs">
|
</span>
|
||||||
</span>
|
<button @click="openJenis = !openJenis" type="button"
|
||||||
<button @click="openJenis = !openJenis" type="button"
|
class="w-full flex items-center justify-between bg-transparent text-gray-900 py-0.5 focus:outline-none">
|
||||||
class="w-full flex items-center justify-between bg-transparent text-gray-900 py-0.5 focus:outline-none">
|
<span x-text="selectedJenis.namaJenis" class="text-left"></span>
|
||||||
<span x-text="selectedJenis.namaJenis" class="text-left"></span>
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 transition-transform"
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 transition-transform"
|
:class="{ 'rotate-180': openJenis }" fill="none" viewBox="0 0 24 24"
|
||||||
:class="{ 'rotate-180': openJenis }" fill="none" viewBox="0 0 24 24"
|
stroke="currentColor">
|
||||||
stroke="currentColor">
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
||||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
d="M19 9l-7 7-7-7" />
|
||||||
d="M19 9l-7 7-7-7" />
|
</svg>
|
||||||
</svg>
|
</button>
|
||||||
</button>
|
</fieldset>
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
<!-- list menu -->
|
<!-- list menu -->
|
||||||
<div x-show="openJenis"
|
<div x-show="openJenis"
|
||||||
class="absolute bg-white w-full border border-gray-300 rounded-md shadow-lg z-10 max-h-[200px] overflow-y-auto">
|
class="absolute bg-white w-full border border-gray-300 rounded-md shadow-lg z-10 max-h-[200px] overflow-y-auto">
|
||||||
<ul>
|
<ul>
|
||||||
<template x-for="item in dataJenis" :key="item.idJenis">
|
<template x-for="item in dataJenis" :key="item.idJenis">
|
||||||
<li :id="item.idJenis" @click="onChangeJenis(item)"
|
<li :id="item.idJenis" @click="onChangeJenis(item)"
|
||||||
class="py-2 px-3 hover:bg-blue-100 cursor-pointer text-gray-700">
|
class="py-2 px-3 hover:bg-blue-100 cursor-pointer text-gray-700">
|
||||||
<button x-text="item.namaJenis"></button>
|
<button x-text="item.namaJenis"></button>
|
||||||
</li>
|
</li>
|
||||||
</template>
|
</template>
|
||||||
</ul>
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- garis putus putus -->
|
||||||
|
<template x-if="selectedJenis.idJenis !== -1">
|
||||||
|
<div class="border-t border-dashed border-gray-400 mt-5 mb-5"></div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- namaJenis TCP Server -->
|
||||||
|
<template x-if="selectedJenis.idJenis === 1">
|
||||||
|
<div>
|
||||||
|
<!-- port -->
|
||||||
|
<label for="Port"
|
||||||
|
class="relative block rounded-md border border-gray-400 focus-within:border-blue-600 focus-within:ring-1 focus-within:ring-blue-600">
|
||||||
|
<input type="text" id="Port"
|
||||||
|
class="peer pl-2 border-none py-3 bg-transparent placeholder-transparent focus:border-transparent focus:ring-0 focus:outline-hidden"
|
||||||
|
placeholder="Port" />
|
||||||
|
|
||||||
|
<span
|
||||||
|
class="pointer-events-none absolute start-2.5 top-0 -translate-y-1/2 bg-white p-0.5 text-xs text-gray-700 transition-all peer-placeholder-shown:top-1/2 peer-placeholder-shown:text-sm peer-focus:top-0 peer-focus:text-xs">
|
||||||
|
Port
|
||||||
|
</span>
|
||||||
|
</label>
|
||||||
|
<div class="mb-5"></div>
|
||||||
|
<!-- interface -->
|
||||||
|
<fieldset @click.outside="openInterface = false"
|
||||||
|
class="relative border border-gray-400 rounded-md focus-within:border-blue-500 focus-within:ring-1 focus-within:ring-blue-500 px-3 pt-2 pb-2">
|
||||||
|
<span
|
||||||
|
x-text="selectedInterface.idInterface != -1 ? 'Interface' : selectedInterface.namaInterface"
|
||||||
|
class="pointer-events-none absolute start-2.5 top-0 -translate-y-1/2 bg-white p-0.5 text-xs text-gray-700 transition-all peer-placeholder-shown:top-1/2 peer-placeholder-shown:text-sm peer-focus:top-0 peer-focus:text-xs">
|
||||||
|
</span>
|
||||||
|
<button @click="openInterface = !openInterface" type="button"
|
||||||
|
class="w-full flex items-center justify-between bg-transparent text-gray-900 py-0.5 focus:outline-none">
|
||||||
|
<span x-text="selectedInterface.namaInterface" class="text-left"></span>
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg"
|
||||||
|
class="h-5 w-5 transition-transform"
|
||||||
|
:class="{ 'rotate-180': openInterface }" fill="none"
|
||||||
|
viewBox="0 0 24 24" stroke="currentColor">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round"
|
||||||
|
stroke-width="2" d="M19 9l-7 7-7-7" />
|
||||||
|
</svg>
|
||||||
|
</button>
|
||||||
|
</fieldset>
|
||||||
|
<div x-show="openInterface"
|
||||||
|
class="absolute bg-white w-full border border-gray-300 rounded-md shadow-lg z-10 max-h-[200px] overflow-y-auto">
|
||||||
|
<ul>
|
||||||
|
<template x-for="item in dataInterface" :key="item.idInterface">
|
||||||
|
<li :id="item.idInterface" @click="onChangeInterface(item)"
|
||||||
|
class="py-2 px-3 hover:bg-blue-100 cursor-pointer text-gray-700">
|
||||||
|
<button x-text="item.namaInterface"></button>
|
||||||
|
</li>
|
||||||
|
</template>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="mb-5"></div>
|
||||||
|
<!-- instrument -->
|
||||||
|
<fieldset @click.outside="openInstrument = false"
|
||||||
|
class="relative border border-gray-400 rounded-md focus-within:border-blue-500 focus-within:ring-1 focus-within:ring-blue-500 px-3 pt-2 pb-2">
|
||||||
|
<span
|
||||||
|
x-text="selectedInstrument.idInstrument != -1 ? 'Instrument' : selectedInstrument.namaInstrument"
|
||||||
|
class="pointer-events-none absolute start-2.5 top-0 -translate-y-1/2 bg-white p-0.5 text-xs text-gray-700 transition-all peer-placeholder-shown:top-1/2 peer-placeholder-shown:text-sm peer-focus:top-0 peer-focus:text-xs">
|
||||||
|
</span>
|
||||||
|
<button @click="openInstrument = !openInstrument" type="button"
|
||||||
|
class="w-full flex items-center justify-between bg-transparent text-gray-900 py-0.5 focus:outline-none">
|
||||||
|
<span x-text="selectedInstrument.namaInstrument"
|
||||||
|
class="text-left"></span>
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg"
|
||||||
|
class="h-5 w-5 transition-transform"
|
||||||
|
:class="{ 'rotate-180': openInstrument }" fill="none"
|
||||||
|
viewBox="0 0 24 24" stroke="currentColor">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round"
|
||||||
|
stroke-width="2" d="M19 9l-7 7-7-7" />
|
||||||
|
</svg>
|
||||||
|
</button>
|
||||||
|
</fieldset>
|
||||||
|
<div x-show="openInstrument"
|
||||||
|
class="absolute bg-white w-full border border-gray-300 rounded-md shadow-lg z-10 max-h-[200px] overflow-y-auto">
|
||||||
|
<ul>
|
||||||
|
<template x-for="item in dataInstrument" :key="item.idInstrument">
|
||||||
|
<li :id="item.idInstrument" @click="onChangeInstrument(item)"
|
||||||
|
class="py-2 px-3 hover:bg-blue-100 cursor-pointer text-gray-700">
|
||||||
|
<button x-text="item.namaInstrument"></button>
|
||||||
|
</li>
|
||||||
|
</template>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="mb-5"></div>
|
||||||
</div>
|
</div>
|
||||||
|
</template>
|
||||||
|
<!-- namaJenis TCP Server -->
|
||||||
|
|
||||||
<!-- garis putus putus -->
|
<!-- namaJenis TCP Client -->
|
||||||
<template x-if="selectedJenis.idJenis !== -1">
|
<template x-if="selectedJenis.idJenis === 2">
|
||||||
<div class="border-t border-dashed border-gray-400 mt-5 mb-5"></div>
|
<div>
|
||||||
</template>
|
<!-- server -->
|
||||||
|
<label for="Server"
|
||||||
|
class="relative block rounded-md border border-gray-400 focus-within:border-blue-600 focus-within:ring-1 focus-within:ring-blue-600">
|
||||||
|
<input type="text" id="Server"
|
||||||
|
class="peer pl-2 border-none py-3 bg-transparent placeholder-transparent focus:border-transparent focus:ring-0 focus:outline-hidden"
|
||||||
|
placeholder="Server" />
|
||||||
|
|
||||||
|
<span
|
||||||
|
class="pointer-events-none absolute start-2.5 top-0 -translate-y-1/2 bg-white p-0.5 text-xs text-gray-700 transition-all peer-placeholder-shown:top-1/2 peer-placeholder-shown:text-sm peer-focus:top-0 peer-focus:text-xs">
|
||||||
|
Server
|
||||||
|
</span>
|
||||||
|
</label>
|
||||||
|
<div class="mb-5"></div>
|
||||||
|
<!-- port -->
|
||||||
|
<label for="Port"
|
||||||
|
class="relative block rounded-md border border-gray-400 focus-within:border-blue-600 focus-within:ring-1 focus-within:ring-blue-600">
|
||||||
|
<input type="text" id="Port"
|
||||||
|
class="peer pl-2 border-none py-3 bg-transparent placeholder-transparent focus:border-transparent focus:ring-0 focus:outline-hidden"
|
||||||
|
placeholder="Port" />
|
||||||
|
|
||||||
<!-- namaJenis TCP Server -->
|
<span
|
||||||
<template x-if="selectedJenis.idJenis === 1">
|
class="pointer-events-none absolute start-2.5 top-0 -translate-y-1/2 bg-white p-0.5 text-xs text-gray-700 transition-all peer-placeholder-shown:top-1/2 peer-placeholder-shown:text-sm peer-focus:top-0 peer-focus:text-xs">
|
||||||
<div>
|
Port
|
||||||
<!-- port -->
|
</span>
|
||||||
<label for="Port"
|
</label>
|
||||||
class="relative block rounded-md border border-gray-400 focus-within:border-blue-600 focus-within:ring-1 focus-within:ring-blue-600">
|
<div class="mb-5"></div>
|
||||||
<input type="text" id="Port"
|
<!-- interface -->
|
||||||
class="peer pl-2 border-none py-3 bg-transparent placeholder-transparent focus:border-transparent focus:ring-0 focus:outline-hidden"
|
<fieldset @click.outside="openInterface = false"
|
||||||
placeholder="Port" />
|
class="relative border border-gray-400 rounded-md focus-within:border-blue-500 focus-within:ring-1 focus-within:ring-blue-500 px-3 pt-2 pb-2">
|
||||||
|
<span
|
||||||
<span
|
x-text="selectedInterface.idInterface != -1 ? 'Interface' : selectedInterface.namaInterface"
|
||||||
class="pointer-events-none absolute start-2.5 top-0 -translate-y-1/2 bg-white p-0.5 text-xs text-gray-700 transition-all peer-placeholder-shown:top-1/2 peer-placeholder-shown:text-sm peer-focus:top-0 peer-focus:text-xs">
|
class="pointer-events-none absolute start-2.5 top-0 -translate-y-1/2 bg-white p-0.5 text-xs text-gray-700 transition-all peer-placeholder-shown:top-1/2 peer-placeholder-shown:text-sm peer-focus:top-0 peer-focus:text-xs">
|
||||||
Port
|
</span>
|
||||||
</span>
|
<button @click="openInterface = !openInterface" type="button"
|
||||||
</label>
|
class="w-full flex items-center justify-between bg-transparent text-gray-900 py-0.5 focus:outline-none">
|
||||||
<div class="mb-5"></div>
|
<span x-text="selectedInterface.namaInterface" class="text-left"></span>
|
||||||
<!-- interface -->
|
<svg xmlns="http://www.w3.org/2000/svg"
|
||||||
<fieldset @click.outside="openInterface = false"
|
class="h-5 w-5 transition-transform"
|
||||||
class="relative border border-gray-400 rounded-md focus-within:border-blue-500 focus-within:ring-1 focus-within:ring-blue-500 px-3 pt-2 pb-2">
|
:class="{ 'rotate-180': openInterface }" fill="none"
|
||||||
<span
|
viewBox="0 0 24 24" stroke="currentColor">
|
||||||
x-text="selectedInterface.idInterface != -1 ? 'Interface' : selectedInterface.namaInterface"
|
<path stroke-linecap="round" stroke-linejoin="round"
|
||||||
class="pointer-events-none absolute start-2.5 top-0 -translate-y-1/2 bg-white p-0.5 text-xs text-gray-700 transition-all peer-placeholder-shown:top-1/2 peer-placeholder-shown:text-sm peer-focus:top-0 peer-focus:text-xs">
|
stroke-width="2" d="M19 9l-7 7-7-7" />
|
||||||
</span>
|
</svg>
|
||||||
<button @click="openInterface = !openInterface" type="button"
|
</button>
|
||||||
class="w-full flex items-center justify-between bg-transparent text-gray-900 py-0.5 focus:outline-none">
|
</fieldset>
|
||||||
<span x-text="selectedInterface.namaInterface" class="text-left"></span>
|
<div x-show="openInterface"
|
||||||
<svg xmlns="http://www.w3.org/2000/svg"
|
class="absolute bg-white w-full border border-gray-300 rounded-md shadow-lg z-10 max-h-[200px] overflow-y-auto">
|
||||||
class="h-5 w-5 transition-transform"
|
<ul>
|
||||||
:class="{ 'rotate-180': openInterface }" fill="none"
|
<template x-for="item in dataInterface" :key="item.idInterface">
|
||||||
viewBox="0 0 24 24" stroke="currentColor">
|
<li :id="item.idInterface" @click="onChangeInterface(item)"
|
||||||
<path stroke-linecap="round" stroke-linejoin="round"
|
class="py-2 px-3 hover:bg-blue-100 cursor-pointer text-gray-700">
|
||||||
stroke-width="2" d="M19 9l-7 7-7-7" />
|
<button x-text="item.namaInterface"></button>
|
||||||
</svg>
|
</li>
|
||||||
</button>
|
</template>
|
||||||
</fieldset>
|
</ul>
|
||||||
<div x-show="openInterface"
|
|
||||||
class="absolute bg-white w-full border border-gray-300 rounded-md shadow-lg z-10 max-h-[200px] overflow-y-auto">
|
|
||||||
<ul>
|
|
||||||
<template x-for="item in dataInterface" :key="item.idInterface">
|
|
||||||
<li :id="item.idInterface" @click="onChangeInterface(item)"
|
|
||||||
class="py-2 px-3 hover:bg-blue-100 cursor-pointer text-gray-700">
|
|
||||||
<button x-text="item.namaInterface"></button>
|
|
||||||
</li>
|
|
||||||
</template>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div class="mb-5"></div>
|
|
||||||
<!-- instrument -->
|
|
||||||
<fieldset @click.outside="openInstrument = false"
|
|
||||||
class="relative border border-gray-400 rounded-md focus-within:border-blue-500 focus-within:ring-1 focus-within:ring-blue-500 px-3 pt-2 pb-2">
|
|
||||||
<span
|
|
||||||
x-text="selectedInstrument.idInstrument != -1 ? 'Instrument' : selectedInstrument.namaInstrument"
|
|
||||||
class="pointer-events-none absolute start-2.5 top-0 -translate-y-1/2 bg-white p-0.5 text-xs text-gray-700 transition-all peer-placeholder-shown:top-1/2 peer-placeholder-shown:text-sm peer-focus:top-0 peer-focus:text-xs">
|
|
||||||
</span>
|
|
||||||
<button @click="openInstrument = !openInstrument" type="button"
|
|
||||||
class="w-full flex items-center justify-between bg-transparent text-gray-900 py-0.5 focus:outline-none">
|
|
||||||
<span x-text="selectedInstrument.namaInstrument"
|
|
||||||
class="text-left"></span>
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg"
|
|
||||||
class="h-5 w-5 transition-transform"
|
|
||||||
:class="{ 'rotate-180': openInstrument }" fill="none"
|
|
||||||
viewBox="0 0 24 24" stroke="currentColor">
|
|
||||||
<path stroke-linecap="round" stroke-linejoin="round"
|
|
||||||
stroke-width="2" d="M19 9l-7 7-7-7" />
|
|
||||||
</svg>
|
|
||||||
</button>
|
|
||||||
</fieldset>
|
|
||||||
<div x-show="openInstrument"
|
|
||||||
class="absolute bg-white w-full border border-gray-300 rounded-md shadow-lg z-10 max-h-[200px] overflow-y-auto">
|
|
||||||
<ul>
|
|
||||||
<template x-for="item in dataInstrument" :key="item.idInstrument">
|
|
||||||
<li :id="item.idInstrument" @click="onChangeInstrument(item)"
|
|
||||||
class="py-2 px-3 hover:bg-blue-100 cursor-pointer text-gray-700">
|
|
||||||
<button x-text="item.namaInstrument"></button>
|
|
||||||
</li>
|
|
||||||
</template>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div class="mb-5"></div>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
<div class="mb-5"></div>
|
||||||
<!-- namaJenis TCP Server -->
|
<!-- instrument -->
|
||||||
|
<fieldset @click.outside="openInstrument = false"
|
||||||
<!-- namaJenis TCP Client -->
|
class="relative border border-gray-400 rounded-md focus-within:border-blue-500 focus-within:ring-1 focus-within:ring-blue-500 px-3 pt-2 pb-2">
|
||||||
<template x-if="selectedJenis.idJenis === 2">
|
<span
|
||||||
<div>
|
x-text="selectedInstrument.idInstrument != -1 ? 'Instrument' : selectedInstrument.namaInstrument"
|
||||||
<!-- server -->
|
class="pointer-events-none absolute start-2.5 top-0 -translate-y-1/2 bg-white p-0.5 text-xs text-gray-700 transition-all peer-placeholder-shown:top-1/2 peer-placeholder-shown:text-sm peer-focus:top-0 peer-focus:text-xs">
|
||||||
<label for="Server"
|
</span>
|
||||||
class="relative block rounded-md border border-gray-400 focus-within:border-blue-600 focus-within:ring-1 focus-within:ring-blue-600">
|
<button @click="openInstrument = !openInstrument" type="button"
|
||||||
<input type="text" id="Server"
|
class="w-full flex items-center justify-between bg-transparent text-gray-900 py-0.5 focus:outline-none">
|
||||||
class="peer pl-2 border-none py-3 bg-transparent placeholder-transparent focus:border-transparent focus:ring-0 focus:outline-hidden"
|
<span x-text="selectedInstrument.namaInstrument"
|
||||||
placeholder="Server" />
|
class="text-left"></span>
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg"
|
||||||
<span
|
class="h-5 w-5 transition-transform"
|
||||||
class="pointer-events-none absolute start-2.5 top-0 -translate-y-1/2 bg-white p-0.5 text-xs text-gray-700 transition-all peer-placeholder-shown:top-1/2 peer-placeholder-shown:text-sm peer-focus:top-0 peer-focus:text-xs">
|
:class="{ 'rotate-180': openInstrument }" fill="none"
|
||||||
Server
|
viewBox="0 0 24 24" stroke="currentColor">
|
||||||
</span>
|
<path stroke-linecap="round" stroke-linejoin="round"
|
||||||
</label>
|
stroke-width="2" d="M19 9l-7 7-7-7" />
|
||||||
<div class="mb-5"></div>
|
</svg>
|
||||||
<!-- port -->
|
</button>
|
||||||
<label for="Port"
|
</fieldset>
|
||||||
class="relative block rounded-md border border-gray-400 focus-within:border-blue-600 focus-within:ring-1 focus-within:ring-blue-600">
|
<div x-show="openInstrument"
|
||||||
<input type="text" id="Port"
|
class="absolute bg-white w-full border border-gray-300 rounded-md shadow-lg z-10 max-h-[200px] overflow-y-auto">
|
||||||
class="peer pl-2 border-none py-3 bg-transparent placeholder-transparent focus:border-transparent focus:ring-0 focus:outline-hidden"
|
<ul>
|
||||||
placeholder="Port" />
|
<template x-for="item in dataInstrument" :key="item.idInstrument">
|
||||||
|
<li :id="item.idInstrument" @click="onChangeInstrument(item)"
|
||||||
<span
|
class="py-2 px-3 hover:bg-blue-100 cursor-pointer text-gray-700">
|
||||||
class="pointer-events-none absolute start-2.5 top-0 -translate-y-1/2 bg-white p-0.5 text-xs text-gray-700 transition-all peer-placeholder-shown:top-1/2 peer-placeholder-shown:text-sm peer-focus:top-0 peer-focus:text-xs">
|
<button x-text="item.namaInstrument"></button>
|
||||||
Port
|
</li>
|
||||||
</span>
|
</template>
|
||||||
</label>
|
</ul>
|
||||||
<div class="mb-5"></div>
|
|
||||||
<!-- interface -->
|
|
||||||
<fieldset @click.outside="openInterface = false"
|
|
||||||
class="relative border border-gray-400 rounded-md focus-within:border-blue-500 focus-within:ring-1 focus-within:ring-blue-500 px-3 pt-2 pb-2">
|
|
||||||
<span
|
|
||||||
x-text="selectedInterface.idInterface != -1 ? 'Interface' : selectedInterface.namaInterface"
|
|
||||||
class="pointer-events-none absolute start-2.5 top-0 -translate-y-1/2 bg-white p-0.5 text-xs text-gray-700 transition-all peer-placeholder-shown:top-1/2 peer-placeholder-shown:text-sm peer-focus:top-0 peer-focus:text-xs">
|
|
||||||
</span>
|
|
||||||
<button @click="openInterface = !openInterface" type="button"
|
|
||||||
class="w-full flex items-center justify-between bg-transparent text-gray-900 py-0.5 focus:outline-none">
|
|
||||||
<span x-text="selectedInterface.namaInterface" class="text-left"></span>
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg"
|
|
||||||
class="h-5 w-5 transition-transform"
|
|
||||||
:class="{ 'rotate-180': openInterface }" fill="none"
|
|
||||||
viewBox="0 0 24 24" stroke="currentColor">
|
|
||||||
<path stroke-linecap="round" stroke-linejoin="round"
|
|
||||||
stroke-width="2" d="M19 9l-7 7-7-7" />
|
|
||||||
</svg>
|
|
||||||
</button>
|
|
||||||
</fieldset>
|
|
||||||
<div x-show="openInterface"
|
|
||||||
class="absolute bg-white w-full border border-gray-300 rounded-md shadow-lg z-10 max-h-[200px] overflow-y-auto">
|
|
||||||
<ul>
|
|
||||||
<template x-for="item in dataInterface" :key="item.idInterface">
|
|
||||||
<li :id="item.idInterface" @click="onChangeInterface(item)"
|
|
||||||
class="py-2 px-3 hover:bg-blue-100 cursor-pointer text-gray-700">
|
|
||||||
<button x-text="item.namaInterface"></button>
|
|
||||||
</li>
|
|
||||||
</template>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div class="mb-5"></div>
|
|
||||||
<!-- instrument -->
|
|
||||||
<fieldset @click.outside="openInstrument = false"
|
|
||||||
class="relative border border-gray-400 rounded-md focus-within:border-blue-500 focus-within:ring-1 focus-within:ring-blue-500 px-3 pt-2 pb-2">
|
|
||||||
<span
|
|
||||||
x-text="selectedInstrument.idInstrument != -1 ? 'Instrument' : selectedInstrument.namaInstrument"
|
|
||||||
class="pointer-events-none absolute start-2.5 top-0 -translate-y-1/2 bg-white p-0.5 text-xs text-gray-700 transition-all peer-placeholder-shown:top-1/2 peer-placeholder-shown:text-sm peer-focus:top-0 peer-focus:text-xs">
|
|
||||||
</span>
|
|
||||||
<button @click="openInstrument = !openInstrument" type="button"
|
|
||||||
class="w-full flex items-center justify-between bg-transparent text-gray-900 py-0.5 focus:outline-none">
|
|
||||||
<span x-text="selectedInstrument.namaInstrument"
|
|
||||||
class="text-left"></span>
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg"
|
|
||||||
class="h-5 w-5 transition-transform"
|
|
||||||
:class="{ 'rotate-180': openInstrument }" fill="none"
|
|
||||||
viewBox="0 0 24 24" stroke="currentColor">
|
|
||||||
<path stroke-linecap="round" stroke-linejoin="round"
|
|
||||||
stroke-width="2" d="M19 9l-7 7-7-7" />
|
|
||||||
</svg>
|
|
||||||
</button>
|
|
||||||
</fieldset>
|
|
||||||
<div x-show="openInstrument"
|
|
||||||
class="absolute bg-white w-full border border-gray-300 rounded-md shadow-lg z-10 max-h-[200px] overflow-y-auto">
|
|
||||||
<ul>
|
|
||||||
<template x-for="item in dataInstrument" :key="item.idInstrument">
|
|
||||||
<li :id="item.idInstrument" @click="onChangeInstrument(item)"
|
|
||||||
class="py-2 px-3 hover:bg-blue-100 cursor-pointer text-gray-700">
|
|
||||||
<button x-text="item.namaInstrument"></button>
|
|
||||||
</li>
|
|
||||||
</template>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div class="mb-5"></div>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
<div class="mb-5"></div>
|
||||||
<!-- namaJenis TCP Client -->
|
</div>
|
||||||
</div>
|
</template>
|
||||||
|
<!-- namaJenis TCP Client -->
|
||||||
|
|
||||||
|
<!-- -->
|
||||||
</div>
|
</div>
|
||||||
<!-- footer -->
|
</div>
|
||||||
<div class="h-10 px-4 py-2">
|
<!-- footer -->
|
||||||
<div class="flex items-end justify-end">
|
<div class="h-10 px-4 py-2 mb-5">
|
||||||
<button
|
<div class="flex items-end justify-end">
|
||||||
class="mr-3 text-[#FF5252] font-bold text-sm uppercase" @click="closeDialog()">Cancel</button>
|
<button
|
||||||
<button class="text-[#1976D2] font-bold text-sm uppercase">Save</button>
|
@click="closeDialog()"
|
||||||
</div>
|
class="mr-3 text-[#FF5252] hover:text-white font-bold text-sm uppercase transition duration-200
|
||||||
|
hover:bg-[#FF5252] px-4 py-2 rounded-md">
|
||||||
|
Cancel
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
class="text-[#1976D2] font-bold text-sm uppercase px-4 py-2 rounded-md transition duration-200
|
||||||
|
hover:bg-[#1976D2] hover:text-white">
|
||||||
|
Save
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user