120
{{ form_widget(form.userfio, {'attr': {'class':
'form-control'}}) }}
{% if _errors|length > 0 %}{% for _error in _errors
%}<span class="help-block">{{ _error.message|e }}</span>{% endfor
%}{% endif %}
</div>
{% set _errors = form.username.vars.errors %}
{% set _class = 'form-group' ~ (_errors|length > 0 ?
' has-error' : '') %}
<div class="{{ _class }}">
{{ form_label(form.username, null, {'label_attr':
{'class': 'control-label'}}) }} <span class="required">*</span>
{{ form_widget(form.username, {'attr': {'class':
'form-control'}}) }}
{% if _errors|length > 0 %}{% for _error in _errors
%}<span class="help-block">{{ _error.message|e }}</span>{% endfor
%}{% endif %}
</div>
{% set _errors = form.email.vars.errors %}
{% set _class = 'form-group' ~ (_errors|length > 0 ?
' has-error' : '') %}
<div class="{{ _class }}">
{{ form_label(form.email, null, {'label_attr':
{'class': 'control-label'}}) }} <span class="required">*</span>
{{ form_widget(form.email, {'attr': {'class':
'form-control'}}) }}
{% if _errors|length > 0 %}{% for _error in _errors
%}<span class="help-block">{{ _error.message|e }}</span>{% endfor
%}{% endif %}
</div>
{% set _errors = form.phone.vars.errors %}
{% set _class = 'form-group' ~ (_errors|length > 0 ?
' has-error' : '') %}
<div class="{{ _class }}">
{{ form_label(form.phone, null, {'label_attr':
{'class': 'control-label'}}) }} <span class="required">*</span>
{{ form_widget(form.phone, {'attr': {'class':
'form-control'}}) }}
{% if _errors|length > 0 %}{% for _error in _errors
%}<span class="help-block">{{ _error.message|e }}</span>{% endfor
%}{% endif %}
</div>
{% set _errors = form.password.first.vars.errors %}
{% set _class = 'form-group' ~ (_errors|length > 0 ?
' has-error' : '') %}
<div class="{{ _class }}">
{{ form_label(form.password.first, null,
{'label_attr': {'class': 'control-label'}}) }}
{{ form_widget(form.password.first, {'attr':
{'class': 'form-control'}}) }}