mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-02-13 10:07:44 +01:00
17 lines
590 B
Twig
17 lines
590 B
Twig
{% set value = (value is null ? field.default : value) %}
|
|
|
|
<div class="form-field">
|
|
<label class="inline">
|
|
<span>
|
|
{% if field.help %}
|
|
<span class="tooltip" data-asTooltip-position="w" title="{{ field.help|e }}">{{ field.label }}</span>
|
|
{% else %}
|
|
{{ field.label }}
|
|
{% endif %}
|
|
{{ field.validate.required in ['on', 'true', 1] ? '<span class="required">*</span>' }}
|
|
</span>
|
|
|
|
<input type="file" class="input" name="{{ (scope ~ field.name)|fieldName }}" value="" />
|
|
</label>
|
|
</div>
|