/var/cache/dev/twig/5f/5f7c98779e0d52b3eb0ed6efe2cb8177f8c531b95e38ba565f2eac56e36a5b87.php
PHP | 210 lines | 170 code | 28 blank | 12 comment | 13 complexity | e986d173887da5ce53c739a1cc2321a4 MD5 | raw file
Possible License(s): LGPL-2.0, Unlicense, Apache-2.0, BSD-3-Clause
- <?php
- /* @NextOp/XXXarticle/show.html.twig */
- class __TwigTemplate_1eeb0ea95da70640e5f6db0cd456bba11edbaab3b110f2cb2eef040d69eab297 extends Twig_Template
- {
- private $source;
- public function __construct(Twig_Environment $env)
- {
- parent::__construct($env);
- $this->source = $this->getSourceContext();
- // line 1
- $this->parent = $this->loadTemplate("@NextOp/Default/index.html.twig", "@NextOp/XXXarticle/show.html.twig", 1);
- $this->blocks = array(
- 'body' => array($this, 'block_body'),
- );
- }
- protected function doGetParent(array $context)
- {
- return "@NextOp/Default/index.html.twig";
- }
- protected function doDisplay(array $context, array $blocks = array())
- {
- $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
- $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@NextOp/XXXarticle/show.html.twig"));
- $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
- $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@NextOp/XXXarticle/show.html.twig"));
- $this->parent->display($context, array_merge($this->blocks, $blocks));
-
- $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
-
- $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
- }
- // line 3
- public function block_body($context, array $blocks = array())
- {
- $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
- $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body"));
- $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
- $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body"));
- // line 4
- echo " <h1>Article</h1>
- <table class=\"table\">
- <tbody>
- <tr>
- <th scope=\"col\">N°</th>
- <td>";
- // line 10
- echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new Twig_Error_Runtime('Variable "article" does not exist.', 10, $this->source); })()), "id", array()), "html", null, true);
- echo "</td>
- </tr>
- <tr>
- <th scope=\"col\">Titre</th>
- <td>";
- // line 14
- echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new Twig_Error_Runtime('Variable "article" does not exist.', 14, $this->source); })()), "title", array()), "html", null, true);
- echo "</td>
- </tr>
- <tr>
- <th scope=\"col\">Contenu</th>
- <td>";
- // line 18
- echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new Twig_Error_Runtime('Variable "article" does not exist.', 18, $this->source); })()), "content", array()), "html", null, true);
- echo "</td>
- </tr>
- <tr>
- <th scope=\"col\">Créé le</th>
- <td>";
- // line 22
- if (twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new Twig_Error_Runtime('Variable "article" does not exist.', 22, $this->source); })()), "createdAt", array())) {
- echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new Twig_Error_Runtime('Variable "article" does not exist.', 22, $this->source); })()), "createdAt", array()), "Y-m-d H:i:s"), "html", null, true);
- }
- echo "</td>
- </tr>
- <tr>
- <th scope=\"col\">Mis à jour le</th>
- <td>";
- // line 26
- if (twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new Twig_Error_Runtime('Variable "article" does not exist.', 26, $this->source); })()), "updatedAt", array())) {
- echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new Twig_Error_Runtime('Variable "article" does not exist.', 26, $this->source); })()), "updatedAt", array()), "Y-m-d H:i:s"), "html", null, true);
- }
- echo "</td>
- </tr>
- <tr>
- <th scope=\"col\">Photo</th>
- <td><img src=\"";
- // line 30
- echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("web/bundles/nextop/photos/" . twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new Twig_Error_Runtime('Variable "article" does not exist.', 30, $this->source); })()), "photo", array()))), "html", null, true);
- echo "\" height=\"100px\" width=\"250px\"></td>
- ";
- // line 32
- echo " </tr>
- </tbody>
- </table>
- <ul>
- <li>
- <a href=\"";
- // line 38
- echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("article_index");
- echo "\">Retour à la liste</a>
- </li>
- <li>
- <a href=\"";
- // line 41
- echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("article_edit", array("id" => twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new Twig_Error_Runtime('Variable "article" does not exist.', 41, $this->source); })()), "id", array()))), "html", null, true);
- echo "\">Modifier</a>
- </li>
- <li>
- ";
- // line 44
- echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["delete_form"]) || array_key_exists("delete_form", $context) ? $context["delete_form"] : (function () { throw new Twig_Error_Runtime('Variable "delete_form" does not exist.', 44, $this->source); })()), 'form_start');
- echo "
- <input type=\"submit\" value=\"Supprimer\">
- ";
- // line 46
- echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["delete_form"]) || array_key_exists("delete_form", $context) ? $context["delete_form"] : (function () { throw new Twig_Error_Runtime('Variable "delete_form" does not exist.', 46, $this->source); })()), 'form_end');
- echo "
- </li>
- </ul>
- ";
-
- $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
-
- $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
- }
- public function getTemplateName()
- {
- return "@NextOp/XXXarticle/show.html.twig";
- }
- public function isTraitable()
- {
- return false;
- }
- public function getDebugInfo()
- {
- return array ( 129 => 46, 124 => 44, 118 => 41, 112 => 38, 104 => 32, 100 => 30, 91 => 26, 82 => 22, 75 => 18, 68 => 14, 61 => 10, 53 => 4, 44 => 3, 15 => 1,);
- }
- public function getSourceContext()
- {
- return new Twig_Source("{% extends '@NextOp/Default/index.html.twig' %}
- {% block body %}
- <h1>Article</h1>
- <table class=\"table\">
- <tbody>
- <tr>
- <th scope=\"col\">N°</th>
- <td>{{ article.id }}</td>
- </tr>
- <tr>
- <th scope=\"col\">Titre</th>
- <td>{{ article.title }}</td>
- </tr>
- <tr>
- <th scope=\"col\">Contenu</th>
- <td>{{ article.content }}</td>
- </tr>
- <tr>
- <th scope=\"col\">Créé le</th>
- <td>{% if article.createdAt %}{{ article.createdAt|date('Y-m-d H:i:s') }}{% endif %}</td>
- </tr>
- <tr>
- <th scope=\"col\">Mis à jour le</th>
- <td>{% if article.updatedAt %}{{ article.updatedAt|date('Y-m-d H:i:s') }}{% endif %}</td>
- </tr>
- <tr>
- <th scope=\"col\">Photo</th>
- <td><img src=\"{{ asset('web/bundles/nextop/photos/' ~ article.photo) }}\" height=\"100px\" width=\"250px\"></td>
- {#<td>{{ article.photo }}</td>#}
- </tr>
- </tbody>
- </table>
- <ul>
- <li>
- <a href=\"{{ path('article_index') }}\">Retour à la liste</a>
- </li>
- <li>
- <a href=\"{{ path('article_edit', { 'id': article.id }) }}\">Modifier</a>
- </li>
- <li>
- {{ form_start(delete_form) }}
- <input type=\"submit\" value=\"Supprimer\">
- {{ form_end(delete_form) }}
- </li>
- </ul>
- {% endblock %}
- ", "@NextOp/XXXarticle/show.html.twig", "/Users/sicomore/Documents/PRO/Etudes-Pro/Etudes-Diplomes/Google_Drive_MEB/IFOCOP/IFOCOP/Cours/Symfony/next_op_exercise/next-op-exercise/src/NextOpBundle/Resources/views/XXXarticle/show.html.twig");
- }
- }