-
Notifications
You must be signed in to change notification settings - Fork 119
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
56 additions
and
43 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<form | ||
class="alert__action" | ||
data-route-to-submit="{{ formRoute }}" | ||
id="{{ formName }}" | ||
name="{{ formName }}" | ||
> | ||
<button | ||
class="alert__link btn btn-{% if alertStatus is defined and alertStatus is not empty %}{{ alertStatus }}{% else %}info{% endif %}" | ||
type="submit" | ||
> | ||
{{ buttonLabel }} | ||
</button> | ||
</form> |
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,9 @@ | ||
<div class="alert__action"> | ||
<a | ||
class="alert__link btn btn-{% if alertStatus is defined and alertStatus is not empty %}{{ alertStatus }}{% else %}info{% endif %}" | ||
href="{{ buttonUrl }}" | ||
{% if buttonDownload is defined and buttonDownload is not empty %}download="{{ buttonDownload }}"{% endif %} | ||
> | ||
{{ buttonLabel }} | ||
</a> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,24 @@ | ||
{% if title or message %} | ||
{% if title is defined or message is defined %} | ||
<div | ||
class=" | ||
alert | ||
alert-{% if alertStatus is defined and alertStatus is not empty %}{{ alertStatus }}{% else %}info{% endif %} | ||
{% if hidden is defined and hidden == true %}hidden{% endif %} | ||
" | ||
{% if id is defined %}id="{{ id }}"{% endif %} | ||
class="alert alert-{% if alertStatus is defined and alertStatus is not empty %}{{ alertStatus }}{% else %}info{% endif %} {% if hidden is defined and hidden %}hidden{% endif %}" | ||
{% if id is defined and id is not empty %}id="{{ id }}"{% endif %} | ||
> | ||
<div class="alert__infos"> | ||
{% if title %} | ||
{% if title is defined and title is not empty %} | ||
<p class="alert__title">{{ title }}</p> | ||
{% endif %} | ||
|
||
{% if message %} | ||
{% if message is defined and message is not empty %} | ||
<p class="alert__message">{{ message|raw }}</p> | ||
{% endif %} | ||
</div> | ||
|
||
{% if buttonLabel is defined and buttonLabel is not empty %} | ||
<{{ formRoute is defined and formRoute ? 'form' : 'div' }} | ||
class="alert__action" | ||
{% if formRoute is defined and formRoute is not empty %} | ||
data-route-to-submit="{{ formRoute }}" | ||
action="" | ||
{% endif %} | ||
{% if formName is defined and formName is not empty %} | ||
id="{{ formName }}" | ||
name="{{ formName }}" | ||
{% endif %} | ||
> | ||
<{{ formRoute is defined and formRoute is not empty ? 'button' : 'a' }} | ||
class="alert__link btn btn-{% if alertStatus is defined and alertStatus is not empty %}{{ alertStatus }}{% else %}info{% endif %}" | ||
{% if buttonUrl is defined and buttonUrl is not empty %}href="{{ buttonUrl }}"{% endif %} | ||
{% if buttonDownload is defined and buttonDownload is not empty %}download="{{ buttonDownload }}"{% endif %} | ||
{% if formRoute is defined and formRoute is not empty %}type="submit"{% endif %} | ||
> | ||
{{ buttonLabel }} | ||
</{{ formRoute is defined and formRoute is not empty ? 'button' : 'a' }}> | ||
</{{ formRoute is defined and formRoute is not empty ? 'form' : 'div' }}> | ||
{% if formRoute is defined and formRoute is not empty %} | ||
{% include '@ModuleAutoUpgrade/components/alert-action-form.html.twig' %} | ||
{% else %} | ||
{% include '@ModuleAutoUpgrade/components/alert-action-link.html.twig' %} | ||
{% endif %} | ||
{% endif %} | ||
</div> | ||
{% endif %} |
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