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

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