Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collection name requires a red asterisk to indicate it as mandatory during creation. #852

Merged
merged 2 commits into from
Dec 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 29 additions & 37 deletions frontend/src/components/collections/NewCollection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,44 +19,36 @@
>
<!-- First row -->
<div class="w-full flex sm:flex-col gap-2 mb-9 md:gap-9">
<div>
<p class="text-gray-700 text-sm mb-2">{{ $t('collections.newCollection.owner') }}</p>
<el-form-item prop="owner">
<el-select
v-model="dataForm.owner"
:placeholder="$t('all.select')"
size="large"
style="width: 312px"
>
<el-option
v-for="item in namespaces()"
:key="item"
:label="item"
:value="item"
/>
</el-select>
</el-form-item>
</div>
<el-form-item class="flex-1" :label="t('collections.newCollection.owner')" prop="owner">
<el-select
v-model="dataForm.owner"
:placeholder="$t('all.select')"
size="large"
class="!w-full"
>
<el-option
v-for="item in namespaces()"
:key="item"
:label="item"
:value="item"
/>
</el-select>
</el-form-item>
<div class="md:hidden">
<p class="h-8"></p>
<p class="text-gray-500 text-xl font-light">/</p>
</div>
<div class="flex-1">
<p class="text-gray-700 text-sm mb-2">
{{ $t('collections.newCollection.collectionName') }}
</p>
<el-form-item prop="title">
<el-input
v-model="dataForm.title"
:placeholder="$t('rule.collectionNameRule')"
style="width: 312px"
>
<template #suffix>
<InputTip :content="$t('collections.newCollection.tip')" />
</template>
</el-input>
</el-form-item>
</div>
<el-form-item class="flex-1" :label="t('collections.newCollection.collectionName')" prop="title">
<el-input
v-model="dataForm.title"
:placeholder="$t('rule.collectionNameRule')"
class="!w-full"
>
<template #suffix>
<InputTip :content="$t('collections.newCollection.tip')" />
</template>
</el-input>
</el-form-item>
</div>
<!-- Second row -->
<div class="w-full flex sm:flex-col gap-2 mb-9 md:gap-9">
Expand All @@ -68,11 +60,11 @@
<el-input
v-model="dataForm.collectionNickName"
:placeholder="$t('all.inputNickNamePlc')"
style="width: 312px"
class="!w-full"
/>
</el-form-item>
</div>
<div class="">
<div class="flex-1">
<p class="text-gray-700 text-sm mb-2">
{{ $t('collections.newCollection.selectTheme') }}
</p>
Expand All @@ -81,7 +73,7 @@
v-model="dataForm.colorName"
:placeholder="$t('all.select')"
size="large"
style="width: 312px"
class="!w-full"
>
<el-option
v-for="item in colorNameList"
Expand Down
Loading