Skip to content

Commit

Permalink
Add weight field
Browse files Browse the repository at this point in the history
  • Loading branch information
sebousan committed Dec 6, 2023
1 parent d7e721f commit 5e8ad9f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
21 changes: 21 additions & 0 deletions admin/app/fields/weight.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { t } from '../i18n/translater.js';

export const weight = {
name: 'weight',
label: t.fields.weight,
widget: 'select',
options: [
{ label: '1- Le plus important', value: 10 },
{ label: '2- Très important', value: 20 },
{ label: '3- Important', value: 30 },
{ label: '4- …', value: 40 },
{ label: '5- …', value: 50 },
{ label: '6- …', value: 60 },
{ label: '7- …', value: 70 },
{ label: '8- Peu important', value: 80 },
{ label: '9- Pas important', value: 90 },
{ label: '10- Le moins important', value: 100 }
],
required: true,
i18n: 'duplicate'
};
3 changes: 2 additions & 1 deletion admin/app/i18n/en/fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ export const fields = {
screenshot: {
label: 'Screenshot?',
hint: 'This will add a browser skin'
},
},
state: {
label: 'State',
options: {
Expand Down Expand Up @@ -350,5 +350,6 @@ export const fields = {
label: 'Website',
hint: 'URL (https://…)'
},
weight: 'Importance order',
zoom: 'Zoom'
};
1 change: 1 addition & 0 deletions admin/app/i18n/fr/fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,5 +349,6 @@ export const fields = {
label: 'Site web',
hint: 'URL (https://…)'
},
weight: 'Ordre d’importance',
zoom: 'Zoom'
};

0 comments on commit 5e8ad9f

Please sign in to comment.