Skip to content

Commit

Permalink
💄 Reorder iscn book fields
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Dec 18, 2024
1 parent e4d55dd commit 6a85c02
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 36 deletions.
71 changes: 36 additions & 35 deletions components/IscnRegisterForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -237,15 +237,34 @@
/>
</FormField>
<Divider class="my-[12px]" />

<FormField
v-if="shouldShowDRMOption"
:label="$t('IscnRegisterForm.label.drm')"
class="mb-[12px]"
>
<CheckBox v-model="isUseArweaveLink">
{{ $t('IscnRegisterForm.label.drm.details') }}
</CheckBox>
</FormField>
v-if="type === 'Book'"
:label="$t('IscnRegisterForm.label.publisher')"
>
<TextField
v-model="publisher"
:placeholder="$t('IscnRegisterForm.placeholder.publisher')"
/>
</FormField>
<FormField
v-if="type === 'Book'"
:label="$t('IscnRegisterForm.label.datePublished')"
>
<input
v-model="datePublished"
type="date"
/>
</FormField>
<FormField
v-if="type === 'Book'"
:label="$t('IscnRegisterForm.label.isbn')"
>
<TextField
v-model="isbn"
:placeholder="$t('IscnRegisterForm.placeholder.isbn')"
/>
</FormField>
<FormField
v-if="type === 'Book'"
:label="$t('IscnRegisterForm.label.sameAs')"
Expand Down Expand Up @@ -276,6 +295,15 @@
:placeholder="$t('iscn.meta.license.placeholder')"
/>
</FormField>
<FormField
v-if="shouldShowDRMOption"
:label="$t('IscnRegisterForm.label.drm')"
class="mb-[12px]"
>
<CheckBox v-model="isUseArweaveLink">
{{ $t('IscnRegisterForm.label.drm.details') }}
</CheckBox>
</FormField>
<!-- fingerPrint -->
<FormField
:label="$t('IscnRegisterForm.label.fingerprints')"
Expand Down Expand Up @@ -330,33 +358,6 @@
:placeholder="$t('IscnRegisterForm.placeholder.url')"
/>
</FormField>
<FormField
v-if="type === 'Book'"
:label="$t('IscnRegisterForm.label.isbn')"
>
<TextField
v-model="isbn"
:placeholder="$t('IscnRegisterForm.placeholder.isbn')"
/>
</FormField>
<FormField
v-if="type === 'Book'"
:label="$t('IscnRegisterForm.label.publisher')"
>
<TextField
v-model="publisher"
:placeholder="$t('IscnRegisterForm.placeholder.publisher')"
/>
</FormField>
<FormField
v-if="type === 'Book'"
:label="$t('IscnRegisterForm.label.datePublished')"
>
<input
v-model="datePublished"
type="date"
/>
</FormField>
<FormField
v-if="shouldShowUploadToNumbers"
:label="$t('IscnRegisterForm.label.numbersProtocol')"
Expand Down
2 changes: 1 addition & 1 deletion locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@
"IscnRegisterForm.fileSHA256.link": "hash://sha256/{hash}",
"IscnRegisterForm.label.author": "Author",
"IscnRegisterForm.label.stakeholder": "Stakeholders",
"IscnRegisterForm.label.datePublished": "Original Date Published",
"IscnRegisterForm.label.datePublished": "Original Publication Date",
"IscnRegisterForm.label.description": "Description",
"IscnRegisterForm.label.drm": "DRM Options",
"IscnRegisterForm.label.drm.details": "Hide file storage link from public blockchain",
Expand Down

0 comments on commit 6a85c02

Please sign in to comment.