[UPDT] HORILLA_AUTOMATIONS: Updated load automation feature by introduce automation mail for late come in attendance

This commit is contained in:
Horilla
2025-08-27 17:43:57 +05:30
parent 4c0f817d2d
commit 871c4c6d42
2 changed files with 37 additions and 0 deletions

File diff suppressed because one or more lines are too long

View File

@@ -219,5 +219,18 @@
"body": "<div style=\"font-family: 'Segoe UI', Arial, sans-serif; background-color: #f4f6f9; padding: 40px;\">\n <div style=\"max-width: 650px; margin: auto; background: #ffffff; border-radius: 16px; padding: 40px; box-shadow: 0 6px 18px rgba(0,0,0,0.1); border: 1px solid #eaeaea;\">\n\n <h1 style=\"color: #e74c3c; text-align: center; font-size: 26px; margin-bottom: 30px; font-weight: 600;\">\n Application Status Update - {{ instance.job_position_id }}\n </h1>\n\n <p style=\"font-size: 16px; color: #333; line-height: 1.8; margin-bottom: 20px;\">\n Dear <strong>{{ instance.name }}</strong>,\n </p>\n\n <p style=\"font-size: 15px; color: #444; line-height: 1.8; margin-bottom: 20px;\">\n Thank you for applying for the\n <strong>{{ instance.job_position_id }}</strong> position at\n {% if instance.recruitment_id.company_id %}\n <strong>{{ instance.recruitment_id.company_id }}</strong>.\n {% else %}\n our company.\n {% endif %}\n </p>\n\n {% if instance.rejected_candidate.reject_reason_id %}\n <p style=\"font-size: 15px; color: #444; line-height: 1.8; margin-bottom: 20px;\">\n After careful consideration, we regret to inform you that your application has not been successful at this time.\n </p>\n\n <div style=\"margin: 25px 0; padding: 20px; background: #fff5f5; border-left: 5px solid #e74c3c; border-radius: 8px;\">\n <p style=\"margin: 0 0 10px 0; font-size: 15px; color: #b71c1c; font-weight: 600;\">\n Reason for Rejection:\n </p>\n <ul style=\"margin: 0; padding-left: 22px; font-size: 14px; color: #333; line-height: 1.6;\">\n {% if instance.rejected_candidate.reject_reason_id.all %}\n {% for reason in instance.rejected_candidate.reject_reason_id.all %}\n <li>{{ reason }}</li>\n {% endfor %}\n {% else %}\n <li>Not specified.</li>\n {% endif %}\n </ul>\n <p style=\"margin-top: 12px; font-size: 14px; color: #555;\">\n {{ instance.rejected_candidate.description }}\n </p>\n </div>\n {% endif %}\n\n <p style=\"font-size: 15px; color: #444; line-height: 1.8; margin-top: 20px;\">\n We sincerely appreciate the time and effort you invested in your application and encourage you to apply for\n future opportunities that align with your skills and career goals.\n </p>\n\n <hr style=\"margin: 35px 0; border: none; border-top: 1px solid #eee;\">\n\n <p style=\"font-size: 13px; color: #777; text-align: center; line-height: 1.6;\">\n Best regards,<br>\n {% if instance.recruitment_id.company_id %}\n <strong style=\"color:#333;\">{{ instance.recruitment_id.company_id }}</strong> Recruitment Team\n {% else %}\n Recruitment Team\n {% endif %}\n </p>\n\n <p style=\"font-size: 11px; color: #aaa; text-align: center; margin-top: 20px; line-height: 1.4;\">\n This is an automated email. Please do not reply directly to this message.\n </p>\n </div>\n</div>",
"company_id": null
}
},
{
"model": "base.horillamailtemplate",
"pk": 18,
"fields": {
"created_at": "2025-08-27T11:05:50.289Z",
"created_by": 1,
"modified_by": 1,
"is_active": false,
"title": "Late Come Notification",
"body": "<div style=\"font-family: 'Segoe UI', Arial, sans-serif; background-color: #f4f6f9; padding: 40px;\">\n <div style=\"max-width: 650px; margin: auto; background: #ffffff; border-radius: 16px; padding: 40px; box-shadow: 0 6px 18px rgba(0,0,0,0.1); border: 1px solid #eaeaea;\">\n \n <!-- HEADER -->\n <h1 style=\"color: #e74c3c; text-align: center; font-size: 26px; margin-bottom: 30px; font-weight: 600;\">\n Attendance Notification {{ model_instance.get_type_display }}\n </h1>\n\n <!-- GREETING -->\n <p style=\"font-size: 16px; color: #333; line-height: 1.8; margin-bottom: 20px;\">\n Dear <strong>{{ model_instance.employee_id }}</strong>,\n </p>\n\n <!-- MESSAGE -->\n <p style=\"font-size: 15px; color: #444; line-height: 1.8; margin-bottom: 20px;\">\n This is to inform you that on <strong>{{ model_instance.attendance_id.attendance_date }}</strong>, \n your attendance record shows a <strong>{{ model_instance.get_type_display }}</strong>.\n </p>\n\n <!-- DETAILS BOX -->\n <div style=\"margin: 25px 0; padding: 20px; background: #fff5f5; border-left: 5px solid #e74c3c; border-radius: 8px;\">\n <p style=\"margin: 0 0 10px 0; font-size: 15px; color: #b71c1c; font-weight: 600;\">\n Attendance Details:\n </p>\n <ul style=\"margin: 0; padding-left: 22px; font-size: 14px; color: #333; line-height: 1.6;\">\n <li><strong>Date:</strong> {{ model_instance.attendance_id.attendance_date }}</li>\n <li><strong>Check-In:</strong> {{ model_instance.attendance_id.attendance_clock_in }}</li>\n <li><strong>Check-Out:</strong> {{ model_instance.attendance_id.attendance_clock_out }}</li>\n <li><strong>Shift:</strong> {{ model_instance.attendance_id.shift_id }}</li>\n <li><strong>Work Type:</strong> {{ model_instance.attendance_id.work_type_id }}</li>\n </ul>\n </div>\n\n <!-- MANAGER INFO -->\n <p style=\"font-size: 15px; color: #444; line-height: 1.8; margin-top: 20px;\">\n If there are any genuine reasons for the delay, please ensure you inform your reporting manager in advance.\n </p>\n \n <div style=\"text-align: center; margin-top: 25px;\">\n <a href=\"{{ request.scheme }}://{{ request.get_host }}/attendance/late-come-early-out-view/?employee_id={{ model_instance.employee_id.id }}&amp;attendance_date={{ model_instance.attendance_id.attendance_date }}\" style=\"display: inline-block; padding: 10px 20px; background-color: hsl(8, 77%, 56%); color: white; text-decoration: none; border-radius: 6px; font-weight: 500;\">\n View Attendance\n </a>\n </div>\n\n <!-- FOOTER -->\n <hr style=\"margin: 35px 0; border: none; border-top: 1px solid #eee;\">\n\n <p style=\"font-size: 13px; color: #777; text-align: center; line-height: 1.6;\">\n Regards,<br>\n HR Department \n {% if model_instance.employee_id.employee_work_info.company_id %}\n <br><strong>{{ model_instance.employee_id.employee_work_info.company_id }}</strong>\n {% endif %}\n </p>\n\n <p style=\"font-size: 11px; color: #aaa; text-align: center; margin-top: 20px; line-height: 1.4;\">\n This is an automated message from the HRMS system. Please do not reply directly to this email.\n </p>\n </div>\n</div>",
"company_id": 1
}
}
]