mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-11-27 02:43:01 +00:00
42 lines
1.5 KiB
HTML
42 lines
1.5 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 "Note friendships" %}
|
|
</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">
|
|
{% 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>
|
|
{% endblock %}
|
|
|
|
{% block extrajavascript %}
|
|
<script src="{% static "member/js/trust.js" %}"></script>
|
|
<script src="{% static "js/autocomplete_model.js" %}"></script>
|
|
{% endblock%}
|