You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

155 lines
6.5 KiB

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <openerp>
  3. <data>
  4. <template name="Unsubscription worked"
  5. id="success"
  6. page="True">
  7. <t t-call="website.layout">
  8. <div id="wrap" class="oe_structure oe_empty">
  9. <section class="jumbotron mt16 mb16">
  10. <div class="container">
  11. <h1>
  12. You were successfully unsubscribed from our
  13. mailing list.
  14. </h1>
  15. <h3 class="text-muted">
  16. It's sad to see you go, but if you love
  17. something, let it go.
  18. </h3>
  19. <p>
  20. Is there anything else you want to tell us?
  21. </p>
  22. <p>
  23. <a class="btn btn-primary btn-lg"
  24. href="/page/contactus">Contact us</a>
  25. </p>
  26. </div>
  27. </section>
  28. </div>
  29. </t>
  30. </template>
  31. <template name="Unsubscription failed"
  32. id="failure"
  33. page="True">
  34. <t t-call="website.layout">
  35. <div id="wrap" class="oe_structure oe_empty">
  36. <section class="jumbotron mt16 mb16">
  37. <div class="container">
  38. <h1>
  39. There was an error processing your unsubscription
  40. request.
  41. </h1>
  42. <p>
  43. We apologize for the inconvenience. You can contact us
  44. and we will handle your unsubscription manually.
  45. </p>
  46. <p>Thanks for your patience.</p>
  47. <p>
  48. <a class="btn btn-primary btn-lg"
  49. href="/page/contactus">Contact us</a>
  50. </p>
  51. </div>
  52. </section>
  53. </div>
  54. </t>
  55. </template>
  56. <template id="reason_form"
  57. name="Unsubscription Reason Form">
  58. <t t-call="website.layout">
  59. <div id="wrap" class="oe_structure oe_empty">
  60. <section class="mt16 mb16">
  61. <form
  62. id="reason_form"
  63. class="container"
  64. t-attf-action="/mail/mailing/#{mailing_id.id}/unsubscribe"
  65. method="post">
  66. <div class="row">
  67. <div class="col-md-12 text-center mt16 mb32">
  68. <h2>
  69. Hello,
  70. <t t-esc="contact_name"/>
  71. </h2>
  72. <h3 class="text-muted">
  73. You are trying to unsubscribe from all massive mailings
  74. <t t-if="origin_name">
  75. sent to followers of
  76. <br/>
  77. <br/>
  78. <i><span>"</span><t t-esc="origin_name"/><span>"</span></i>
  79. </t>
  80. </h3>
  81. </div>
  82. <div t-if="additional_contact_ids"
  83. class="col-md-12 mt16">
  84. Is there any other mailing list you want to leave?
  85. <t t-foreach="additional_contact_ids"
  86. t-as="contact">
  87. <div class="checkbox">
  88. <label>
  89. <input
  90. t-attf-name="list_id,#{contact.list_id.id}"
  91. type="checkbox"
  92. t-att-value="contact.id"/>
  93. <t t-esc="contact.list_id.display_name"/>
  94. </label>
  95. </div>
  96. </t>
  97. </div>
  98. <div class="col-md-12 mt16">
  99. But before continuing, could you please tell us why do you want to unsubscribe?
  100. </div>
  101. <div class="col-md-12 mb16">
  102. <input
  103. type="hidden"
  104. name="db"
  105. t-att-value="env.cr.dbname"/>
  106. <input
  107. type="hidden"
  108. name="res_id"
  109. t-att-value="res_id"/>
  110. <input
  111. type="hidden"
  112. name="email"
  113. t-att-value="email"/>
  114. <input
  115. type="hidden"
  116. name="token"
  117. t-att-value="token"/>
  118. <t t-foreach="reason_ids" t-as="reason">
  119. <div class="radio">
  120. <label>
  121. <input
  122. type="radio"
  123. name="reason_id"
  124. t-att-data-details-required="reason.details_required"
  125. t-att-value="reason.id"/>
  126. <t t-esc="reason.display_name"/>
  127. </label>
  128. </div>
  129. </t>
  130. <div t-attf-class="form-group #{error_details_required and 'has-error' or ''}">
  131. <textarea
  132. name="details"
  133. class="form-control"
  134. placeholder="Anything else you want to say before you leave?"
  135. rows="3"/>
  136. </div>
  137. <div class="form-group mb16 mt16">
  138. <button type="submit" class="btn btn-danger">
  139. Unsubscribe now
  140. </button>
  141. <p class="help-block">Thank you!</p>
  142. </div>
  143. </div>
  144. </div>
  145. </form>
  146. </section>
  147. </div>
  148. </t>
  149. </template>
  150. </data>
  151. </openerp>