Edit Default Sales Agreement Template
<%= link_to "View Saved Template", admin_portal_sales_agreement_path, class: "btn btn-secondary" %>
<% if flash[:alert] %>
<%= flash[:alert] %>
<% end %>
<%= form_with model: @system_setting, url: admin_portal_sales_agreement_path, method: :patch, local: true do |f| %>
<%= f.submit "Save Template", data: {turbo: false}, class: "btn btn-primary" %>
<%= f.label :sales_agreement_template, "Sales Agreement Template", class: "form-label fw-bold" %>
<%= f.rich_text_area :sales_agreement_template, class: "trix-content apple-input-lg", rows: 20 %>
<% end %>
Available Placeholders:
- {{customer_name}} – Full name of the customer
- {{customer_id}} – Customer ID number
- {{customer_dob}} – Customer date of birth
- {{customer_sex}} – Customer sex
- {{customer_email}} – Customer email
- {{customer_phone}} – Customer phone/mobile
- {{customer_address}} – Customer address
- {{agent_name}} – Agent full name
- {{agent_email}} – Agent email
- {{agent_phone}} – Agent phone/mobile
- {{bank_name}} – Bank name
- {{bank_branch}} – Bank branch
- {{bank_branch_code}} – Bank branch code
- {{bank_account_name}} – Bank account name
- {{bank_account_number}} – Bank account number
- {{bank_currency}} – Currency of the bank account
- {{bank_tr_code}} – TR code
- {{bank_contra_credit}} – Contra credit
- {{bank_contra_debit}} – Contra debit
- {{property_number}} – Property Number
- {{deposit_amount}} – Deposit amount
- {{tenure}} – Tenure in months
- {{sale_type}} – Sale type
- {{reservation_number}} – Reservation number