This commit is contained in:
afornerot 2024-11-16 09:32:15 +01:00
parent 02906d09e2
commit e26fdb13f1
4 changed files with 18 additions and 3 deletions

View File

@ -7,6 +7,7 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Form\Extension\Core\Type\HiddenType;
use Symfony\Component\Form\Extension\Core\Type\DateTimeType;
use FOS\CKEditorBundle\Form\Type\CKEditorType;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
@ -42,6 +43,15 @@ class IllustrationType extends AbstractType
]
);
$builder->add('submittime',
DateTimeType::class, [
"label" =>"Date de Publication",
"date_widget" => "single_text",
"time_widget" => "single_text",
]
);
if($options["by"]=="admin") {
$builder->add('category',
EntityType::class, [

View File

@ -194,7 +194,7 @@
</div>
{% if not items is empty %}
<div class="itemmenu" style="width:270px; display:flex; margin:20px auto 0px auto; flex-wrap: wrap;">
<div class="itemmenu" style="max-width:270px; display:flex; margin:20px auto 0px auto; flex-wrap: wrap; justify-content: center;">
{% for item in items %}
{% if item.title|lower != "ninefolio" %}
<a href="{{ item.url }}" target="_blank">
@ -273,7 +273,7 @@
<div id="membre" class="grid-item grid-item-full"><h1 class="mt-5 mb-3">Membres</h1></div>
{% for user in users %}
<div class="grid-item grid-item-size grid-item-size-15 grid-item-size-small-3 grid-item-size-noresize" style="padding:0px 5px;">
<div class="grid-item grid-item-size grid-item-size-15 grid-item-size-small-3 grid-item-size-noresize" style="padding:0px 5px;margin-bottom:10px;">
<a class="member" href="{{path("app_home_user",{userpseudo:user.slug})}}">
<img src="/{{ appAlias }}/uploads/avatar/{{ user.avatar }}" class="mb-2">
<small>{{user.pseudo}}</small>

View File

@ -63,7 +63,11 @@
{% if not webzines is empty %}
<i class="fa fa-circle fa-fw"></i> <a href="#webzine">Webzines</a>&nbsp;
{% endif %}
{% if not links is empty %}
<i class="fa fa-circle fa-fw"></i> <a href="#link">Liens</a>&nbsp;
{% endif %}
<i class="fa fa-circle fa-fw"></i> <a href="#contact">Contact</a>&nbsp;
</div>

View File

@ -62,6 +62,7 @@
<div class="card-body">
{{ form_row(form.name) }}
{{ form_row(form.category) }}
{{ form_row(form.submittime) }}
{{ form_row(form.description) }}
</div>