feat: improve project edit form

This moves the identifier and colorpicker below the description field and next to each other.

Additionally this fixes a bug of the identifier, where it was possible to add an identifier with a length greater than 10, that resulted in an error.
This commit is contained in:
Dominik Pschenitschni 2025-01-24 12:37:40 +01:00
parent 66293795e7
commit 9c115b7f5c
1 changed files with 31 additions and 26 deletions

View File

@ -26,28 +26,6 @@
>
</div>
</div>
<div class="field">
<label
v-tooltip="$t('project.edit.identifierTooltip')"
class="label"
for="identifier"
>
{{ $t('project.edit.identifier') }}
</label>
<div class="control">
<input
id="identifier"
v-model="project.identifier"
v-focus
:class="{ 'disabled': isLoading}"
:disabled="isLoading || undefined"
class="input"
:placeholder="$t('project.edit.identifierPlaceholder')"
type="text"
@keyup.enter="save"
>
</div>
</div>
<div class="field">
<label class="label">{{ $t('project.parent') }}</label>
<div class="control">
@ -69,10 +47,37 @@
/>
</div>
</div>
<div class="field">
<label class="label">{{ $t('project.edit.color') }}</label>
<div class="control">
<ColorPicker v-model="project.hexColor" />
<div class="columns">
<div class="column field">
<label
v-tooltip="$t('project.edit.identifierTooltip')"
class="label"
for="identifier"
>
{{ $t('project.edit.identifier') }}
</label>
<div class="control">
<input
id="identifier"
v-model="project.identifier"
v-focus
:class="{ 'disabled': isLoading}"
:disabled="isLoading || undefined"
class="input"
:placeholder="$t('project.edit.identifierPlaceholder')"
type="text"
maxlength="10"
@keyup.enter="save"
>
</div>
</div>
<div class="column field">
<label class="label">{{ $t('project.edit.color') }}</label>
<div class="control">
<ColorPicker v-model="project.hexColor" />
</div>
</div>
</div>
</CreateEdit>