mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-12-29 10:52:20 +00:00
49 lines
1.6 KiB
HTML
49 lines
1.6 KiB
HTML
{% extends "member/base.html" %}
|
|
{% comment %}
|
|
SPDX-License-Identifier: GPL-3.0-or-later
|
|
{% endcomment %}
|
|
{% load static django_tables2 i18n %}
|
|
|
|
{% block profile_content %}
|
|
<div class="card bg-light mb-3">
|
|
<h3 class="card-header text-center">
|
|
{% trans "Add friends" %}
|
|
</h3>
|
|
<div class="card-body">
|
|
{% if can_create %}
|
|
<form class="input-group" method="POST" id="form_trust">
|
|
{% csrf_token %}
|
|
<input type="hidden" name="trusting" value="{{ object.note.pk }}">
|
|
{%include "autocomplete_model.html" %}
|
|
<div class="input-group-append">
|
|
<input type="submit" class="btn btn-success" value="{% trans "Add" %}">
|
|
</div>
|
|
</form>
|
|
{% endif %}
|
|
</div>
|
|
{% render_table trusting %}
|
|
</div>
|
|
|
|
<div class="alert alert-warning card mb-3">
|
|
{% blocktrans trimmed %}
|
|
Adding someone as a friend enables them to initiate transactions coming
|
|
from your account (while keeping your balance positive). This is
|
|
designed to simplify using note kfet transfers to transfer money between
|
|
users. The intent is that one person can make all transfers for a group of
|
|
friends without needing additional rights among them.
|
|
{% endblocktrans %}
|
|
</div>
|
|
|
|
<div class="card bg-light mb-3">
|
|
<h3 class="card-header text-center">
|
|
{% trans "People having you as a friend" %}
|
|
</h3>
|
|
{% render_table trusted_by %}
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block extrajavascript %}
|
|
<script src="{% static "member/js/trust.js" %}"></script>
|
|
<script src="{% static "js/autocomplete_model.js" %}"></script>
|
|
{% endblock%}
|