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