base.html.php
3 years ago
checkbox.html.php
4 years ago
file.html.php
4 years ago
hidden.html.php
4 years ago
html.html.php
4 years ago
label-content.html.php
4 years ago
label.html.php
4 years ago
radio.html.php
4 years ago
select.html.php
4 years ago
textarea.html.php
4 years ago
file.html.php
20 lines
| 1 | <?php |
| 2 | /** @var Give\Framework\FieldsAPI\File $field */ ?> |
| 3 | <?php |
| 4 | /** @var string $fieldIdAttribute */ ?> |
| 5 | |
| 6 | <input |
| 7 | type="file" |
| 8 | name="<?php |
| 9 | echo $field->getName(); ?><?php |
| 10 | echo $field->getAllowMultiple() ? '[]' : ''; ?>" |
| 11 | id="<?php |
| 12 | echo $fieldIdAttribute; ?>" |
| 13 | <?php |
| 14 | echo $field->getAllowMultiple() ? 'multiple' : ''; ?> |
| 15 | <?php |
| 16 | echo $field->isRequired() ? 'required' : ''; ?> |
| 17 | <?php |
| 18 | echo $field->isReadOnly() ? 'readonly' : ''; ?> |
| 19 | > |
| 20 |