<?php

/* DorcasTabithaBundle:Referrals:referralsformupdate.html.twig */
class __TwigTemplate_1e8ee46c772be4efcc855787722b92f0 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = $this->env->loadTemplate("::base.html.twig");

        $this->blocks = array(
            'body' => array($this, 'block_body'),
            'javascripts' => array($this, 'block_javascripts'),
        );
    }

    protected function doGetParent(array $context)
    {
        return "::base.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

    // line 3
    public function block_body($context, array $blocks = array())
    {
        // line 4
        echo "    <div id=\"wrapper\" style=\"height:1100px;\" >
            <form id=\"clientform\" action=\"";
        // line 5
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("DorcasTabithaBundle_referrals_update", array("client_id" => $this->getAttribute($this->getAttribute($this->getContext($context, "referrals"), "client"), "clientid"))), "html", null, true);
        echo "\" method=\"post\" ";
        echo $this->env->getExtension('form')->renderEnctype($this->getContext($context, "form"));
        echo " class=\"dorcas\">           
                ";
        // line 6
        $this->env->loadTemplate("DorcasTabithaBundle:Referrals:referralslayout.html.twig")->display($context);
        // line 7
        echo "            </form>
    </div>
";
    }

    // line 11
    public function block_javascripts($context, array $blocks = array())
    {
        // line 12
        echo "
";
        // line 13
        $this->displayParentBlock("javascripts", $context, $blocks);
        echo "

<script type=\"text/javascript\">

\$(function() {
//    \$( \".datepicker\" ).datepicker({ showAnim: \"slideDown\" });
    \$( \".datepicker\" ).datepicker({ changeMonth: true, changeYear: true, yearRange:\"-90:+0\", maxDate: \"+0d\"
        });
        });

    function mkdate(field)
    {
        var checkboxid = document.getElementById('referralsform_margaret_keller');
        var textboxid = document.getElementById('referralsform_margaret_keller_date');
        checkboxid.checked = true;
        if (textboxid.value == \"\") {
            checkboxid.checked = false;
        }
    }

    function wwdate(field)
    {
        var checkboxid = document.getElementById('referralsform_western_wake');
        var textboxid = document.getElementById('referralsform_western_wake_date');
        checkboxid.checked = true;
        if (textboxid.value == \"\") {
            checkboxid.checked = false;
        }
    }

    function ohdate(field)
    {
        var checkboxid = document.getElementById('referralsform_oxford_house');
        var textboxid = document.getElementById('referralsform_oxford_house_date');
        checkboxid.checked = true;
        if (textboxid.value == \"\") {
            checkboxid.checked = false;
        }
    }

    function ccdate(field)
    {
        var checkboxid = document.getElementById('referralsform_childcare');
        var textboxid = document.getElementById('referralsform_childcare_date');
        checkboxid.checked = true;
        if (textboxid.value == \"\") {
            checkboxid.checked = false;
        }
    }

</script>
    
";
    }

    public function getTemplateName()
    {
        return "DorcasTabithaBundle:Referrals:referralsformupdate.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  53 => 13,  50 => 12,  47 => 11,  41 => 7,  39 => 6,  33 => 5,  30 => 4,  27 => 3,);
    }
}
