123 lines
11 KiB
HTML
123 lines
11 KiB
HTML
<form action="{{ url_for('account.edit') }}" method="post">
|
|
<input type="hidden" name="update_information" value="1">
|
|
<!-- BILLING BLOCK -->
|
|
<label for="fname">Имя</label>
|
|
<input name="fname" id="fname" type="text" class="long-field" value="{{ user_details['fname'] }}" />
|
|
|
|
<label for="lname">Фамилия</label>
|
|
<input name="lname" id="lname" type="text" class="long-field" value="{{ user_details['lname'] }}" />
|
|
|
|
<label for="address">Адрес</label>
|
|
<input name="address" id="address" type="text" class="long-field" value="{{ user_details['address'] }}" />
|
|
|
|
<label for="city">Город</label>
|
|
<input name="city" id="city" type="text" class="long-field" value="{{ user_details['city'] }}" />
|
|
|
|
<label for="country">Страна</label>
|
|
<input name="country" id="country" type="text" class="long-field" value="{{ user_details['country'] }}" />
|
|
{# <select name="country" id="country" class="long-field">#}
|
|
{# <option value="">Выберите страну</option>#}
|
|
{# {% for country in countries_list %}#}
|
|
{# {% if country['iso'] == user_details['country'] %}#}
|
|
{# <option value="{{ country['iso'] }}" selected>{{ country['name'] }}</option>#}
|
|
{# {% else %}#}
|
|
{# <option value="{{ country['iso'] }}">{{ country['name'] }}</option>#}
|
|
{# {% endif %}#}
|
|
{# {% endfor %}#}
|
|
{# </select>#}
|
|
<label for="state">Регион</label>
|
|
<input name="state" id="state" type="text" class="long-field" value="{{ user_details['state'] }}" />
|
|
{# <select name="state" id="state" class="long-field">#}
|
|
{# <option value="">{{ text['please_select'] }}</option>#}
|
|
{# <optgroup label="Australian Provinces">#}
|
|
{# <option value="-AU-NSW" {% if user_details['state'] == "-AU-NSW" %}selected{% endif %}>New South Wales</option>#}
|
|
{# <option value="-AU-QLD" {% if user_details['state'] == "-AU-QLD" %}selected{% endif %}>Queensland</option>#}
|
|
{# <option value="-AU-SA" {% if user_details['state'] == "-AU-SA" %}selected{% endif %}>South Australia</option>#}
|
|
{# <option value="-AU-TAS" {% if user_details['state'] == "-AU-TAS" %}selected{% endif %}>Tasmania</option>#}
|
|
{# <option value="-AU-VIC" {% if user_details['state'] == "-AU-VIC" %}selected{% endif %}>Victoria</option>#}
|
|
{# <option value="-AU-WA" {% if user_details['state'] == "-AU-WA" %}selected{% endif %}>Western Australia</option>#}
|
|
{# <option value="-AU-ACT" {% if user_details['state'] == "-AU-ACT" %}selected{% endif %}>Australian Capital Territory</option>#}
|
|
{# <option value="-AU-NT" {% if user_details['state'] == "-AU-NT" %}selected{% endif %}>Northern Territory</option>#}
|
|
{# </optgroup>#}
|
|
{# <optgroup label="Canadian Provinces">#}
|
|
{# <option value="AB" {% if user_details['state'] == "AB" %}selected{% endif %}>Alberta</option>#}
|
|
{# <option value="BC" {% if user_details['state'] == "BC" %}selected{% endif %}>British Columbia</option>#}
|
|
{# <option value="MB" {% if user_details['state'] == "MB" %}selected{% endif %}>Manitoba</option>#}
|
|
{# <option value="NB" {% if user_details['state'] == "NB" %}selected{% endif %}>New Brunswick</option>#}
|
|
{# <option value="NF" {% if user_details['state'] == "NF" %}selected{% endif %}>Newfoundland</option>#}
|
|
{# <option value="NT" {% if user_details['state'] == "NT" %}selected{% endif %}>Northwest Territories</option>#}
|
|
{# <option value="NS" {% if user_details['state'] == "NS" %}selected{% endif %}>Nova Scotia</option>#}
|
|
{# <option value="NVT" {% if user_details['state'] == "NVT" %}selected{% endif %}>Nunavut</option>#}
|
|
{# <option value="ON" {% if user_details['state'] == "ON" %}selected{% endif %}>Ontario</option>#}
|
|
{# <option value="PE" {% if user_details['state'] == "PE" %}selected{% endif %}>Prince Edward Island</option>#}
|
|
{# <option value="QC" {% if user_details['state'] == "QC" %}selected{% endif %}>Quebec</option>#}
|
|
{# <option value="SK" {% if user_details['state'] == "SK" %}selected{% endif %}>Saskatchewan</option>#}
|
|
{# <option value="YK" {% if user_details['state'] == "YK" %}selected{% endif %}>Yukon</option>#}
|
|
{# </optgroup>#}
|
|
{# <optgroup label="US States">#}
|
|
{# <option value="AL" {% if user_details['state'] == "AL" %}selected{% endif %}>Alabama</option>#}
|
|
{# <option value="AK" {% if user_details['state'] == "AK" %}selected{% endif %}>Alaska</option>#}
|
|
{# <option value="AZ" {% if user_details['state'] == "AZ" %}selected{% endif %}>Arizona</option>#}
|
|
{# <option value="AR" {% if user_details['state'] == "AR" %}selected{% endif %}>Arkansas</option>#}
|
|
{# <option value="BVI" {% if user_details['state'] == "BVI" %}selected{% endif %}>British Virgin Islands</option>#}
|
|
{# <option value="CA" {% if user_details['state'] == "CA" %}selected{% endif %}>California</option>#}
|
|
{# <option value="CO" {% if user_details['state'] == "CO" %}selected{% endif %}>Colorado</option>#}
|
|
{# <option value="CT" {% if user_details['state'] == "CT" %}selected{% endif %}>Connecticut</option>#}
|
|
{# <option value="DE" {% if user_details['state'] == "DE" %}selected{% endif %}>Delaware</option>#}
|
|
{# <option value="FL" {% if user_details['state'] == "FL" %}selected{% endif %}>Florida</option>#}
|
|
{# <option value="GA" {% if user_details['state'] == "GA" %}selected{% endif %}>Georgia</option>#}
|
|
{# <option value="GU" {% if user_details['state'] == "GU" %}selected{% endif %}>Guam</option>#}
|
|
{# <option value="HI" {% if user_details['state'] == "HI" %}selected{% endif %}>Hawaii</option>#}
|
|
{# <option value="ID" {% if user_details['state'] == "ID" %}selected{% endif %}>Idaho</option>#}
|
|
{# <option value="IL" {% if user_details['state'] == "IL" %}selected{% endif %}>Illinois</option>#}
|
|
{# <option value="IN" {% if user_details['state'] == "IN" %}selected{% endif %}>Indiana</option>#}
|
|
{# <option value="IA" {% if user_details['state'] == "IA" %}selected{% endif %}>Iowa</option>#}
|
|
{# <option value="KS" {% if user_details['state'] == "KS" %}selected{% endif %}>Kansas</option>#}
|
|
{# <option value="KY" {% if user_details['state'] == "KY" %}selected{% endif %}>Kentucky</option>#}
|
|
{# <option value="LA" {% if user_details['state'] == "LA" %}selected{% endif %}>Louisiana</option>#}
|
|
{# <option value="ME" {% if user_details['state'] == "ME" %}selected{% endif %}>Maine</option>#}
|
|
{# <option value="MP" {% if user_details['state'] == "MP" %}selected{% endif %}>Mariana Islands</option>#}
|
|
{# <option value="MPI" {% if user_details['state'] == "MPI" %}selected{% endif %}>Mariana Islands (Pacific)</option>#}
|
|
{# <option value="MD" {% if user_details['state'] == "MD" %}selected{% endif %}>Maryland</option>#}
|
|
{# <option value="MA" {% if user_details['state'] == "MA" %}selected{% endif %}>Massachusetts</option>#}
|
|
{# <option value="MI" {% if user_details['state'] == "MI" %}selected{% endif %}>Michigan</option>#}
|
|
{# <option value="MN" {% if user_details['state'] == "MN" %}selected{% endif %}>Minnesota</option>#}
|
|
{# <option value="MS" {% if user_details['state'] == "MS" %}selected{% endif %}>Mississippi</option>#}
|
|
{# <option value="MO" {% if user_details['state'] == "MO" %}selected{% endif %}>Missouri</option>#}
|
|
{# <option value="MT" {% if user_details['state'] == "MT" %}selected{% endif %}>Montana</option>#}
|
|
{# <option value="NE" {% if user_details['state'] == "NE" %}selected{% endif %}>Nebraska</option>#}
|
|
{# <option value="NV" {% if user_details['state'] == "NV" %}selected{% endif %}>Nevada</option>#}
|
|
{# <option value="NH" {% if user_details['state'] == "NH" %}selected{% endif %}>New Hampshire</option>#}
|
|
{# <option value="NJ" {% if user_details['state'] == "NJ" %}selected{% endif %}>New Jersey</option>#}
|
|
{# <option value="NM" {% if user_details['state'] == "NM" %}selected{% endif %}>New Mexico</option>#}
|
|
{# <option value="NY" {% if user_details['state'] == "NY" %}selected{% endif %}>New York</option>#}
|
|
{# <option value="NC" {% if user_details['state'] == "NC" %}selected{% endif %}>North Carolina</option>#}
|
|
{# <option value="ND" {% if user_details['state'] == "ND" %}selected{% endif %}>North Dakota</option>#}
|
|
{# <option value="OH" {% if user_details['state'] == "OH" %}selected{% endif %}>Ohio</option>#}
|
|
{# <option value="OK" {% if user_details['state'] == "OK" %}selected{% endif %}>Oklahoma</option>#}
|
|
{# <option value="OR" {% if user_details['state'] == "OR" %}selected{% endif %}>Oregon</option>#}
|
|
{# <option value="PA" {% if user_details['state'] == "PA" %}selected{% endif %}>Pennsylvania</option>#}
|
|
{# <option value="PR" {% if user_details['state'] == "PR" %}selected{% endif %}>Puerto Rico</option>#}
|
|
{# <option value="RI" {% if user_details['state'] == "RI" %}selected{% endif %}>Rhode Island</option>#}
|
|
{# <option value="SC" {% if user_details['state'] == "SC" %}selected{% endif %}>South Carolina</option>#}
|
|
{# <option value="SD" {% if user_details['state'] == "SD" %}selected{% endif %}>South Dakota</option>#}
|
|
{# <option value="TN" {% if user_details['state'] == "TN" %}selected{% endif %}>Tennessee</option>#}
|
|
{# <option value="TX" {% if user_details['state'] == "TX" %}selected{% endif %}>Texas</option>#}
|
|
{# <option value="UT" {% if user_details['state'] == "UT" %}selected{% endif %}>Utah</option>#}
|
|
{# <option value="VT" {% if user_details['state'] == "VT" %}selected{% endif %}>Vermont</option>#}
|
|
{# <option value="USVI" {% if user_details['state'] == "USVI" %}selected{% endif %}>VI U.S. Virgin Islands</option>#}
|
|
{# <option value="VA" {% if user_details['state'] == "VA" %}selected{% endif %}>Virginia</option>#}
|
|
{# <option value="WA" {% if user_details['state'] == "WA" %}selected{% endif %}>Washington</option>#}
|
|
{# <option value="DC" {% if user_details['state'] == "DC" %}selected{% endif %}>Washington, D.C.</option>#}
|
|
{# <option value="WV" {% if user_details['state'] == "WV" %}selected{% endif %}>West Virginia</option>#}
|
|
{# <option value="WI" {% if user_details['state'] == "WI" %}selected{% endif %}>Wisconsin</option>#}
|
|
{# <option value="WY" {% if user_details['state'] == "WY" %}selected{% endif %}>Wyoming</option>#}
|
|
{# </optgroup>#}
|
|
{# <option value="N/A" {% if user_details['state'] == "N/A" %}selected{% endif %}>Other</option>#}
|
|
{# </select>#}
|
|
|
|
<label for="zipcode">Индекс</label>
|
|
<input name="zipcode" id="zipcode" type="text" class="small-field" value="{{ user_details['zipcode'] }}" />
|
|
|
|
<input type="submit" value="Сохранить изменения" class="button success" />
|
|
</form>
|