silverstripe-framework/admin/themes/cms-forms/templates/CheckboxField_holder.ss

13 lines
651 B
Scheme
Raw Normal View History

<div id="$HolderID" class="form-group field<% if $extraClass %> $extraClass<% end_if %>">
<div class="form__field-holder">
<label>
$Field
$Title
</label>
<%-- TODO: change $MessageType to match Bootstraps alert types, e.g. alert-info, alert-danger etc --%>
<% if $Message %><p class="alert $MessageType" role="alert" id="message-$ID">$Message</p><% end_if %>
<% if $Description %><p class="form__field-description" id="describes-$ID">$Description</p><% end_if %>
</div>
<% if $RightTitle %><p class="form__field-extra-label" id="extra-label-$ID">$RightTitle</p><% end_if %>
</div>