2022-07-06 15:33:14 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
|
|
{% match account.as_ref() %}
|
|
|
|
{% when Some with (a) %}
|
2022-07-26 13:05:17 +02:00
|
|
|
<account-view
|
2022-07-06 15:33:14 +02:00
|
|
|
id="{{a.id}}"
|
|
|
|
name="{{a.login}}"
|
|
|
|
email="{{a.email}}"
|
|
|
|
facebook-id="{{a.facebook_id.as_deref().unwrap_or_default()}}"
|
2022-07-26 13:05:17 +02:00
|
|
|
>
|
|
|
|
{% 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>
|
2022-07-06 15:33:14 +02:00
|
|
|
{% when None %}
|
2022-07-09 21:52:48 +02:00
|
|
|
<ow-account
|
|
|
|
mode="form"
|
2022-07-26 16:12:37 +02:00
|
|
|
page="{{register_page.as_str()}}"
|
|
|
|
>
|
|
|
|
|
|
|
|
</ow-account>
|
2022-07-06 15:33:14 +02:00
|
|
|
{% endmatch %}
|
|
|
|
{% endblock %}
|