Hi
I am trying to modify the code for 1 template in particular (clonable pages), that would send an email to some persons, depending on who's selected in that page (a region with a list of different email addresses), when being created the first time.
It's a proposal system, and there's a list of different workers available.
If I create a proposal, and that in the "Workers" region I have checked "John Doe" and "Marc Doe", then click "SAVE" to create the entry, I would like to send an email to these 2, saying "Your name has been added on a proposal sent to "X" client. We will update you on the status of this proposal and will send you more details if the client selects you for the job"
So I thought of using a custom admin theme, and editing the "content_form.html" page (of course, duplicating it and changed the name to "content_form_proposal-php.html" so that if affects only the Proposal.php page).
I'm not sure though how to change the behavior of the "SAVE" button, to add more actions to it than just saving the entry.
It is important that it does not send an email every single time I click SAVE too.
Any idea how to approach this?
Thanks a lot!
I am trying to modify the code for 1 template in particular (clonable pages), that would send an email to some persons, depending on who's selected in that page (a region with a list of different email addresses), when being created the first time.
It's a proposal system, and there's a list of different workers available.
If I create a proposal, and that in the "Workers" region I have checked "John Doe" and "Marc Doe", then click "SAVE" to create the entry, I would like to send an email to these 2, saying "Your name has been added on a proposal sent to "X" client. We will update you on the status of this proposal and will send you more details if the client selects you for the job"
So I thought of using a custom admin theme, and editing the "content_form.html" page (of course, duplicating it and changed the name to "content_form_proposal-php.html" so that if affects only the Proposal.php page).
I'm not sure though how to change the behavior of the "SAVE" button, to add more actions to it than just saving the entry.
It is important that it does not send an email every single time I click SAVE too.
Any idea how to approach this?
Thanks a lot!