Explorar el Código

Page de login personnalisée (css)

reduction
Guillaume hace 4 años
padre
commit
7a6617b976
Se han modificado 7 ficheros con 39 adiciones y 55 borrados
  1. +39
    -0
      ShopBundle/Resources/public/css/backend/login.css
  2. +0
    -0
      ShopBundle/Resources/views/backend/form/ckfinder_widget.html.twig
  3. +0
    -5
      ShopBundle/Resources/views/default/_delete_form.html.twig
  4. +0
    -4
      ShopBundle/Resources/views/default/_form.html.twig
  5. +0
    -11
      ShopBundle/Resources/views/default/edit.html.twig
  6. +0
    -21
      ShopBundle/Resources/views/default/index.html.twig
  7. +0
    -14
      ShopBundle/Resources/views/default/show.html.twig

+ 39
- 0
ShopBundle/Resources/public/css/backend/login.css Ver fichero

@@ -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 ;
}


ShopBundle/Resources/views/form/ckfinder_widget.html.twig → ShopBundle/Resources/views/backend/form/ckfinder_widget.html.twig Ver fichero


+ 0
- 5
ShopBundle/Resources/views/default/_delete_form.html.twig Ver fichero

@@ -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>

+ 0
- 4
ShopBundle/Resources/views/default/_form.html.twig Ver fichero

@@ -1,4 +0,0 @@
{{ form_start(form) }}
{{ form_widget(form) }}
<button class="btn">{{ button_label|default('Save') }}</button>
{{ form_end(form) }}

+ 0
- 11
ShopBundle/Resources/views/default/edit.html.twig Ver fichero

@@ -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 %}

+ 0
- 21
ShopBundle/Resources/views/default/index.html.twig Ver fichero

@@ -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 %}

+ 0
- 14
ShopBundle/Resources/views/default/show.html.twig Ver fichero

@@ -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 %}

Cargando…
Cancelar
Guardar