<?php

/* DorcasTabithaBundle:Notes:noteformedit.html.twig */
class __TwigTemplate_41a417619f3b37f6bd342a2877151844 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

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

        $this->blocks = array(
            'image' => array($this, 'block_image'),
            'body' => array($this, 'block_body'),
            'logout' => array($this, 'block_logout'),
            '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 2
    public function block_image($context, array $blocks = array())
    {
    }

    // line 3
    public function block_body($context, array $blocks = array())
    {
        // line 4
        echo "
    <div id=\"note_edit\" >
        <form id=\"clientform\" action=\"";
        // line 6
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("DorcasTabithaBundle_note_update", array("note_id" => $this->getAttribute($this->getContext($context, "note"), "noteid"))), "html", null, true);
        // line 7
        echo "\" method=\"post\" ";
        echo $this->env->getExtension('form')->renderEnctype($this->getContext($context, "form"));
        echo " class=\"dorcas\">
            <h4>Edit a Note - Admin and Creator Only</h4>
            Entered By: ";
        // line 9
        echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "note"), "user"), "html", null, true);
        echo " &nbsp; &nbsp; Date: ";
        echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($this->getContext($context, "note"), "createddt"), "m/d/Y"), "html", null, true);
        echo "
            <div >
                ";
        // line 11
        echo $this->env->getExtension('form')->renderLabel($this->getAttribute($this->getContext($context, "form"), "note"), "");
        echo "
                ";
        // line 12
        echo $this->env->getExtension('form')->renderErrors($this->getAttribute($this->getContext($context, "form"), "note"));
        echo "
                ";
        // line 13
        echo $this->env->getExtension('form')->renderWidget($this->getAttribute($this->getContext($context, "form"), "note"), array("attr" => array("rows" => "4", "cols" => "100", "class" => "tinymce")));
        echo "
            </div>
            <div style=\" padding-top: 18px;\">
                <input type=\"submit\" value=\"Save and Close Window\" onclick=\"closeandreload()\" >
            </div>      
            ";
        // line 18
        echo $this->env->getExtension('form')->renderRest($this->getContext($context, "form"));
        echo "
            ";
        // line 19
        if ($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "session"), "hasFlash", array(0 => "notice"), "method")) {
            // line 20
            echo "                <div class=\"flash-notice\" >
                    ";
            // line 21
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, "app"), "session"), "flash", array(0 => "notice"), "method"), "html", null, true);
            echo "
                </div>
            ";
        }
        // line 24
        echo "            <br />
        </form>
    </div>

";
    }

    // line 30
    public function block_logout($context, array $blocks = array())
    {
    }

    // line 32
    public function block_javascripts($context, array $blocks = array())
    {
        // line 33
        echo "
    ";
        // line 34
        $this->displayParentBlock("javascripts", $context, $blocks);
        echo "

<script src=\"";
        // line 36
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/DorcasTabitha/js/js/tiny_mce/jquery.tinymce.js"), "html", null, true);
        echo "\" type=\"text/javascript\"></script>

<script type=\"text/javascript\">
\$(document).ready(function(){

\t\$('textarea').tinymce({
            // Location of TinyMCE script - changed for tabitha
            script_url : '";
        // line 43
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/DorcasTabitha/js/js/tiny_mce/tiny_mce.js"), "html", null, true);
        echo "',

            // General options
            theme : \"advanced\",
            readonly : false,
            plugins : \"autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,advlist\",
  
            // Added for Tabitha to force absolute paths for emoticons
            relative_urls : false, 

            // Theme options
            theme_advanced_buttons1 : \"bold,italic,underline,|,formatselect,fontselect,fontsizeselect,|,forecolor,backcolor,|,cut,copy,paste,|,emotions,iespell,|,print,\",
            theme_advanced_toolbar_location : \"top\",
            theme_advanced_toolbar_align : \"left\",
            // commented for tabitha
            theme_advanced_statusbar_location : \"none\",
            theme_advanced_resizing : true,

            // Example content CSS (should be your site CSS) - changed for tabitha
            content_css : '";
        // line 62
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/DorcasTabitha/css/base.css"), "html", null, true);
        echo "',

            // Drop lists for link/image/media/template dialogs
            template_external_list_url : \"lists/template_list.js\",
            external_link_list_url : \"lists/link_list.js\",
            external_image_list_url : \"lists/image_list.js\",
            media_external_list_url : \"lists/media_list.js\",

            // Replace values for the template plugin
            template_replace_values : {
                username : \"Some User\",
                staffid : \"991234\"
            }
        });
\t\t
});          

</script>


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

function closeandreload(){ 
    var form = document.forms[\"clientform\"];
    form.submit();
    opener.location.reload(true); // or opener.location.href = opener.location.href;
    window.close(); // or self.close(); 
}

</script>

    
";
    }

    public function getTemplateName()
    {
        return "DorcasTabithaBundle:Notes:noteformedit.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  143 => 62,  121 => 43,  111 => 36,  106 => 34,  103 => 33,  100 => 32,  95 => 30,  87 => 24,  81 => 21,  78 => 20,  76 => 19,  72 => 18,  64 => 13,  60 => 12,  56 => 11,  49 => 9,  43 => 7,  41 => 6,  37 => 4,  34 => 3,  29 => 2,);
    }
}
