remotes/origin/mitri4
spacenergy 10 years ago
parent 030ee7d462
commit d52eb1995b
  1. 134
      batiskaf/templates/jinja2/cart_detail.jinja

@ -88,79 +88,81 @@
<div class="panel-body"> <div class="panel-body">
<form action="" class="" method="post"><input type="hidden" name="csrfmiddlewaretoken" <form action="" class="" method="post"><input type="hidden" name="csrfmiddlewaretoken"
value="{{ csrf_token }}"> value="{{ csrf_token }}">
{{ form|bootstrap }} <br>
<br/> <div class="form-group"><label class="control-label" for="deliv_service">Служба
<div class="form-group"><label class="control-label" for="deliv_service">Служба доставки</label></div>
доставки</label></div> <div class="radio">
<div class="radio"> <label>
<label> <input type="radio" name="deliv_service" id="deliv_service1" value="kazpost"
<input type="radio" name="deliv_service" id="deliv_service1" value="kazpost" checked>
checked> Казпочта <br><img src="/static/img/kazpost.jpg" alt="" width="150">
Казпочта <br><img src="/static/img/kazpost.jpg" alt="" width="150"> </label>
</label> </div>
</div> <div class="radio" style="display:none">
<div class="radio"> <label>
<label> <input type="radio" name="deliv_service" id="deliv_service2"
<input type="radio" name="deliv_service" id="deliv_service2" value="alemtat">
value="alemtat"> Алемтат <br><img src="/static/img/alemtat.jpg" alt="" width="150">
Алемтат <br><img src="/static/img/alemtat.jpg" alt="" width="150"> </label>
</label> </div>
</div>
<div class="alemtat_block" style="display: none;"> <div class="alemtat_block" style="display: none;">
<div class="form-group"> <div class="form-group">
<label class="control-label" for="id_city">Город</label> <label class="control-label" for="id_city">Город</label>
<div> <div>
<select name="city" id="id_city" class="form-control"> <select name="city" id="id_city" class="form-control">
{% for city in alemtat_cities %} {% for city in alemtat_cities %}
<option value="{{ city[0] }}" {% if request.POST['city'] %}selected{% endif %}>{{ city[1] }}</option> <option value="{{ city[0] }}" {% if request.POST['city'] %}selected{% endif %}>{{ city[1] }}</option>
{% endfor %} {% endfor %}
</select> </select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="control-label" for="id_deliv_type">Способ доставки</label> <label class="control-label" for="id_deliv_type">Способ доставки</label>
<div> <div>
<select name="deliv_type" id="id_deliv_type" class="form-control"> <select name="deliv_type" id="id_deliv_type" class="form-control">
{% for service in alemtat_services %} {% for service in alemtat_services %}
<option value="{{ service[0] }}" {% if request.POST['deliv_type'] %}selected{% endif %}>{{ service[1] }}</option> <option value="{{ service[0] }}" {% if request.POST['deliv_type'] %}selected{% endif %}>{{ service[1] }}</option>
{% endfor %} {% endfor %}
</select> </select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="control-label" for="id_alemtat_address">Адрес</label> <label class="control-label" for="id_alemtat_address">Адрес</label>
<div> <div>
<input name="alemtat_address" type="text" id="id_alemtat_address" <input name="alemtat_address" type="text" id="id_alemtat_address"
class="form-control" value="{{ request.POST['alemtat_address'] or '' }}"> class="form-control" value="{{ request.POST['alemtat_address'] or '' }}">
</div> </div>
</div> </div>
</div> </div>
<div class="kazpost_block"> <div class="kazpost_block">
<div class="form-group"> <div class="form-group">
<label class="control-label" for="id_city">Ближайшее областное отделение</label> <label class="control-label" for="id_city">Ближайшее областное отделение</label>
<div> <div>
<select name="kazpost_city" id="id_kazpost_city" class="form-control"> <select name="kazpost_city" id="id_kazpost_city" class="form-control">
{% for city in kazpost_cities %} {% for city in kazpost_cities %}
<option value="{{ city[0] }}" {% if request.POST['kazpost_city'] %}selected{% endif %}>{{ city[1] }}</option> <option value="{{ city[0] }}" {% if request.POST['kazpost_city'] %}selected{% endif %}>{{ city[1] }}</option>
{% endfor %} {% endfor %}
</select> </select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="control-label" for="id_kazpost_address">Адрес</label> <label class="control-label" for="id_kazpost_address">Адрес</label>
<div> <div>
<input name="kazpost_address" type="text" id="id_kazpost_address" <input name="kazpost_address" type="text" id="id_kazpost_address"
class="form-control" value="{{ request.POST['kazpost_address'] or '' }}"> class="form-control" value="{{ request.POST['kazpost_address'] or '' }}">
</div> </div>
</div> </div>
</div> </div>
{{ form|bootstrap }}
<br> <br>

Loading…
Cancel
Save