<?php

/* DorcasTabithaBundle:Users:userloop.html.twig */
class __TwigTemplate_588b8b129ec4fe82d2bc6983bb402f3d 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 "<br/>


 <h4>User Profiles</h4>
 
<div style=\"width:10%; float:left;\">
    Username
</div>
<div style=\"width:10%; float:left;\">
    First Name
</div>
<div style=\"width:10%; float:left;\">
    Last Name
</div>
<div style=\"width:20%; float:left;\">
    Address           
</div>
<div style=\"width:14%; float:left;\">
    Phone          
</div>
<div style=\"width:15%; float:left;\">
    Email        
</div>
<div style=\"width:6%; float:left;\">
    Admin       
</div>
<div style=\"width:5%; float:left;\">
    Enabled        
</div>

<br/>

";
        // line 33
        $context["userEmailList"] = "";
        // line 34
        echo "
<hr size=\"4\" color=\"black\" noshade/>

";
        // line 37
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable($this->getContext($context, "users"));
        $context['_iterated'] = false;
        foreach ($context['_seq'] as $context["_key"] => $context["user"]) {
            // line 38
            echo "    
    <article>
\t
        <div style=\"width:10%; float:left;\">
            ";
            // line 42
            echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "user"), "username"), "html", null, true);
            echo " &nbsp;
        </div>
\t\t<div style=\"width:10%; float:left;\">
            ";
            // line 45
            echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "user"), "firstname"), "html", null, true);
            echo " &nbsp;
        </div>
\t\t<div style=\"width:10%; float:left;\">
            ";
            // line 48
            echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "user"), "lastname"), "html", null, true);
            echo " &nbsp;
        </div>

        <div style=\"width:20%; float:left;\">
                    ";
            // line 52
            echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "user"), "address"), "html", null, true);
            echo " &nbsp;
        </div>
        <div style=\"width:14%; float:left;\">
                    ";
            // line 55
            echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "user"), "phone"), "html", null, true);
            echo " &nbsp;
        </div>
        <div style=\"width:17%; float:left;\">
                    ";
            // line 58
            echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "user"), "email"), "html", null, true);
            echo " &nbsp;
        </div>
        <div style=\"width:6%; float:left;\">
            ";
            // line 61
            if ($this->getAttribute($this->getContext($context, "user"), "isAdmin")) {
                // line 62
                echo "                    <input type=\"checkbox\" name=\"isAdmin\" disabled=\"disabled\" checked=\"checked\" />
             ";
            } else {
                // line 64
                echo "                    <input type=\"checkbox\" name=\"isAdmin\" disabled=\"disabled\" />
            ";
            }
            // line 66
            echo "        </div>
        <div style=\"width:4%; float:left;\">
            ";
            // line 68
            if ($this->getAttribute($this->getContext($context, "user"), "isActive")) {
                // line 69
                echo "                    <input type=\"checkbox\" name=\"isAdmin\" disabled=\"disabled\" checked=\"checked\" />
             ";
            } else {
                // line 71
                echo "                    <input type=\"checkbox\" name=\"isAdmin\" disabled=\"disabled\" />
            ";
            }
            // line 73
            echo "        </div>
\t\t

        ";
            // line 76
            if ($this->env->getExtension('security')->isGranted("ROLE_ADMIN")) {
                // line 77
                echo "            ";
                $context["urlpath"] = $this->env->getExtension('routing')->getPath("DorcasTabithaBundle_user_update", array("id" => $this->getAttribute($this->getContext($context, "user"), "id")));
                // line 78
                echo "            <input type=\"button\" value=\"Edit\" onclick=\"window.open(' ";
                echo twig_escape_filter($this->env, $this->getContext($context, "urlpath"), "html", null, true);
                echo " ','','width=1200,height=340,location=0')\" />
            ";
                // line 79
                $context["urlpath"] = $this->env->getExtension('routing')->getPath("DorcasTabithaBundle_user_delete", array("id" => $this->getAttribute($this->getContext($context, "user"), "id")));
                // line 80
                echo "                <input type=\"button\" value=\"Del\" onClick='warnUsersDelete(\"";
                echo twig_escape_filter($this->env, $this->getContext($context, "urlpath"), "html", null, true);
                echo "\")' />
        ";
            }
            // line 82
            echo "      
    </article>

    ";
            // line 85
            if ((!twig_test_empty($this->getAttribute($this->getContext($context, "user"), "email")))) {
                echo "\t
        ";
                // line 86
                $context["userEmailList"] = twig_join_filter(array(0 => $this->getContext($context, "userEmailList"), 1 => $this->getAttribute($this->getContext($context, "user"), "email")), "; ");
                echo " 
    ";
            }
            // line 88
            echo "
";
            $context['_iterated'] = true;
        }
        if (!$context['_iterated']) {
            // line 90
            echo "    <p>There are no users registered yet. </p>

";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['user'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 93
        echo "
<input type=button onClick=\"location.href='javascript: displayemail()'\" value='Display Email' style=\"color:#00b5cb; background-color:white; font-size: 12px;\">

<div id=\"emailList\" style=\"display:none;\">
    <br />
    <textarea rows=\"2\" cols=\"80\" readonly=true, style=\"font-size: 12px;\">";
        // line 98
        echo twig_escape_filter($this->env, $this->getContext($context, "userEmailList"), "html", null, true);
        echo "</textarea> 
</div>

<br/><br/>




";
    }

    public function getTemplateName()
    {
        return "DorcasTabithaBundle:Users:userloop.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  188 => 98,  181 => 93,  173 => 90,  167 => 88,  162 => 86,  158 => 85,  153 => 82,  147 => 80,  145 => 79,  140 => 78,  137 => 77,  135 => 76,  130 => 73,  126 => 71,  122 => 69,  120 => 68,  116 => 66,  112 => 64,  108 => 62,  106 => 61,  100 => 58,  94 => 55,  88 => 52,  81 => 48,  75 => 45,  69 => 42,  63 => 38,  58 => 37,  53 => 34,  51 => 33,  17 => 1,);
    }
}
