base.html.php
4 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
base.html.php
12 lines
| 1 | <?php /** @var Give\Framework\FieldsAPI\Field $field */ ?> |
| 2 | <?php /** @var string $typeAttribute */ ?> |
| 3 | <input |
| 4 | type="<?php echo $typeAttribute; ?>" |
| 5 | name="<?php echo $field->getName(); ?>" |
| 6 | placeholder="<?php echo $field->getLabel(); ?>" |
| 7 | id="give-<?php echo $field->getName(); ?>" |
| 8 | value="<?php echo $field->getDefaultValue(); ?>" |
| 9 | <?php echo $field->isRequired() ? 'required' : ''; ?> |
| 10 | <?php echo $field->isReadOnly() ? 'readonly' : ''; ?> |
| 11 | > |
| 12 |