-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
templates/alert: add template for alert
added changelog removed not needed classes finished alert redesign
- Loading branch information
1 parent
3b0db77
commit f4e170f
Showing
9 changed files
with
74 additions
and
79 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
### Fixed | ||
|
||
- fixed linting in: `project_bplan_detail.html`, `project_detail.html`, `module_detail.html`, `base.html` | ||
|
||
### Changed | ||
|
||
- moved `/components/_alert.scss` to components_dashboard folder | ||
|
||
### Added | ||
- introduced a reusable snippet `alerts.html` to enhance consistency and maintainability across alerts and prevent code duplication. | ||
- added snippet to `project_detail.html`, `module_detail.html`, `base.html` | ||
- added alert__headline, .alert__content and alert__text to `/components_user_facing/_alert.scss` | ||
|
||
### Removed | ||
|
||
- removed messages class, @use "sass:color", $messages-margin-bottom form `/components_user_facing/_alert.scss` |
13 changes: 13 additions & 0 deletions
13
meinberlin/apps/contrib/templates/meinberlin_contrib/components/alert.html
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 @@ | ||
{% load i18n %} | ||
|
||
<div class="alert alert--{{ alert_type }}" role="alert" aria-live="polite" aria-atomic="true"> | ||
<button type="button" class="alert__close" data-bs-dismiss="alert" aria-label="{% translate 'Close' %}"><i class="fa fa-times" aria-hidden="true"></i></button> | ||
<div class="alert__content"> | ||
{% if alert_headline %} | ||
<h3 class="alert__headline">{% translate alert_headline %}</h3> | ||
{% endif %} | ||
<p class="alert__text"> | ||
{% translate alert_message %} | ||
</p> | ||
</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
File renamed without changes.
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