silverstripe-cms/templates/forms/SiteTreeURLSegmentField.ss
Damian Mooyman ff07a2e264 API Convert CMS forms to bootstrap
API Update to cms-forms theme

This commit is required by and depends on https://github.com/silverstripe/silverstripe-framework/pull/5826 in framework.
2016-07-25 17:25:22 +12:00

21 lines
625 B
Scheme

<div class="preview-holder">
<a class="preview" href="$URL" target="_blank">
$URL
</a>
<% if not $IsReadonly %>
<button type="button" class="btn btn-secondary-outline btn-sm edit">
<% _t('URLSegmentField.Edit', 'Edit') %>
</button>
<% end_if %>
</div>
<div class="edit-holder">
<input $AttributesHTML />
<button type="button" class="btn btn-primary update">
<% _t('URLSegmentField.OK', 'OK') %>
</button>
<button type="button" class="btn btn-secondary cancel">
<% _t('URLSegmentField.Cancel', 'Cancel') %>
</button>
<% if $HelpText %><p class="form__field-description">$HelpText</p><% end_if %>
</div>