chore: initial import for test contour with k3s CI
This commit is contained in:
@@ -0,0 +1,88 @@
|
||||
{% extends 'admin_base.html.twig' %}
|
||||
|
||||
{% block title %}{{ title }}{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<p class="lead">
|
||||
Для того чтобы цены подгрузились с инфоклиники, выберите департамент и нажмите на кнопку <b>"Search"</b>. <br>
|
||||
<b>Не найдено</b> - данная услуга в Инфоклиници отсутствует, либо не загружена.<br>
|
||||
<b>active = true</b> - данная услуга отображается в кабинете.
|
||||
</p>
|
||||
<div class="row">
|
||||
<div class="my-2 col-6">
|
||||
<h4>{{ title }}</h4>
|
||||
{{ include('specialist/admin/_form.html.twig') }}
|
||||
</div>
|
||||
<div class="my-2 col-6">
|
||||
<h4>Обновить цены</h4>
|
||||
<div data-controller="priceList">
|
||||
<div class="form-group group-update">
|
||||
<label class="required" for="price_list_admin_form_groupId">Департамент</label>
|
||||
</div>
|
||||
<div><button class="btn btn-secondary" id="update-price-list">Обновить</button></div>
|
||||
<div class="msg py-1"></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>schname</th>
|
||||
<th>specname</th>
|
||||
<th>kodoper</th>
|
||||
<th>price cabinet</th>
|
||||
<th>price infoclinica</th>
|
||||
<th>date update</th>
|
||||
<th>active</th>
|
||||
<th>filial</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for item in pagination %}
|
||||
{% set list = priceSearch(item.priceInfo.schid, item.filial, priceList) %}
|
||||
|
||||
<tr>
|
||||
<td>{{ item.schname }}</td>
|
||||
<td>{{ item.specname }}</td>
|
||||
<td>{{ item.kodoper }}</td>
|
||||
<td>{{ item.priceInfo.price }}</td>
|
||||
|
||||
{% if list.priceInfo.price is defined %}
|
||||
{% if list.priceInfo.price == item.priceInfo.price %}
|
||||
<td>{{ list.priceInfo.price }}</td>
|
||||
{% else %}
|
||||
<td style="color:red;">{{ list.priceInfo.price }}</td>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<td style="color:red;">Не найдено</td>
|
||||
{% endif %}
|
||||
|
||||
<td>{{ item.dateUpdate|date('d.m.Y') }}</td>
|
||||
|
||||
|
||||
{% if item.dateUpdate|date('U') >= dateActive|date('U') %}
|
||||
{% if item.priceInfo.price == 0 %}
|
||||
<td style="color:red;">false</td>
|
||||
{% else %}
|
||||
<td>true</td>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<td style="color:red;">false</td>
|
||||
{% endif %}
|
||||
|
||||
<td>{{ item.fname }}</td>
|
||||
</tr>
|
||||
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="6">Записи не найдены или отсутствуют</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="d-block text-center">
|
||||
{{ knp_pagination_render(pagination) }}
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user