cyberstammtisch-silverstripe/themes/starter/templates/Includes/FormFieldLabel.ss
2021-10-20 13:45:30 +02:00

8 lines
324 B
Scheme

<% if $Title %>
<label class="col-form-label font-weight-bold d-block" <% if not $HideForAttribute %>for="{$ID}" <% end_if %>id="title-{$ID}">
{$Title}
<% if $Required %>
<span class="help-text">(<%t CWP_Form.RequiredLabel "required" %>)</span>
<% end_if %>
</label>
<% end_if %>