mirror of
https://github.com/strapi/strapi.git
synced 2025-09-18 04:47:27 +00:00
Change form layout
Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
parent
fa83bc1508
commit
dda1aa08c1
@ -28,8 +28,7 @@ const advancedForm = {
|
|||||||
],
|
],
|
||||||
[uiHelpers.divider],
|
[uiHelpers.divider],
|
||||||
[options.private],
|
[options.private],
|
||||||
[options.required],
|
[options.required, options.unique],
|
||||||
[options.unique],
|
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@ -61,8 +60,7 @@ const advancedForm = {
|
|||||||
],
|
],
|
||||||
[uiHelpers.divider],
|
[uiHelpers.divider],
|
||||||
[options.private],
|
[options.private],
|
||||||
[options.required],
|
[options.required, options.unique],
|
||||||
[options.unique],
|
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@ -82,10 +80,8 @@ const advancedForm = {
|
|||||||
],
|
],
|
||||||
[uiHelpers.divider],
|
[uiHelpers.divider],
|
||||||
[options.private],
|
[options.private],
|
||||||
[options.required],
|
[options.required, options.unique],
|
||||||
[options.unique],
|
[options.maxLength, options.minLength],
|
||||||
[options.maxLength],
|
|
||||||
[options.minLength],
|
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@ -120,8 +116,6 @@ const advancedForm = {
|
|||||||
: []
|
: []
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
],
|
|
||||||
[
|
|
||||||
{
|
{
|
||||||
label: {
|
label: {
|
||||||
id: getTrad('form.attribute.item.enumeration.graphql'),
|
id: getTrad('form.attribute.item.enumeration.graphql'),
|
||||||
@ -136,14 +130,13 @@ const advancedForm = {
|
|||||||
],
|
],
|
||||||
[uiHelpers.divider],
|
[uiHelpers.divider],
|
||||||
[options.private],
|
[options.private],
|
||||||
[options.required],
|
[options.required, options.unique],
|
||||||
[options.unique],
|
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
json: () => {
|
json: () => {
|
||||||
return {
|
return {
|
||||||
items: [[uiHelpers.divider], [options.private], [options.required], [options.unique]],
|
items: [[uiHelpers.divider], [options.private], [options.required, options.unique]],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
media: () => {
|
media: () => {
|
||||||
@ -151,8 +144,7 @@ const advancedForm = {
|
|||||||
items: [
|
items: [
|
||||||
[uiHelpers.divider],
|
[uiHelpers.divider],
|
||||||
[options.private],
|
[options.private],
|
||||||
[options.required],
|
[options.required, options.unique],
|
||||||
[options.unique],
|
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
label: {
|
label: {
|
||||||
@ -186,10 +178,8 @@ const advancedForm = {
|
|||||||
],
|
],
|
||||||
[uiHelpers.divider],
|
[uiHelpers.divider],
|
||||||
[options.private],
|
[options.private],
|
||||||
[options.required],
|
[options.required, options.unique],
|
||||||
[options.unique],
|
[options.max, options.min],
|
||||||
[options.max],
|
|
||||||
[options.min],
|
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@ -199,10 +189,8 @@ const advancedForm = {
|
|||||||
[options.default],
|
[options.default],
|
||||||
[uiHelpers.divider],
|
[uiHelpers.divider],
|
||||||
[options.private],
|
[options.private],
|
||||||
[options.required],
|
[options.required, options.unique],
|
||||||
[options.unique],
|
[options.maxLength, options.minLength],
|
||||||
[options.maxLength],
|
|
||||||
[options.minLength],
|
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@ -249,24 +237,19 @@ const advancedForm = {
|
|||||||
[options.default],
|
[options.default],
|
||||||
[uiHelpers.divider],
|
[uiHelpers.divider],
|
||||||
[options.private],
|
[options.private],
|
||||||
[options.required],
|
[options.required, options.unique],
|
||||||
[options.unique],
|
[options.maxLength, options.minLength],
|
||||||
[options.maxLength],
|
|
||||||
[options.minLength],
|
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
text: () => {
|
text: () => {
|
||||||
return {
|
return {
|
||||||
items: [
|
items: [
|
||||||
[options.default],
|
[options.default, options.regex],
|
||||||
[options.regex],
|
|
||||||
[uiHelpers.divider],
|
[uiHelpers.divider],
|
||||||
[options.private],
|
[options.private],
|
||||||
[options.required],
|
[options.required, options.unique],
|
||||||
[options.unique],
|
[options.maxLength, options.minLength],
|
||||||
[options.maxLength],
|
|
||||||
[options.minLength],
|
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@ -277,8 +260,7 @@ const advancedForm = {
|
|||||||
[uiHelpers.divider],
|
[uiHelpers.divider],
|
||||||
[options.private],
|
[options.private],
|
||||||
[options.required],
|
[options.required],
|
||||||
[options.maxLength],
|
[options.maxLength, options.minLength],
|
||||||
[options.minLength],
|
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user