diff --git a/compensation/models.py b/compensation/models.py index ee78a46e..3393dd9b 100644 --- a/compensation/models.py +++ b/compensation/models.py @@ -257,9 +257,17 @@ class EcoAccount(AbstractCompensation): y, ) - def quality_check(self) -> (bool, dict): - # ToDo - pass + def quality_check(self) -> list: + """ Quality check + + Returns: + ret_msgs (list): Holds error messages + """ + ret_msgs = [] + + # ToDo: Add check methods! + + return ret_msgs class EcoAccountWithdraw(BaseResource): diff --git a/compensation/templates/compensation/detail/compensation/view.html b/compensation/templates/compensation/detail/compensation/view.html index 16084e2d..63d00aa2 100644 --- a/compensation/templates/compensation/detail/compensation/view.html +++ b/compensation/templates/compensation/detail/compensation/view.html @@ -63,9 +63,9 @@
+ {% trans 'Action type' %} + | ++ {% trans 'Amount' context 'Compensation' %} + | ++ {% trans 'Comment' %} + | ++ {% trans 'Action' %} + | +
---|---|---|---|
+ {{ action.action_type }} + | +{{ action.amount|floatformat:2|intcomma }} {{ action.unit_humanize }} | +{{ action.comment|default_if_none:"" }} | ++ {% if is_default_member and has_access %} + + {% endif %} + | +
+ {% trans 'Type' %} + | ++ {% trans 'Date' %} + | ++ {% trans 'Comment' %} + | ++ {% trans 'Action' %} + | +
---|---|---|---|
+ {% trans deadline.type_humanized %} + | +{{ deadline.date }} | +{{ deadline.comment }} | ++ {% if is_default_member and has_access %} + + {% endif %} + | +
+ {% trans 'Title' %} + | ++ {% trans 'Comment' %} + | ++ {% trans 'Action' %} + | +
---|---|---|
+ + {{ doc.title }} + + | +{{ doc.comment }} | ++ {% if is_default_member and has_access %} + + {% endif %} + | +
+ {% trans 'Biotope type' %} + | ++ {% trans 'Surface' %} + | ++ {% trans 'Action' %} + | +
---|---|---|
+ {{ state.biotope_type }} + | +{{ state.surface|floatformat:2 }} m² | ++ {% if is_default_member and has_access %} + + {% endif %} + | +
+ {% trans 'Biotope type' %} + | ++ {% trans 'Surface' %} + | ++ {% trans 'Action' %} + | +
---|---|---|
+ {{ state.biotope_type }} + | +{{ state.surface|floatformat:2 }} m² | ++ {% if is_default_member and has_access %} + + {% endif %} + | +
{% trans 'Title' %} | +{{obj.title}} | +
---|---|
{% trans 'Recorded' %} | ++ {% if obj.recorded is None %} + + {% fa5_icon 'bookmark' 'far' %} + + {% else %} + + {% fa5_icon 'bookmark' %} + + {% endif %} + | +
{% trans 'Last modified' %} | +
+ {% if obj.modified %}
+ {{obj.modified.timestamp|default_if_none:""|naturalday}}
+ + {{obj.modified.user.username}} + {% else %} + {{obj.created.timestamp|default_if_none:""|naturalday}} + + {{obj.created.user.username}} + + {% endif %} + |
+
{% trans 'Shared with' %} | ++ {% for user in obj.users.all %} + {% include 'user/includes/contact_modal_button.html' %} + {% endfor %} + | +