{% extends 'autosrp/base.html' %} {% load i18n form_extras %} {% block content %}
{% trans "Penalty Scheme" %}
{% if form.non_field_errors %}
{{ form.non_field_errors }}
{% endif %}
{% csrf_token %}
{{ form.name|add_class:"form-control" }}
A human-friendly name for this penalty scheme. This name appears in selections, defaults, and reporting.
{% if form.name.errors %}
{{ form.name.errors|join:", " }}
{% endif %}
{{ form.per_missing_module_pct|add_class:"form-control" }}
Percent deduction applied for each missing required doctrine module. Example: 5.00 deducts 5% per missing module.
{% if form.per_missing_module_pct.errors %}
{{ form.per_missing_module_pct.errors|join:", " }}
{% endif %}
{{ form.per_extra_module_pct|add_class:"form-control" }}
Percent deduction applied for each wrong (not defined by doctrine) module present. Example: 2.50 deducts 2.5% per extra module.
{% if form.per_extra_module_pct.errors %}
{{ form.per_extra_module_pct.errors|join:", " }}
{% endif %}
{{ form.count_rigs|add_class:"form-check-input" }}
If enabled, rigs are included in wrong/missing calculations for penalties.
{% if form.count_rigs.errors %}
{{ form.count_rigs.errors|join:", " }}
{% endif %}
{{ form.count_subsystems|add_class:"form-check-input" }}
If enabled, T3 subsystems count toward wrong/missing module penalties.
{% if form.count_subsystems.errors %}
{{ form.count_subsystems.errors|join:", " }}
{% endif %}
{{ form.max_total_deduction_pct|add_class:"form-control" }}
Maximum total deduction (percent) allowed for a single loss. The computed penalties will not exceed this cap. Example: 50.00 caps total deduction at 50%.
{% if form.max_total_deduction_pct.errors %}
{{ form.max_total_deduction_pct.errors|join:", " }}
{% endif %}
{{ form.is_default|add_class:"form-check-input" }}
If selected, this scheme becomes the default when a doctrine reward does not specify a penalty scheme explicitly. Only one scheme should generally be default.
{% if form.is_default.errors %}
{{ form.is_default.errors|join:", " }}
{% endif %}
{% trans "Cancel" %}
{% trans "Penalty percentages are applied per-module, then capped by the maximum total deduction." %}
{% endblock %}