diff --git a/src/Form/TypeBlockType.php b/src/Form/TypeBlockType.php index b9d914cf..82ab3e66 100644 --- a/src/Form/TypeBlockType.php +++ b/src/Form/TypeBlockType.php @@ -4,6 +4,8 @@ use App\Entity\TypeBlock; use Symfony\Component\Form\AbstractType; +use Symfony\Component\Form\Extension\Core\Type\CheckboxType; +use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; @@ -12,10 +14,33 @@ class TypeBlockType extends AbstractType public function buildForm(FormBuilderInterface $builder, array $options) { $builder - ->add('name') - ->add('description') - ->add('identifier') - ->add('isActive') + ->add('name', TextType::class, [ + 'label' => 'Que nombre tendrá el nuevo TypeBlock?', + 'attr' =>[ + 'class' => 'form-control' + ], + ]) + ->add('description', TextType::class, [ + 'label' => 'Agregue una descripción para el nuevo TypeBlock', + 'attr' =>[ + 'class' => 'form-control' + ], + ]) + ->add('identifier', TextType::class, [ + 'label' => 'Agregue un identificador único para el nuevo TypeBlock', + 'help' => 'En minúsculas y sin espacios, puede usar guiones medios "-"', + 'attr' =>[ + 'class' => 'form-control' + ], + ]) + ->add('isActive', CheckboxType::class, [ + 'required' => false, + 'label' => 'Activa el TypeBlock?', + 'label_attr' => ['class' => 'form-check-label'], + 'attr' => [ + 'class' => 'form-check-input text-dark', + ], + ]) ; } diff --git a/templates/base_admin_board.html.twig b/templates/base_admin_board.html.twig index c01d534b..58a5583a 100644 --- a/templates/base_admin_board.html.twig +++ b/templates/base_admin_board.html.twig @@ -8,7 +8,7 @@ {% block title %} Bienvenido! {% endblock %} - {{ base.siteName }} - + {% block stylesheets %} diff --git a/templates/bases/_volver.html.twig b/templates/bases/_volver.html.twig index f61a3799..4ab20ee8 100644 --- a/templates/bases/_volver.html.twig +++ b/templates/bases/_volver.html.twig @@ -1,5 +1,5 @@ - diff --git a/templates/button_link/_form.html.twig b/templates/button_link/_form.html.twig index bf20b98f..4b32aecf 100644 --- a/templates/button_link/_form.html.twig +++ b/templates/button_link/_form.html.twig @@ -1,4 +1,4 @@ {{ form_start(form) }} {{ form_widget(form) }} - + {{ form_end(form) }} diff --git a/templates/channel_feed/_form.html.twig b/templates/channel_feed/_form.html.twig index bf20b98f..4b32aecf 100644 --- a/templates/channel_feed/_form.html.twig +++ b/templates/channel_feed/_form.html.twig @@ -1,4 +1,4 @@ {{ form_start(form) }} {{ form_widget(form) }} - + {{ form_end(form) }} diff --git a/templates/comentario/_form.html.twig b/templates/comentario/_form.html.twig index bf20b98f..4b32aecf 100644 --- a/templates/comentario/_form.html.twig +++ b/templates/comentario/_form.html.twig @@ -1,4 +1,4 @@ {{ form_start(form) }} {{ form_widget(form) }} - + {{ form_end(form) }} diff --git a/templates/contacto/_form.html.twig b/templates/contacto/_form.html.twig index bf20b98f..4b32aecf 100644 --- a/templates/contacto/_form.html.twig +++ b/templates/contacto/_form.html.twig @@ -1,4 +1,4 @@ {{ form_start(form) }} {{ form_widget(form) }} - + {{ form_end(form) }} diff --git a/templates/derivada/_form.html.twig b/templates/derivada/_form.html.twig index bf20b98f..4b32aecf 100644 --- a/templates/derivada/_form.html.twig +++ b/templates/derivada/_form.html.twig @@ -1,4 +1,4 @@ {{ form_start(form) }} {{ form_widget(form) }} - + {{ form_end(form) }} diff --git a/templates/enlace_corto/_form.html.twig b/templates/enlace_corto/_form.html.twig index bf20b98f..4b32aecf 100644 --- a/templates/enlace_corto/_form.html.twig +++ b/templates/enlace_corto/_form.html.twig @@ -1,4 +1,4 @@ {{ form_start(form) }} {{ form_widget(form) }} - + {{ form_end(form) }} diff --git a/templates/group_celebration/_form.html.twig b/templates/group_celebration/_form.html.twig index bf20b98f..4b32aecf 100644 --- a/templates/group_celebration/_form.html.twig +++ b/templates/group_celebration/_form.html.twig @@ -1,4 +1,4 @@ {{ form_start(form) }} {{ form_widget(form) }} - + {{ form_end(form) }} diff --git a/templates/index_alameda/_form.html.twig b/templates/index_alameda/_form.html.twig index bf20b98f..4b32aecf 100755 --- a/templates/index_alameda/_form.html.twig +++ b/templates/index_alameda/_form.html.twig @@ -1,4 +1,4 @@ {{ form_start(form) }} {{ form_widget(form) }} - + {{ form_end(form) }} diff --git a/templates/invitado/_form.html.twig b/templates/invitado/_form.html.twig index bf20b98f..4b32aecf 100644 --- a/templates/invitado/_form.html.twig +++ b/templates/invitado/_form.html.twig @@ -1,4 +1,4 @@ {{ form_start(form) }} {{ form_widget(form) }} - + {{ form_end(form) }} diff --git a/templates/item_feed/_form.html.twig b/templates/item_feed/_form.html.twig index bf20b98f..4b32aecf 100644 --- a/templates/item_feed/_form.html.twig +++ b/templates/item_feed/_form.html.twig @@ -1,4 +1,4 @@ {{ form_start(form) }} {{ form_widget(form) }} - + {{ form_end(form) }} diff --git a/templates/meta_base/_form.html.twig b/templates/meta_base/_form.html.twig index bf20b98f..4b32aecf 100755 --- a/templates/meta_base/_form.html.twig +++ b/templates/meta_base/_form.html.twig @@ -1,4 +1,4 @@ {{ form_start(form) }} {{ form_widget(form) }} - + {{ form_end(form) }} diff --git a/templates/ministerio/_form.html.twig b/templates/ministerio/_form.html.twig index bf20b98f..4b32aecf 100644 --- a/templates/ministerio/_form.html.twig +++ b/templates/ministerio/_form.html.twig @@ -1,4 +1,4 @@ {{ form_start(form) }} {{ form_widget(form) }} - + {{ form_end(form) }} diff --git a/templates/model_template/_form.html.twig b/templates/model_template/_form.html.twig index 9328bd56..e4d21e0e 100644 --- a/templates/model_template/_form.html.twig +++ b/templates/model_template/_form.html.twig @@ -1,4 +1,4 @@ {{ form_start(form) }} {{ form_widget(form) }} - + {{ form_end(form) }} diff --git a/templates/page_index/_form.html.twig b/templates/page_index/_form.html.twig index bf20b98f..4b32aecf 100755 --- a/templates/page_index/_form.html.twig +++ b/templates/page_index/_form.html.twig @@ -1,4 +1,4 @@ {{ form_start(form) }} {{ form_widget(form) }} - + {{ form_end(form) }} diff --git a/templates/relacion_section_entrada/_form.html.twig b/templates/relacion_section_entrada/_form.html.twig index bf20b98f..4b32aecf 100644 --- a/templates/relacion_section_entrada/_form.html.twig +++ b/templates/relacion_section_entrada/_form.html.twig @@ -1,4 +1,4 @@ {{ form_start(form) }} {{ form_widget(form) }} - + {{ form_end(form) }} diff --git a/templates/reservante/_form.html.twig b/templates/reservante/_form.html.twig index bf20b98f..4b32aecf 100644 --- a/templates/reservante/_form.html.twig +++ b/templates/reservante/_form.html.twig @@ -1,4 +1,4 @@ {{ form_start(form) }} {{ form_widget(form) }} - + {{ form_end(form) }} diff --git a/templates/roles/_form.html.twig b/templates/roles/_form.html.twig index bf20b98f..4b32aecf 100644 --- a/templates/roles/_form.html.twig +++ b/templates/roles/_form.html.twig @@ -1,4 +1,4 @@ {{ form_start(form) }} {{ form_widget(form) }} - + {{ form_end(form) }} diff --git a/templates/tipo_contacto/_form.html.twig b/templates/tipo_contacto/_form.html.twig index bf20b98f..4b32aecf 100644 --- a/templates/tipo_contacto/_form.html.twig +++ b/templates/tipo_contacto/_form.html.twig @@ -1,4 +1,4 @@ {{ form_start(form) }} {{ form_widget(form) }} - + {{ form_end(form) }} diff --git a/templates/type_block/_form.html.twig b/templates/type_block/_form.html.twig index bf20b98f..41617547 100644 --- a/templates/type_block/_form.html.twig +++ b/templates/type_block/_form.html.twig @@ -1,4 +1,4 @@ {{ form_start(form) }} {{ form_widget(form) }} - + {{ form_end(form) }} diff --git a/templates/type_block/edit.html.twig b/templates/type_block/edit.html.twig index 4b139169..58b76e83 100644 --- a/templates/type_block/edit.html.twig +++ b/templates/type_block/edit.html.twig @@ -1,8 +1,8 @@ -{% extends 'base.html.twig' %} +{% extends 'base_admin_board.html.twig' %} {% block title %}Edit TypeBlock{% endblock %} -{% block body %} +{% block content %}

