{% from "_formhelpers.html" import render_field, render_field_errors %} {% extends 'default.html' %} {% set active_page = "dashboard" %} {% block title %} Setting {% endblock %} {% block default_content %}
{{ form.csrf_token }}

Profile

{{ form.name(class="form-control", value=current_user.name) }} {{ render_field_errors(form.name) }}
Profile picture
{{ form.profile_picture(class="form-control-file") }} {{ render_field_errors(form.profile_picture) }}

Current subscription

Your current plan is {% if current_user.is_premium() %} {{ current_user.plan.name }}
{% if current_user.plan_expiration %} Ends {{ current_user.plan_expiration.humanize() }} {% else %} Renewed {{ current_user.plan_current_period_end().humanize() }} {% endif %} {% else %} {{ current_user.plan.name }}
{% if current_user.plan == PlanEnum.trial %} Ends {{ current_user.plan_expiration.humanize() }}
{% endif %} Upgrade To Premium

{{ promo_form.csrf_token }}
If you have a promo code, you can enter it here

You can use a given promo code only once :)

{{ promo_form.code(class="form-control") }} {{ render_field_errors(promo_form.code) }}
{% endif %} {% if current_user.is_premium() %} {% if current_user.plan_expiration %}


{% else %}


{% endif %} {% endif %}

Change password

{% endblock %}