{% extends "@DukecityCommandScheduler/layout.html.twig" %} {% trans_default_domain 'DukecityCommandScheduler' %} {# % form_theme form 'bootstrap_4_layout.html.twig' %} #} {% block title %} {{ 'detail.title'|trans }} {% endblock title %} {% block content %} {% set styleConfiguration = {'class': 'form-control'} %}
{{ form_start( scheduledCommandForm) }}
{{ 'list.title'|trans }}
Command
{{ form_row( scheduledCommandForm.name, {'attr': styleConfiguration|merge({'placeholder': 'name'}) } ) }} {{ form_row( scheduledCommandForm.logFile, {'attr': styleConfiguration|merge({'placeholder': 'myFile.log'}) } ) }} {{ form_row( scheduledCommandForm.priority, {'attr': styleConfiguration } ) }}
{{ form_row(scheduledCommandForm.executeImmediately, {label_attr: {class: 'checkbox-custom'} }) }}
{{ form_row(scheduledCommandForm.disabled, {label_attr: {class: 'checkbox-custom'} }) }}
Command
{# Form's fields #} {{ form_row( scheduledCommandForm.command, {'attr': {'class': 'form-control select2'} } ) }} {{ form_row( scheduledCommandForm.arguments, {'attr': styleConfiguration|merge({'placeholder': '--argument1=foo --bar'}) } ) }} {{ form_row( scheduledCommandForm.cronExpression, {'attr': styleConfiguration|merge({'placeholder': '*/10 * * * *'}) } ) }}
{{ form_end( scheduledCommandForm ) }}
{% endblock content %} {% block javascript %} $(document).ready(function() { $('.select2').select2(); }); {% endblock javascript %}