From 4e0d458cfbfcd53be73ac0b631d385107576a61f Mon Sep 17 00:00:00 2001 From: BurnyLlama Date: Mon, 22 Apr 2024 20:14:45 +0200 Subject: [PATCH] Hooked up article toolbox UI to API. --- scss/forms.scss | 4 ++++ templates/single-text-view.html.tera | 20 ++++++++++++++++---- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/scss/forms.scss b/scss/forms.scss index 37cfd33..a6b1e98 100644 --- a/scss/forms.scss +++ b/scss/forms.scss @@ -35,4 +35,8 @@ form { > .btn { width: max-content; } + + &.hidden-form { + display: none; + } } diff --git a/templates/single-text-view.html.tera b/templates/single-text-view.html.tera index f6a6afd..4fd066a 100644 --- a/templates/single-text-view.html.tera +++ b/templates/single-text-view.html.tera @@ -57,11 +57,17 @@

Verktygslåda

{% if can_mark_as_done %} - +
+ +
+ {% endif %} {% if can_unmark_as_done %} - +
+ +
+ {% endif %} {% if can_edit_text %} @@ -69,11 +75,17 @@ {% endif %} {% if can_unpublish_text %} - +
+ +
+ {% endif %} {% if can_publish_text %} - +
+ +
+ {% endif %}