2020-08-25 13:39:57 +00:00
|
|
|
{% extends "member/base.html" %}
|
2020-08-25 14:30:02 +00:00
|
|
|
{% comment %}
|
|
|
|
SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
{% endcomment %}
|
2020-08-22 21:55:22 +00:00
|
|
|
{% load static django_tables2 i18n %}
|
2020-03-25 17:00:40 +00:00
|
|
|
|
|
|
|
{% block profile_content %}
|
2020-08-22 21:55:22 +00:00
|
|
|
<div class="card bg-light">
|
|
|
|
<h3 class="card-header text-center">
|
|
|
|
{% trans "Note aliases" %}
|
|
|
|
</h3>
|
2020-08-30 21:06:51 +00:00
|
|
|
|
2020-08-22 22:33:36 +00:00
|
|
|
<div class="card-body">
|
2020-08-30 21:06:51 +00:00
|
|
|
{% if can_create %}
|
|
|
|
<form class="input-group" method="POST" id="form_alias">
|
|
|
|
{% csrf_token %}
|
|
|
|
<input type="hidden" name="note" value="{{ object.note.pk }}">
|
|
|
|
<input type="text" name="name" class="form-control">
|
|
|
|
<div class="input-group-append">
|
|
|
|
<input type="submit" class="btn btn-success" value="{% trans "Add" %}">
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{% endif %}
|
2020-08-22 21:55:22 +00:00
|
|
|
</div>
|
|
|
|
{% render_table aliases %}
|
|
|
|
</div>
|
2020-03-25 17:00:40 +00:00
|
|
|
{% endblock %}
|
2020-03-26 22:05:08 +00:00
|
|
|
|
|
|
|
{% block extrajavascript %}
|
2020-08-22 21:55:22 +00:00
|
|
|
<script src="{% static "member/js/alias.js" %}"></script>
|
|
|
|
{% endblock%}
|