File tree Expand file tree Collapse file tree 7 files changed +37
-1
lines changed
fastapi_admin/templates/widgets/inputs Expand file tree Collapse file tree 7 files changed +37
-1
lines changed Original file line number Diff line number Diff line change 22 < label class ="form-label "> {{ label }}</ label >
33 < input {% if not null %}required{% endif %} type ="{{ input_type }} " class ="form-control " name ="{{ name }} "
44 placeholder ="{{ placeholder }} " {% if disabled %}disabled{% endif %} value ="{{ value }} ">
5+ {% if help_text %}
6+ < small class ="form-hint ">
7+ {{ help_text }}
8+ </ small >
9+ {% endif %}
510</ div >
Original file line number Diff line number Diff line change 22< link rel ="stylesheet " href ="https://cdn.jsdelivr.net/npm/jsoneditor@9.4.0/dist/jsoneditor.min.css ">
33< div class ="form-label "> {{ label }}</ div >
44< div id ="{{ name }} " class ="form-group mb-3 "> </ div >
5+ {% if help_text %}
6+ < small class ="form-hint ">
7+ {{ help_text }}
8+ </ small >
9+ {% endif %}
510< input {% if not null %}required{% endif %} type ="text " name ="{{ name }} " value ='{{ value|safe }} ' hidden >
611< style >
712 .jsoneditor {
Original file line number Diff line number Diff line change 33 < div class ="form-label "> {{ label }}</ div >
44 < select multiple class ="form-select " name ="{{ name }} " id ="{{ id }} ">
55 </ select >
6+ {% if help_text %}
7+ < small class ="form-hint ">
8+ {{ help_text }}
9+ </ small >
10+ {% endif %}
611 </ div >
712 < script >
813 new Choices ( el = document . getElementById ( '{{ id }}' ) , {
Original file line number Diff line number Diff line change 88 < span class ="form-check-label "> {{ option[0] }}</ span >
99 </ label >
1010 {% endfor %}
11+ {% if help_text %}
12+ < small class ="form-hint ">
13+ {{ help_text }}
14+ </ small >
15+ {% endif %}
1116</ div >
Original file line number Diff line number Diff line change 1010 </ select >
1111 </ div >
1212 {% include "components/select.html" %}
13+ {% if help_text %}
14+ < small class ="form-hint ">
15+ {{ help_text }}
16+ </ small >
17+ {% endif %}
1318{% endwith %}
Original file line number Diff line number Diff line change 66 {% endif %} {% if disabled %}
77 disabled
88 {% endif %} >
9+ {% if help_text %}
10+ < small class ="form-hint ">
11+ {{ help_text }}
12+ </ small >
13+ {% endif %}
914 </ label >
1015</ div >
Original file line number Diff line number Diff line change 11< div class ="form-group mb-3 ">
22 < label class ="form-label "> {{ label }}</ label >
3- < textarea {% if not null %}required{% endif %} class ="form-control " name ="{{ name }} " placeholder ="{{ placeholder }} "
3+ < textarea {% if not null %}required{% endif %} class ="form-control " name ="{{ name }} "
4+ placeholder ="{{ placeholder }} "
45 {% if disabled %}disabled{% endif %} >
56{{ value }}
67 </ textarea >
8+ {% if help_text %}
9+ < small class ="form-hint ">
10+ {{ help_text }}
11+ </ small >
12+ {% endif %}
713</ div >
You can’t perform that action at this time.
0 commit comments