@@ -0,0 +1,39 @@ | |||
#login-page .main-sidebar, | |||
#login-page .content-top { | |||
display: none; | |||
} | |||
#login-page .wrapper { | |||
display: block ; | |||
} | |||
#login-page .main-header { | |||
text-align: center ; | |||
display: block ; | |||
width: 100% ; | |||
margin-bottom: 30px ; | |||
} | |||
#login-page .main-header .navbar { | |||
display: block ; | |||
width: 100% ; | |||
} | |||
#login-page .content-wrapper { | |||
display: block ; | |||
width: 500px ; | |||
margin: 0px auto ; | |||
grid-area: none ; | |||
} | |||
#login-page form .form-row { | |||
margin-bottom: 20px ; | |||
} | |||
#login-page .remember label { | |||
position: relative ; | |||
top: 4px ; | |||
left: 5px ; | |||
} | |||
@@ -1,5 +0,0 @@ | |||
<form method="post" action="{{ path(routePrefix~'_delete', {'id': entity.id}) }}" onsubmit="return confirm('Are you sure you want to delete this item?');"> | |||
<input type="hidden" name="_method" value="DELETE"> | |||
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ entity.id) }}"> | |||
<button class="btn">Delete</button> | |||
</form> |
@@ -1,4 +0,0 @@ | |||
{{ form_start(form) }} | |||
{{ form_widget(form) }} | |||
<button class="btn">{{ button_label|default('Save') }}</button> | |||
{{ form_end(form) }} |
@@ -1,11 +0,0 @@ | |||
{% extends 'base.html.twig' %} | |||
{% block title %}Edit Entity{% endblock %} | |||
{% block body %} | |||
<h1>Edit CreditConfig</h1> | |||
{{ include('@LcShop/default/_form.html.twig', {'button_label': 'Update'}) }} | |||
{% endblock %} |
@@ -1,21 +0,0 @@ | |||
{% extends 'base.html.twig' %} | |||
{% block title %}CreditConfig index{% endblock %} | |||
{% block body %} | |||
<h1>liste entités par défaut </h1> | |||
<ul> | |||
{% for entity in entities %} | |||
<li> | |||
{{ dump(entity) }} | |||
<a href="{{ path(routePrefix~'_edit', {"id" : entity.id}) }}">Editer cette entité</a> | |||
<a href="{{ path(routePrefix~'_show', {"id" : entity.id}) }}">Afficher cette entité</a> | |||
{{ include('@LcShop/default/_delete_form.html.twig') }} | |||
</li> | |||
{% else %} | |||
Aucun enregistrement | |||
{% endfor %} | |||
</ul> | |||
<p> <a href="{{ path(routePrefix~'_edit', {"id" : 'new'}) }}">Ajouter une nouvelle entité</a></p> | |||
{% endblock %} |
@@ -1,14 +0,0 @@ | |||
{% extends 'base.html.twig' %} | |||
{% block title %}CreditConfig{% endblock %} | |||
{% block body %} | |||
<h1>My entity</h1> | |||
{{ dump(entity) }} | |||
<a href="{{ path(routePrefix~'_index') }}">back to list</a> | |||
<a href="{{ path(routePrefix~'_edit', {'id': entity.id}) }}">edit</a> | |||
{{ include('@LcShop/default/_delete_form.html.twig') }} | |||
{% endblock %} |