oswilno/server/assets/templates/account.html
2022-07-26 13:05:17 +02:00

23 lines
569 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"
></ow-account>
{% endmatch %}
{% endblock %}