mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Merge pull request #781 from AlmogBaku/feature/textareaField
Add textarea type for sandbox
This commit is contained in:
commit
cec5108133
@ -594,7 +594,7 @@ form .parameters {
|
|||||||
width: 50%;
|
width: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
form .parameters .tuple input {
|
form .parameters .tuple input, form .parameters .tuple textarea {
|
||||||
width: 40%;
|
width: 40%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -208,6 +208,9 @@
|
|||||||
case "file":
|
case "file":
|
||||||
$('<input type="file" class="value" placeholder="'+ placeholder +'">').insertAfter($context);
|
$('<input type="file" class="value" placeholder="'+ placeholder +'">').insertAfter($context);
|
||||||
break;
|
break;
|
||||||
|
case "textarea":
|
||||||
|
$('<textarea class="value" placeholder="'+ placeholder +'" />').insertAfter($context);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
$('<input type="text" class="value" placeholder="'+ placeholder +'">').insertAfter($context);
|
$('<input type="text" class="value" placeholder="'+ placeholder +'">').insertAfter($context);
|
||||||
}
|
}
|
||||||
|
@ -248,6 +248,7 @@
|
|||||||
<option value="string">String</option>
|
<option value="string">String</option>
|
||||||
<option value="boolean">Boolean</option>
|
<option value="boolean">Boolean</option>
|
||||||
<option value="file">File</option>
|
<option value="file">File</option>
|
||||||
|
<option value="textarea">Textarea</option>
|
||||||
</select>
|
</select>
|
||||||
<input type="text" class="value" placeholder="{% if infos.dataType %}[{{ infos.dataType }}] {% endif %}{% if infos.format %}{{ infos.format }}{% endif %}{% if infos.description %}{{ infos.description }}{% else %}Value{% endif %}" {% if infos.default is defined %} value="{{ infos.default }}" {% endif %}/> <span class="remove">-</span>
|
<input type="text" class="value" placeholder="{% if infos.dataType %}[{{ infos.dataType }}] {% endif %}{% if infos.format %}{{ infos.format }}{% endif %}{% if infos.description %}{{ infos.description }}{% else %}Value{% endif %}" {% if infos.default is defined %} value="{{ infos.default }}" {% endif %}/> <span class="remove">-</span>
|
||||||
</p>
|
</p>
|
||||||
@ -317,6 +318,7 @@
|
|||||||
<option value="string">String</option>
|
<option value="string">String</option>
|
||||||
<option value="boolean">Boolean</option>
|
<option value="boolean">Boolean</option>
|
||||||
<option value="file">File</option>
|
<option value="file">File</option>
|
||||||
|
<option value="textarea">Textarea</option>
|
||||||
</select>
|
</select>
|
||||||
<input type="text" class="value" placeholder="Value" /> <span class="remove">-</span>
|
<input type="text" class="value" placeholder="Value" /> <span class="remove">-</span>
|
||||||
</p>
|
</p>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user