<?php

/* news.form.tpl */
class __TwigTemplate_677276c8b943bb13ea0b2bad5635974a extends Twig_Template
{
    public function display(array $context)
    {
        // line 1
        echo "<form enctype=\"multipart/form-data\" action=\"index.php?ToDo=";
        echo twig_safe_filter((isset($context['FormAction']) ? $context['FormAction'] : null));
        echo "\" onsubmit=\"return ValidateForm(CheckNewsForm)\" id=\"frmNews\" method=\"post\" class=\"form-horizontal\">
\t<input type=\"hidden\" name=\"newsId\" value=\"";
        // line 2
        echo twig_safe_filter((isset($context['NewsId']) ? $context['NewsId'] : null));
        echo "\">

\t<div class=\"row\">
\t\t<div class=\"col-sm-12\">
\t\t\t<h4 class=\"page-title\">";
        // line 6
        echo twig_safe_filter((isset($context['Title']) ? $context['Title'] : null));
        echo "</h4>
\t\t\t<p>";
        // line 7
        echo twig_safe_filter((isset($context['Intro']) ? $context['Intro'] : null));
        echo "</p>
\t\t\t";
        // line 8
        echo twig_safe_filter((isset($context['Message']) ? $context['Message'] : null));
        echo "
\t\t</div>
\t</div>

\t<div class=\"row\">
\t\t<div class=\"col-sm-12\">
\t\t\t<input type=\"submit\" name=\"SubmitButton1\" value=\"";
        // line 14
        echo getLang("Save");
        echo "\" class=\"FormButton btn btn-primary\">
\t\t\t<input type=\"button\" name=\"CancelButton1\" value=\"";
        // line 15
        echo getLang("Cancel");
        echo "\" class=\"FormButton btn btn-default\" onclick=\"ConfirmCancel()\"></p>
\t\t</div>
\t</div>
\t<br />

\t<div class=\"panel panel-default form-horizontal\">
\t\t<div class=\"panel-heading\"> 
\t\t\t<h3 class=\"panel-title\">";
        // line 22
        echo getLang("NewNewsDetails");
        echo "</h3> 
\t\t</div> 

\t\t<div class=\"panel-body\">
\t\t\t<div class=\"form-group\">
\t\t\t\t<label class=\"col-md-2 control-label\">";
        // line 27
        echo getLang("NewsTitle");
        echo "</label>
\t\t\t\t<div class=\"col-md-10\">
\t\t\t\t\t<input type=\"text\" id=\"newstitle\" name=\"newstitle\" class=\"form-control\" value=\"";
        // line 29
        echo twig_safe_filter((isset($context['NewsTitle']) ? $context['NewsTitle'] : null));
        echo "\">
\t\t\t\t</div>
\t\t\t</div>

\t\t\t<div class=\"form-group\">
\t\t\t\t<label class=\"col-md-2 control-label\">";
        // line 34
        echo getLang("SearchKeywords");
        echo "</label>
\t\t\t\t<div class=\"col-md-10\">
\t\t\t\t\t<input type=\"text\" id=\"newssearchkeywords\" name=\"newssearchkeywords\" class=\"form-control\" value=\"";
        // line 36
        echo twig_safe_filter((isset($context['NewsSearchKeywords']) ? $context['NewsSearchKeywords'] : null));
        echo "\">
\t\t\t\t</div>
\t\t\t</div>

\t\t\t<div class=\"form-group\">
\t\t\t\t<label class=\"col-md-2 control-label\">";
        // line 41
        echo getLang("Visible");
        echo "</label>
\t\t\t\t<div class=\"col-md-10\">
\t\t\t\t\t<div class=\"checkbox checkbox-primary\">
\t\t\t\t\t\t<input type=\"checkbox\" id=\"newsvisible\" name=\"newsvisible\" value=\"1\" ";
        // line 44
        echo twig_safe_filter((isset($context['NewsVisible']) ? $context['NewsVisible'] : null));
        echo ">
\t\t\t\t\t\t<label for=\"newsvisible\">";
        // line 45
        echo getLang("YesNewsVisible");
        echo "</label>
\t\t            </div>
\t\t        </div>
\t\t    </div>
\t\t</div>
\t</div>

\t<div class=\"panel panel-default form-horizontal\">
\t\t<div class=\"panel-heading\"> 
\t\t\t<h3 class=\"panel-title\">";
        // line 54
        echo getLang("PostContent");
        echo "</h3> 
\t\t</div> 

\t\t<div class=\"panel-body\">
\t\t\t";
        // line 58
        echo twig_safe_filter((isset($context['WYSIWYG']) ? $context['WYSIWYG'] : null));
        echo "
\t\t</div>
\t</div>
\t<div class=\"row\">
\t\t<div class=\"col-sm-12\">
\t\t\t<input type=\"submit\" name=\"SubmitButton1\" value=\"";
        // line 63
        echo getLang("Save");
        echo "\" class=\"FormButton btn btn-primary\">
\t\t\t<input type=\"button\" name=\"CancelButton1\" value=\"";
        // line 64
        echo getLang("Cancel");
        echo "\" class=\"FormButton btn btn-default\" onclick=\"ConfirmCancel()\"></p>
\t\t</div>
\t</div>
</form>

<script type=\"text/javascript\">
\tfunction ConfirmCancel(){
\t\tif(confirm(\"";
        // line 71
        echo getLang("ConfirmCancelNews");
        echo "\"))
\t\tdocument.location.href = \"index.php?ToDo=viewNews\";
\t}

\tfunction CheckNewsForm(){
\t\tvar title = g(\"newstitle\");

\t\tif(g(\"wysiwyg\"))
\t\t\tvar wysiwyg = g(\"wysiwyg\"); // Text area
\t\telse
\t\t\tvar wysiwyg = g(\"wysiwyg_html\"); // DevEdit

\t\tif(IsWysiwygEditorEmpty(wysiwyg.value)){
\t\t\talert(\"";
        // line 84
        echo getLang("EnterNewsContent");
        echo "\");
\t\t\treturn false;
\t\t}

\t\tif(title.value == \"\"){
\t\t\talert(\"";
        // line 89
        echo getLang("EnterNewsTitle");
        echo "\");
\t\t\ttitle.focus();
\t\t\treturn false;
\t\t}

\t\treturn true;
\t}
</script>";
    }

}
