chill.protectUnsavedDataForFrom('form[name="{{edit_form.vars.form.vars.name}}"]','{{"You are going to leave a page with unsubmitted data. Are you sure you want to leave ?"|trans}}');
chill.displayAlertWhenLeavingModifiedForm('form[name="{{edit_form.vars.form.vars.name}}"]','{{"You are going to leave a page with unsubmitted data. Are you sure you want to leave ?"|trans}}');
<buttonclass="sc-button green margin-10"type="submit"><iclass="fa fa-save"></i>{{'Add report'|trans}}</button>
<buttonclass="sc-button red margin-10"type="reset"><iclass="fa fa-eraser"></i>{{'Reset report'|trans}}</button>
</div>
{{form_end(form)}}
{%endblock%}
{%blockjs%}
<script type="text/javascript">
chill.protectUnsavedDataForFrom('form[name="{{form.vars.form.vars.name}}"]','{{"You are going to leave a page with unsubmitted data. Are you sure you want to leave ?"|trans}}');
chill.displayAlertWhenLeavingUnsubmittedForm('form[name="{{form.vars.form.vars.name}}"]','{{"You are going to leave a page with unsubmitted data. Are you sure you want to leave ?"|trans}}');