<?php

/* VGMWOBundle:WorkOrder:print_stickers.html.twig */
class __TwigTemplate_c0cd6a03b0a1bf4ddf8b644e92792a23ff5bff6e49315cd9cc40f5d92017e040 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = array(
        );
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 1
        echo "<html>
    <head>
        <meta charset=\"utf-8\">
        <title>Print Preview</title>
        <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.min.css\">
        <link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css\">
        <link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css\">
        <style>
            body{line-height: 1; background-color: rgba(72, 72, 72, 0.63);}
            .container {min-width: 8.0in;}
            section {
                clear: both;
            }
            div.horizaontal-divider {
                border-bottom: 1px solid #e5e5e5;
                clear: both;
                display: block;
                width: 100%;
                margin: 8px 0px;
            }
            .sticker{
                width: 3.8in;
                height: 2.3in;
                padding: 0.02in;
                background-color: #ffffff;
                margin: 0 auto;
                position: relative;
                /*border: 1px solid #000000;*/
            }
            .sticker>div{
                width: 100%;
            }
            .sticker>div>div:first-child{
                width: 0.6in;
            }
            .sticker>div>div:nth-child(2n+1){
                font-weight: bolder;
            }
            .sticker>div>div{
                float: left;
                vertical-align: bottom;
            }
            table{width: 100%;}
            tr>td:nth-child(2n+1){
                font-weight: bold;
            }
        </style>
    </head>
    <body>
        <div class=\"container\">
            <div class=\"modal fade bs-example-modal-lg\"
                 id=\"sticker-panel\"
                 tabindex=\"-1\"
                 role=\"dialog\"
                 aria-labelledby=\"myModalLabel\"
                 aria-hidden=\"true\">
                <div class=\"modal-dialog\">
                    <div class=\"modal-content\" >
                        <div class=\"modal-header\">
                            ";
        // line 64
        echo "                            <a href=\"#\" onclick=\"return xepOnline.Formatter.Format('print-area',
                            {render: 'download', pageWidth:'3.9in', pageHeight:'2.4in', pageMargin: '0.05in'});\"
                               class=\"btn btn-primary btn-lg pull-right\">
                                <span class=\"glyphicon glyphicon-print\"></span>
                            </a>
                            <h4 class=\"modal-title\">Success!!!</h4>
                        </div>
                        <div class=\"modal-body\">
                            <div class=\"sticker\" id=\"print-area\">
                                ";
        // line 73
        if ((isset($context["wflag"]) ? $context["wflag"] : $this->getContext($context, "wflag"))) {
            // line 74
            echo "                                    <table>
                                        <tbody>
                                        <tr>
                                            <td colspan=\"2\">
                                                <img id=\"as-logo\" class=\"img\" width=\"150px\"/>
                                            </td>
                                            <td colspan=\"2\">
                                                <table>
                                                    <tbody>
                                                    <tr>
                                                        <td>Created:</td>
                                                        <td>";
            // line 85
            echo twig_escape_filter($this->env, (($this->getAttribute((isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity")), "createdat", array())) ? (twig_date_format_filter($this->env, $this->getAttribute((isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity")), "createdat", array()), "m/d/Y")) : ("- - -")), "html", null, true);
            echo "</td>
                                                    </tr>
                                                    <tr>
                                                        <td>Sup:</td>
                                                        <td style=\"font-size: 12px;\">";
            // line 89
            echo twig_escape_filter($this->env, (($this->getAttribute((isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity")), "supervisor", array())) ? ($this->getAttribute((isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity")), "supervisor", array())) : ("- - -")), "html", null, true);
            echo "</td>
                                                    </tr>
                                                    </tbody>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>WO:</td>
                                            <td style=\"font-size: 25px; font-weight: bolder;\">";
            // line 97
            echo twig_escape_filter($this->env, (($this->getAttribute((isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity")), "number", array())) ? ($this->getAttribute((isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity")), "number", array())) : ("- - -")), "html", null, true);
            echo "</td>
                                            <td colspan=\"2\">
                                                <img id=\"barcode\" class=\"img\" width=\"150px\" height=\"80px\"/>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>Model:</td>
                                            <td colspan=\"3\" style=\"font-size: 12px;\">- - -</td>
                                        </tr>
                                        <tr>
                                            <td>Dest:</td>
                                            <td>";
            // line 108
            echo twig_escape_filter($this->env, (($this->getAttribute((isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity")), "saletype", array())) ? ($this->getAttribute($this->getAttribute((isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity")), "saletype", array()), "saletype", array())) : ("- - -")), "html", null, true);
            echo "</td>
                                            <td>Cond:</td>
                                            <td>";
            // line 110
            echo twig_escape_filter($this->env, (($this->getAttribute((isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity")), "worktype", array())) ? ($this->getAttribute($this->getAttribute((isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity")), "worktype", array()), "worktype", array())) : ("- - -")), "html", null, true);
            echo "</td>
                                        </tr>
                                        <tr>
                                            <td>Client:</td>
                                            <td style=\"font-size: 12px;\">";
            // line 114
            echo twig_escape_filter($this->env, (($this->getAttribute((isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity")), "client", array())) ? ($this->getAttribute((isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity")), "client", array())) : ("- - -")), "html", null, true);
            echo "</td>
                                            <td>Delivery:</td>
                                            <td>";
            // line 116
            echo twig_escape_filter($this->env, (($this->getAttribute((isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity")), "deliverydate", array())) ? (twig_date_format_filter($this->env, $this->getAttribute((isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity")), "deliverydate", array()), "m/d/Y")) : ("- - -")), "html", null, true);
            echo "</td>
                                        </tr>
                                        </tbody>
                                    </table>
                                ";
        } else {
            // line 121
            echo "                                    <table>
                                        <tbody>
                                            <tr>
                                                <td colspan=\"2\">
                                                    <img id=\"as-logo\" class=\"img\" width=\"150px\"/>
                                                </td>
                                                <td colspan=\"2\">
                                                    <table>
                                                        <tbody>
                                                            <tr>
                                                                <td>Created:</td>
                                                                <td>";
            // line 132
            echo twig_escape_filter($this->env, (($this->getAttribute($this->getAttribute((isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity")), "workorder", array()), "createdat", array())) ? (twig_date_format_filter($this->env, $this->getAttribute($this->getAttribute((isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity")), "workorder", array()), "createdat", array()), "m/d/Y")) : ("- - -")), "html", null, true);
            echo "</td>
                                                            </tr>
                                                            <tr>
                                                                <td>Sup:</td>
                                                                <td style=\"font-size: 12px;\">";
            // line 136
            echo twig_escape_filter($this->env, (($this->getAttribute($this->getAttribute((isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity")), "workorder", array()), "supervisor", array())) ? ($this->getAttribute($this->getAttribute((isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity")), "workorder", array()), "supervisor", array())) : ("- - -")), "html", null, true);
            echo "</td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan=\"2\">
                                                    <table>
                                                        <tbody>
                                                            <tr>
                                                                <td>WO:</td>
                                                                <td style=\"font-size: 25px; font-weight: bolder;\">";
            // line 148
            echo twig_escape_filter($this->env, (($this->getAttribute((isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity")), "workorder", array())) ? ($this->getAttribute($this->getAttribute((isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity")), "workorder", array()), "number", array())) : ("- - -")), "html", null, true);
            echo "-";
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity")), "asnumber", array()), "html", null, true);
            echo "</td>
                                                            </tr>
                                                            <tr>
                                                                <td>Stock:</td>
                                                                <td style=\"font-size: 25px; font-weight: bolder;\">";
            // line 152
            echo twig_escape_filter($this->env, (($this->getAttribute((isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity")), "stock", array())) ? ($this->getAttribute($this->getAttribute((isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity")), "stock", array()), "code", array())) : ("- - -")), "html", null, true);
            echo "</td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </td>
                                                <td colspan=\"2\">
                                                    <img id=\"barcode\" class=\"img\" width=\"150px\" height=\"80px\"/>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>Model:</td>
                                                <td colspan=\"3\" style=\"font-size: 12px;\">";
            // line 163
            echo twig_escape_filter($this->env, (($this->getAttribute($this->getAttribute((isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity")), "stock", array()), "model", array())) ? ($this->getAttribute($this->getAttribute((isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity")), "stock", array()), "model", array())) : ("- - -")), "html", null, true);
            echo "</td>
                                            </tr>
                                            <tr>
                                                <td>Dest:</td>
                                                <td>";
            // line 167
            echo twig_escape_filter($this->env, (($this->getAttribute((isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity")), "saletype", array())) ? ($this->getAttribute($this->getAttribute((isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity")), "saletype", array()), "saletype", array())) : ("- - -")), "html", null, true);
            echo "</td>
                                                <td>Cond:</td>
                                                <td>";
            // line 169
            echo twig_escape_filter($this->env, (($this->getAttribute((isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity")), "worktype", array())) ? ($this->getAttribute($this->getAttribute((isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity")), "worktype", array()), "worktype", array())) : ("- - -")), "html", null, true);
            echo "</td>
                                            </tr>
                                            <tr>
                                                <td>Client:</td>
                                                <td style=\"font-size: 12px;\">";
            // line 173
            echo twig_escape_filter($this->env, (($this->getAttribute((isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity")), "client", array())) ? ($this->getAttribute((isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity")), "client", array())) : ("- - -")), "html", null, true);
            echo "</td>
                                                <td>Delivery:</td>
                                                <td>";
            // line 175
            echo twig_escape_filter($this->env, (($this->getAttribute((isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity")), "deliverydate", array())) ? (twig_date_format_filter($this->env, $this->getAttribute((isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity")), "deliverydate", array()), "m/d/Y")) : ("- - -")), "html", null, true);
            echo "</td>
                                            </tr>
                                        </tbody>
                                    </table>
                                ";
        }
        // line 180
        echo "                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script type=\"text/javascript\" src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js\"></script>
        <script type=\"text/javascript\" src=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js\"></script>
        <script type=\"text/javascript\" src=\"";
        // line 188
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/vgmwo/js/tools/xepOnline.jqPlugin.js"), "html", null, true);
        echo "\"></script>
        <script type=\"text/javascript\">
            function convertImgToBase64(url, callback, outputFormat){
                var img = new Image();
                img.crossOrigin = 'Anonymous';
                img.onload = function(){
                    var canvas = document.createElement('CANVAS');
                    var ctx = canvas.getContext('2d');
                    canvas.height = this.height;
                    canvas.width = this.width;
                    ctx.drawImage(this,0,0);
                    var dataURL = canvas.toDataURL(outputFormat || 'image/jpg');
                    callback(dataURL);
                    canvas = null;
                };
                img.src = url;
            };
            \$(document).ready(function(){
                \$('#sticker-panel').modal('show');
                convertImgToBase64(\"";
        // line 207
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/vgmwo/images/barcode.png"), "html", null, true);
        echo "\", function(base64Img){
                    \$('img#barcode').attr('src', base64Img);
                });
                convertImgToBase64(\"";
        // line 210
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/vgmwo/images/logo/as-logo-horizontal-black.png"), "html", null, true);
        echo "\", function(base64Img){
                    \$('img#as-logo').attr('src', base64Img);
                });
            });
            /*function print(){
                    return xepOnline.Formatter.Format('workorder-area', {pageWidth:'3.9in', pageHeight:'2.4in', pageMarginTop: '0.2in', pageMarginRight: '0.2in', pageMarginBottom: '0.2in', pageMarginLeft: '0.2in'});
                    //return xepOnline.Formatter.Format(\"workorder-area\",{pageWidth:\"3.9in\",pageHeight:\"2.4in\"});
            }*/
        </script>
    </body>
</html>";
    }

    public function getTemplateName()
    {
        return "VGMWOBundle:WorkOrder:print_stickers.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  291 => 210,  285 => 207,  263 => 188,  253 => 180,  245 => 175,  240 => 173,  233 => 169,  228 => 167,  221 => 163,  207 => 152,  198 => 148,  183 => 136,  176 => 132,  163 => 121,  155 => 116,  150 => 114,  143 => 110,  138 => 108,  124 => 97,  113 => 89,  106 => 85,  93 => 74,  91 => 73,  80 => 64,  19 => 1,);
    }
}
