1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-24 03:08:47 +02:00

non dynamic search for button

This commit is contained in:
Pierre-antoine Comby
2020-03-23 20:21:25 +01:00
parent 1ce7dc0118
commit 7cd8a37aec
4 changed files with 38 additions and 5 deletions

View File

@ -1,7 +1,26 @@
{% extends "base.html" %}
{% load pretty_money %}
{% load i18n %}
{% load render_table from django_tables2 %}
{% block content %}
<a class="btn btn-primary text-center" href="{% url 'note:template_create' %}">Créer un bouton</a>
{% render_table table %}
<div class="row justify-content-center mb-4">
<div class="col-md-10 text-center">
<h4>
{% trans "search button" %}
</h4>
<form action="" method="GET">
{% csrf_token %}
<input class="form-control mx-auto w-25" type="text" id="name" name="name" value='{{ request.GET.name }}'/>
</form>
<ul class="list-group list-group-flush" id="alias_matched">
</ul>
<hr>
<a class="btn btn-primary text-center my-4" href="{% url 'note:template_create' %}">Créer un bouton</a>
</div>
</div>
<div class="row justify-content-center">
<div class="col-md-10">
{% render_table table %}
</div>
</div>
{% endblock %}