[Intervention] Revocations files optional #4

* makes revocation file upload optional
 * adds overview about revocations to intervention index
 * adds/updates translations
This commit is contained in:
mipel
2021-08-26 15:02:34 +02:00
parent 1f8440de57
commit 415fe267d2
7 changed files with 217 additions and 167 deletions

View File

@@ -22,6 +22,10 @@ Declare some basic colours
color:white;
}
.rlp-gd-inv{
color: var(--rlp-gray-dark);
}
.rlp-gd-outline{
border:1px solid var(--rlp-gray-dark);
color:var(--rlp-gray-dark);

View File

@@ -127,6 +127,17 @@ class BaseTable(tables.tables.Table):
icon
)
def render_stop(self, tooltip: str = None, icn_filled: bool = False):
"""
Returns a stop icon
"""
icon = "fas fa-ban rlp-r-inv" if icn_filled else "fas fa-ban rlp-gd-inv"
return format_html(
"<em title='{}' class='{}'></em>",
tooltip,
icon
)
def render_icn(self, tooltip: str = None, icn_class: str = None):
"""
Returns a rendered fontawesome icon