1.1.6 upd raise and highlight function in my_routes
This commit is contained in:
@@ -54,7 +54,14 @@
|
||||
class="control_frame"
|
||||
id="control_frame_{{ route.id }}"
|
||||
>
|
||||
<form method="post">
|
||||
<div class="success_rising" id="success_rising_{{ route.id }}">
|
||||
<div class="success_rising_text">
|
||||
{% trans "Объявление поднято!" %}
|
||||
</div>
|
||||
<button class="close_success_rising" onclick="showControlFrame(this, {{ route.id }})">{% trans "Закрыть" %}</button>
|
||||
</div>
|
||||
|
||||
<form class="upd_form" id="upd_form_{{ route.id }}" method="post">
|
||||
{% csrf_token %}
|
||||
|
||||
<div class="checkbox_wrapper">
|
||||
@@ -62,19 +69,24 @@
|
||||
name="route_option"
|
||||
data-routeid="{{ route.id }}"
|
||||
class="custom-checkbox round"
|
||||
|
||||
{% if remains_route_rising_count == 0%}
|
||||
disabled
|
||||
{% endif %}
|
||||
id="raise_route_{{ route.id }}">
|
||||
<label for="raise_route_{{ route.id }}" class="route_label">
|
||||
<div class="label_text">{% trans "Поднять объявление" %}</div>
|
||||
</label>
|
||||
</div>
|
||||
<div class="sub_label_text">{% trans "Осталось поднятий " %} <span id="remains_route_rising_count">{% if form.data.remains_route_rising_count %}{{ form.data.remains_route_rising_count }}{% else %}{{ remains_route_rising_count }}{% endif %}</span></div>
|
||||
<div class="sub_label_text">{% trans "Осталось поднятий " %} <span id="remains_route_rising_count">{{ remains_route_rising_count }}</span></div>
|
||||
|
||||
<div class="checkbox_wrapper">
|
||||
<input type="radio"
|
||||
name="route_option"
|
||||
data-routeid="{{ route.id }}"
|
||||
class="custom-checkbox round"
|
||||
{% if remains_route_highlight_count == 0%}
|
||||
disabled
|
||||
{% endif %}
|
||||
{# checked="checked"#}
|
||||
id="highlight_route_{{ route.id }}">
|
||||
<label for="highlight_route_{{ route.id }}" class="route_label">
|
||||
@@ -83,7 +95,10 @@
|
||||
</div>
|
||||
<div class="sub_label_text">{% trans "Осталось выделений " %}<span id="remains_route_highlight_count">{{ remains_route_highlight_count }}</span></div>
|
||||
|
||||
<button onclick="confirmUpgrade(this,{{ route.id }} )" id="send_upgrade"> {% trans "Подтвердить" %}</button>
|
||||
<button
|
||||
onclick="confirmUpgrade(this,{{ route.id }} )"
|
||||
id="send_upgrade"
|
||||
class="send_upgrade_{{ route.id }}">{% trans "Подтвердить" %}</button>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user