First Commit

This commit is contained in:
marco
2026-09-01 10:46:29 -03:00
commit bf96b77e9c
10000 changed files with 3508600 additions and 0 deletions
+277
View File
@@ -0,0 +1,277 @@
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* configindex/views/admin/index.twig */
class __TwigTemplate_591e0e7c86df9c57ac4a5e5da0f4c46f extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "layouts/dashboard.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$this->parent = $this->load("layouts/dashboard.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
}
// line 3
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_title(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["title"] ?? null), "html", null, true);
yield " - ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["platformName"] ?? null), "html", null, true);
yield from [];
}
// line 5
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
// line 6
yield "<div class=\"container-fluid px-4\">
<h1 class=\"mt-4\">";
// line 7
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["title"] ?? null), "html", null, true);
yield "</h1>
<ol class=\"breadcrumb mb-4\">
<li class=\"breadcrumb-item\"><a href=\"";
// line 9
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()("dashboard"), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("layout.menu.dashboard"), "html", null, true);
yield "</a></li>
<li class=\"breadcrumb-item active\">";
// line 10
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["title"] ?? null), "html", null, true);
yield "</li>
</ol>
<div class=\"card mb-4\">
<div class=\"card-header d-flex justify-content-between align-items-center\">
<div class=\"d-flex align-items-center\">
<i class=\"bi bi-file-earmark-text me-2\"></i>
<span class=\"me-3\">";
// line 17
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("configindex.list_title"), "html", null, true);
yield "</span>
<form action=\"";
// line 19
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()("admin/configindex"), "html", null, true);
yield "\" method=\"GET\" class=\"d-inline-flex align-items-center\">
<label class=\"me-2 small text-muted\">Editar para o Tema:</label>
<select name=\"theme\" class=\"form-select form-select-sm\" onchange=\"this.form.submit()\" style=\"width: auto;\">
";
// line 22
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(($context["availableThemes"] ?? null));
foreach ($context['_seq'] as $context["slug"] => $context["name"]) {
// line 23
yield " <option value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["slug"], "html", null, true);
yield "\" ";
yield (((($context["currentTheme"] ?? null) == $context["slug"])) ? ("selected") : (""));
yield ">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["name"], "html", null, true);
yield "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['slug'], $context['name'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 25
yield " </select>
</form>
</div>
<a href=\"";
// line 28
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()("admin/configindex/create"), "html", null, true);
yield "\" class=\"btn btn-success btn-sm\">
<i class=\"bi bi-plus-circle\"></i> Nova Página
</a>
</div>
<div class=\"card-body\">
<div class=\"table-responsive\">
<table class=\"table table-bordered table-hover\" width=\"100%\" cellspacing=\"0\">
<thead class=\"table-light\">
<tr>
<th>";
// line 37
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("configindex.page_name"), "html", null, true);
yield "</th>
<th>Localização do Arquivo</th>
<th>";
// line 39
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("configindex.actions"), "html", null, true);
yield "</th>
</tr>
</thead>
<tbody>
";
// line 43
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(($context["pages"] ?? null));
foreach ($context['_seq'] as $context["key"] => $context["name"]) {
// line 44
yield " <tr>
<td>
<strong>";
// line 46
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["name"], "html", null, true);
yield "</strong> <small class=\"text-muted\">(";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["key"], "html", null, true);
yield ")</small>
</td>
<td>
<code class=\"small\">
";
// line 50
if ((($context["currentTheme"] ?? null) == "default")) {
// line 51
yield " modules/index/views/";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["key"], "html", null, true);
yield ".twig
";
} else {
// line 53
yield " themes/";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["currentTheme"] ?? null), "html", null, true);
yield "/modules/index/views/";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["key"], "html", null, true);
yield ".twig
";
}
// line 55
yield " </code>
</td>
<td>
<div class=\"btn-group\" role=\"group\">
<a href=\"";
// line 59
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()((("admin/configindex/" . $context["key"]) . "/edit")), "html", null, true);
yield "?theme=";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["currentTheme"] ?? null), "html", null, true);
yield "\" class=\"btn btn-primary btn-sm\" title=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("configindex.edit"), "html", null, true);
yield "\">
<i class=\"bi bi-pencil\"></i> Editar
</a>
";
// line 63
if ((($context["currentTheme"] ?? null) == "default")) {
// line 64
yield " <form action=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()((("admin/configindex/" . $context["key"]) . "/toggle-status")), "html", null, true);
yield "\" method=\"POST\" style=\"display:inline;\">
<button type=\"submit\" class=\"btn btn-outline-warning btn-sm\" title=\"Ativar/Desativar\">
<i class=\"bi bi-eye\"></i>
</button>
</form>
";
// line 70
if (($context["key"] != "index")) {
// line 71
yield " <form action=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()((("admin/configindex/" . $context["key"]) . "/delete")), "html", null, true);
yield "\" method=\"POST\" style=\"display:inline;\" onsubmit=\"return confirm('Tem certeza que deseja excluir esta página e todos os seus arquivos?');\">
<button type=\"submit\" class=\"btn btn-outline-danger btn-sm\" title=\"Excluir\">
<i class=\"bi bi-trash\"></i>
</button>
</form>
";
}
// line 77
yield " ";
}
// line 78
yield " </div>
</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['key'], $context['name'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 82
yield " </tbody>
</table>
</div>
</div>
</div>
</div>
";
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "configindex/views/admin/index.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 239 => 82, 230 => 78, 227 => 77, 217 => 71, 215 => 70, 205 => 64, 203 => 63, 192 => 59, 186 => 55, 178 => 53, 172 => 51, 170 => 50, 161 => 46, 157 => 44, 153 => 43, 146 => 39, 141 => 37, 129 => 28, 124 => 25, 111 => 23, 107 => 22, 101 => 19, 96 => 17, 86 => 10, 80 => 9, 75 => 7, 72 => 6, 65 => 5, 52 => 3, 41 => 1,);
}
public function getSourceContext(): Source
{
return new Source("", "configindex/views/admin/index.twig", "/app/modules/configindex/views/admin/index.twig");
}
}