Files
Grav-Admin-Plugin/theme-old/templates/forms/fields/upload/upload.html.twig
2014-09-03 22:22:03 -06:00

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>