{% if form_action == 'provider_sms_add' %} {{ form_start(form, {'attr': {'class': 'form-horizontal', 'action': path(form_action)}}) }} {% else %} {{ form_start(form, {'attr': {'class': 'form-horizontal'}}) }} {% endif %}
{{ form_widget(form.name, {'attr': {'class': 'form-control', 'placeholder':"{{'Form.SMS.Name' | trans}}"}}) }} {{ form_label(form.name, 'Form.SMS.Name' | trans) }}
{{ form_widget(form.limitation, {'attr': {'class': 'form-control', 'placeholder':"{{'Form.SMS.Limit' | trans}}"}}) }} {{ form_label(form.limitation, 'Form.SMS.Limit' | trans) }}
{% for t in form.active %} {{ form_widget(t, {'attr': {'class': ''}}) }} {{ form_label(t) }} {% endfor %}
{% for t in form.type %} {{ form_widget(t, {'attr': {'class': ''}}) }} {{ form_label(t) }} {% endfor %}
{{ form_widget(form.username, {'attr': {'class': 'form-control', 'placeholder':"{{'Form.SMS.Username' | trans}}"}}) }} {{ form_label(form.username, 'Form.SMS.Username' | trans) }}
{{ form_widget(form.password, {'attr': {'class': 'form-control', 'type': 'password', 'placeholder':"{{'Form.SMS.Password' | trans}}"}}) }} {{ form_label(form.password, 'Form.SMS.Password' | trans) }}
{{ form_widget(form.api, {'attr': {'class': 'form-control', 'placeholder':"{{'Form.SMS.API' | trans}}"}}) }} {{ form_label(form.api, 'Form.SMS.API' | trans) }}
{{ form_widget(form.provider, {'attr': {'class': 'form-control form-select', 'placeholder':"{{'Form.Campaign.Provider.Help'|trans}}"}}) }} {{ form_label(form.provider, 'Form.Campaign.Provider.Help' | trans) }}
{{ form_widget(form.description, {'attr': {'class': 'form-control', 'row':'1', 'placeholder':"{{'Form.SMS.Description' | trans}}"}}) }} {{ form_label(form.description, 'Form.SMS.Description' | trans) }}
{{ form_widget(form.template, {'attr': {'class': 'form-control', 'row':'1'}}) }} {{ form_label(form.template, 'Form.SMS.Template' | trans) }} {{ form_help(form.template) }}
{{ form_rest(form) }} {{ form_end(form) }}