Skip to content

Commit

Permalink
👌 [#1796] Process PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenbal committed Oct 26, 2023
1 parent 6c20e82 commit 9a171a7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
7 changes: 5 additions & 2 deletions src/open_inwoner/openzaak/admin.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from django.contrib import admin, messages
from django.core.exceptions import ValidationError
from django.db.models import BooleanField, Count, ExpressionWrapper, Q
from django.forms import ModelForm
from django.forms import ModelForm, Textarea
from django.forms.models import BaseInlineFormSet
from django.utils.translation import gettext_lazy as _, ngettext

Expand Down Expand Up @@ -165,7 +165,10 @@ class ZaakTypeStatusTypeConfigInlineAdminForm(ModelForm):
class Meta:
model = ZaakTypeStatusTypeConfig
fields = "__all__"
widgets = {"document_upload_description": CKEditorWidget}
widgets = {
"document_upload_description": CKEditorWidget,
"status_indicator_text": Textarea(attrs={"cols": 40, "rows": 10}),
}


class ZaakTypeStatusTypeConfigInline(admin.TabularInline):
Expand Down
13 changes: 11 additions & 2 deletions src/open_inwoner/scss/components/Card/Card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,17 @@
}

&--info {
background-color: $color-info;
color: $color-info-dark;
background-color: var(--color-info-lighter);
color: var(--color-info-darker);
border: 0;

& .document-upload-description__text {
margin-top: 0.15em;

& * {
margin: 0;
}
}
}

&--stretch {
Expand Down
4 changes: 2 additions & 2 deletions src/open_inwoner/templates/pages/cases/status_inner.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ <h2 class="h2" id=>{% trans "Document uploaden" %}</h2>

<div class="card card--compact card--info">
<div class="card__body document-upload-description">
<p>{% icon icon="info" icon_position="after" extra_classes="icon--info" %}</p>
{% icon icon="info" icon_position="after" extra_classes="icon--info" outlined=True %}

<div>{{ case.case_type_document_upload_description|markdown|safe }}</div>
<div class="document-upload-description__text">{{ case.case_type_document_upload_description|markdown|safe }}</div>
</div>
</div>

Expand Down

0 comments on commit 9a171a7

Please sign in to comment.