update post admin form

This commit is contained in:
Simon Vieille 2022-05-08 23:19:09 +02:00
parent afc6f22c49
commit a473fd6ec3
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -1,7 +1,7 @@
<div class="row">
<div class="col-md-3 p-3">
<div class="row">
{% for item in ['title', 'categories', 'slug'] %}
{% for item in ['categories', 'slug'] %}
<div class="col-md-12">
{{ form_row(form[item]) }}
</div>
@ -31,15 +31,21 @@
</div>
{% endfor %}
</div>
<div data-collection-add="collection-tags" class="collection-add">
<div data-collection-add="collection-tags" class="collection-add mb-4">
<span class="btn btn-primary" data-collection-add="collection-tags">
<span class="fa fa-plus"></span>
{{ 'Nouveau tag'|trans }}
</span>
</div>
{% for item in ['image', 'status', 'contentFormat', 'publishedAt'] %}
<div class="col-md-12">
{{ form_row(form[item]) }}
</div>
{% endfor %}
</div>
</div>
<div class="col-md-7 pt-3 pb-3">
<div class="col-md-9 pt-3 pb-3">
<div class="row">
<ul class="col-md-12 nav nav-pills">
<li class="nav-item">
@ -56,7 +62,7 @@
<div class="col-md-12 tab-content">
<div class="tab-pane show active p-3" id="form-post-content">
<div class="row">
{% for item in ['content'] %}
{% for item in ['title', 'content'] %}
<div class="col-md-12">
{{ form_row(form[item]) }}
</div>
@ -97,15 +103,6 @@
</div>
</div>
<div class="col-md-2 p-3">
<div class="row">
{% for item in ['image', 'status', 'contentFormat', 'publishedAt'] %}
<div class="col-md-12">
{{ form_row(form[item]) }}
</div>
{% endfor %}
</div>
</div>
</div>
<template type="text/template" id="collection-tags">