Use textarea
s for block text
This commit is contained in:
parent
35973af7e3
commit
63e82b4556
@ -124,8 +124,10 @@ function setForm(cardTemplate, card) {
|
|||||||
let label = div.appendChild(document.createElement('label'));
|
let label = div.appendChild(document.createElement('label'));
|
||||||
label.textContent = prop[0];
|
label.textContent = prop[0];
|
||||||
|
|
||||||
let input = label.appendChild(document.createElement('input'));
|
let input = label.appendChild(
|
||||||
|
document.createElement(prop[1] === 'textarea' ? 'textarea' : 'input'));
|
||||||
input.id = "card-" + prop[0];
|
input.id = "card-" + prop[0];
|
||||||
|
|
||||||
if (prop[1] === "image") {
|
if (prop[1] === "image") {
|
||||||
input.type = "file";
|
input.type = "file";
|
||||||
}
|
}
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
"inputs": {
|
"inputs": {
|
||||||
"name": "text",
|
"name": "text",
|
||||||
"keywords": "text",
|
"keywords": "text",
|
||||||
"text": "text",
|
"text": "textarea",
|
||||||
"flavor": "text",
|
"flavor": "textarea",
|
||||||
"artist": "text",
|
"artist": "text",
|
||||||
"hp": "number",
|
"hp": "number",
|
||||||
"image": "image"
|
"image": "image"
|
||||||
|
Loading…
Reference in New Issue
Block a user