Sửa thông tin

Các nội dung cơ bản của trang sửa thông tin

Trang sửa thông tin là trang dùng để cập nhật, sửa đổi, bổ sung thông tin người dùng. Trong quá trình sử dụng tài khoản, có thể sẽ có một số thông tin bị sai lệch người dùng có thể sửa đổi, bổ sung những thông tin đó.

Các thẻ meta

{% extends layout_layout %}
{% block meta %}
    {{ headTitle('Cập nhật thông tin cá nhân').setSeparator(' - ').setAutoEscape(false)|raw }}
    <meta name="keywords" content="Cập nhật thông tin cá nhân">
    <meta name="description" content="Cập nhật thông tin cá nhân">
    <link rel="canonical" href="{{ getCurrentUrl(true) }}" />
    <meta property="og:url" content="{{ getCurrentUrl(true) }}">
    <meta property="og:image" content="https://dummyimage.com/300x200/000/fff">
    <meta property="og:type" content="website">
    <meta property="og:title" content="Cập nhật thông tin cá nhân">
{% endblock %}



Form sửa thông tin

Form chứa các trường thông tin của người dùng như:

  • Tên:

    <input class="validate[required]" type="text" name="fullName" value="{{ getUser().fullName }}">
  • Địa chỉ:

    <input class="validate[required]" type="text" name="address" value="{{ getUser().address }}">
  • Số điện thoại:

 <input class="validate[required,custom[phone]]" type="text" name="mobile" value="{{ getUser().mobile }}" autocomplete="off">
  • Tỉnh/Thành:

    
{% for city in cities %}
        <option value="{{ city.Id }}">
            {{ city.nativeName }}
        </option>
    {% endfor %}



  • Quận/huyện:

    
{% if(user) %}
        {% set dts = getDistrict(user.cityLocationId) %}
            {{ toSelectBox(dts, user.districtLocationId) }}
    {% endif %}

Last updated