licence_cmf.html.twig 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  1. <!DOCTYPE html>
  2. <html lang="fr">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  5. <style media="all">
  6. {% block style %}
  7. html {
  8. word-wrap: break-word;
  9. }
  10. @page {
  11. margin: 130px 50px 30px 50px;
  12. }
  13. body {
  14. }
  15. .Style1 {
  16. font-family: Verdana, Arial, Helvetica, sans-serif;
  17. font-size: 12px;
  18. font-weight: bold;
  19. color: #FFFFFF;
  20. }
  21. .Style2 {
  22. font-family: Verdana, Arial, Helvetica, sans-serif;
  23. font-size: 12px;
  24. font-weight: bold;
  25. }
  26. .Style3 {
  27. font-family: Verdana, Arial, Helvetica, sans-serif;
  28. font-size: 8px;
  29. color: #FFFFFF;
  30. vertical-align: text-top;
  31. }
  32. .Style4 {
  33. font-family: Verdana, Arial, Helvetica, sans-serif;
  34. font-size: 9px;
  35. }
  36. .Style5 {
  37. font-family: Verdana, Arial, Helvetica, sans-serif;
  38. font-size: 10px;
  39. }
  40. .Style7 {
  41. font-family: Verdana, Arial, Helvetica, sans-serif;
  42. font-size: 16px;
  43. }
  44. .Style8 {
  45. font-family: Verdana, Arial, Helvetica, sans-serif;
  46. font-size: 12px;
  47. }
  48. .Style9 {
  49. font-family: Verdana, Arial, Helvetica, sans-serif;
  50. font-size: 12px;
  51. font-weight: bold;
  52. }
  53. .relative {
  54. position: relative;
  55. }
  56. #year_head {
  57. position: absolute;
  58. top: 30px;
  59. left: 90px;
  60. color: #9d1348;
  61. font-size: 25px;
  62. font-weight: bold;
  63. }
  64. .avatar {
  65. max-width: 85px;
  66. max-height: 82px;
  67. }
  68. #year_card {
  69. position: absolute;
  70. bottom: 94px;
  71. left: 55px;
  72. color: #9d1348;
  73. font-size: 14px;
  74. font-weight: bold;
  75. }
  76. .Style2 p, .Style4 p {
  77. margin: 0;
  78. padding: 0;
  79. }
  80. .page_break {
  81. page-break-before: always;
  82. top: 0 !important;
  83. margin-top: 0 !important;
  84. position: initial;
  85. }
  86. #card {
  87. position: relative;
  88. z-index: 1;
  89. top: 0;
  90. left: 0;
  91. margin: 50px auto;
  92. }
  93. .card_dimension {
  94. width: 110mm;
  95. height: 72mm;
  96. }
  97. #dashed {
  98. width: 106mm;
  99. height: 66mm;
  100. border: 1px dashed #0f0f0f;
  101. position: absolute;
  102. border-radius: 4px;
  103. top: 2mm;
  104. left: 2mm;
  105. z-index: 2;
  106. }
  107. #scissor {
  108. position: absolute;
  109. top: 0;
  110. left: 15px;
  111. }
  112. .up {
  113. padding-top: 100px;
  114. }
  115. .bottom {
  116. padding-top: 20px;
  117. }
  118. #qrCode {
  119. padding-right: 15px;
  120. }
  121. #avatar{
  122. padding-left: 5px;
  123. }
  124. {% endblock style %}
  125. </style>
  126. <link
  127. href= "https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
  128. rel="stylesheet"
  129. integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN"
  130. crossorigin="anonymous"
  131. />
  132. <title>Licence CMF</title>
  133. </head>
  134. <body>
  135. {% block content %}
  136. {% for licence in model.licences %}
  137. <page data-iri="{{ licence.id }}">
  138. <table width="500" border="0" cellspacing="0" cellpadding="0">
  139. <tbody>
  140. <tr>
  141. <td width="500">
  142. <table width="500" align="center" border="0" cellpadding="0" cellspacing="0">
  143. <tbody>
  144. <tr>
  145. <td width="250" class="relative">
  146. <img src="{{ 'images/cmf_licence.png' }}"
  147. width="170" height="86"/>
  148. <span id="year_head">
  149. {{ licence.year }}
  150. </span>
  151. </td>
  152. <td width="250">
  153. <div align="right">
  154. <img src="{{ 'images/cmf-reseau.png' }}"
  155. width="200" height="86"/>
  156. </div>
  157. </td>
  158. </tr>
  159. </tbody>
  160. </table>
  161. </td>
  162. </tr>
  163. <tr>
  164. <td>
  165. <p class="Style7">
  166. {% if licence.personGender %}{{ (licence.personGender.value ~ '_LONG') | trans }}{% endif %}
  167. {{ licence.personLastName }} {{ licence.personFirstName }}
  168. ,</p>
  169. <p class="Style7"></p>
  170. <p class="Style8">Vous trouverez ci-joint votre <strong>Licence CMF pour
  171. l’année {{ licence.year }}</strong>.
  172. </p>
  173. <p class="Style8">Vous pouvez : </p>
  174. <ul class="Style8">
  175. <li> Imprimer ce document tel quel et le garder au format A4.</li>
  176. <li> Imprimer ce document sur du papier cartonné et le découper selon les pointillés.</li>
  177. <li> Enregister le PDF pour garder ce document au format numérique.</li>
  178. </ul>
  179. <p class="Style8">Cette licence et le numéro associé vous sera utile pour bénéficier des
  180. avantages partenaires mis en place par la CMF.
  181. Pour connaître les partenariats existants, rendez-vous sur [
  182. <a href="https://www.cmf-musique.org/services/tarifs-preferentiels/">
  183. www.cmf-musique.org/services/tarifs-preferentiels/
  184. </a>]
  185. </p>
  186. <p class="Style8">
  187. Nous vous rappelons que la Licence CMF, personnelle et unique, <br/>
  188. est <strong>valable jusqu’au 31 décembre de l’année {{ licence.year }}</strong>.
  189. </p>
  190. <p class="Style8"></p>
  191. <hr/>
  192. </td>
  193. </tr>
  194. </tbody>
  195. </table>
  196. <div id="card" class="card_dimension">
  197. <table class="card_dimension" align="center" cellpadding="0" cellspacing="0">
  198. <tbody>
  199. <tr>
  200. <td height="26" colspan="3" align="center" valign="bottom" bgcolor="{{ licence.color }}">
  201. <div align="center"><span class="Style1">Licence CMF</span></div>
  202. </td>
  203. </tr>
  204. <tr class="up">
  205. {% if licence.isOrganizationLicence %}
  206. <td height="82" width="80" id="avatar">
  207. <div align="center">
  208. {% if(licence.logo is null) %}
  209. <img src="{{ 'images/picto_face.png' }}"
  210. width="85"
  211. height="82"/>
  212. {% else %}
  213. <img src="{{ fileImagePath(licence.logo, 'sm') }}"
  214. width="85"
  215. height="82"/>
  216. {% endif %}
  217. </div>
  218. </td>
  219. <td colspan="2">
  220. <span class="Style2">
  221. <p>{{ licence.personLastName }} {{ licence.personFirstName }}</p>
  222. <p>{{ licence.organizationName }}</p>
  223. <p>{{ licence.federationName }}</p>
  224. <p>N° : {{ licence.organizationIdentifier }}</p>
  225. <p>Licence valable jusqu’au 31/12/{{ licence.year }}</p>
  226. </span>
  227. </td>
  228. {% else %}
  229. <td height="26" width="80" id="avatar">
  230. <div align="center">
  231. {% if(licence.personAvatar is null) %}
  232. <img
  233. src="{{ 'images/picto_face.png' }}"
  234. width="85"
  235. height="82"/>
  236. {% else %}
  237. <img class="avatar"
  238. src="{{ fileImagePath(licence.personAvatar, 'sm') }}"/>
  239. {% endif %}
  240. </div>
  241. </td>
  242. <td colspan="2">
  243. <span class="Style2">
  244. <p>{{ licence.personLastName }} {{ licence.personFirstName }}</p>
  245. <p>{{ licence.organizationName }}</p>
  246. <p>?</p>
  247. <p>N° : {{ licence.organizationIdentifier }}-{{ licence.personId }}</p>
  248. <p>Licence valable jusqu’au 31/12/{{ licence.year }}</p>
  249. </span>
  250. </td>
  251. {% endif %}
  252. </tr>
  253. <tr class="bottom">
  254. <td height="45" width="70" valign="middle"
  255. style="vertical-align: top;">
  256. <div align="center">
  257. <img src="{{ 'images/cmf_licence.png' }}"
  258. height="45"/>
  259. <span id="year_card">{{ licence.year }}</span>
  260. </div>
  261. </td>
  262. <td width="140" align="right" valign="middle">
  263. <div align="right"><span class="Style4">
  264. <p>Consultez vos</p>
  265. <p> avantages sur</p>
  266. <p>www.cmf-musique.org</p>
  267. <p> ou flashez ce code</p></span>
  268. </div>
  269. </td>
  270. <td height="65" width="70" align="right" valign="middle" id="qrCode">
  271. {% if(licence.qrCode) %}
  272. <img style="margin-right: 10px;"
  273. src="{{ fileImagePath(licence.qrCode, 'sm') }}"
  274. alt=""
  275. width="65" height="65"/>
  276. {% endif %}
  277. </td>
  278. </tr>
  279. <tr>
  280. <td height="26" colspan="3" align="center" bgcolor="{{ licence.color }}">
  281. <span class="Style3">CMF ● cmf@cmf-musique.org ● 01 55 58 22 82 ● www.cmf-musique.org</span>
  282. </td>
  283. </tr>
  284. </tbody>
  285. </table>
  286. <div id="dashed"></div>
  287. <i class="fa fa-scissors" id="scissor" aria-hidden="true"></i>
  288. </div>
  289. <table width="500" border="0" cellspacing="0" cellpadding="0">
  290. <tbody>
  291. <tr>
  292. <td></td>
  293. <td>
  294. <hr/>
  295. <p align="center" class="Style9">Vous rencontrez des difficultés pour utiliser cette carte ?</p>
  296. <p align="center" class="Style8">Contactez nous : <br/>
  297. CMF<br/>
  298. cmf@cmf-musique.org<br/>
  299. 01 55 58 22 82 </p>
  300. </td>
  301. <td></td>
  302. </tr>
  303. </tbody>
  304. </table>
  305. {% if model.licences|length > 1 %}
  306. <div class="page_break"></div>
  307. {% endif %}
  308. </page>
  309. {% endfor %}
  310. {% endblock content %}
  311. </body>
  312. </html>