TiledViz
Loading...
Searching...
No Matches
edittileset.html
1{% extends "base_main_template.html" %}
2
3{% block additional_scripts_css %}
4<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/forms.css') }}">
5{% endblock %}
6
7{% block content %}
8<!-- <h1> Welcome!</h1>-->
9<div class=container>
10 <div class="column">
11 {% if message %}
12 <div class="row text-center warning_user">
13 {{ message }}
14 </div>
15 {% endif %}
16 {% with messagesF = get_flashed_messages() %}
17 {% if messagesF %}
18 <div class="alert alert-warning alert-dimissible show">
19 {% for messageF in get_flashed_messages() %}
20 {{ messageF }}
21 <button type="button" class="btn-close float-end"
22 data-bs-dismiss="alert" aria-label="Close"></button>
23 {% endfor %}
24 </div>
25 {% endif %}
26 {% endwith %}
27 {% from 'bootstrap5/form.html' import render_form %}
28 {{ render_form(form) }}
29 <script type="text/javascript">
30 jQuery(document).ready(function() {
31 $("#editjson").after("<br />");
32 $("#editjson").after("<br />");
33 changeURL=function() {
34 if($("#type_of_tiles-1")[0].checked ) {
35 $("#dataset_path").parent().show();
36 } else {
37 $("#dataset_path").parent().hide();
38 };
39 }
40
41 changeConnection=function() {
42 if($("#type_of_tiles-2")[0].checked) {
43 $("#script_launch_file").parent().show();
44 $("#configfiles").parent().show();
45 $("#editconnection").show();
46 $('input[id^=manage_connection-]').parent().show()
47 $('label[for=manage_connection]').parent().show()
48 $('label[for=manage_connection]').parent().next().show()
49 } else {
50 $("#script_launch_file").parent().hide();
51 $("#configfiles").parent().hide();
52 $("#editconnection").hide();
53 $('input[id^=manage_connection-]').parent().hide()
54 $('label[for=manage_connection]').parent().hide()
55 $('label[for=manage_connection]').parent().next().hide()
56 };
57 }
58 changeALL=function() {
59 changeURL();
60 changeConnection();
61 }
62 $("input[id^=type_of_tiles").on("change",changeALL);
63 changeALL();
64 });
65 </script>
66 <div class="row text-center">
67 <a href="{{ url_for('index')}}">
68 <button type="button" class="btn btn-primary btn-block btn-lg">Back to home page</button>
69 </a>
70 </div>
71 </div>
72</div>
73{% endblock %}