licence_cmf.html.twig 13 KB

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