Skip to content
Snippets Groups Projects
Verified Commit a50b27a0 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Fix design for personal note filter views

parent 9dfe5333
No related branches found
No related tags found
1 merge request!48Review use of Materialize
Pipeline #2482 passed
...@@ -6,9 +6,14 @@ from django_tables2.utils import A ...@@ -6,9 +6,14 @@ from django_tables2.utils import A
class PersonalNoteFilterTable(tables.Table): class PersonalNoteFilterTable(tables.Table):
class Meta: class Meta:
attrs = {"class": "table table-striped table-bordered table-hover table-responsive-xl"} attrs = {"class": "highlight"}
identifier = tables.Column() identifier = tables.Column()
description = tables.Column() description = tables.Column()
regex = tables.Column() regex = tables.Column()
edit_filter = tables.LinkColumn("edit_personal_note_filter", args=[A("id")], text=_("Edit")) edit_filter = tables.LinkColumn(
"edit_personal_note_filter",
args=[A("id")],
text=_("Edit"),
attrs={"a": {"class": "btn-flat waves-effect waves-orange"}},
)
...@@ -7,9 +7,12 @@ ...@@ -7,9 +7,12 @@
{% block content %} {% block content %}
{% if personal_note_filter %} {% if personal_note_filter %}
<a href="{% url 'delete_personal_note_filter' personal_note_filter.id %}" class="waves-effect waves-dark btn red"> <p>
<i class="material-icons">delete</i>{% blocktrans %}Delete filter{% endblocktrans %} <a href="{% url 'delete_personal_note_filter' personal_note_filter.id %}"
</a> class="waves-effect waves-light btn red">
<i class="material-icons left">delete</i>{% blocktrans %}Delete filter{% endblocktrans %}
</a>
</p>
{% endif %} {% endif %}
<form method="post"> <form method="post">
......
...@@ -4,12 +4,12 @@ ...@@ -4,12 +4,12 @@
{% load i18n %} {% load i18n %}
{% load render_table from django_tables2 %} {% load render_table from django_tables2 %}
{% block browser_title %}{% blocktrans %}List of all personal note filters{% endblocktrans %}{% endblock %} {% block browser_title %}{% blocktrans %}All personal note filters{% endblocktrans %}{% endblock %}
{% block page_title %}{% blocktrans %}List of all personal note filters{% endblocktrans %}{% endblock %} {% block page_title %}{% blocktrans %}Personal note filters{% endblocktrans %}{% endblock %}
{% block content %} {% block content %}
<a href="{% url 'create_personal_note_filter' %}" class="waves-effect waves-dark green btn"> <a href="{% url 'create_personal_note_filter' %}" class="waves-effect waves-light green btn">
<i class="material-icons">add</i>{% blocktrans %}Add filter{% endblocktrans %} <i class="material-icons left">add</i>{% blocktrans %}Add filter{% endblocktrans %}
</a> </a>
{% render_table personal_note_filters_table %} {% render_table personal_note_filters_table %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment