diff --git a/compensation/forms.py b/compensation/forms.py index 9c435644..a86fbb6b 100644 --- a/compensation/forms.py +++ b/compensation/forms.py @@ -26,7 +26,6 @@ class NewPaymentForm(BaseModalForm): label=_("Amount"), label_suffix=_(""), help_text=_("Amount in Euro"), - localize=True, ) due = forms.DateField( label=_("Due on"), diff --git a/intervention/templates/intervention/detail-view.html b/intervention/templates/intervention/detail-view.html deleted file mode 100644 index 444a0f2d..00000000 --- a/intervention/templates/intervention/detail-view.html +++ /dev/null @@ -1,328 +0,0 @@ -{% extends 'base.html' %} -{% load i18n l10n static fontawesome_5 humanize %} - -{% block head %} - -{% endblock %} - -{% block body %} - -
{% trans 'Title' %} | -{{intervention.title}} | -
---|---|
{% trans 'Process type' %} | -{{intervention.process_type|default_if_none:""}} | -
{% trans 'Law' %} | -{{intervention.law|default_if_none:""}} | -
{% trans 'Registration office' %} | -{{intervention.registration_office|default_if_none:""}} | -
{% trans 'Registration office file number' %} | -{{intervention.registration_file_number|default_if_none:""}} | -
{% trans 'Conservation office' %} | -{{intervention.conservation_office|default_if_none:""}} | -
{% trans 'Conversation office file number' %} | -{{intervention.conservation_file_number|default_if_none:""}} | -
{% trans 'Intervention handler' %} | -{{intervention.handler|default_if_none:""}} | -
{% trans 'Checked' %} | -- {% if intervention.checked_on is None %} - - {% fa5_icon 'star' 'far' %} - - {% else %} - - {% fa5_icon 'star' %} - - {% endif %} - | -
{% trans 'Recorded' %} | -- {% if intervention.recorded_on is None %} - - {% fa5_icon 'bookmark' 'far' %} - - {% else %} - - {% fa5_icon 'bookmark' %} - - {% endif %} - | -
{% trans 'Registration date' %} | -{{intervention.registration_date|default_if_none:""}} | -
{% trans 'Binding on' %} | -{{intervention.binding_on|default_if_none:""}} | -
{% trans 'Last modified' %} | -
- {{intervention.created_on|default_if_none:""|naturalday}}
- - {% trans 'by' %} - {{intervention.created_by|default_if_none:""}} - |
-
{% trans 'Title' %} | +{{intervention.title}} | +
---|---|
{% trans 'Process type' %} | +{{intervention.process_type|default_if_none:""}} | +
{% trans 'Law' %} | +{{intervention.law|default_if_none:""}} | +
{% trans 'Registration office' %} | +{{intervention.registration_office|default_if_none:""}} | +
{% trans 'Registration office file number' %} | +{{intervention.registration_file_number|default_if_none:""}} | +
{% trans 'Conservation office' %} | +{{intervention.conservation_office|default_if_none:""}} | +
{% trans 'Conversation office file number' %} | +{{intervention.conservation_file_number|default_if_none:""}} | +
{% trans 'Intervention handler' %} | +{{intervention.handler|default_if_none:""}} | +
{% trans 'Checked' %} | ++ {% if intervention.checked_on is None %} + + {% fa5_icon 'star' 'far' %} + + {% else %} + + {% fa5_icon 'star' %} + + {% endif %} + | +
{% trans 'Recorded' %} | ++ {% if intervention.recorded_on is None %} + + {% fa5_icon 'bookmark' 'far' %} + + {% else %} + + {% fa5_icon 'bookmark' %} + + {% endif %} + | +
{% trans 'Registration date' %} | +{{intervention.registration_date|default_if_none:""}} | +
{% trans 'Binding on' %} | +{{intervention.binding_on|default_if_none:""}} | +
{% trans 'Last modified' %} | +
+ {{intervention.created_on|default_if_none:""|naturalday}}
+ + {% trans 'by' %} + {{intervention.created_by|default_if_none:""}} + |
+