{% embed '@ui/create/forms/section.html.twig' with {
section: 'Basic',
active: true
} %}
{% block content %}
<div class="row">
{{ form_row(dataForm.startDate, {
label: 'Start date',
rowSize: 'lg-6',
helpText: 'Select a date/time for your alert to start appearing on your web site.',
}) }}
{{ form_row(dataForm.expiryDate, {
label: 'Expiration date',
rowSize: 'lg-6',
helpText: 'Select a date/time for your alert to be removed from your web site.',
}) }}
</div>
<div class="row">
{{ form_row(dataForm.title, {
helpText: 'Enter the main title of your alert as a sentence.',
}) }}
</div>
<div class="row">
<div class="form-group col-md-12">
{% include '@ui/create/forms/toggler.html.twig' with {
text: 'Link to document or URL',
enable: [dataForm.externalLink],
disable: [dataForm.content],
checked: (dataForm.externalLink.vars.value is not empty),
helpText: 'Link to a document or external URL instead of adding copy.',
} %}
</div>
</div>
<div class="row">
{{ form_row(dataForm.content, {
helpText: 'Enter your copy and use the styles available in the tool bar.',
row_attr: {
class: (dataForm.externalLink.vars.value is empty) ? null : 'hidden'
}
}) }}
</div>
<div class="row">
{{ form_row(dataForm.externalLink, {
label: 'File/URL',
helpText: 'Paste in a valid URL or "Choose file" to select a file to link to.',
row_attr: {
class: (dataForm.externalLink.vars.value is not empty) ? null : 'hidden'
}
}) }}
</div>
<div class="row">
{{ form_row(dataForm.level, {
label: 'Message type',
helpText: 'Specify the level of urgency of your alert. <a target="_blank" href="https://help.schoolnow.com/kb/how-do-i-add-an-emergency-alert">More about alerts</a>',
compound: false
}) }}
</div>
<div class="row">
{{ form_row(dataForm.behavior, {
label: 'Banner type',
helpText: 'Choose between banner only or a banner, plus pop-up the user has to dismiss. <a target="_blank" href="https://help.schoolnow.com/kb/how-do-i-add-an-emergency-alert">More about alerts</a>',
compound: false
}) }}
</div>
{% endblock %}
{% endembed %}
{% embed '@ui/create/forms/section.html.twig' with {
section: 'Advanced'
} %}
{% block content %}
<div class="row">
{{ form_row(dataForm.slug, {
label: 'URL',
helpText: 'The URL seen in the browser URL field when viewing this alert.',
}) }}
</div>
<div class="row">
{{ form_row(dataForm.abstract, {
label: 'Teaser',
helpText: 'Teaser text is a brief summary of the alert in a list view. If none is entered, the first 90 characters of the body is used.',
}) }}
</div>
<div class="row">
{{ form_row(dataForm.standardMetadata.title, {
helpText: 'Enter a friendly title for the search engines and better SEO.',
}) }}
</div>
<div class="row">
{{ form_row(dataForm.standardMetadata.description, {
helpText: 'Enter a brief description that describes this content.',
}) }}
</div>
<div class="row">
{{ form_row(dataForm.tags, {
label: 'Tags',
helpText: '<a target="_blank" href="https://help.schoolnow.com/kb/tags">Select tags</a> for this alert for use with other widgets. Tags are not visible to the public.',
}) }}
</div>
<div class="row">
{{ form_row(dataForm.socialImage, {
helpText: 'Control the image used when this alert is shared to a social network.',
}) }}
</div>
<div class="row">
{{ form_row(dataForm.standardMetadata.keywords, {
helpText: '<a target="_blank" href="https://help.schoolnow.com/kb/should-i-bother-with-meta-keywords-if-the-search-engines-dont-use-them-any-longer">Select keywords</a> that are relevant to this alert for use by search engines.',
}) }}
</div>
<div class="row">
{{ form_row(dataForm.standardMetadata.robots, {
helpText: 'Tell robots whether or not to index this alert. Note: not all robots will acknowledge this.',
}) }}
</div>
{% endblock %}
{% endembed %}