src/ApplicationBundle/Resources/views/inc/snippets/export_bar.html.twig line 1

Open in your IDE?
  1. {% if export is defined %}
  2.     {% set export_type=export|split(',') %}
  3.     <div class="wrapper export_bar" id="non_print">
  4.         <!-- Main content -->
  5.         <section class="">
  6.             <div class="row">
  7.                 <div class="col-xs-12">
  8.                     <div class="btn-group" style="background-color: grey;width:100%">
  9. {#                        <button class="btn  bg-red waves-effect pull-right" onclick="window.open('', '_self', ''); window.close();">#}
  10.                         <button class="btn   waves-effect pull-right" onclick="window.open('', '_self', ''); window.close();">
  11.                             <i class="fa fa-times"></i> Close
  12.                         </button>
  13.                         <button class="btn  waves-effect pull-right" onclick="history.back();">
  14.                             <i class="fa fa-undo"></i> Go Back
  15.                         </button>
  16.                         {% if 'all' in export_type  or  'pdf' in export_type %}
  17.                             <button class="btn btn-app waves-effect  pull-right export_pdf_button">
  18.                                 <i class="fa fa-file-pdf"></i> PDF
  19.                             </button>
  20.                             {#<button  class="btn btn-app waves-effect  bg-grey pull-right export_and_mail_pdf_button">#}
  21.                             {#<i class="fa fa-file-pdf"></i> MAIL PDF#}
  22.                             {#</button>#}
  23.                             {#<button  class="btn btn-app waves-effect  bg-grey pull-right export_pdf_by_js_button">#}
  24.                             {#<i class="fa fa-file-pdf"></i> PDF#}
  25.                             {#</button>#}
  26.                         {% endif %}
  27.                         {% if 'all' in export_type  or  'excel' in export_type %}
  28.                             <button class="btn waves-effect  pull-right export_excel_button">
  29.                                 <i class="fa fa-file-excel"></i> Excel
  30.                             </button>
  31.                         {% endif %}
  32.                         {% if 'all' in export_type  or  'print' in export_type %}
  33.                             <button onclick="window.print();" class="btn waves-effect   pull-right ">
  34.                                 <i class="fa fa-print"></i> Print
  35.                             </button>
  36.                         {% endif %}
  37.                         {% if 'all' in export_type  or  'sendForward' in export_type %}
  38.                             <button class="btn btn-app waves-effect  pull-right export_sendForward_button"
  39.                                     >
  40.                                 <i class="fa fa-share-square"></i> Forward
  41.                             </button>
  42.                             <div class="sendForwardCustomDiv" style=" display: none;      background: white;
  43.                                                         width: 20%;
  44.                                                         left: 40%;
  45.                                                         z-index: 9999;
  46.                                                         padding: 30px;
  47.                                                         border: 1px solid;
  48.                                                         border-radius: 1%;
  49.                                                         position: fixed;
  50.                                                         top: 0;
  51.                                                         -webkit-transition: -webkit-transform .3s ease-out;
  52.                                                         -o-transition: -o-transform .3s ease-out;
  53.                                                         transition: transform .3s ease-out;
  54.                                                         ">
  55.                                 {#<div class="modal-header">#}
  56.                                     {#<h4 class="modal-title" id="printForwardModalTitle">Please Select Action</h4>#}
  57.                                 {#</div>#}
  58.                                 <div class="">
  59.                                     <div class="row">
  60.                                         <div class="col-sm-12 col-md-12">
  61.                                             <b>To</b> <div class="input-group"><span class="input-group-addon"><i class="material-icons">email</i></span>
  62.                                                 <div class="form-line"> <input  type="text" class="form-control "
  63.                                                                                 value="{{ forwardToMailAddress is defined? forwardToMailAddress:'' }}"
  64.                                                                                 name="forwardToMailAddress"
  65.                                                                                 id="forwardToMailAddress" placeholder=" {{ forwardToMailAddress is defined? forwardToMailAddress:'' }}"> </div> </div>
  66.                                             {#<input type="hidden" name="printOptionsModalHref" id="printOptionsModalHref" value=""/>#}
  67.                                         </div>
  68.                                         <div class="col-sm-12 col-md-12">
  69.                                             <input type="checkbox"  name="attachPdf" value="1" checked id="printOptionsModalAttachPdf" class="chk-col-deep-purple" />
  70.                                             <label for="printOptionsModalAttachPdf">Attach PDF</label>
  71.                                         </div>
  72.                                         <div class="col-sm-12 col-md-12" style="padding-top: 10px;">
  73.                                             <b class="sendForwardCustomDivStatus col-red"></b>
  74.                                         </div>
  75.                                     </div>
  76.                                 </div>
  77.                                 <div class="" style="padding-top: 10px;">
  78.                                     <button type="button" class="btn btn-link waves-effect sendForwardCustomDivSendButton">SEND</button>
  79.                                     <button style="display: none" disabled type="button" class="btn btn-link waves-effect sendForwardCustomDivSendingButton">SENDING...</button>
  80.                                     <button type="button" class="btn btn-link waves-effect sendForwardCustomDivCloseButton" >CLOSE</button>
  81.                                 </div>
  82.                             </div>
  83.                             {#<div class="modal fade" id="printForwardModal" tabindex="-1" role="dialog">#}
  84.                                 {#<div class="modal-dialog modal-sm" role="document">#}
  85.                                     {#<div class="modal-content">#}
  86.                                         {#<div class="modal-header">#}
  87.                                             {#<h4 class="modal-title" id="printForwardModalTitle">Please Select Action</h4>#}
  88.                                         {#</div>#}
  89.                                         {#<div class="modal-body">#}
  90.                                             {#<div class="row">#}
  91.                                                 {#<div class="col-sm-12 col-md-12">#}
  92.                                                     {#<b>To</b> <div class="input-group"><span class="input-group-addon"><i class="material-icons">email</i></span>#}
  93.                                                         {#<div class="form-line"> <input  type="text" class="form-control "#}
  94.                                                                                          {#value="{{ forwardToMailAddress is defined? forwardToMailAddress:'' }}"#}
  95.                                                             {#name="forwardToMailAddress"#}
  96.                                                             {#id="forwardToMailAddress" placeholder=" {{ forwardToMailAddress is defined? forwardToMailAddress:'' }}"> </div> </div>#}
  97.                                                     {#<input type="hidden" name="printOptionsModalHref" id="printOptionsModalHref" value=""/>#}
  98.                                                 {#</div>#}
  99.                                             {#</div>#}
  100.                                         {#</div>#}
  101.                                         {#<div class="modal-footer">#}
  102.                                             {#<button type="button" class="btn btn-link waves-effect printForwardModalPrintButton">PRINT</button>#}
  103.                                             {#<button type="button" class="btn btn-link waves-effect" data-dismiss="modal">CLOSE</button>#}
  104.                                         {#</div>#}
  105.                                     {#</div>#}
  106.                                 {#</div>#}
  107.                             {#</div>#}
  108.                             {#<button  class="btn btn-app waves-effect  bg-grey pull-right export_and_mail_pdf_button">#}
  109.                             {#<i class="fa fa-file-pdf"></i> MAIL PDF#}
  110.                             {#</button>#}
  111.                             {#<button  class="btn btn-app waves-effect  bg-grey pull-right export_pdf_by_js_button">#}
  112.                             {#<i class="fa fa-file-pdf"></i> PDF#}
  113.                             {#</button>#}
  114.                         {% endif %}
  115.                     </div>
  116.                 </div>
  117.             </div>
  118.         </section>
  119.     </div>
  120.     {% if pdf is defined and pdf==true %}
  121.     {% else %}
  122.         <style>
  123.             @media screen {
  124.                 .wrapper:not(.export_bar) {
  125.                     width: 90%;
  126.                     margin: auto;
  127.                     padding: 2%;
  128.                 }
  129.                 body {
  130.                     background-color: grey;
  131.                 }
  132.             }
  133.         </style>
  134.     {% endif %}
  135. {% endif %}