oswilno/server/assets/templates/account.html

26 lines
613 B
HTML

{% extends "base.html" %}
{% block content %}
{% match account.as_ref() %}
{% when Some with (a) %}
<account-view
id="{{a.id}}"
name="{{a.login}}"
email="{{a.email}}"
facebook-id="{{a.facebook_id.as_deref().unwrap_or_default()}}"
>
{% if h.is_above_user(account) -%}
<a id="editService" slot="editService" href="/account/business-items" title="Moje usługi" class="btn">
Edytuj usługi
</a>
{%- endif %}
</account-view>
{% when None %}
<ow-account
mode="form"
page="{{register_page.as_str()}}"
>
</ow-account>
{% endmatch %}
{% endblock %}