templates/paiment/virement.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3. {% include ('includes/head.html.twig') %}
  4. <body>
  5. <!-- Page Loader
  6. ========================================================= -->
  7. <div class="loader-container" id="page-loader"> 
  8.   <div class="loading-wrapper loading-wrapper-hide">
  9.       <div class="loader-animation" id="loader-animation">
  10.           <svg class="svg-loader" width=100 height=100>
  11.           <circle cx=50 cy=50 r=25 />
  12.         </svg>
  13.       </div>    
  14.     <!-- Edit With Your Name -->
  15.     <div class="loader-name" id="loader-name">
  16.       <img src="img/loader-logo.png" alt="">
  17.     </div>
  18.     <!-- /Edit With Your Name -->
  19.     <!-- Edit With Your Job -->
  20.     <p class="loader-job" id="loader-job">June 4-8 2016 @ New York City</p>
  21.     <!-- /Edit With Your Job -->
  22.   </div>   
  23. </div>
  24. <!-- /End of Page loader
  25. ========================================================= -->
  26. <!-- Header
  27. ================================================== -->
  28. {% include ('includes/header.html.twig') %}
  29. <!-- /Header
  30. ================================================== -->
  31. <div class="page-wrapper" style="min-height:600px;">
  32.     
  33.     <div id="body-content" style="background-color:white">
  34.         <style>
  35. .anisawadni table td {
  36.     vertical-align: top;
  37. }
  38. .anisawadni .body-wrap {
  39.     background-color: #f6f6f6;
  40.     width: 100%;
  41. }
  42. .anisawadni .container {
  43.     display: block !important;
  44.     max-width: 600px !important;
  45.     margin: 0 auto !important;
  46.     /* makes it centered */
  47.     clear: both !important;
  48. }
  49. .anisawadni .content {
  50.     max-width: 600px;
  51.     margin: 0 auto;
  52.     display: block;
  53.     padding: 20px;
  54. }
  55. /* -------------------------------------
  56.     HEADER, FOOTER, MAIN
  57. ------------------------------------- */
  58. .anisawadni .main {
  59.     background: #fff;
  60.     border: 1px solid #e9e9e9;
  61.     border-radius: 3px;
  62. }
  63. .anisawadni .content-wrap {
  64.     padding: 20px;
  65. }
  66. .anisawadni .content-block {
  67.     padding: 0 0 20px;
  68. }
  69. .anisawadni .header {
  70.     width: 100%;
  71.     margin-bottom: 20px;
  72. }
  73. .anisawadni .footer {
  74.     width: 100%;
  75.     clear: both;
  76.     color: #999;
  77.     padding: 20px;
  78. }
  79. .anisawadni  .footer a {
  80.     color: #999;
  81. }
  82. .anisawadni .footer p, .footer a, .footer unsubscribe, .footer td {
  83.     font-size: 12px;
  84. }
  85. /* -------------------------------------
  86.     TYPOGRAPHY
  87. ------------------------------------- */
  88. .anisawadni h1, h2, h3 {
  89.     font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  90.     color: #000;
  91.     margin: 40px 0 0;
  92.     line-height: 1.2;
  93.     font-weight: 400;
  94. }
  95. .anisawadni h1 {
  96.     font-size: 32px;
  97.     font-weight: 500;
  98. }
  99. .anisawadni h2 {
  100.     font-size: 24px;
  101. }
  102. .anisawadni h3 {
  103.     font-size: 18px;
  104. }
  105. .anisawadni h4 {
  106.     font-size: 14px;
  107.     font-weight: 600;
  108. }
  109. .anisawadni p, ul, ol {
  110.     margin-bottom: 10px;
  111.     font-weight: normal;
  112. }
  113. .anisawadni p li, ul li, ol li {
  114.     margin-left: 5px;
  115.     list-style-position: inside;
  116. }
  117. /* -------------------------------------
  118.     LINKS & BUTTONS
  119. ------------------------------------- */
  120. .anisawadni a {
  121.     color: #1ab394;
  122.     text-decoration: underline;
  123. }
  124. .anisawadni .btn-primary {
  125.     text-decoration: none;
  126.     color: #FFF;
  127.     background-color: #1ab394;
  128.     border: solid #1ab394;
  129.     border-width: 5px 10px;
  130.     line-height: 2;
  131.     font-weight: bold;
  132.     text-align: center;
  133.     cursor: pointer;
  134.     display: inline-block;
  135.     border-radius: 5px;
  136.     text-transform: capitalize;
  137. }
  138. /* -------------------------------------
  139.     OTHER STYLES THAT MIGHT BE USEFUL
  140. ------------------------------------- */
  141. .anisawadni .last {
  142.     margin-bottom: 0;
  143. }
  144. .anisawadni .first {
  145.     margin-top: 0;
  146. }
  147. .anisawadni .aligncenter {
  148.     text-align: center;
  149. }
  150. .anisawadni .alignright {
  151.     text-align: right;
  152. }
  153. .anisawadni .alignleft {
  154.     text-align: left;
  155. }
  156. .anisawadni .clear {
  157.     clear: both;
  158. }
  159. /* -------------------------------------
  160.     ALERTS
  161.     Change the class depending on warning email, good email or bad email
  162. ------------------------------------- */
  163. .anisawadni .alert {
  164.     font-size: 16px;
  165.     color: #fff;
  166.     font-weight: 500;
  167.     padding: 20px;
  168.     text-align: center;
  169.     border-radius: 3px 3px 0 0;
  170. }
  171. .anisawadni .alert a {
  172.     color: #fff;
  173.     text-decoration: none;
  174.     font-weight: 500;
  175.     font-size: 16px;
  176. }
  177. .anisawadni .alert.alert-warning {
  178.     background: #f8ac59;
  179. }
  180. .anisawadni .alert.alert-bad {
  181.     background: #ed5565;
  182. }
  183. .anisawadni .alert.alert-good {
  184.     background: #1ab394;
  185. }
  186. /* -------------------------------------
  187.     INVOICE
  188.     Styles for the billing table
  189. ------------------------------------- */
  190. .anisawadni .invoice {
  191.     margin: 40px auto;
  192.     text-align: left;
  193.     width: 80%;
  194. }
  195. .anisawadni .invoice td {
  196.     padding: 5px 0;
  197. }
  198. .anisawadni .invoice .invoice-items {
  199.     width: 100%;
  200. }
  201. .anisawadni .invoice .invoice-items td {
  202.     border-top: #eee 1px solid;
  203. }
  204. .anisawadni .invoice .invoice-items .total td {
  205.     border-top: 2px solid #333;
  206.     border-bottom: 2px solid #333;
  207.     font-weight: 700;
  208. }
  209. /* -------------------------------------
  210.     RESPONSIVE AND MOBILE FRIENDLY STYLES
  211. ------------------------------------- */
  212. @media only screen and (max-width: 640px) {
  213.    .anisawadni  h1, h2, h3, h4 {
  214.         font-weight: 600 !important;
  215.         margin: 20px 0 5px !important;
  216.     }
  217.    .anisawadni  h1 {
  218.         font-size: 22px !important;
  219.     }
  220.     .anisawadni h2 {
  221.         font-size: 18px !important;
  222.     }
  223.     .anisawadni h3 {
  224.         font-size: 16px !important;
  225.     }
  226.     .anisawadni .container {
  227.         width: 100% !important;
  228.     }
  229.     .anisawadni .content, .content-wrap {
  230.         padding: 10px !important;
  231.     }
  232.     .anisawadni .invoice {
  233.         width: 100% !important;
  234.     }
  235. }
  236. </style>
  237. <script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.9.2/html2pdf.bundle.min.js"></script>
  238.         <div class="section-about" id="section-about" style="background-color:white">
  239.             <div class="container-fluid">
  240.                 <div class="row" style="margin-top:10%;background-color:white">
  241.                    
  242.                    <div class="container">
  243.                    <h2>Virement bancaire </h2>
  244.                    <hr>
  245.                         <div class="col-lg-12 anisawadni">
  246.                    <table class="main download-r" id="download-r" width="100%" cellpadding="0" cellspacing="0">
  247.                     <tbody><tr>
  248.                         <td class="content-wrap aligncenter">
  249.                             <table width="100%" cellpadding="0" cellspacing="0">
  250.                                 <tbody><tr>
  251.                                     <td class="content-block">
  252.                                         <h2>ASTP</h2>
  253.                                     </td>
  254.                                 </tr>
  255.                                 <tr>
  256.                                     <td class="content-block">
  257.                                         <table class="invoice">
  258.                                             <tbody>
  259.                                             
  260.                                             <tr>
  261.                                                 <td>
  262.                                                     <table class="invoice-items" cellpadding="0" cellspacing="0">
  263.                                                         <tbody><tr>
  264.                                                             <td>Nom et prénom </td>
  265.                                                             <td class="alignright">{{ app.session.get('nom') }} {{ app.session.get('prenom') }}</td>
  266.                                                         </tr>
  267.                                                         <tr>
  268.                                                             <td>Email</td>
  269.                                                             <td class="alignright">{{ app.session.get('emailSend') }}</td>
  270.                                                         </tr>
  271.                                                          <tr>
  272.                                                             <td>Téléphone</td>
  273.                                                             <td class="alignright">{{ app.session.get('phone') }}</td>
  274.                                                         </tr>
  275.                                                            <tr>
  276.                                                             <td>Type</td>
  277.                                                             <td class="alignright">{{ app.session.get('type') }}</td>
  278.                                                         </tr>
  279.                                                            <tr>
  280.                                                             <td>Fonction</td>
  281.                                                             <td class="alignright">{{ app.session.get('fonction') }}</td>
  282.                                                         </tr>
  283.                                                         
  284.                                                         <tr class="total">
  285.                                                             <td class="alignright" width="80%">Total</td>
  286.                                                             <td class="alignright "><span class="montant">{{prix}}</span> TND</td>
  287.                                                         </tr>
  288.                                                     </tbody></table>
  289.                                                 </td>
  290.                                             </tr>
  291.                                         </tbody></table>
  292.                                     </td>
  293.                                 </tr>
  294.                                   <tr>
  295.                         <td colspan="4">
  296.                     {% if ret is defined %}
  297.     {% if ret is not empty %}
  298.         <div class="alert alert-danger" style="    text-align: left;
  299.     color: black;"> {{ ret }}</div>
  300.     {% endif %}
  301. {% endif %}
  302.                 {% if success is defined %}
  303.    {% if success is not empty %}
  304.                 <div class="alert alert-success" style="text-align: left;
  305.                      color: black;"> {{ success }}</div>
  306.                  {% endif %}
  307.                 {% endif %}
  308.                 {% if success is not defined or success is empty %}
  309.                         <form method="post" action="/virementsend/{{id}}/{{idprix}}" enctype="multipart/form-data">
  310.                                 <label style="float:left">Téléchargez le reçu de virement bancaire ici pour RIB  : <b>07074013210550067594</b> </label>
  311.                                 <input type="file" name="receipt" class="form-control" />
  312.                                 <button class="btn btn-info float-right m-3" style="float:right">Suivant</button>
  313.                         </form>
  314.                     {% endif %}
  315.                         </td>
  316.                         
  317.                         </tr>
  318.                             </tbody></table>
  319.                         </td>
  320.                     </tr>
  321.                 </tbody></table>
  322.                     {% if success is defined %}
  323.                 {% if success is not empty %}
  324.                 <button class="btn btn-info" style="float:right" id="download">Télécharger</button>
  325.                  {% endif %}
  326.                 {% endif %}
  327.              <script>
  328.         document.getElementById('download').addEventListener('click', function () {
  329.             // Sélectionne l'élément HTML à convertir en PDF
  330.             const element = document.getElementById('download-r');
  331.             // Options de configuration pour html2pdf
  332.             const opt = {
  333.                 margin:       1,
  334.                 filename:     'document-paiment-astp.pdf',
  335.                 image:        { type: 'jpeg', quality: 0.98 },
  336.                 html2canvas:  { scale: 2 },
  337.                 jsPDF:        { unit: 'in', format: 'letter', orientation: 'portrait' }
  338.             };
  339.             // Conversion de l'élément en PDF
  340.             html2pdf().from(element).set(opt).save();
  341.         });
  342.     </script>
  343.                 
  344.                 <div class="footer">
  345.                     <table width="100%">
  346.                         <tbody><tr>
  347.                             <td class="aligncenter content-block">Questions? Téléphone <a href="mailto:">+216 97 054 316</a></td>
  348.                         </tr>
  349.                         <tr>
  350.                        
  351.                         
  352.                         </tr>
  353.                     </tbody></table>
  354.                 </div></div>
  355.         </td>
  356.         <td></td>
  357.     </tr>
  358. </tbody></table>
  359.                         </div>  
  360.                    </div>
  361.                 </div>
  362.             </div>
  363.         </div>
  364.         <!-- /SECTION: Event Description
  365.         ================================================== -->
  366.         <!-- SECTION: Event Schedule
  367.         ================================================== -->
  368.     </div>
  369.     </div>    
  370. {% include ('includes/footer.html.twig') %}
  371. </body>
  372. </html>