-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathform-ular.html
165 lines (147 loc) · 9.93 KB
/
form-ular.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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<!DOCTYPE html>
<html lang="cs" style="height: 100%">
<head>
<title>FORMULÁŘ</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta charset="UTF-8">
<meta name="referrer" content="no-referrer">
<link rel="shortcut icon" href="favicon/favicon.ico">
<link rel="icon" sizes="16x16 32x32 64x64" href="favicon/favicon.ico">
<link rel="icon" type="image/png" sizes="196x196" href="favicon/favicon-192.png">
<link rel="icon" type="image/png" sizes="160x160" href="favicon/favicon-160.png">
<link rel="icon" type="image/png" sizes="96x96" href="favicon/favicon-96.png">
<link rel="icon" type="image/png" sizes="64x64" href="favicon/favicon-64.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon/favicon-32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon/favicon-16.png">
<link rel="apple-touch-icon" href="favicon/favicon-57.png">
<link rel="apple-touch-icon" sizes="114x114" href="favicon/favicon-114.png">
<link rel="apple-touch-icon" sizes="72x72" href="favicon/favicon-72.png">
<link rel="apple-touch-icon" sizes="144x144" href="favicon/favicon-144.png">
<link rel="apple-touch-icon" sizes="60x60" href="favicon/favicon-60.png">
<link rel="apple-touch-icon" sizes="120x120" href="favicon/favicon-120.png">
<link rel="apple-touch-icon" sizes="76x76" href="favicon/favicon-76.png">
<link rel="apple-touch-icon" sizes="152x152" href="favicon/favicon-152.png">
<link rel="apple-touch-icon" sizes="180x180" href="favicon/favicon-180.png">
<meta name="msapplication-TileColor" content="#FFFFFF">
<meta name="msapplication-TileImage" content="favicon/favicon-144.png">
<meta name="msapplication-config" content="favicon/browserconfig.xml">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css"
integrity="sha384-OXVF05DQEe311p6ohU11NwlnX08FzMCsyoXzGOaL+83dKAb3qS17yZJxESl8YrJQ" crossorigin="anonymous">
<link rel="stylesheet" href="css/bootstrap-side-modals.css">
<link href="css/form-ular.css" rel="stylesheet"/>
</head>
<body>
<nav class="navbar navbar-expand-md navbar-dark bg-success">
<a class="navbar-brand" href="./">
<img style="filter: invert(100%);" src="icon.svg" width="30" height="30" class="d-inline-block align-top"
alt="logo"/>
<span id="title-abbrev" class="d-inline d-sm-none"></span><span id="title-full" class="d-none d-sm-inline">FORMULÁŘ</span>
</a>
</nav>
<div class="alert alert-primary" role="alert">
Ušetřili jste? Podpořte tento projekt zasláním jakékoli sumy Bitcoinu na <a data-toggle="popover-hover" data-img="btc-qr-code.png"><strong>1NX1ZsHwcvEPEmjNHLoimfReyyxg8UbnoL</strong></a>
</div>
<main role="main">
<div class="container fill">
<ul class="nav nav-tabs device-small" role="tablist" id="panel-nav">
<li role="presentation" class="nav-item active"><a href="#left" class="nav-link" aria-controls="left" role="tab" data-toggle="tab">Formulář</a></li>
<li role="presentation" class="nav-item"><a href="#right" class="nav-link" aria-controls="right" role="tab" data-toggle="tab">Náhled</a></li>
</ul>
<div class="tab-content">
<div id="left" role="tabpanel" class="tab-pane active col col-md-12 col-lg-6">
<div id="left-buttons">
<button type="button" class="btn btn-warning" id="startWizard" title="Použít průvodce formulářem"><i class="button-icon icon-wizard"></i><span class="d-none d-sm-inline"> Průvodce</span></button>
<button type="button" class="btn btn-info" id="uploadJSON" title="Nahrát soubor JSON"><i class="button-icon icon-open invert-icon"></i><span class="d-none d-sm-inline"> JSON</span></button>
<input type="file" accept="application/json" id="upload-json-file" style="display:none"/>
<button type="button" class="btn btn-info" id="uploadXML" title="Nahrát soubor XML(AIS - CZ415A - D_N_PODD)"><i class="button-icon icon-xml invert-icon"></i><span class="d-none d-sm-inline"> XML (CZ415A)</span></button>
<input type="file" accept="text/xml" id="upload-xml-file" style="display:none"/>
<button type="button" class="btn btn-danger" id="cleanForm" title="Smazat celý formulář"><i class="button-icon icon-delete invert-icon"></i><span class="d-none d-sm-inline"> Vymazat</span></button>
</div>
<div id="form-with-navigation">
<div id="form-navigation">
</div>
<div id="form">
</div>
</div>
</div>
<div id="right" role="tabpanel" class="tab-pane col-md-12 col-lg-6">
<div id="right-buttons">
<button type="button" class="btn btn-success" id="downloadPDF" title="Stáhnout vyplněný formulář v PDF bez tiskopisu"><i class="button-icon icon-document-ol invert-icon"></i><span class="d-none d-sm-inline"> PDF</span></button>
<button type="button" class="btn btn-secondary" id="downloadPDFForm" title="Stáhnout vyplněný formulář v PDF s tiskopisem"><i class="button-icon icon-document invert-icon"></i><span class="d-none d-sm-inline"> PDF</span></button>
<button type="button" class="btn btn-primary" id="downloadJSON" title="Stáhnout soubor JSON"><i class="button-icon icon-save invert-icon"></i><span class="d-none d-sm-inline"> JSON</span></button>
<button type="button" class="btn btn-primary" id="downloadXML" title="Stáhnout soubor XML(AIS- CZ415A - D_N_PODD)"><i class="button-icon icon-xml invert-icon"></i><span class="d-none d-sm-inline"> XML (CZ415A)</span></button>
</div>
<div style="height: 0; flex-grow: 1; overflow: auto;">
<div id="preview">
</div>
</div>
</div>
</div>
</div>
</main>
<footer class="footer">
<div class="footer-container">
<span class="text-muted">Form-Ular <a href="https://github.com/jhkst/form-ular"
target="_blank">zdroj na GitHubu</a></span>
</div>
</footer>
<!-- Modal warning -->
<div class="modal fade" id="warningModal" tabindex="-1" role="dialog" aria-labelledby="warningModalTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="warningModalTitle">Upozornění</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
</div>
<div class="modal-footer">
<button type="button" id="warning-no" class="btn btn-secondary" data-dismiss="modal">Zavřít</button>
<button type="button" id="warning-yes" class="btn btn-danger">⚠ Pokračovat</button>
</div>
</div>
</div>
</div>
<div class="modal hide fade" id="onloadModal" tabindex="-1" role="dialog" aria-labelledby="onloadModalTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="onloadModalTitle">Upozornění - odmítnutí odpovědnosti</h5>
</div>
<div class="modal-body">
</div>
<div class="modal-footer">
<button type="button" id="onload-no" class="btn btn-danger">Nesouhlasím</button>
<button type="button" id="onload-yes" class="btn btn-success" data-dismiss="modal">Souhlasím</button>
</div>
</div>
</div>
</div>
<!-- scripts -->
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha384-ZvpUoO/+PpLXR1lu4jmpXWu80pZlYUAfxl5NsBMWOEPSjUn/6Z/hRTt8+pR6L4N2" crossorigin="anonymous"></script>
<!-- bootstrap -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js" integrity="sha384-d3UHjPdzJkZuk5H3qKYMLRyWLAQBJbby2yr2Q58hXXtAGF8RSNO9jpLDlKKPv5v3" crossorigin="anonymous"></script>
<!-- pdf-lib -->
<script src="https://unpkg.com/@pdf-lib/fontkit@0.0.4" integrity="sha384-9fpcLcBAZkqk+tKJTXAJP07DQZjk71P7bFnOntCqIJiQBn3c3SouYLr2NUZcK83A" crossorigin="anonymous"></script>
<script src="https://unpkg.com/pdf-lib@1.4.0/dist/pdf-lib.min.js" integrity="sha384-YmeCSD7/QxqSjaieqkBiGZwmsOBhVDcrd9yQwI4yzD+W2k/PgQRtEky9KiIWgDJx" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/2.0.0/FileSaver.min.js" integrity="sha384-Am74NQ3uTJzrL9/oVeHH9mtj2Vabxh7LjdkDS0pzqNgZ9MSYl3DrklSXtv+/4+CE" crossorigin="anonymous"></script>
<!-- for Evaluator -->
<script src="https://cdn.jsdelivr.net/npm/jsep@0.4.0/build/jsep.min.js" integrity="sha384-89PRdfFVlT2bC9VxvLdvlByyVGml9l14DjpPqZYVI9umfvV24KPZ5dY6qBOeKf2z" crossorigin="anonymous"></script>
<!-- local -->
<script src="lib/f-datetime.js"></script>
<script src="lib/mmd.js"></script>
<script src="lib/ast-traverse.js"></script>
<script src="lib/evaluator.js"></script>
<script src="lib/json-schema.js"></script>
<script src="lib/json-data.js"></script>
<script src="fu-pdf.js"></script>
<script src="fu-svg.js"></script>
<script src="fu-uiform.js"></script>
<script src="form-ular.js"></script>
</body>
</html>