{% extends "base.html" %} {% block content %}

Salary Slip Template Master

{% if selected_template %} {% endif %}
Template Details
{% macro render_field_section(title, section_name, fields) %}
{{ title }}
{% for key, label in fields %} {% set cfg = field_map.get((section_name, key)) %} {% endfor %}
Show Field Display Label
{{ label }}
{% endmacro %} {{ render_field_section('Employee Fields', 'employee', employee_fields) }} {{ render_field_section('Company Fields', 'company', company_fields) }} {{ render_field_section('Attendance Fields', 'attendance', attendance_fields) }} {% macro render_component_section(title, ctype, heads) %}
{{ title }}
{% for h in heads %} {% set cfg = component_map.get((ctype, h.name)) %} {% endfor %}
Show Component Display Label
{{ h.name }}
{% endmacro %} {{ render_component_section('Earning Components', 'earning', earning_heads) }} {{ render_component_section('Deduction Components', 'deduction', deduction_heads) }} {{ render_component_section('CTC Components', 'ctc', ctc_heads) }}
{% endblock %}