odoo18/addons_extensions/offer_letters/views/offer_response_templates.xml

47 lines
2.6 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<template id="offer_response_message">
<html>
<body style="font-family: Arial, sans-serif; background: #f5f7fa; margin: 0; padding: 40px;">
<div style="max-width: 640px; margin: 0 auto; background: #ffffff; border-radius: 10px; padding: 32px; box-shadow: 0 10px 30px rgba(0,0,0,0.08);">
<h2 style="margin-top: 0; color: #143d5d;">
<t t-esc="title"/>
</h2>
<p style="font-size: 16px; color: #333333; line-height: 1.6;">
<t t-esc="message"/>
</p>
</div>
</body>
</html>
</template>
<template id="offer_reject_reason_page">
<html>
<body style="font-family: Arial, sans-serif; background: #f5f7fa; margin: 0; padding: 40px;">
<div style="max-width: 720px; margin: 0 auto; background: #ffffff; border-radius: 10px; padding: 32px; box-shadow: 0 10px 30px rgba(0,0,0,0.08);">
<h2 style="margin-top: 0; color: #143d5d;">Reject Offer</h2>
<p style="font-size: 15px; color: #333333; line-height: 1.6;">
Please let us know the reason for rejecting the offer for
<strong><t t-esc="offer_letter.position"/></strong>.
</p>
<p t-if="error" style="color: #dc3545; font-size: 14px;">
<t t-esc="error"/>
</p>
<form t-att-action="'/offer_letters/respond/%s/reject?token=%s' % (offer_letter.id, token)" method="post">
<div style="margin-bottom: 16px;">
<label for="rejection_reason" style="display: block; font-weight: 600; margin-bottom: 8px; color: #143d5d;">Rejection Reason</label>
<textarea id="rejection_reason" name="rejection_reason" rows="6"
style="width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 14px;"
placeholder="Please enter your reason here"></textarea>
</div>
<button type="submit"
style="background: #dc3545; color: #ffffff; border: none; padding: 12px 18px; border-radius: 6px; font-size: 14px; cursor: pointer;">
Submit Rejection
</button>
</form>
</div>
</body>
</html>
</template>
</odoo>