svg
Some checks failed
Cadoles/nineskeletor/pipeline/head There was a failure building this commit

This commit is contained in:
2023-02-16 17:03:53 +01:00
parent 9554b9cdd3
commit eef04429ee
192 changed files with 9375 additions and 17414 deletions

View File

@ -0,0 +1,71 @@
{% extends 'base.html.twig' %}
{% block body %}
{{ form_start(form) }}
<h1 class="page-header">
{% if mode=="submit" %}
Création pin
{% else %}
Modification pin
{% endif %}
</h1>
{{ form_widget(form.submit) }}
<a class="btn btn-secondary" href={{ path('app_pin') }}>Annuler</a>
{% if mode=="update" %}
<a href={{ path('app_pin_delete',{'id':pin.id}) }}
class="btn btn-danger float-right"
data-method="delete" data-csrf="_token:{{ 'csrf' }}"
data-confirm="Êtes-vous sûr de vouloir supprimer cet enregistrement ?">
Supprimer
</a>
{% endif %}
<br><br>
{% if app.session.flashbag.has('error') %}
<div class='alert alert-danger' style='margin: 5px 0px'>
<strong>Erreur</strong><br>
{% for flashMessage in app.session.flashbag.get('error') %}
{{ flashMessage }}<br>
{% endfor %}
</div>
{% endif %}
{% if app.session.flashbag.has('notice') %}
<div class='alert alert-info' style='margin: 5px 0px'>
<strong>Information</strong><br>
{% for flashMessage in app.session.flashbag.get('notice') %}
{{ flashMessage }}<br>
{% endfor %}
</div>
{% endif %}
<div style="width:90px; margin:auto;">
{% set image= "noimage.png" %}
{% if pin.image %}
{% set image= pin.image %}
{% endif %}
<img id="pin_image_img" src="\{{appAlias}}\uploads\pin\{{ image }}" style="width:90px;">
{{ form_widget(form.image) }}
<bouton class="btn btn-info" style="margin:auto;margin-top:10px; margin-bottom:15px;" onClick="ModalLoad('mymodallarge','Pin','{{ path('app_crop01', {"type": "pin", "reportinput": "#pin_image" }) }}');" title='Ajouter une Image'>Modifier</bouton>
</div>
<div class="card">
<div class="card-header">
<i class="fa fa-pencil-alt fa-fw"></i> Informations
</div>
<div class="card-body">
{{ form_row(form.name) }}
{{ form_row(form.subname) }}
{{ form_row(form.description) }}
</div>
</div>
{{ form_end(form) }}
{% endblock %}

View File

@ -0,0 +1,55 @@
{% extends "base.html.twig" %}
{% block body %}
<h1 class="page-header">
pins
</h1>
<p><a class="btn btn-success" href={{ path('app_pin_submit') }}>Ajouter</a></p>
<div class="card">
<div class="card-header">
<i class="fa fa-table fa-fw"></i> Liste des pins
</div>
<div class="card-body">
<div class="dataTable_wrapper">
<table class="table table-striped table-bordered table-hover" id="dataTables" style="width:100%">
<thead>
<tr>
<th width="90px" class="no-sort">Action</th>
<th class="no-string" width="70px">ID</th>
<th>Nom</th>
</tr>
</thead>
<tbody>
{% for pin in pins %}
<tr>
<td>
<a href="{{path("app_pin_update",{id:pin.id})}}"><i class="fa fa-file fa-2x"></i></a>
</td>
<td>{{pin.id}}</td>
<td>{{pin.name}}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{% endblock %}
{% block localscript %}
<script>
$(document).ready(function() {
$('#dataTables').DataTable({
columnDefs: [ { "targets": "no-sort", "orderable": false }, { "targets": "no-string", "type" : "num" } ],
responsive: true,
iDisplayLength: 100,
order: [[ 1, "asc" ]]
});
});
</script>
{% endblock %}

View File

@ -0,0 +1,13 @@
{% extends "base.html.twig" %}
{% block body %}
{% set image= "noimage.png" %}
{% if image %}
{% set image= pin.image %}
{% endif %}
<img id="pin_image_img" src="\{{appAlias}}\uploads\pin\{{ image }}" class="d-block m-auto" style="width:90px;margin-bottom:15px !important" >
{% if pin.subname %}<small>{{ pin.subname }}</small>{%endif%}<br><br>
{{pin.description|raw}}
{% endblock %}