level.contract.fieldjson,
conference.contractexpires,
test=False,
+ message_to_sender="The contract for {} sponsorship of {} has been signed by {}. It is now time for the organizers to countersign.".format(level.levelname, conference.conferencename, sponsor.name),
)
return contractid, error
contract.fieldjson,
conference.contractexpires,
test=False,
+ message_to_sender="The contract for {} has been signed by sponsor {}. It is now time for the organizers to countersign.".format(subject, sponsor.name),
)
if error:
messages.error(request, "Failed to send digital contract.")
def description_text(self, signeremail):
return 'Signing instructions will be delivered to {}. If necessary, you will be able to re-route the signing from the provider interface to somebody else in your organisation once the process is started.'.format(signeremail)
- def send_contract(self, sender_name, sender_email, recipient_name, recipient_email, pdf, pdfname, subject, message, metadata, fielddata, expires_in, test):
+ def send_contract(self, sender_name, sender_email, recipient_name, recipient_email, pdf, pdfname, subject, message, metadata, fielddata, expires_in, test, message_to_sender=None):
if self.provider.config.get('forcetest', False):
# Override test to be true if configured for enforcement.
test = True
"id": "2",
"name": sender_name,
"email": sender_email,
+ "message": message_to_sender or message,
},
],
"apply_signing_order": True,