PageRenderTime 682ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 1ms

/var/cache/dev/twig/5f/5f7c98779e0d52b3eb0ed6efe2cb8177f8c531b95e38ba565f2eac56e36a5b87.php

https://bitbucket.org/sicomore/next-op-exercise
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
  1. <?php
  2. /* @NextOp/XXXarticle/show.html.twig */
  3. class __TwigTemplate_1eeb0ea95da70640e5f6db0cd456bba11edbaab3b110f2cb2eef040d69eab297 extends Twig_Template
  4. {
  5. private $source;
  6. public function __construct(Twig_Environment $env)
  7. {
  8. parent::__construct($env);
  9. $this->source = $this->getSourceContext();
  10. // line 1
  11. $this->parent = $this->loadTemplate("@NextOp/Default/index.html.twig", "@NextOp/XXXarticle/show.html.twig", 1);
  12. $this->blocks = array(
  13. 'body' => array($this, 'block_body'),
  14. );
  15. }
  16. protected function doGetParent(array $context)
  17. {
  18. return "@NextOp/Default/index.html.twig";
  19. }
  20. protected function doDisplay(array $context, array $blocks = array())
  21. {
  22. $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  23. $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@NextOp/XXXarticle/show.html.twig"));
  24. $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  25. $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@NextOp/XXXarticle/show.html.twig"));
  26. $this->parent->display($context, array_merge($this->blocks, $blocks));
  27. $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  28. $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  29. }
  30. // line 3
  31. public function block_body($context, array $blocks = array())
  32. {
  33. $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  34. $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body"));
  35. $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  36. $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body"));
  37. // line 4
  38. echo " <h1>Article</h1>
  39. <table class=\"table\">
  40. <tbody>
  41. <tr>
  42. <th scope=\"col\">N°</th>
  43. <td>";
  44. // line 10
  45. 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);
  46. echo "</td>
  47. </tr>
  48. <tr>
  49. <th scope=\"col\">Titre</th>
  50. <td>";
  51. // line 14
  52. 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);
  53. echo "</td>
  54. </tr>
  55. <tr>
  56. <th scope=\"col\">Contenu</th>
  57. <td>";
  58. // line 18
  59. 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);
  60. echo "</td>
  61. </tr>
  62. <tr>
  63. <th scope=\"col\">Créé le</th>
  64. <td>";
  65. // line 22
  66. 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())) {
  67. 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);
  68. }
  69. echo "</td>
  70. </tr>
  71. <tr>
  72. <th scope=\"col\">Mis à jour le</th>
  73. <td>";
  74. // line 26
  75. 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())) {
  76. 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);
  77. }
  78. echo "</td>
  79. </tr>
  80. <tr>
  81. <th scope=\"col\">Photo</th>
  82. <td><img src=\"";
  83. // line 30
  84. 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);
  85. echo "\" height=\"100px\" width=\"250px\"></td>
  86. ";
  87. // line 32
  88. echo " </tr>
  89. </tbody>
  90. </table>
  91. <ul>
  92. <li>
  93. <a href=\"";
  94. // line 38
  95. echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("article_index");
  96. echo "\">Retour à la liste</a>
  97. </li>
  98. <li>
  99. <a href=\"";
  100. // line 41
  101. 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);
  102. echo "\">Modifier</a>
  103. </li>
  104. <li>
  105. ";
  106. // line 44
  107. 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');
  108. echo "
  109. <input type=\"submit\" value=\"Supprimer\">
  110. ";
  111. // line 46
  112. 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');
  113. echo "
  114. </li>
  115. </ul>
  116. ";
  117. $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  118. $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  119. }
  120. public function getTemplateName()
  121. {
  122. return "@NextOp/XXXarticle/show.html.twig";
  123. }
  124. public function isTraitable()
  125. {
  126. return false;
  127. }
  128. public function getDebugInfo()
  129. {
  130. 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,);
  131. }
  132. public function getSourceContext()
  133. {
  134. return new Twig_Source("{% extends '@NextOp/Default/index.html.twig' %}
  135. {% block body %}
  136. <h1>Article</h1>
  137. <table class=\"table\">
  138. <tbody>
  139. <tr>
  140. <th scope=\"col\">N°</th>
  141. <td>{{ article.id }}</td>
  142. </tr>
  143. <tr>
  144. <th scope=\"col\">Titre</th>
  145. <td>{{ article.title }}</td>
  146. </tr>
  147. <tr>
  148. <th scope=\"col\">Contenu</th>
  149. <td>{{ article.content }}</td>
  150. </tr>
  151. <tr>
  152. <th scope=\"col\">Créé le</th>
  153. <td>{% if article.createdAt %}{{ article.createdAt|date('Y-m-d H:i:s') }}{% endif %}</td>
  154. </tr>
  155. <tr>
  156. <th scope=\"col\">Mis à jour le</th>
  157. <td>{% if article.updatedAt %}{{ article.updatedAt|date('Y-m-d H:i:s') }}{% endif %}</td>
  158. </tr>
  159. <tr>
  160. <th scope=\"col\">Photo</th>
  161. <td><img src=\"{{ asset('web/bundles/nextop/photos/' ~ article.photo) }}\" height=\"100px\" width=\"250px\"></td>
  162. {#<td>{{ article.photo }}</td>#}
  163. </tr>
  164. </tbody>
  165. </table>
  166. <ul>
  167. <li>
  168. <a href=\"{{ path('article_index') }}\">Retour à la liste</a>
  169. </li>
  170. <li>
  171. <a href=\"{{ path('article_edit', { 'id': article.id }) }}\">Modifier</a>
  172. </li>
  173. <li>
  174. {{ form_start(delete_form) }}
  175. <input type=\"submit\" value=\"Supprimer\">
  176. {{ form_end(delete_form) }}
  177. </li>
  178. </ul>
  179. {% endblock %}
  180. ", "@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");
  181. }
  182. }