fix(postcard): reorder country fields to from→to on both create forms
This commit is contained in:
@@ -26,12 +26,12 @@
|
|||||||
<label>{{ 'pc_form.receive_time'|t(user.language) }} *</label>
|
<label>{{ 'pc_form.receive_time'|t(user.language) }} *</label>
|
||||||
<input type="date" name="receive_time" value="{{ postcard.receive_time.strftime('%Y-%m-%d') if is_edit and postcard.receive_time else today }}">
|
<input type="date" name="receive_time" value="{{ postcard.receive_time.strftime('%Y-%m-%d') if is_edit and postcard.receive_time else today }}">
|
||||||
|
|
||||||
<label>{{ 'pc_form.country'|t(user.language) }}</label>
|
|
||||||
<input type="text" name="country_to" value="{{ postcard.country_to if is_edit and postcard.country_to else (profile.country if profile else '') }}" maxlength="2" placeholder="JP" style="width:80px;text-transform:uppercase" oninput="this.value=this.value.toUpperCase()">
|
|
||||||
|
|
||||||
<label>{{ 'pc_form.country_from'|t(user.language) }}</label>
|
<label>{{ 'pc_form.country_from'|t(user.language) }}</label>
|
||||||
<input type="text" name="country_from" value="{{ postcard.country_from if is_edit and postcard.country_from else '' }}" maxlength="2" style="width:80px;text-transform:uppercase" oninput="this.value=this.value.toUpperCase()">
|
<input type="text" name="country_from" value="{{ postcard.country_from if is_edit and postcard.country_from else '' }}" maxlength="2" style="width:80px;text-transform:uppercase" oninput="this.value=this.value.toUpperCase()">
|
||||||
|
|
||||||
|
<label>{{ 'pc_form.country'|t(user.language) }}</label>
|
||||||
|
<input type="text" name="country_to" value="{{ postcard.country_to if is_edit and postcard.country_to else (profile.country if profile else '') }}" maxlength="2" placeholder="JP" style="width:80px;text-transform:uppercase" oninput="this.value=this.value.toUpperCase()">
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
{# ── 寄出表单 ── #}
|
{# ── 寄出表单 ── #}
|
||||||
{% if is_new %}
|
{% if is_new %}
|
||||||
|
|||||||
Reference in New Issue
Block a user