{% extends "@JMoseCommandScheduler/layout.html.twig" %} {% trans_default_domain 'JMoseCommandScheduler' %} {% block title %} {{ 'detail.title'|trans }} {% endblock title %} {% block content %} {% set styleConfiguration = {'class': 'form-control'} %}
{{ form_start( scheduledCommandForm, {'action': path('jmose_command_scheduler_detail_save')} ) }} {# Form's fields #} {{ form_row( scheduledCommandForm.id ) }} {{ form_row( scheduledCommandForm.name, {'attr': styleConfiguration|merge({'placeholder': 'name'}) } ) }} {{ form_row( scheduledCommandForm.command, {'attr': styleConfiguration } ) }} {{ form_row( scheduledCommandForm.arguments, {'attr': styleConfiguration|merge({'placeholder': '--argument1=foo --bar'}) } ) }} {{ form_row( scheduledCommandForm.cronExpression, {'attr': styleConfiguration|merge({'placeholder': '*/10 * * * *'}) } ) }} {{ form_row( scheduledCommandForm.logFile, {'attr': styleConfiguration|merge({'placeholder': 'myFile.log'}) } ) }} {{ form_row( scheduledCommandForm.priority, {'attr': styleConfiguration } ) }}
{{ form_widget( scheduledCommandForm.executeImmediately ) }} {{ form_label( scheduledCommandForm.executeImmediately ) }}
{{ form_widget( scheduledCommandForm.disabled ) }} {{ form_label( scheduledCommandForm.disabled ) }}
{# Form's actions #}
Cancel {{ form_widget( scheduledCommandForm.save, {'attr': {'class': 'btn btn-success btn-lg pull-right'} } ) }}
{{ form_end( scheduledCommandForm ) }}
{% endblock content %}