-
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.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
25 changed files
with
564 additions
and
567 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 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 |
---|---|---|
|
@@ -13,10 +13,6 @@ | |
} | ||
} | ||
|
||
.modal-body { | ||
padding-top: 0; | ||
} | ||
|
||
.table { | ||
table-layout: fixed; | ||
white-space: normal; | ||
|
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
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,21 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:jms="urn:jms:translation" version="1.2"> | ||
<file source-language="en" target-language="en" datatype="plaintext" original="not.available"> | ||
<header> | ||
<tool tool-id="JMSTranslationBundle" tool-name="JMSTranslationBundle" tool-version="1.1.0-DEV"/> | ||
<note>The source node in most cases contains the sample message as written by the developer. If it looks like a dot-delimitted string such as "form.label.firstname", then the developer has not provided a default message.</note> | ||
</header> | ||
<body> | ||
<trans-unit id="8b23f97eb81bd9e3e5b47f858e2922e526a9c1cb" resname="close_btn.aria_label"> | ||
<source>Close</source> | ||
<target state="new">Close</target> | ||
<note>key: close_btn.aria_label</note> | ||
</trans-unit> | ||
<trans-unit id="16af4f3a9799e5f803be1d7d9ca493e74bd2db40" resname="close_btn.title"> | ||
<source>Close</source> | ||
<target state="new">Close</target> | ||
<note>key: close_btn.title</note> | ||
</trans-unit> | ||
</body> | ||
</file> | ||
</xliff> |
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 %} |
65 changes: 35 additions & 30 deletions
65
src/bundle/Resources/views/themes/admin/content/modal/add_translation.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,36 +1,41 @@ | ||
{% trans_default_domain 'locationview' %} | ||
|
||
{% form_theme form '@ibexadesign/content/translation_add_form_fields.html.twig' %} | ||
{% embed '@ibexadesign/ui/component/modal/modal.html.twig' with { | ||
title: 'tab.translations.add.title'|trans|desc('Create a new translation'), | ||
class: 'ibexa-translation', | ||
id: 'add-translation-modal', | ||
} %} | ||
{% trans_default_domain 'locationview' %} | ||
{% form_theme form '@ibexadesign/content/translation_add_form_fields.html.twig' %} | ||
|
||
<div class="modal fade ibexa-modal ibexa-translation" id="add-translation-modal" tabindex="-1" role="dialog"> | ||
<div class="modal-dialog" role="document"> | ||
{% block content_before %} | ||
{% set action = action is defined ? action : path('ibexa.translation.add') %} | ||
{{ form_start(form, {'action': action}) }} | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<h5 class="modal-title">{{ 'tab.translations.add.title'|trans|desc('Create a new translation') }}</h5> | ||
<button type="button" class="close" data-bs-dismiss="modal" aria-label="{{ 'translation.modal_close'|trans|desc('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"> | ||
{{ form_row(form.base_language, {'attr': {'class': 'ibexa-translation__language-wrapper ibexa-translation__language-wrapper--base-language'}}) }} | ||
<div class="ibexa-translation__arrow"> | ||
<svg class="ibexa-icon ibexa-icon--medium"> | ||
<use xlink:href="{{ ibexa_icon_path('back') }}"></use> | ||
</svg> | ||
</div> | ||
{{ form_row(form.language, {'attr': {'class': 'ibexa-translation__language-wrapper ibexa-translation__language-wrapper--language'}}) }} | ||
</div> | ||
<div class="modal-footer"> | ||
{{ form_widget(form.add, {'attr': {'class': 'btn ibexa-btn ibexa-btn--primary ibexa-btn--create-translation'}}) }} | ||
<button type="button" class="btn ibexa-btn ibexa-btn--secondary" data-bs-dismiss="modal"> | ||
{{ 'tab.translations.add.cancel'|trans|desc('Cancel') }} | ||
</button> | ||
</div> | ||
</div> | ||
{% endblock %} | ||
{% block body_content %} | ||
{{ form_row(form.base_language, { | ||
'attr': { | ||
'class': 'ibexa-translation__language-wrapper ibexa-translation__language-wrapper--base-language' | ||
}, | ||
}) }} | ||
<div class="ibexa-translation__arrow"> | ||
<svg class="ibexa-icon ibexa-icon--medium"> | ||
<use xlink:href="{{ ibexa_icon_path('back') }}"></use> | ||
</svg> | ||
</div> | ||
{{ form_row(form.language, { | ||
'attr': { | ||
'class': 'ibexa-translation__language-wrapper ibexa-translation__language-wrapper--language' | ||
}, | ||
}) }} | ||
{% endblock %} | ||
{% block footer_content %} | ||
{{ form_widget(form.add, {'attr': {'class': 'btn ibexa-btn ibexa-btn--primary ibexa-btn--create-translation'}}) }} | ||
<button type="button" class="btn ibexa-btn ibexa-btn--secondary" data-bs-dismiss="modal"> | ||
{{ 'tab.translations.add.cancel'|trans|desc('Cancel') }} | ||
</button> | ||
{% endblock %} | ||
{% block content_after %} | ||
{{ form_end(form) }} | ||
</div> | ||
</div> | ||
{% endblock %} | ||
{% endembed %} |
Oops, something went wrong.