Remove alias_update.html

This commit is contained in:
Alexandre Iooss 2020-08-22 23:55:22 +02:00
parent 196f796570
commit 2c1cf148fa
4 changed files with 41 additions and 20 deletions

View File

@ -1,12 +0,0 @@
{% load django_tables2 crispy_forms_tags i18n %}
<div class="d-flex justify-content-center">
<input id="alias_input" type="text" value=""/>
<button id="alias_submit" class="btn btn-primary mx-2" onclick="create_alias( {{ object.note.pk }} )" type="submit">
{% trans "Add alias" %}
</button>
</div>
<div class="card bg-light shadow">
<div class="card-body">
{% render_table aliases %}
</div>
</div>

View File

@ -1,10 +1,25 @@
{% extends "member/club_detail.html" %}
{% load i18n static pretty_money django_tables2 crispy_forms_tags %}
{% load static django_tables2 i18n %}
{% block profile_content %}
{% include "member/alias_update.html" %}
<div class="card bg-light">
<h3 class="card-header text-center">
{% trans "Note aliases" %}
</h3>
<div class="card-body text-center">
<div class="input-group">
<input id="alias_input" type="text" class="form-control">
<div class="input-group-append">
<button id="alias_submit" class="btn btn-success" onclick="create_alias({{ object.note.pk }})">
{% trans "Add" %}
</button>
</div>
</div>
</div>
{% render_table aliases %}
</div>
{% endblock %}
{% block extrajavascript %}
<script src="/static/js/alias.js"></script>
<script src="{% static "member/js/alias.js" %}"></script>
{% endblock%}

View File

@ -1,5 +1,8 @@
{% extends "member/noteowner_detail.html" %}
{# Use a fluid-width container #}
{% block containertype %}container-fluid{% endblock %}
{% block profile_info %}
{% include "member/club_info.html" %}
{% endblock %}

View File

@ -1,10 +1,25 @@
{% extends "member/profile_detail.html" %}
{% load i18n static pretty_money django_tables2 crispy_forms_tags %}
{% load static django_tables2 i18n %}
{% block profile_content %}
{% include "member/alias_update.html"%}
<div class="card bg-light">
<h3 class="card-header text-center">
{% trans "Note aliases" %}
</h3>
<div class="card-body text-center">
<div class="input-group">
<input id="alias_input" type="text" class="form-control">
<div class="input-group-append">
<button id="alias_submit" class="btn btn-success" onclick="create_alias({{ object.note.pk }})">
{% trans "Add" %}
</button>
</div>
</div>
</div>
{% render_table aliases %}
</div>
{% endblock %}
{% block extrajavascript %}
<script src="/static/js/alias.js"></script>
<script src="{% static "member/js/alias.js" %}"></script>
{% endblock%}