oswilno/crates/server/assets/templates/account.html

20 lines
498 B
HTML
Raw Normal View History

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) -%}
2022-07-29 16:08:59 +02:00
<button id="editService" slot="editService" title="Moje usługi" class="">
2022-07-26 13:05:17 +02:00
Edytuj usługi
2022-07-29 16:08:59 +02:00
</button>
2022-07-26 13:05:17 +02:00
{%- endif %}
</account-view>
2022-07-06 15:33:14 +02:00
{% when None %}
{% endmatch %}
{% endblock %}