[UPDT] BASE: Updated mail template Delete button title

This commit is contained in:
Horilla
2025-08-26 10:17:41 +05:30
parent 1476967558
commit 51f16e8712
4 changed files with 58 additions and 42 deletions

View File

@@ -191,7 +191,7 @@
"is_active": false,
"title": "Work Type Request Template",
"body": "<div style=\"font-family: 'Segoe UI', sans-serif; background-color: #f9f9f9; padding: 30px;\">\n <div style=\"max-width: 600px; margin: auto; background: white; border-radius: 12px; padding: 30px; box-shadow: 0 4px 12px rgba(0,0,0,0.08);\">\n <h2 style=\"color: #000000; text-align: center; font-size: 22px; margin-bottom: 25px;\">Work Type Change Request</h2>\n\n <p style=\"font-size: 14px; color: #333; line-height: 1.6;\">\n Dear {{ model_instance.employee_id.get_reporting_manager }},\n </p>\n\n <p style=\"font-size: 14px; color: #333; line-height: 1.6;\">\n A new work type change request has been submitted by <strong>{{ model_instance.employee_id }}</strong>.\n </p>\n\n <div style=\"margin: 20px 0; padding: 15px; background: #f4f4f4; border-left: 4px solid hsl(8, 77%, 56%); border-radius: 6px;\">\n <p style=\"margin: 6px 0;\"><strong>Current Work Type:</strong> {{ model_instance.previous_work_type_id }}</p>\n <p style=\"margin: 6px 0;\"><strong>Requested Work Type:</strong> {{ model_instance.work_type_id }}</p>\n <p style=\"margin: 6px 0;\"><strong>From:</strong> {{ model_instance.requested_date }}</p>\n <p style=\"margin: 6px 0;\"><strong>Till:</strong> {{ model_instance.requested_till }}</p>\n <p style=\"margin: 6px 0;\"><strong>Description:</strong> {{ model_instance.description }}</p>\n </div>\n\n <p style=\"font-size: 14px; color: #333; line-height: 1.6;\">\n Please review and process this request from your HRMS dashboard.\n </p>\n\n <div style=\"text-align: center; margin-top: 25px;\">\n <a href=\"{{ request.scheme }}://{{ request.get_host }}/employee/work-type-request-view/?id={{ model_instance.id }}\" 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 Review Request\n </a>\n </div>\n\n <hr style=\"margin: 30px 0; border: none; border-top: 1px solid #eee;\">\n\n <p style=\"font-size: 12px; color: #888; text-align: center; line-height: 1.5;\">\n This is an automated message from the HRMS system.<br>\n Regards, <strong>{{ model_instance.employee_id.get_company }}</strong>\n </p>\n </div>\n</div>",
"company_id": 1
"company_id": null
}
},
{
@@ -204,7 +204,20 @@
"is_active": false,
"title": "Shift Request Template",
"body": "<div style=\"font-family: 'Segoe UI', sans-serif; background-color: #f9f9f9; padding: 30px;\">\n <div style=\"max-width: 600px; margin: auto; background: white; border-radius: 12px; padding: 30px; box-shadow: 0 4px 12px rgba(0,0,0,0.08);\">\n <h2 style=\"color: #000000; text-align: center; font-size: 22px; margin-bottom: 25px;\">Shift Change Request</h2>\n\n <p style=\"font-size: 14px; color: #333; line-height: 1.6;\">\n Dear {{ model_instance.employee_id.get_reporting_manager }},\n </p>\n\n <p style=\"font-size: 14px; color: #333; line-height: 1.6;\">\n {{ model_instance.employee_id }} has submitted a shift change request. Please find the details below.\n </p>\n\n <div style=\"margin: 20px 0; padding: 15px; background: #f4f4f4; border-left: 4px solid hsl(8, 77%, 56%); border-radius: 6px;\">\n <p style=\"margin: 6px 0;\"><strong>Previous Shift:</strong> {{ model_instance.previous_shift_id }}</p>\n <p style=\"margin: 6px 0;\"><strong>Requested Shift:</strong> {{ model_instance.shift_id }}</p>\n <p style=\"margin: 6px 0;\"><strong>Requested From:</strong> {{ model_instance.requested_date }}</p>\n {% if model_instance.requested_till %}\n <p style=\"margin: 6px 0;\"><strong>Requested Till:</strong> {{ model_instance.requested_till }}</p>\n {% endif %}\n <p style=\"margin: 6px 0;\"><strong>Permanent Change:</strong> {% if model_instance.is_permanent_shift %}Yes{% else %}No{% endif %}</p>\n {% if model_instance.reallocate_to %}\n <p style=\"margin: 6px 0;\"><strong>Reallocate To:</strong> {{ model_instance.reallocate_to }}</p>\n {% endif %}\n {% if model_instance.description %}\n <p style=\"margin: 6px 0;\"><strong>Description:</strong> {{ model_instance.description }}</p>\n {% endif %}\n </div>\n\n <p style=\"font-size: 14px; color: #333; line-height: 1.6;\">\n Please log in to the HRMS system to review and take necessary action on this request.\n </p>\n\n <div style=\"text-align: center; margin-top: 25px;\">\n <a href=\"{{ request.scheme }}://{{ request.get_host }}/employee/shift-request-view/?id={{ model_instance.id }}\" 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 Review Request\n </a>\n </div>\n\n <hr style=\"margin: 30px 0; border: none; border-top: 1px solid #eee;\">\n\n <p style=\"font-size: 12px; color: #888; text-align: center; line-height: 1.5;\">\n This is an automated message from the HRMS system.<br>\n Regards, <strong>{% if model_instance.employee_id.get_company %}{{ model_instance.employee_id.get_company }}{% else %}HRMS{% endif %}</strong>\n </p>\n </div>\n</div>",
"company_id": 1
"company_id": null
}
},
{
"model": "base.horillamailtemplate",
"pk": 17,
"fields": {
"created_at": "2025-08-26T03:36:27.757Z",
"created_by": 1,
"modified_by": 1,
"is_active": false,
"title": "Application Status - Not Selected",
"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
}
}
]