Skip to content

Commit

Permalink
made description as single line field (reactplay#674)
Browse files Browse the repository at this point in the history
Co-authored-by: Koustov <[email protected]>
  • Loading branch information
koustov and koustov-maitra-mf committed Oct 10, 2022
1 parent 44deeef commit fe93ae7
Showing 1 changed file with 102 additions and 104 deletions.
206 changes: 102 additions & 104 deletions src/common/createplay/create-play-form-template.js
Original file line number Diff line number Diff line change
@@ -1,106 +1,104 @@
export const FIELD_TEMPLATE = [
{
datafield: "name",
type: "input",
display: "Name",
placeholder: "Play Name",
required: true,
},
{
datafield: "description",
type: "input",
multiline: true,
rows: 2,
display: "Description",
placeholder: "Describe your play",
required: true,
},
{
datafield: "issue",
type: "select",
display: "Issue",
placeholder: "Select an issue to link with",
multiple: false,
options: [],
fieldName: "name",
required: true,
},
{
datafield: "language",
type: "select",
display: "Language",
placeholder: "Preferred Language",
options: [
{
name: "JavaScript",
value: "js",
},
{
name: "TypeScript",
value: "ts",
},
],
required: true,
},
{
datafield: "style",
type: "select",
display: "Style",
placeholder: "Preferred Style Script",
options: [
{
name: "CSS",
value: "css",
},
{
name: "SCSS",
value: "scss",
},
],
},
{
datafield: "level",
type: "select",
multiple: false,
display: "Level",
placeholder: "Play Complexity Level",
required: true,
},
{
datafield: "github",
type: "input",
display: "Github Username",
placeholder: "Your Github username",
required: true,
},
{
datafield: "tags",
type: "select",
display: "Tags",
placeholder: "All Tags",
fieldValue: "id",
fieldName: "name",
freeSolo: true,
multiple: true,
options: [],
},
{
datafield: "cover",
type: "input",
display: "Cover Image URL",
placeholder:
"Alternatively you can add a 'cover.png' in your play directory",
},
{
datafield: "blog",
type: "input",
display: "Blog URL",
placeholder: "Example: https://blog.greenroots.info ",
},
{
datafield: "video",
type: "input",
display: "Video",
placeholder: "Example: https://www.youtube.com/watch?v=dQw4w9WgXcQ",
},
{
datafield: 'name',
type: 'input',
display: 'Name',
placeholder: 'Play Name',
required: true,
},
{
datafield: 'description',
type: 'input',
display: 'Description',
placeholder: 'Describe your play',
required: true,
},
{
datafield: 'issue',
type: 'select',
display: 'Issue',
placeholder: 'Select an issue to link with',
multiple: false,
options: [],
fieldName: 'name',
required: true,
},
{
datafield: 'language',
type: 'select',
display: 'Language',
placeholder: 'Preferred Language',
options: [
{
name: 'JavaScript',
value: 'js',
},
{
name: 'TypeScript',
value: 'ts',
},
],
required: true,
},
{
datafield: 'style',
type: 'select',
display: 'Style',
placeholder: 'Preferred Style Script',
options: [
{
name: 'CSS',
value: 'css',
},
{
name: 'SCSS',
value: 'scss',
},
],
},
{
datafield: 'level',
type: 'select',
multiple: false,
display: 'Level',
placeholder: 'Play Complexity Level',
required: true,
},
{
datafield: 'github',
type: 'input',
display: 'Github Username',
placeholder: 'Your Github username',
required: true,
},
{
datafield: 'tags',
type: 'select',
display: 'Tags',
placeholder: 'All Tags',
fieldValue: 'id',
fieldName: 'name',
freeSolo: true,
multiple: true,
options: [],
},
{
datafield: 'cover',
type: 'input',
display: 'Cover Image URL',
placeholder:
"Alternatively you can add a 'cover.png' in your play directory",
},
{
datafield: 'blog',
type: 'input',
display: 'Blog URL',
placeholder: 'Example: https://blog.greenroots.info ',
},
{
datafield: 'video',
type: 'input',
display: 'Video',
placeholder: 'Example: https://www.youtube.com/watch?v=dQw4w9WgXcQ',
},
];

0 comments on commit fe93ae7

Please sign in to comment.