{{ form_start(formUser, {'attr': {'class': 'form', 'novalidate': 'novalidate'}}) }}
User ID:
{{ user.getId }}
Status:
{% if user.getEnabled == 0 %}
Created
{% endif %}
{% if user.getEnabled == 1 %}
{% if user.getBlocked == 0 %}
Activated
{% else %}
Blocked
{% endif %}
{% endif %}
E-mail:
{{ form_widget(formUser.email, { 'attr': {'placeholder': 'E-mail'|trans, 'class': 'form-control form-control-md'} }) }}
{{ form_errors(formUser.email) }}
Firstname:
{{ form_widget(formUser.firstname, { 'attr': {'placeholder': 'First name'|trans, 'class': 'form-control form-control-md'} }) }}
{{ form_errors(formUser.firstname) }}
Surname:
{{ form_widget(formUser.surname, { 'attr': {'placeholder': 'Sur name'|trans, 'class': 'form-control form-control-md'} }) }}
{{ form_errors(formUser.surname) }}
Last login date:
{{ user.getLastLogin|date }}
{% if user.getDeletedAt is not null and user.deleted %}
Account deleted date:
{{ user.getDeletedAt|date }}
{% endif %}
Remarks:
{{ form_widget(formUser.remarks, { 'attr': {'placeholder': '', 'class': 'form-control form-control-md'} }) }}
{{ form_errors(formUser.remarks) }}
Credits:
{{ form_widget(formUser.credits, { 'attr': {'placeholder': 'Credit'|trans, 'class': 'form-control form-control-md'} }) }}
{{ form_errors(formUser.credits) }}
{% trans %}Save{% endtrans %}
{{ form_end(formUser) }}
{% if hasCompany is same as (false) %}
You need to add a company
Add a company
{% else %}
{% if editAdvert is not same as(false) %}
{% if eventadvertPhotos is defined %}
{% for photo in eventadvertPhotos %}
{% include 'dashboard/eventadvert/photo.html.twig' %}
{% endfor %}
{% endif %}
{{ form_start(formAdvert, {'attr': {'class': 'form', 'novalidate': 'novalidate'}}) }}
{% trans %}Save{% endtrans %}
{{ form_end(formAdvert) }}
{% else %}
Title
{% for advert in adverts %}
{{ advert.getTitle }}
{% if advert.getPaused %}
Paused
Activate
{% elseif advert.getBlocked %}
Blocked
Unblock
{% elseif advert.getDeleted %}
Deleted
Restore
{% else %}
Edit
Pause
Block
Delete
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
{{ form_start(formCompanyProfile, {'attr': {'class': 'form', 'novalidate': 'novalidate'}}) }}
{% trans %}Opening hours{% endtrans %}
{% trans %}Save{% endtrans %}
{{ form_end(formCompanyProfile) }}
{% if companyPhotos is defined %}
{% for photo in companyPhotos %}
{% include 'dashboard/company/photo.html.twig' %}
{% endfor %}
{% endif %}
{% if user.getTransactions|length > 0 %}
Advert title
Payment Method
Amount
Date payment
{% for transaction in user.getTransactions %}
{% if transaction.getEventAdvert is not null %} {{ transaction.getEventAdvert.getTitle }} {% else %}
Credit payment {% endif %}
{{ transaction.getPaymentMethod }}
{{ transaction.getAmount }}
{{ transaction.getDatePayment|date }}
{% endfor %}
{% else %}
No transaction payments for this user
{% endif %}
{% if editPremiumAdvert is not same as(false) %}
{{ form_start(formPremiumAdvert, {'attr': {'class': 'form', 'novalidate': 'novalidate'}}) }}
{% trans %}Save{% endtrans %}
{{ form_end(formPremiumAdvert) }}
{% else %}
{% if premiumAdverts|length > 0 %}
Title
{% for premiumAdvert in premiumAdverts %}
{{ premiumAdvert.getTitle }}
Edit
{% endfor %}
{% else %}
No premium adverts for this user
{% endif %}
{% endif %}
{% if agreement %}
Click Here to download the agreement:
Download
{% else %}
This user has not signed the agreement yet.
{% endif %}