mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
13 lines
779 B
Scheme
13 lines
779 B
Scheme
|
<div id="$HolderID" class="form-group field<% if $extraClass %> $extraClass<% end_if %>">
|
||
|
<% if $Title %>
|
||
|
<label for="$ID" id="title-$ID" class="form__field-label">$Title</label>
|
||
|
<% end_if %>
|
||
|
<div class="form__field-holder<% if not $Title %> form__field-holder--no-label<% end_if %>">
|
||
|
$Field
|
||
|
<%-- 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>
|