Modified files
static/input.css
---
+++
@@ -52,4 +52,16 @@
.allauth-form p:has(input[type="email"]) label {
@apply font-bold;
+}
+
+.article-status-draft {
+ @apply bg-gray-200;
+}
+
+.article-status-published {
+ @apply bg-green-200;
+}
+
+.article-status-inprogress {
+ @apply bg-amber-200;
}
templates/app/layouts/base_form.html
---
+++
@@ -13,7 +13,7 @@
</div>
<div class="flex gap-10 mb-10 items-center">
- {% render_field form.status class="text-xs border-none rounded-sm uppercase" x-model.fill="articleStatus" %}
+ {% render_field form.status class="text-xs border-none rounded-sm uppercase" x-bind::class="`article-status-${articleStatus}`" x-model.fill="articleStatus" %}
{% block article_stats %}
{% endblock article_stats %}