ui/twig/modules/alert/includes/form.html.twig line 1

Open in your IDE?
  1. {% embed '@ui/create/forms/section.html.twig' with {
  2.     section: 'Basic',
  3.     active: true
  4. } %}
  5.     {% block content %}
  6.         <div class="row">
  7.             {{ form_row(dataForm.startDate, {
  8.                 label: 'Start date',
  9.                 rowSize: 'lg-6',
  10.                 helpText: 'Select a date/time for your alert to  start appearing on your web site.',
  11.             }) }}
  12.             {{ form_row(dataForm.expiryDate, {
  13.                 label: 'Expiration date',
  14.                 rowSize: 'lg-6',
  15.                 helpText: 'Select a date/time for your alert to be removed from your web site.',
  16.             }) }}
  17.         </div>
  18.         <div class="row">
  19.             {{ form_row(dataForm.title, {
  20.                 helpText: 'Enter the main title of your alert as a sentence.',
  21.             }) }}
  22.         </div>
  23.         <div class="row">
  24.             <div class="form-group col-md-12">
  25.                 {% include '@ui/create/forms/toggler.html.twig' with {
  26.                     text: 'Link to document or URL',
  27.                     enable: [dataForm.externalLink],
  28.                     disable: [dataForm.content],
  29.                     checked: (dataForm.externalLink.vars.value is not empty),
  30.                     helpText: 'Link to a document or external URL instead of adding copy.',
  31.                 } %}
  32.             </div>
  33.         </div>
  34.         <div class="row">
  35.             {{ form_row(dataForm.content, {
  36.                 helpText: 'Enter your copy and use the styles available in the tool bar.',
  37.                 row_attr: {
  38.                     class: (dataForm.externalLink.vars.value is empty) ? null : 'hidden'
  39.                 }
  40.             }) }}
  41.         </div>
  42.         <div class="row">
  43.             {{ form_row(dataForm.externalLink, {
  44.                 label: 'File/URL',
  45.                 helpText: 'Paste in a valid URL or "Choose file" to select a file to link to.',
  46.                 row_attr: {
  47.                     class: (dataForm.externalLink.vars.value is not empty) ? null : 'hidden'
  48.                 }
  49.             }) }}
  50.         </div>
  51.         <div class="row">
  52.             {{ form_row(dataForm.level, {
  53.                 label: 'Message type',
  54.                 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>',
  55.                 compound: false
  56.             }) }}
  57.         </div>
  58.         <div class="row">
  59.             {{ form_row(dataForm.behavior, {
  60.                 label: 'Banner type',
  61.                 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>',
  62.                 compound: false
  63.             }) }}
  64.         </div>
  65.     {% endblock %}
  66. {% endembed %}
  67. {% embed '@ui/create/forms/section.html.twig' with {
  68.     section: 'Advanced'
  69. } %}
  70.     {% block content %}
  71.         <div class="row">
  72.             {{ form_row(dataForm.slug, {
  73.                 label: 'URL',
  74.                 helpText: 'The URL seen in the browser URL field when viewing this alert.',
  75.             }) }}
  76.         </div>
  77.         <div class="row">
  78.             {{ form_row(dataForm.abstract, {
  79.                 label: 'Teaser',
  80.                 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.',
  81.             }) }}
  82.         </div>
  83.         <div class="row">
  84.             {{ form_row(dataForm.standardMetadata.title, {
  85.                 helpText: 'Enter a friendly title for the search engines and better SEO.',
  86.             }) }}
  87.         </div>
  88.         <div class="row">
  89.             {{ form_row(dataForm.standardMetadata.description, {
  90.                 helpText: 'Enter a brief description that describes this content.',
  91.             }) }}
  92.         </div>
  93.         <div class="row">
  94.             {{ form_row(dataForm.tags, {
  95.                 label: 'Tags',
  96.                 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.',
  97.             }) }}
  98.         </div>
  99.         <div class="row">
  100.             {{ form_row(dataForm.socialImage, {
  101.                 helpText: 'Control the image used when this alert is shared to a social network.',
  102.             }) }}
  103.         </div>
  104.         <div class="row">
  105.             {{ form_row(dataForm.standardMetadata.keywords, {
  106.                 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.',
  107.             }) }}
  108.         </div>
  109.         <div class="row">
  110.             {{ form_row(dataForm.standardMetadata.robots, {
  111.                 helpText: 'Tell robots whether or not to index this alert. Note: not all robots will acknowledge this.',
  112.             }) }}
  113.         </div>
  114.     {% endblock %}
  115. {% endembed %}