licence_cmf.html.twig 14 KB

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