silverstripe-webpack/app/templates/SilverStripe/Forms/FormField_holder.ss

17 lines
714 B
Scheme
Raw Normal View History

2021-01-13 20:03:21 +01:00
<div id="$HolderID" class="form__field field<% if $extraClass %> $extraClass<% end_if %>">
<% if $Title %><label class="field__label field__label-left left" for="$ID">$Title</label><% end_if %>
2020-07-01 11:02:39 +02:00
2021-01-13 20:03:21 +01:00
<div class="field__content middleColumn">
2020-07-01 11:02:39 +02:00
$Field
</div>
<% if $Title && $RightTitle %>
2021-01-13 20:03:21 +01:00
<div class="field__label field__label-right right">$RightTitle</div>
2020-07-01 11:02:39 +02:00
<% else_if $RightTitle %>
2021-01-13 20:03:21 +01:00
<label class="field__label field__label-right right" for="$ID">$RightTitle</label>
2020-07-01 11:02:39 +02:00
<% end_if %>
2021-01-13 20:03:21 +01:00
<% if $Message %><span class="field__alert alert alert-{$MessageType} message $MessageType">$Message</span><% end_if %>
<% if $Description %><span class="field__description description">$Description</span><% end_if %>
2020-07-01 11:02:39 +02:00
</div>