|
@@ -11,23 +11,21 @@ permalink: alerts.html
|
|
|
<div class="card">
|
|
|
<div class="card-body">
|
|
|
<h2 class="card-title">Basic alerts</h2>
|
|
|
- <p class="text-secondary">Wrap any text and an optional dismiss button in <code>.alert</code> and one of the four contextual classes (e.g., <code>.alert-success</code>) for basic alert messages.</p>
|
|
|
- {% include "ui/alert.html" type="success" %}
|
|
|
- {% include "ui/alert.html" type="warning" %}
|
|
|
- {% include "ui/alert.html" type="danger" %}
|
|
|
- {% include "ui/alert.html" type="info" %}
|
|
|
+ {% include "ui/alert.html" type="danger" title="An error occurred!" %}
|
|
|
+ {% include "ui/alert.html" type="warning" title="Some information is missing!" %}
|
|
|
+ {% include "ui/alert.html" type="success" title="Completed successfully!" %}
|
|
|
+ {% include "ui/alert.html" type="info" title="Just a quick note!" %}
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="col-lg-6">
|
|
|
<div class="card">
|
|
|
<div class="card-body">
|
|
|
- <h2 class="card-title">Alerts with icon</h2>
|
|
|
- <p class="text-secondary">Build on any alert by adding an optional icon.</p>
|
|
|
- {% include "ui/alert.html" type="success" show-icon=true %}
|
|
|
- {% include "ui/alert.html" type="warning" show-icon=true %}
|
|
|
- {% include "ui/alert.html" type="danger" show-icon=true %}
|
|
|
- {% include "ui/alert.html" type="info" show-icon=true %}
|
|
|
+ <h2 class="card-title">Alerts with action</h2>
|
|
|
+ {% include "ui/alert.html" show-close action="Link" type="danger" title="An error occurred!" %}
|
|
|
+ {% include "ui/alert.html" show-close action="Link" type="warning" title="Some information is missing!" %}
|
|
|
+ {% include "ui/alert.html" show-close action="Link" type="success" title="Completed successfully!" %}
|
|
|
+ {% include "ui/alert.html" show-close action="Link" type="info" title="Just a quick note!" %}
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -35,11 +33,10 @@ permalink: alerts.html
|
|
|
<div class="card">
|
|
|
<div class="card-body">
|
|
|
<h2 class="card-title">Dismissible alerts</h2>
|
|
|
- <p class="text-secondary">Build on any alert by adding an optional <code>.alert-dismissible</code> and close button.</p>
|
|
|
- {% include "ui/alert.html" type="success" show-icon=true show-close=true %}
|
|
|
- {% include "ui/alert.html" type="warning" show-icon=true show-close=true %}
|
|
|
- {% include "ui/alert.html" type="danger" show-icon=true show-close=true %}
|
|
|
- {% include "ui/alert.html" type="info" show-icon=true show-close=true %}
|
|
|
+ {% include "ui/alert.html" show-close type="danger" title="An error occurred!" %}
|
|
|
+ {% include "ui/alert.html" show-close type="warning" title="Some information is missing!" %}
|
|
|
+ {% include "ui/alert.html" show-close type="success" title="Completed successfully!" %}
|
|
|
+ {% include "ui/alert.html" show-close type="info" title="Just a quick note!" %}
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -47,11 +44,10 @@ permalink: alerts.html
|
|
|
<div class="card">
|
|
|
<div class="card-body">
|
|
|
<h2 class="card-title">Alert with a description</h2>
|
|
|
- <p class="text-secondary">Add a description to the alert to provide additional information.</p>
|
|
|
- {% include "ui/alert.html" type="success" show-description=true show-icon=true %}
|
|
|
- {% include "ui/alert.html" type="warning" show-description=true show-icon=true %}
|
|
|
- {% include "ui/alert.html" type="danger" show-description=true show-icon=true %}
|
|
|
- {% include "ui/alert.html" type="info" show-description=true show-icon=true %}
|
|
|
+ {% include "ui/alert.html" show-close type="danger" title="Password does not meet requirements:" list="Minimum 8 characters,Include a special character" %}
|
|
|
+ {% include "ui/alert.html" show-close type="warning" title="Some information is missing!" description="This is a custom alert box with a description." %}
|
|
|
+ {% include "ui/alert.html" show-close type="success" title="Completed successfully!" description="This is a custom alert box with a description." %}
|
|
|
+ {% include "ui/alert.html" show-close type="info" title="Just a quick note!" description="This is a custom alert box with a description." %}
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -59,10 +55,10 @@ permalink: alerts.html
|
|
|
<div class="card">
|
|
|
<div class="card-body">
|
|
|
<h2 class="card-title">Important alerts</h2>
|
|
|
- {% include "ui/alert.html" important=true type="success" show-icon=true show-close=true %}
|
|
|
- {% include "ui/alert.html" important=true type="warning" show-icon=true show-close=true %}
|
|
|
- {% include "ui/alert.html" important=true type="danger" show-icon=true show-close=true %}
|
|
|
- {% include "ui/alert.html" important=true type="info" show-icon=true show-close=true %}
|
|
|
+ {% include "ui/alert.html" show-close important=true type="danger" title="Password does not meet requirements:" list="Minimum 8 characters,Include a special character" %}
|
|
|
+ {% include "ui/alert.html" show-close important=true type="success" description="This is a custom alert box with a description." %}
|
|
|
+ {% include "ui/alert.html" show-close important=true type="warning" description="This is a custom alert box with a description." %}
|
|
|
+ {% include "ui/alert.html" show-close important=true type="info" description="This is a custom alert box with a description." %}
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|