Skip to content

Commit

Permalink
feat(dev): price splitting (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
eugena committed Aug 2, 2023
1 parent 4169418 commit 733194e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions acesta/templates/dashboard/rating.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,19 @@
{% if area == AREA_SIGHTS %}
<form action="" id="groupSelector">
<select id="groupType" name="group">
<option value="" {% if request.user.tourism_types is not None %} disabled="disabled"{% endif %}>все разделы</option>
<option value="" {% if request.user.tourism_types is not None and request.user.tourism_types|length %} disabled="disabled"{% endif %}>все разделы</option>
{% for group in sight_groups %}
<option value="{{ group.name }}"{% if group.name == sight_group %} selected{% endif %}{% if request.user.tourism_types is not None and group.tourism_type not in request.user.tourism_types %} disabled{% endif%}>{{ group.title }}</option>
<option value="{{ group.name }}"{% if group.name == sight_group %} selected{% endif %}{% if request.user.tourism_types is not None and request.user.tourism_types|length and group.tourism_type not in request.user.tourism_types %} disabled{% endif%}>{{ group.title }}</option>
{% endfor %}
</select>
</form>
{% else %}
<form action="" id="tourism-type">
<select id="inputTourismType" name="tourism_type">
{% if area == AREA_CITIES %}
<option value="" {% if request.user.tourism_types is not None %} disabled="disabled"{% endif %}>все виды туризма</option>
<option value="" {% if request.user.tourism_types is not None and request.user.tourism_types|length %} disabled="disabled"{% endif %}>все виды туризма</option>
{% for name, title in tourism_types %}
<option value="{{ name }}"{% if name == tourism_type %} selected{% endif %}{% if request.user.tourism_types is not None and name not in request.user.tourism_types %} disabled{% endif%}>{{ title }}</option>
<option value="{{ name }}"{% if name == tourism_type %} selected{% endif %}{% if request.user.tourism_types is not None and request.user.tourism_types|length and name not in request.user.tourism_types %} disabled{% endif%}>{{ title }}</option>
{% endfor %}
{% else %}
<option value="">все виды туризма</option>
Expand Down

0 comments on commit 733194e

Please sign in to comment.