CAA: Improve form usage
This commit is contained in:
parent
9cd5930393
commit
205d890f32
|
@ -32,6 +32,7 @@
|
||||||
Input,
|
Input,
|
||||||
} from '@sveltestrap/sveltestrap';
|
} from '@sveltestrap/sveltestrap';
|
||||||
|
|
||||||
|
import { t } from '$lib/translations';
|
||||||
import { issuers, rev_issuers } from './CAA-issuers';
|
import { issuers, rev_issuers } from './CAA-issuers';
|
||||||
|
|
||||||
const dispatch = createEventDispatcher();
|
const dispatch = createEventDispatcher();
|
||||||
|
@ -46,12 +47,12 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="d-flex gap-2 mb-2">
|
<div class="d-flex gap-2 mb-2">
|
||||||
{#if (newone && value.IssuerDomainName == "") || rev_issuers[value.IssuerDomainName]}
|
{#if (newone && value.IssuerDomainName == undefined) || rev_issuers[value.IssuerDomainName]}
|
||||||
<Input type="select" name="select" id="exampleSelect" readonly={readonly} bind:value={value.IssuerDomainName}>
|
<Input type="select" name="select" id="exampleSelect" readonly={readonly} bind:value={value.IssuerDomainName}>
|
||||||
{#each Object.keys(issuers) as issuer}
|
{#each Object.keys(issuers) as issuer}
|
||||||
<option value={issuers[issuer][0]}>{issuer}</option>
|
<option value={issuers[issuer][0]}>{issuer}</option>
|
||||||
{/each}
|
{/each}
|
||||||
<option value={" "}>Autre</option>
|
<option value={""}>{$t('common.other')}</option>
|
||||||
</Input>
|
</Input>
|
||||||
{:else}
|
{:else}
|
||||||
<Input type="text" bind:value={value.IssuerDomainName} />
|
<Input type="text" bind:value={value.IssuerDomainName} />
|
||||||
|
|
|
@ -44,6 +44,7 @@
|
||||||
"no-content": "No content",
|
"no-content": "No content",
|
||||||
"no-thing": "No {{thing}}",
|
"no-thing": "No {{thing}}",
|
||||||
"new-row": "New row",
|
"new-row": "New row",
|
||||||
|
"other": "Other",
|
||||||
"password": "Password",
|
"password": "Password",
|
||||||
"previous": "Previous",
|
"previous": "Previous",
|
||||||
"rename": "Rename",
|
"rename": "Rename",
|
||||||
|
|
|
@ -40,6 +40,7 @@
|
||||||
"go": "C'est parti !",
|
"go": "C'est parti !",
|
||||||
"name": "Nom",
|
"name": "Nom",
|
||||||
"next": "Suivant",
|
"next": "Suivant",
|
||||||
|
"other": "Autre",
|
||||||
"password": "Mot de passe",
|
"password": "Mot de passe",
|
||||||
"previous": "Précédent",
|
"previous": "Précédent",
|
||||||
"rename": "Renommer",
|
"rename": "Renommer",
|
||||||
|
|
Loading…
Reference in New Issue