1
|
#IF !DIALOG_LOADED
|
2
|
#DEFINE DIALOG_LOADED
|
3
|
<!--
|
4
|
SPDX-License-Identifier: GPL-3.0-or-later OR CC-BY-SA-4.0
|
5
|
|
6
|
Show an error/info/question dalog.
|
7
|
|
8
|
This file is part of Haketilo.
|
9
|
|
10
|
Copyright (C) 2022 Wojtek Kosior <koszko@koszko.org>
|
11
|
|
12
|
File is dual-licensed. You can choose either GPLv3+, CC BY-SA or both.
|
13
|
|
14
|
This program is free software: you can redistribute it and/or modify
|
15
|
it under the terms of the GNU General Public License as published by
|
16
|
the Free Software Foundation, either version 3 of the License, or
|
17
|
(at your option) any later version.
|
18
|
|
19
|
This program is distributed in the hope that it will be useful,
|
20
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
21
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
22
|
GNU General Public License for more details.
|
23
|
|
24
|
You should have received a copy of the GNU General Public License
|
25
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
26
|
|
27
|
I, Wojtek Kosior, thereby promise not to sue for violation of this file's
|
28
|
licenses. Although I request that you do not make use of this code in a
|
29
|
proprietary program, I am not going to enforce this in court.
|
30
|
-->
|
31
|
|
32
|
<!--
|
33
|
This is not a standalone page. This file is meant to be imported into other
|
34
|
HTML code.
|
35
|
-->
|
36
|
|
37
|
#LOADCSS html/reset.css
|
38
|
#LOADCSS html/base.css
|
39
|
<style>
|
40
|
.left_space {
|
41
|
margin-left: 3em;
|
42
|
}
|
43
|
.right_space {
|
44
|
margin-right: 3em;
|
45
|
}
|
46
|
.dialog_buts {
|
47
|
margin-right: auto;
|
48
|
margin-left: auto;
|
49
|
max-width: -moz-fit-content;
|
50
|
max-width: fit-content;
|
51
|
}
|
52
|
.dialog_msg {
|
53
|
margin-bottom: 2em;
|
54
|
text-align: center;
|
55
|
}
|
56
|
.dialog_main_view {
|
57
|
margin: 1.4em;
|
58
|
}
|
59
|
</style>
|
60
|
<template>
|
61
|
<div id="dialog" data-template="main_div" class="dialog_main_view">
|
62
|
<div data-template="msg" class="dialog_msg"></div>
|
63
|
<div data-template="ask_buts" class="dialog_buts">
|
64
|
<button data-template="yes_but" class="right_space">Yes</button>
|
65
|
<button data-template="no_but" class="left_space">No</button>
|
66
|
</div>
|
67
|
<div data-template="conf_buts" class="dialog_buts">
|
68
|
<button data-template="ok_but">Ok</button>
|
69
|
</div>
|
70
|
</div>
|
71
|
</template>
|
72
|
#ENDIF
|