mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-09 03:01:18 +02:00
API Update behaviour of form fields to use standard template lookup mechanism API Support custom "type" parameter to template lookup
17 lines
619 B
Scheme
17 lines
619 B
Scheme
<div $AttributesHTML <% include AriaAttributes %>>
|
|
<% loop $Options %>
|
|
<div class="radio $Class">
|
|
<label>
|
|
<input id="$ID" name="$Name" type="radio" value="$Value.ATT" <% if $isChecked %> checked<% end_if %><% if $isDisabled %> disabled<% end_if %> />
|
|
$Title.XML
|
|
</label>
|
|
<% if $CustomName %>
|
|
<input class="form-control customFormat cms-help cms-help-tooltip" name="$CustomName" value="$CustomValue.ATT">
|
|
<% if $CustomPreview %>
|
|
<p class="form__field-description">({$CustomPreviewLabel.XML}: "{$CustomPreview.XML}")</p>
|
|
<% end_if %>
|
|
<% end_if %>
|
|
</div>
|
|
<% end_loop %>
|
|
</div>
|