Skip to content

Commit

Permalink
Improve text settings form
Browse files Browse the repository at this point in the history
Closes #242
  • Loading branch information
bkis committed Jun 14, 2024
1 parent 12717db commit ec2dea5
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 20 deletions.
24 changes: 12 additions & 12 deletions Tekst-Web/src/views/admin/AdminTextsSettingsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,18 @@ async function handleDelete() {
/>
</n-form-item>

<n-form-item :show-label="false">
<n-flex vertical>
<!-- LABELLED LOCATION -->
<labelled-switch
v-model="model.labeledLocation"
:label="$t('models.text.labeledLocation')"
/>
<!-- ACTIVE -->
<labelled-switch v-model="model.isActive" :label="$t('models.text.isActive')" />
</n-flex>
</n-form-item>

<!-- ACCENT COLOR -->
<n-form-item path="accentColor" :label="$t('models.text.accentColor')">
<n-color-picker
Expand All @@ -212,18 +224,6 @@ async function handleDelete() {
/>
</n-form-item>

<n-form-item :label="$t('general.flags')">
<n-flex vertical>
<!-- LABELLED LOCATION -->
<labelled-switch
v-model="model.labeledLocation"
:label="$t('models.text.labeledLocation')"
/>
<!-- ACTIVE -->
<labelled-switch v-model="model.isActive" :label="$t('models.text.isActive')" />
</n-flex>
</n-form-item>

<!-- RESOURCE CATEGORIES-->
<n-form-item v-if="model.resourceCategories" :label="$t('models.text.resourceCategories')">
<n-dynamic-input
Expand Down
7 changes: 3 additions & 4 deletions Tekst-Web/translations/ui/deDE.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ general:
important: Wichtig
filters: Filter
selected: ausgew盲hlt
flags: Merkmale
language: Sprache
platform: Plattform
not: nicht
Expand Down Expand Up @@ -260,13 +259,13 @@ models:
levelLabel: Bezeichnung
defaultLevel: Standardebene
locDelim: Fundstellentrennzeichen
labeledLocation: Beschriftete Fundstelle
labeledLocation: Ebene in Bezeichnung der Fundstellen einschlie脽en
accentColor: Akzentfarbe
resourceCategories: Ressourcen-Kategorien
resourceCategoryKey: Schl眉ssel
resourceCategoryTranslation: Beschriftung
isActive: Aktiv, 枚ffentlich gelistet
isInactive: Inaktiv, nicht 枚ffentlich gelistet
isActive: 脰ffentlich gelistet
isInactive: Nicht 枚ffentlich gelistet
formRulesFeedback:
slugChars: 'Erlaubte Zeichen: a-z und 0-9'
defaultLevelRange: 0 oder h枚her
Expand Down
7 changes: 3 additions & 4 deletions Tekst-Web/translations/ui/enUS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ general:
important: Important
filters: Filters
selected: selected
flags: Flags
language: Language
platform: Platform
not: not
Expand Down Expand Up @@ -257,13 +256,13 @@ models:
levelLabel: Label
defaultLevel: Default level
locDelim: Location delimiter
labeledLocation: Labelled location
labeledLocation: Include level in location labels
accentColor: Accent color
resourceCategories: Resource Categories
resourceCategoryKey: Key
resourceCategoryTranslation: Label
isActive: Active, publicly listed
isInactive: Inactive, not publicly listed
isActive: Publicly listed
isInactive: Not publicly listed
formRulesFeedback:
slugChars: 'Allowed characters: a-z and 0-9'
defaultLevelRange: 0 or greater
Expand Down

0 comments on commit ec2dea5

Please sign in to comment.