forked from zuramai/mazer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathextra-component-sweetalert.html
138 lines (137 loc) · 6.98 KB
/
extra-component-sweetalert.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
{% set title = 'Sweet Alert' %}
{% set filename = 'extra-component-sweetalert.html' %}
{% extends 'layouts/master.html' %}
{% block content %}
<div class="page-heading">
<div class="page-title">
<div class="row">
<div class="col-12 col-md-6 order-md-1 order-last">
<h3>Sweet Alert</h3>
<p class="text-subtitle text-muted">A beautiful replacement for javascript alerts.</p>
</div>
<div class="col-12 col-md-6 order-md-2 order-first">
<nav aria-label="breadcrumb" class="breadcrumb-header float-start float-lg-end">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index.html">Dashboard</a></li>
<li class="breadcrumb-item active" aria-current="page">Sweet Alert</li>
</ol>
</nav>
</div>
</div>
</div>
<section class="section">
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-header">
<h4 class="card-title">Basic Sweet Alert</h4>
<p class="text-muted">SweetAlert automatically centers itself on the page and looks great no
matter if you're using a desktop computer, mobile or tablet. It's even highly customizable,
as you can see below!</p>
</div>
<div class="card-body">
<div class="row">
<div class="col-md-4 col-12">
<button id="basic" class="btn btn-outline-primary btn-lg btn-block">Basic
Example</button>
</div>
<div class="col-md-4 col-12">
<button id="title" class="btn btn-outline-primary btn-lg btn-block">A title with a text
under</button>
</div>
<div class="col-md-4 col-12">
<button id="footer" class="btn btn-outline-primary btn-lg btn-block">With
Footer</button>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="section">
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-header">
<h4 class="card-title">Types</h4>
<p class='text-muted'>The type of the modal. SweetAlert comes with 5 built-in types which will
show a corresponding icon animation: "warning", "error", "success" and "info". You can also
set it as "input" to get a prompt modal. It can either be put in the object under the key
"icon" or passed as the third parameter of the function.</p>
</div>
<div class="card-body">
<div class="row">
<div class="col-md-4 col-12">
<button id="success" class="btn btn-outline-success btn-lg btn-block">Success</button>
</div>
<div class="col-md-4 col-12">
<button id="error" class="btn btn-outline-danger btn-lg btn-block">Error</button>
</div>
<div class="col-md-4 col-12">
<button id="warning" class="btn btn-outline-warning btn-lg btn-block">Warning</button>
</div>
</div>
<div class="row mt-3">
<div class="col-md-6 col-12">
<button id="info" class="btn btn-outline-info btn-lg btn-block">Info</button>
</div>
<div class="col-md-6 col-12">
<button id="question"
class="btn btn-outline-secondary btn-lg btn-block">Question</button>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="section">
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-header">
<h4 class="card-title">Alert Input</h4>
<p class='text-muted'>The type of the modal. SweetAlert comes with 5 built-in types which will
show a corresponding icon animation: "warning", "error", "success" and "info". You can also
set it as "input" to get a prompt modal. It can either be put in the object under the key
"icon" or passed as the third parameter of the function.</p>
</div>
<div class="card-body">
<div class="row">
<div class="col-md-4 col-12">
<button id="text" class="btn btn-outline-success btn-lg btn-block">Text</button>
</div>
<div class="col-md-4 col-12">
<button id="email" class="btn btn-outline-danger btn-lg btn-block">Email</button>
</div>
<div class="col-md-4 col-12">
<button id="url" class="btn btn-outline-warning btn-lg btn-block">URL</button>
</div>
</div>
<div class="row mt-3">
<div class="col-md-4 col-12">
<button id="password" class="btn btn-outline-info btn-lg btn-block">Password</button>
</div>
<div class="col-md-4 col-12">
<button id="textarea"
class="btn btn-outline-secondary btn-lg btn-block">Textarea</button>
</div>
<div class="col-md-4 col-12">
<button id="select" class="btn btn-outline-secondary btn-lg btn-block">Select</button>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="assets/extensions/sweetalert2/sweetalert2.min.css">
{% endblock %}
{% block js %}
<script src="assets/extensions/sweetalert2/sweetalert2.min.js"></script>>
<script src="assets/js/pages/sweetalert2.js"></script>>
{% endblock %}