@@ -37,7 +37,7 @@
|
||||
if (processed_last_submit === true) {
|
||||
processed_last_submit = false;
|
||||
const toast = Toastify({
|
||||
text: "Scanstation is being added...",
|
||||
text: $_('scanstation-is-being-added'),
|
||||
duration: -1,
|
||||
}).showToast();
|
||||
let postdata = {
|
||||
@@ -53,7 +53,7 @@
|
||||
modal_open = false;
|
||||
//
|
||||
Toastify({
|
||||
text: "Scanstation added",
|
||||
text: $_('scanstation-added'),
|
||||
duration: 500,
|
||||
backgroundColor: "linear-gradient(to right, #00b09b, #96c93d)",
|
||||
}).showToast();
|
||||
@@ -111,12 +111,11 @@
|
||||
</div>
|
||||
<div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left">
|
||||
<h3 class="text-lg leading-6 font-medium text-gray-900">
|
||||
Create a new scanstation
|
||||
{$_('create-a-new-scanstation')}
|
||||
</h3>
|
||||
<div class="mt-2 mb-6">
|
||||
<p class="text-sm text-gray-500">
|
||||
Please provide the required information to create a new
|
||||
scanstation
|
||||
{$_('please-provide-the-required-information-to-create-a-new-scanstation')}
|
||||
</p>
|
||||
</div>
|
||||
<div class="grid grid-cols-6 gap-6">
|
||||
@@ -136,11 +135,11 @@
|
||||
<div class="col-span-6">
|
||||
<label
|
||||
for="description"
|
||||
class="block text-sm font-medium text-gray-700">Description</label>
|
||||
class="block text-sm font-medium text-gray-700">{$_('description')}</label>
|
||||
<input
|
||||
use:focus
|
||||
autocomplete="off"
|
||||
placeholder="Description"
|
||||
placeholder="{$_('description')}"
|
||||
bind:value={description}
|
||||
type="text"
|
||||
name="description"
|
||||
@@ -149,7 +148,7 @@
|
||||
<div class="col-span-6">
|
||||
<label
|
||||
for="enabled"
|
||||
class="ml-1 font-medium text-gray-700">Enabled</label>
|
||||
class="ml-1 font-medium text-gray-700">{$_('enabled')}</label>
|
||||
<br />
|
||||
<p class="text-gray-500">
|
||||
<input
|
||||
@@ -161,7 +160,7 @@
|
||||
type="checkbox"
|
||||
checked={enabled}
|
||||
class="focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded" />
|
||||
This scanstation is {#if enabled}enabled{:else}disabled{/if}
|
||||
{$_('this-scanstation-is')} {#if enabled}{$_('enabled')}{:else}{$_('disabled')}{/if}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user