Skip to content

Commit 67dae6b

Browse files
committed
💄 Reorder iscn book fields
1 parent e4d55dd commit 67dae6b

File tree

2 files changed

+37
-36
lines changed

2 files changed

+37
-36
lines changed

‎components/IscnRegisterForm.vue

Lines changed: 36 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -237,15 +237,34 @@
237237
/>
238238
</FormField>
239239
<Divider class="my-[12px]" />
240+
240241
<FormField
241-
v-if="shouldShowDRMOption"
242-
:label="$t('IscnRegisterForm.label.drm')"
243-
class="mb-[12px]"
244-
>
245-
<CheckBox v-model="isUseArweaveLink">
246-
{{ $t('IscnRegisterForm.label.drm.details') }}
247-
</CheckBox>
248-
</FormField>
242+
v-if="type === 'Book'"
243+
:label="$t('IscnRegisterForm.label.publisher')"
244+
>
245+
<TextField
246+
v-model="publisher"
247+
:placeholder="$t('IscnRegisterForm.placeholder.publisher')"
248+
/>
249+
</FormField>
250+
<FormField
251+
v-if="type === 'Book'"
252+
:label="$t('IscnRegisterForm.label.datePublished')"
253+
>
254+
<input
255+
v-model="datePublished"
256+
type="date"
257+
/>
258+
</FormField>
259+
<FormField
260+
v-if="type === 'Book'"
261+
:label="$t('IscnRegisterForm.label.isbn')"
262+
>
263+
<TextField
264+
v-model="isbn"
265+
:placeholder="$t('IscnRegisterForm.placeholder.isbn')"
266+
/>
267+
</FormField>
249268
<FormField
250269
v-if="type === 'Book'"
251270
:label="$t('IscnRegisterForm.label.sameAs')"
@@ -276,6 +295,15 @@
276295
:placeholder="$t('iscn.meta.license.placeholder')"
277296
/>
278297
</FormField>
298+
<FormField
299+
v-if="shouldShowDRMOption"
300+
:label="$t('IscnRegisterForm.label.drm')"
301+
class="mb-[12px]"
302+
>
303+
<CheckBox v-model="isUseArweaveLink">
304+
{{ $t('IscnRegisterForm.label.drm.details') }}
305+
</CheckBox>
306+
</FormField>
279307
<!-- fingerPrint -->
280308
<FormField
281309
:label="$t('IscnRegisterForm.label.fingerprints')"
@@ -330,33 +358,6 @@
330358
:placeholder="$t('IscnRegisterForm.placeholder.url')"
331359
/>
332360
</FormField>
333-
<FormField
334-
v-if="type === 'Book'"
335-
:label="$t('IscnRegisterForm.label.isbn')"
336-
>
337-
<TextField
338-
v-model="isbn"
339-
:placeholder="$t('IscnRegisterForm.placeholder.isbn')"
340-
/>
341-
</FormField>
342-
<FormField
343-
v-if="type === 'Book'"
344-
:label="$t('IscnRegisterForm.label.publisher')"
345-
>
346-
<TextField
347-
v-model="publisher"
348-
:placeholder="$t('IscnRegisterForm.placeholder.publisher')"
349-
/>
350-
</FormField>
351-
<FormField
352-
v-if="type === 'Book'"
353-
:label="$t('IscnRegisterForm.label.datePublished')"
354-
>
355-
<input
356-
v-model="datePublished"
357-
type="date"
358-
/>
359-
</FormField>
360361
<FormField
361362
v-if="shouldShowUploadToNumbers"
362363
:label="$t('IscnRegisterForm.label.numbersProtocol')"

‎locales/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@
222222
"IscnRegisterForm.fileSHA256.link": "hash://sha256/{hash}",
223223
"IscnRegisterForm.label.author": "Author",
224224
"IscnRegisterForm.label.stakeholder": "Stakeholders",
225-
"IscnRegisterForm.label.datePublished": "Original Date Published",
225+
"IscnRegisterForm.label.datePublished": "Original Publication Date",
226226
"IscnRegisterForm.label.description": "Description",
227227
"IscnRegisterForm.label.drm": "DRM Options",
228228
"IscnRegisterForm.label.drm.details": "Hide file storage link from public blockchain",

0 commit comments

Comments
 (0)