licence_cmf.html.twig 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346
  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= "https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
  130. rel="stylesheet"
  131. integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN"
  132. crossorigin="anonymous"
  133. />
  134. <title>Licence CMF</title>
  135. </head>
  136. <body>
  137. {% block content %}
  138. {% for licence in model.licences %}
  139. <page data-iri="{{ licence.id }}">
  140. <table width="793" border="0" cellspacing="0" cellpadding="0">
  141. <tbody>
  142. <tr>
  143. <td width="693">
  144. <table width="680" border="0" align="center" cellpadding="0" cellspacing="0">
  145. <tbody>
  146. <tr>
  147. <td width="340" class="relative">
  148. <img src="{{ absPath('images/cmf_licence.png') }}"
  149. width="170" height="86"/>
  150. <span id="year_head">{{ licence.year }}</span>
  151. </td>
  152. <td width="340">
  153. <div align="right">
  154. <img src="{{ absPath('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 width="80" id="avatar">
  207. <div align="center">
  208. {% if(licence.logo is null) %}
  209. <img src="{{ absPath('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 width="80" id="avatar">
  230. <div align="center">
  231. {% if(licence.personAvatar is null) %}
  232. <img
  233. src="{{ absPath('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 width="70" valign="middle"
  255. style="vertical-align: top;">
  256. <div align="center">
  257. <img src="{{ absPath('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 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 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>
  281. </td>
  282. </tr>
  283. </tbody>
  284. </table>
  285. <div id="dashed"></div>
  286. <i class="fa fa-scissors" id="scissor" aria-hidden="true"></i>
  287. </div>
  288. <table width="793" border="0" cellspacing="0" cellpadding="0">
  289. <tbody>
  290. <tr>
  291. <td></td>
  292. <td>
  293. <hr/>
  294. <p align="center" class="Style9">Vous rencontrez des difficultés pour utiliser cette carte ?</p>
  295. <p align="center" class="Style8">Contactez nous : <br/>
  296. CMF<br/>
  297. cmf@cmf-musique.org<br/>
  298. 01 55 58 22 82 </p>
  299. </td>
  300. <td></td>
  301. </tr>
  302. </tbody>
  303. </table>
  304. <div class="page_break"></div>
  305. </page>
  306. {% endfor %}
  307. {% endblock content %}
  308. </body>
  309. </html>