Edit TypeBlock

{{ include('type_block/_form.html.twig', {'button_label': 'Update'}) }} diff --git a/templates/type_block/index.html.twig b/templates/type_block/index.html.twig index 64a0a03f..0a8c3e0c 100644 --- a/templates/type_block/index.html.twig +++ b/templates/type_block/index.html.twig @@ -1,41 +1,61 @@ -{% extends 'base.html.twig' %} +{% extends 'base_admin_board.html.twig' %} {% block title %}TypeBlock index{% endblock %} -{% block body %} -

TypeBlock index

+{% block content %} +
+
+
+

TypeBLock (Bloques Principales de AlamedaCMS)

+

Listado

+
+
+
+ + {{ include('bases/_crear_nuevo.html.twig') }} + - - - - - - - - - - - - - {% for type_block in type_blocks %} - - - - - - - - - {% else %} - - - - {% endfor %} - -
IdNameDescriptionIdentifierIsActiveactions
{{ type_block.id }}{{ type_block.name }}{{ type_block.description }}{{ type_block.identifier }}{{ type_block.isActive ? 'Yes' : 'No' }} - show - edit -
no records found
+ + + + + + + + + + + + + {% for type_block in type_blocks %} + + + + + + + + + {% else %} + + + + {% endfor %} + +
IdNombreDescripciónIdentificadorEstá Activo?
{{ type_block.id }}{{ type_block.name }}{{ type_block.description }}{{ type_block.identifier }}{{ type_block.isActive ? ' ': '' }} + + {% include 'bases/_ver.html.twig' %} + + + {% include 'bases/_editar.html.twig' %} + +
No se encontraron Bloques
- Create new + + {% include 'bases/_crear_nuevo.html.twig' %} + +
+
+
+
{% endblock %} diff --git a/templates/type_block/new.html.twig b/templates/type_block/new.html.twig index 674f57cd..4b349d83 100644 --- a/templates/type_block/new.html.twig +++ b/templates/type_block/new.html.twig @@ -1,11 +1,27 @@ -{% extends 'base.html.twig' %} +{% extends 'base_admin_board.html.twig' %} -{% block title %}New TypeBlock{% endblock %} +{% block stylesheets %} + + + +{% endblock %} -{% block body %} -

Create new TypeBlock

+{% block title %}Nuevo TypeBlock{% endblock %} - {{ include('type_block/_form.html.twig') }} +{% block content %} +
+
+
+

TypeBLock (Bloques Principales de AlamedaCMS)

+

Nuevo TypeBLock

+
+
- back to list + {{ include('type_block/_form.html.twig') }} + + {% include 'bases/_volver.html.twig' %} + +
+
+
{% endblock %} diff --git a/templates/user/_form.html.twig b/templates/user/_form.html.twig index bf20b98f..4b32aecf 100644 --- a/templates/user/_form.html.twig +++ b/templates/user/_form.html.twig @@ -1,4 +1,4 @@ {{ form_start(form) }} {{ form_widget(form) }} - + {{ form_end(form) }}