Skip to content

Commit

Permalink
Entrada edit con el tema de los linkRoute
Browse files Browse the repository at this point in the history
  • Loading branch information
gerMdz committed Apr 23, 2022
1 parent d3f78e0 commit 9a09c01
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 13 deletions.
1 change: 0 additions & 1 deletion src/Form/EntradaType.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ class EntradaType extends AbstractType
*/
public function __construct(PrincipalRepository $principalRepository)
{

$this->principalRepository = $principalRepository;
}
public function buildForm(FormBuilderInterface $builder, array $options)
Expand Down
30 changes: 18 additions & 12 deletions templates/admin/entrada/edit.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,35 @@

{% block stylesheets %}
{{ parent() }}

{{ encore_entry_link_tags('select2-parent') }}
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/dropzone/5.7.1/min/dropzone.min.css"
integrity="sha256-AgL8yEmNfLtCpH+gYp9xqJwiDITGqcwAbI8tCfnY2lw=" crossorigin="anonymous"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Sortable/1.10.2/Sortable.min.js"
integrity="sha512-ELgdXEUQM5x+vB2mycmnSCsiDZWQYXKwlzh9+p+Hff4f5LA+uf0w2pOp3j7UAuSAajxfEzmYZNOOLQuiotrt9Q=="
crossorigin="anonymous"></script>

{% endblock %}
{% block sidebar %}
{% endblock %}
{% block buttonSidebar %}
{% endblock %}
{% block navHeader %}
{% endblock %}
{% block navHeaderMenu %}
{% endblock %}
{% block navHeaderUser %}

{% block nav %}
{{ include('admin/_nav.html.twig', {'marca_label': 'entrada'}) }}
{% endblock %}

{% block breadcrumb %}
{{ encore_entry_link_tags('select2-parent') }}
{{ parent()}}
<li class="breadcrumb-item ">
<span>
<a href="{{path('admin_entrada_index')}}">
Entradas
</a>
</span>
</li>
<li class="breadcrumb-item active ">
<span>
Edición
</span>
</li>
{% endblock %}


{% block content %}
<div class="container">
{% for message in app.flashes('error') %}
Expand Down

0 comments on commit 9a09c01

Please sign in to comment.