<?php

/* VGMWOBundle:WorkOrder/Show_parts:workorder_creation_data.html.twig */
class __TwigTemplate_7fa7c5b89c26d116c2c8595a362ade8af383778f48e5449ecfba5af6018119ec 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 "<!-- ko if: chosenwo().id() != null -->
<div class=\"row text-right\">
    <!-- Created at date -->
    <div class=\"pull-right\">
        <strong>Created at: </strong>
        <span data-bind=\"text: chosenwo().created\"></span>
        <div class=\"vertical-divider\"></div>
        <!-- Created by -->
        <strong>Created By: </strong>
        <span data-bind=\"text: chosenwo().creator_id() != null ? chosenwo().creator_name() : '- - -'\"></span>
        <div class=\"vertical-divider\"></div>
        <strong>Cost: </strong>
        <span data-bind=\"text: chosenwo().formatedCost\"
          style=\"color: red; font-weight: bold;\"></span>
        <div class=\"vertical-divider\"></div>
        <div class=\"dropdown\" style=\"display: inline;\">
            <a href=\"#\" data-toggle=\"dropdown\" aria-expanded=\"false\">
                Options
                <span class=\"caret\"></span>
            </a>
            <ul class=\"dropdown-menu\" aria-labelledby=\"dLabel\" role=\"menu\">
                <li>
                    <a href=\"#\" style=\"cursor: pointer;\" onclick=\"go_print_view()\">
                        <span class=\"glyphicon glyphicon-print\"></span> Print</a>
                </li>
                <!-- ko if: chosenwo().stocks().length == 0 -->
                    <li>
                        <a href=\"#\" style=\"cursor: pointer;\" onclick=\"go_print_wo_stickers()\">
                            <span class=\"glyphicon glyphicon-tags\"></span> Tags</a>
                    </li>
                <!-- /ko -->
            </ul>
        </div>
    </div>
</div>
<script>
    function go_print_view(){var url = '";
        // line 37
        echo $this->env->getExtension('routing')->getPath("workorders_print_preview", array("id" => "id_val"));
        echo "';url = url.replace(\"id_val\", viewModel.chosenwo().id());document.location = url;}
    function go_print_wo_stickers(){var url = '";
        // line 38
        echo $this->env->getExtension('routing')->getPath("show_workorders_stickers", array("id" => "id_val"));
        echo "';url = url.replace(\"id_val\", viewModel.chosenwo().id());window.open(url,'_blank');}
</script>
<!-- /ko -->";
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  61 => 38,  57 => 37,  19 => 1,);
    }
}
