django-musician/musician/templates/musician/profile.html

66 lines
2.2 KiB
HTML
Raw Normal View History

2019-11-20 19:07:35 +00:00
{% extends "musician/base.html" %}
{% load i18n %}
{% block content %}
<h1 class="service-name">{% trans "Profile" %}</h1>
<p class="service-description">{% trans "Little description on profile page." %}</p>
2019-11-20 19:07:35 +00:00
2019-12-17 12:04:53 +00:00
<div class="card-deck">
<div class="card card-profile">
<h5 class="card-header">{% trans "User information" %}</h5>
2019-12-17 12:04:53 +00:00
<div class="card-body row">
<div class="col-md">
<div class="border-primary rounded-circle d-inline-block p-1" style="background-color: white; border: 5px solid grey">
<img id="user-avatar" width="160" height="160" src="/static/musician/images/default-profile-picture-primary-color.png" alt="user-profile-picture">
</div>
2019-11-20 19:07:35 +00:00
</div>
2019-12-17 12:04:53 +00:00
<div class="col-md-9">
<p class="card-text">{{ profile.username }}</p>
<p class="card-text">{{ profile.type }}</p>
<p class="card-text">{% trans "Preferred language:" %} {{ profile.language|language_name_local }}</p>
2019-12-17 12:04:53 +00:00
</div>
{% comment %}
<!-- disabled until set_password is implemented -->
<div class="col-md-12 text-right">
<a class="btn btn-primary pl-5 pr-5" href="#">{% trans "Set new password" %}</a>
2019-12-17 12:04:53 +00:00
</div>
{% endcomment %}
2019-11-20 19:07:35 +00:00
</div>
</div>
2019-12-17 12:04:53 +00:00
{% with profile.billing as contact %}
<div class="card card-profile">
<h5 class="card-header">{% trans "Billing information" %}</h5>
2019-12-17 12:04:53 +00:00
<div class="card-body">
<div class="form-group">{{ contact.name }}</div>
<div class="form-group">{{ contact.address }}</div>
<div class="form-group">
{{ contact.zipcode }}
{{ contact.city }}
{{ contact.country }}
</div>
<div class="form-group">
{{ contact.vat }}
</div>
<!-- payment method -->
<div class="form-group">
{% trans "payment method:" %} {{ payment.method }}
2019-12-17 12:04:53 +00:00
</div>
<div class="form-group">
2019-12-17 12:50:53 +00:00
{% if payment.method == 'SEPADirectDebit' %}
IBAN {{ payment.data.iban }}
{% else %}
{# <!-- "TODO handle Credit Card" --> #}
Details: {{ payment.data }}
{% endif %}
2019-12-17 12:04:53 +00:00
</div>
2020-01-21 12:10:12 +00:00
<div class="text-right">
<a href="{% url 'musician:billing' %}">{% trans "Check your last bills" %}</a>
</div>
2019-12-17 12:04:53 +00:00
</div>
2019-11-20 19:07:35 +00:00
</div>
</div>
{% endwith %}
{% endblock %}