123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- {% extends 'admin/base.html.twig' %}
- {% form_theme form 'admin/form/custom_theme.html.twig' %}
- {% block content %}
- {% set languages = global_service.languages %}
- <div class="content">
- <div class="container-fluid">
- <div class="row">
- <div class="col-md-12">
- <div class="card">
- <div class="card-header">
- <h4 class="card-title">{{ title }}</h4>
- </div>
- <div class="card-body">
- {{ form_start(form) }}
- <div class="row">
- <div class="col-md-4">
- {{ form_row(form.is_active) }}
- </div>
- <div class="col-md-8"></div>
- </div>
- <div class="row">
- <div class="col-md-4">
- {{ form_row(form.city) }}
- </div>
- <div class="col-md-4">
- {{ form_row(form.type) }}
- </div>
- <div class="col-md-4">
- {{ form_row(form.detailed_type) }}
- </div>
- </div>
- <div class="row">
- <div class="col-md-4">
- {{ form_row(form.lat) }}
- </div>
- <div class="col-md-4">
- {{ form_row(form.lon) }}
- </div>
- <div class="col-md-4">
- {{ form_row(form.url) }}
- </div>
- </div>
- <div class="row">
- <div class="col-md-4">
- {{ form_row(form.email) }}
- </div>
- <div class="col-md-4">
- {{ form_row(form.website) }}
- </div>
- <div class="col-md-4">
- {{ form_row(form.phones) }}
- </div>
- </div>
- <div class="row">
- <div class="col-md-12">
- {{ form_row(form.logo) }}
- </div>
- </div>
- <div class="row">
- <div class="col-md-12">
- {{ form_row(form.comment) }}
- </div>
- </div>
- {% for language in languages %}
- <div class="card">
- <div class="card-header">
- <h5 class="form-lang-header">
- <a href="#collapse-{{ language.code }}" data-toggle="collapse">
- <span class="language left lang-{{ language.code }}"></span>
- {{ language.title }}
- </a>
- </h5>
- </div>
- <div id="collapse-{{ language.code }}" class="collapse {% if language.code == 'ru' or language.code == 'en' %}show{% else %}hide{% endif %}">
- <div class="card-body">
- <div class="row">
- <div class="col-md-12">
- {{ form_row(form["lang_#{language.id}_title"]) }}
- </div>
- </div>
- <div class="row">
- <div class="col-md-12">
- {{ form_row(form["lang_#{language.id}_address"]) }}
- </div>
- </div>
- <div class="row">
- <div class="col-md-12">
- {{ form_row(form["lang_#{language.id}_short_desc"]) }}
- </div>
- </div>
- <div class="row">
- <div class="col-md-12">
- {{ form_row(form["lang_#{language.id}_desc"]) }}
- </div>
- </div>
- </div>
- </div>
- </div>
- {% endfor %}
- <div class="row">
- <div class="col-md-12">
- {{ form_row(form.services) }}
- </div>
- </div>
- <p class="text-center">
- <button type="submit" class="btn btn-primary btn-fill">Сохранить</button>
- </p>
- {{ form_end(form) }}
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- {% endblock %}
|