mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-25 00:53:48 +00:00
add a page for modifying password for user
This commit is contained in:
@@ -13,7 +13,7 @@ chill_main_admin_scope:
|
||||
chill_main_admin:
|
||||
resource: "@ChillMainBundle/Resources/config/routing/center.yml"
|
||||
prefix: "{_locale}/admin/center"
|
||||
|
||||
|
||||
chill_main_exports:
|
||||
resource: "@ChillMainBundle/Resources/config/routing/exports.yml"
|
||||
prefix: "{_locale}/exports"
|
||||
@@ -62,11 +62,11 @@ chill_main_admin_permissions:
|
||||
chill_main_search:
|
||||
path: /{_locale}/search
|
||||
defaults: { _controller: ChillMainBundle:Search:search }
|
||||
|
||||
|
||||
chill_main_advanced_search:
|
||||
path: /{_locale}/search/advanced/{name}
|
||||
defaults: { _controller: ChillMainBundle:Search:advancedSearch }
|
||||
|
||||
|
||||
chill_main_advanced_search_list:
|
||||
path: /{_locale}/search/advanced
|
||||
defaults: { _controller: ChillMainBundle:Search:advancedSearchList }
|
||||
@@ -85,4 +85,8 @@ logout:
|
||||
user:
|
||||
order: 10
|
||||
label: Logout
|
||||
icon: power-off
|
||||
icon: power-off
|
||||
|
||||
password:
|
||||
path: /password
|
||||
defaults: { _controller: ChillMainBundle:Password:userPassword }
|
||||
|
34
Resources/views/Password/password.html.twig
Normal file
34
Resources/views/Password/password.html.twig
Normal file
@@ -0,0 +1,34 @@
|
||||
{#
|
||||
* Copyright (C) 2014-2015, Champs Libres Cooperative SCRLFS,
|
||||
<info@champs-libres.coop> / <http://www.champs-libres.coop>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#}
|
||||
|
||||
|
||||
{% extends "ChillMainBundle::layout.html.twig" %}
|
||||
|
||||
|
||||
{% block title %}{{"Change my password"|trans}}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<h1>{{ 'Choose a new password'|trans }}</h1>
|
||||
|
||||
{{ form_start(form) }}
|
||||
{{ form_row(form.password) }}
|
||||
{{ form_widget(form.submit, { 'attr': { 'class': 'sc-button orange' } } ) }}
|
||||
{{ form_end(form) }}
|
||||
|
||||
{% endblock %}
|
Reference in New Issue
Block a user