-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor modals with new twig component
- Loading branch information
Showing
16 changed files
with
397 additions
and
491 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
64 changes: 22 additions & 42 deletions
64
src/bundle/Resources/views/themes/admin/account/notifications/modal.html.twig
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,45 +1,25 @@ | ||
{% trans_default_domain 'notifications' %} | ||
|
||
<div | ||
class="modal fade ibexa-notifications-modal ibexa-modal ibexa-modal--table-content" | ||
id="view-notifications" | ||
tabindex="-1" | ||
role="dialog"> | ||
<div | ||
class="modal-dialog" | ||
role="document"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<h5 | ||
class="modal-title" | ||
data-notifications-total=""> | ||
{{ 'notifications'|trans|desc('Notifications') }} | ||
</h5> | ||
<button | ||
type="button" | ||
class="close" | ||
title="{{ 'notification.close'|trans|desc('Close') }} " | ||
data-bs-dismiss="modal" | ||
aria-label="Close"> | ||
<svg | ||
class="ibexa-icon ibexa-icon--small-medium" | ||
aria-hidden="true"> | ||
<use xlink:href="{{ ibexa_icon_path('discard') }}"></use> | ||
</svg> | ||
</button> | ||
</div> | ||
<div class="modal-body"> | ||
<div class="ibexa-notifications-modal__spinner"> | ||
<svg class="ibexa-icon ibexa-spin"> | ||
<use xlink:href="{{ ibexa_icon_path('spinner') }}"></use> | ||
</svg> | ||
</div> | ||
<div class="ibexa-notifications-modal__results"> | ||
{{ render(controller('Ibexa\\Bundle\\AdminUi\\Controller\\NotificationController::renderNotificationsPageAction', { | ||
'page': 1, | ||
})) }} | ||
</div> | ||
</div> | ||
{% embed '@ibexadesign/ui/component/modal/modal.html.twig' with { | ||
title: 'notifications'|trans|desc('Notifications'), | ||
subtitle: 'Some subtitle', | ||
class: 'ibexa-notifications-modal', | ||
no_header_border: true, | ||
id: 'view-notifications', | ||
attr_close_btn: { | ||
'data-notifications-total': '', | ||
}, | ||
} %} | ||
{% block body_content %} | ||
<div class="ibexa-notifications-modal__spinner"> | ||
<svg class="ibexa-icon ibexa-spin"> | ||
<use xlink:href="{{ ibexa_icon_path('spinner') }}"></use> | ||
</svg> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="ibexa-notifications-modal__results"> | ||
{{ render(controller('Ibexa\\Bundle\\AdminUi\\Controller\\NotificationController::renderNotificationsPageAction', { | ||
'page': 1, | ||
})) }} | ||
</div> | ||
{% endblock %} | ||
{% endembed %} |
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
86 changes: 37 additions & 49 deletions
86
src/bundle/Resources/views/themes/admin/content/modal/draft_conflict.html.twig
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
73 changes: 31 additions & 42 deletions
73
src/bundle/Resources/views/themes/admin/content/modal/location_bulk_action_failed.html.twig
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,45 +1,34 @@ | ||
{% trans_default_domain 'locationview' %} | ||
|
||
<div | ||
class="modal fade ibexa-modal ibexa-modal--table-content ibexa-modal--bulk-action-failed ibexa-bulk-action-failed-modal" | ||
id="bulk-action-failed-modal" | ||
tabindex="-1" | ||
role="dialog"> | ||
<div class="modal-dialog" role="document"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<h5 class="modal-title">{{ 'content.view.subitems.bulk_action.limited_permissions'|trans|desc('Limited user permissions') }}</h5> | ||
<button type="button" class="close" data-bs-dismiss="modal" aria-label="Close"> | ||
<svg class="ibexa-icon ibexa-icon--small-medium" aria-hidden="true"> | ||
<use xlink:href="{{ ibexa_icon_path('discard') }}"></use> | ||
</svg> | ||
</button> | ||
</div> | ||
<div class="modal-body"> | ||
{% set table_row_template %} | ||
{{ include('@ibexadesign/ui/component/table/table_body_row.html.twig', { | ||
body_row_cols: [ | ||
{ content: '{{ content_name }}' }, | ||
{ content: '{{ content_type_name }}' }, | ||
], | ||
}) }} | ||
{% endset %} | ||
{% embed '@ibexadesign/ui/component/modal/modal.html.twig' with { | ||
title: 'content.view.subitems.bulk_action.limited_permissions'|trans|desc('Limited user permissions'), | ||
class: 'ibexa-modal--bulk-action-failed ibexa-bulk-action-failed-modal', | ||
no_header_border: true, | ||
id: 'bulk-action-failed-modal', | ||
} %} | ||
{% block body_content %} | ||
{% set table_row_template %} | ||
{{ include('@ibexadesign/ui/component/table/table_body_row.html.twig', { | ||
body_row_cols: [ | ||
{ content: '{{ content_name }}' }, | ||
{ content: '{{ content_type_name }}' }, | ||
], | ||
}) }} | ||
{% endset %} | ||
|
||
{% embed '@ibexadesign/ui/component/table/table.html.twig' with { | ||
headline: ' ', | ||
head_cols: [ | ||
{ content: 'bulk_action.failed.modal.content_name'|trans|desc('Name') }, | ||
{ content: 'bulk_action.failed.modal.content_type_name'|trans|desc('Content Type') }, | ||
], | ||
class: 'ibexa-bulk-action-failed-modal__table', | ||
table_body_class: 'ibexa-bulk-action-failed-modal__table-body', | ||
attr: { | ||
'data-row-template': table_row_template, | ||
}, | ||
} %} | ||
{% block tbody %}{% endblock %} | ||
{% endembed %} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% embed '@ibexadesign/ui/component/table/table.html.twig' with { | ||
headline: ' ', | ||
head_cols: [ | ||
{ content: 'bulk_action.failed.modal.content_name'|trans|desc('Name') }, | ||
{ content: 'bulk_action.failed.modal.content_type_name'|trans|desc('Content Type') }, | ||
], | ||
class: 'ibexa-bulk-action-failed-modal__table', | ||
table_body_class: 'ibexa-bulk-action-failed-modal__table-body', | ||
attr: { | ||
'data-row-template': table_row_template, | ||
}, | ||
} %} | ||
{% block tbody %}{% endblock %} | ||
{% endembed %} | ||
{% endblock %} | ||
{% endembed %} |
Oops, something went wrong.