-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
196 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Form; | ||
|
||
use Symfony\Component\Form\FormBuilderInterface; | ||
use Symfony\Component\OptionsResolver\OptionsResolver; | ||
|
||
class UserProfileEditType extends UserType | ||
{ | ||
public function buildForm(FormBuilderInterface $builder, array $options) | ||
{ | ||
parent::buildForm($builder, $options); | ||
|
||
$builder | ||
->remove('plainPassword') | ||
->remove('roles') | ||
; | ||
} | ||
|
||
public function configureOptions(OptionsResolver $resolver) | ||
{ | ||
parent::configureOptions($resolver); | ||
|
||
$resolver->setDefaults([ | ||
'validation_groups' => [], | ||
]); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{% extends 'base.html.twig' %} | ||
|
||
{% block subtitle %}{{ 'Change password'|trans }}{% endblock %} | ||
|
||
{% block content_container %} | ||
{% include 'widgets/breadcrumb.html.twig' with {items: [ | ||
{label: 'Profile'|trans, path: path('user_profile_show')}, | ||
{label: 'Edit'|trans, path: path('user_profile_edit')}, | ||
{label: 'Change password'|trans}, | ||
]} %} | ||
|
||
{% include 'widgets/content-navbar.html.twig' with { title: block('subtitle') } %} | ||
|
||
<div class="container ml-0 px-0"> | ||
{% include 'user/_form.html.twig' with {type: 'profile_change_password'} %} | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{% extends 'base.html.twig' %} | ||
|
||
{% block subtitle %}{{ 'Edit profile'|trans }}{% endblock %} | ||
|
||
{% block content_container %} | ||
{% include 'widgets/breadcrumb.html.twig' with {items: [ | ||
{label: 'Profile'|trans, path: path('user_profile_show')}, | ||
{label: 'Edit'|trans}, | ||
]} %} | ||
|
||
{% include 'widgets/content-navbar.html.twig' with { title: block('subtitle') } %} | ||
|
||
<div class="container ml-0 px-0"> | ||
{% include 'user/_form.html.twig' with {type: 'profile_edit'} %} | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{% extends 'base.html.twig' %} | ||
|
||
{% block subtitle %}{{ 'Profile'|trans }}{% endblock %} | ||
|
||
{% block content_container %} | ||
{% include 'widgets/breadcrumb.html.twig' with {items: [ | ||
{label: 'Profile'|trans}, | ||
]} %} | ||
|
||
{% embed 'widgets/content-navbar.html.twig' with { title: block('subtitle') } %} | ||
{% block nav_items %} | ||
<li class="nav-item"> | ||
<a href="{{ path('user_profile_edit') }}" class="nav-link">{{ 'Edit'|trans }}</a> | ||
</li> | ||
{% endblock %} | ||
{% endembed %} | ||
|
||
{% include 'user/_detail.html.twig' %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters