-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Impersonate from user menu dropdown #6524
- Loading branch information
1 parent
c4d72d4
commit c01b778
Showing
33 changed files
with
141 additions
and
46 deletions.
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 was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
2 changes: 1 addition & 1 deletion
2
public/field-code-editor.cdcf15eb.css → public/field-code-editor.b7d8b94d.css
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
public/field-code-editor.877c61fa.js → public/field-code-editor.c092384b.js
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file renamed
BIN
+206 KB
public/fonts/fa-brands-400.26b80c88.ttf → public/fonts/fa-brands-400.0ff70dcb.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+66.5 KB
public/fonts/fa-regular-400.05fdd87b.ttf → public/fonts/fa-regular-400.17a6e1ae.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+416 KB
public/fonts/fa-solid-900.ad1782c7.ttf → public/fonts/fa-solid-900.07ed6d5f.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+10.6 KB
public/fonts/fa-v4compatibility.fa86b3c8.ttf → public/fonts/fa-v4compatibility.0f6cb412.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -1,26 +1,26 @@ | ||
{ | ||
"app.css": "app.9f3e666b.css", | ||
"app.js": "app.1ecd6d7a.js", | ||
"app.css": "app.ab66d3f1.css", | ||
"app.js": "app.3682f817.js", | ||
"form.js": "form.bcec6c2a.js", | ||
"page-layout.js": "page-layout.3347892e.js", | ||
"page-color-scheme.js": "page-color-scheme.30cb23c2.js", | ||
"field-boolean.js": "field-boolean.ae2abe46.js", | ||
"field-code-editor.css": "field-code-editor.cdcf15eb.css", | ||
"field-code-editor.js": "field-code-editor.877c61fa.js", | ||
"field-code-editor.css": "field-code-editor.b7d8b94d.css", | ||
"field-code-editor.js": "field-code-editor.c092384b.js", | ||
"field-collection.js": "field-collection.f685c209.js", | ||
"field-file-upload.js": "field-file-upload.7f9cb952.js", | ||
"field-image.js": "field-image.c338d2ad.js", | ||
"field-slug.js": "field-slug.df11f109.js", | ||
"field-textarea.js": "field-textarea.74319bb1.js", | ||
"field-text-editor.css": "field-text-editor.750725ec.css", | ||
"field-text-editor.js": "field-text-editor.cb6de4f5.js", | ||
"field-text-editor.js": "field-text-editor.ae3901ca.js", | ||
"login.js": "login.7259f5de.js", | ||
"fonts/fa-solid-900.ttf": "fonts/fa-solid-900.ad1782c7.ttf", | ||
"fonts/fa-brands-400.ttf": "fonts/fa-brands-400.26b80c88.ttf", | ||
"fonts/fa-solid-900.woff2": "fonts/fa-solid-900.83a538a0.woff2", | ||
"fonts/fa-brands-400.woff2": "fonts/fa-brands-400.fdbb5585.woff2", | ||
"fonts/fa-regular-400.ttf": "fonts/fa-regular-400.05fdd87b.ttf", | ||
"fonts/fa-regular-400.woff2": "fonts/fa-regular-400.4f6a2dab.woff2", | ||
"fonts/fa-v4compatibility.ttf": "fonts/fa-v4compatibility.fa86b3c8.ttf", | ||
"fonts/fa-v4compatibility.woff2": "fonts/fa-v4compatibility.c3ea317a.woff2" | ||
"fonts/fa-solid-900.ttf": "fonts/fa-solid-900.07ed6d5f.ttf", | ||
"fonts/fa-brands-400.ttf": "fonts/fa-brands-400.0ff70dcb.ttf", | ||
"fonts/fa-solid-900.woff2": "fonts/fa-solid-900.93f719f4.woff2", | ||
"fonts/fa-brands-400.woff2": "fonts/fa-brands-400.bb8d5a14.woff2", | ||
"fonts/fa-regular-400.ttf": "fonts/fa-regular-400.17a6e1ae.ttf", | ||
"fonts/fa-regular-400.woff2": "fonts/fa-regular-400.bc372268.woff2", | ||
"fonts/fa-v4compatibility.ttf": "fonts/fa-v4compatibility.0f6cb412.ttf", | ||
"fonts/fa-v4compatibility.woff2": "fonts/fa-v4compatibility.6cfec841.woff2" | ||
} |
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,27 @@ | ||
<?php | ||
|
||
namespace EasyCorp\Bundle\EasyAdminBundle\Config\Menu; | ||
|
||
use EasyCorp\Bundle\EasyAdminBundle\Contracts\Menu\MenuItemInterface; | ||
use EasyCorp\Bundle\EasyAdminBundle\Dto\MenuItemDto; | ||
use Symfony\Contracts\Translation\TranslatableInterface; | ||
|
||
/** | ||
* @see EasyCorp\Bundle\EasyAdminBundle\Config\MenuItem::linkToAccessImpersonation() | ||
* | ||
* @author Elías Fernández <[email protected]> | ||
*/ | ||
final class AccessImpersonationMenuItem implements MenuItemInterface | ||
{ | ||
use MenuItemTrait; | ||
|
||
public function __construct(TranslatableInterface|string $label, ?string $icon) | ||
{ | ||
$this->dto = new MenuItemDto(); | ||
|
||
$this->dto->setType(MenuItemDto::TYPE_ACCESS_IMPERSONATION); | ||
$this->dto->setLabel($label); | ||
$this->dto->setIcon($icon); | ||
$this->dto->setLinkUrl('test'); | ||
} | ||
} |
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
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,29 @@ | ||
<div id="modal-impersonate" class="modal fade" tabindex="-1"> | ||
<div class="modal-dialog"> | ||
<div class="modal-content"> | ||
<div class="modal-body p-4"> | ||
<form method="get"> | ||
<div class="row"> | ||
<div class="col-12"> | ||
<div class="field-text form-group"> | ||
<label for="_switch_user" class="form-control-label required">{{ 'impersonate.username'|trans(domain = 'EasyAdminBundle') }}</label> | ||
<div class="form-widget"> | ||
<input type="text" name="_switch_user" id="impersonate_user_name" required="required" class="form-control" value=""> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
<div class="modal-footer"> | ||
<button type="button" data-bs-dismiss="modal" class="btn btn-sm btn-secondary" id="impersonate-modal-clear-button" formtarget="_self"> | ||
<i class="fa fa-close"></i> {{ 'action.close'|trans(domain = 'EasyAdminBundle') }} | ||
</button> | ||
|
||
<button type="button" data-bs-dismiss="modal" class="btn btn-sm btn-primary" id="impersonate-modal-apply-button" formtarget="_self"> | ||
<i class="fa fa-check"></i> {{ 'user.impersonate_user'|trans(domain = 'EasyAdminBundle') }} | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
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