add new demo symfony files
This commit is contained in:
29
app/templates/user/change_password.html.twig
Normal file
29
app/templates/user/change_password.html.twig
Normal file
@@ -0,0 +1,29 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block body_id 'user_password' %}
|
||||
|
||||
{% block main %}
|
||||
<h1>{{ 'title.change_password'|trans }}</h1>
|
||||
|
||||
<div class="alert alert-info" role="alert">{{ 'info.change_password'|trans }}</div>
|
||||
|
||||
{{ form_start(form) }}
|
||||
{{ form_widget(form) }}
|
||||
|
||||
<button type="submit" class="btn btn-primary">
|
||||
<i class="fa fa-save" aria-hidden="true"></i> {{ 'action.save'|trans }}
|
||||
</button>
|
||||
{{ form_end(form) }}
|
||||
{% endblock %}
|
||||
|
||||
{% block sidebar %}
|
||||
<div class="section">
|
||||
<a href="{{ path('user_edit') }}" class="btn btn-lg btn-block btn-danger">
|
||||
<i class="fa fa-edit" aria-hidden="true"></i> {{ 'action.edit_user'|trans }}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{{ parent() }}
|
||||
|
||||
{{ show_source_code(_self) }}
|
||||
{% endblock %}
|
27
app/templates/user/edit.html.twig
Normal file
27
app/templates/user/edit.html.twig
Normal file
@@ -0,0 +1,27 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block body_id 'user_edit' %}
|
||||
|
||||
{% block main %}
|
||||
<h1>{{ 'title.edit_user'|trans }}</h1>
|
||||
|
||||
{{ form_start(form) }}
|
||||
{{ form_widget(form) }}
|
||||
|
||||
<button type="submit" class="btn btn-primary">
|
||||
<i class="fa fa-save" aria-hidden="true"></i> {{ 'action.save'|trans }}
|
||||
</button>
|
||||
{{ form_end(form) }}
|
||||
{% endblock %}
|
||||
|
||||
{% block sidebar %}
|
||||
<div class="section">
|
||||
<a href="{{ path('user_change_password') }}" class="btn btn-lg btn-block btn-danger">
|
||||
<i class="fa fa-lock" aria-hidden="true"></i> {{ 'action.change_password'|trans }}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{{ parent() }}
|
||||
|
||||
{{ show_source_code(_self) }}
|
||||
{% endblock %}
|
Reference in New Issue
Block a user