-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
80 lines (74 loc) · 3.53 KB
/
index.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
{% extends "base.html" %}
{% block head %}
{{ super() }}
<link rel="stylesheet" href="{{url_for('static', filename = 'css/index.css')}}">
<script src="{{url_for('static', filename = 'js/index.js')}}"></script>
{% endblock %}
{% block content %}
<div class="container">
<div class="starter-template">
<div class="starter-template">
<h1>Spreadsheet Template Generator</h1>
<p class="lead">Import, upload, generate and migrate YAML files and spreadsheets</p>
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category, message in messages %}
<div class="alert {{category}}">
<b>{{ message }}</b>
</div>
{% endfor %}
{% endif %}
{% endwith %}
<div class="grid-container">
<!--Button to load full list of all schemas -->
<div class="grid-item">
<form action="load_all" method="GET" enctype="multipart/form-data">
<div class="form-group">
<label for="allSchemas">Load all schemas</label>
</div>
<button type="submit" class="btn btn-primary" id="allSchemas">All schemas</button>
</form>
</div>
<!--Button to preselect some schemas before loading full list -->
<div class="grid-item">
<form action="load_select" method="GET" enctype="multipart/form-data">
<div class="form-group">
<label for="allSchemas">Pre-select schemas</label>
</div>
<button type="submit" class="btn btn-primary" id="selectSchemas">Select schemas</button>
</form>
</div>
</div>
<div class="upload-grid-container">
<!--Button to upload YAML file for editing-->
<div class="grid-item">
<form action="upload" method="POST" enctype="multipart/form-data">
<div class="custom-file">
<input type="file" accept=".yaml,.yml" name="yamlfile" class="custom-file-input" id="yamlUpload">
</div>
<button type="submit" class="btn btn-primary" id="uploadYaml">Upload YAML to edit</button>
</form>
</div>
<!--Button to upload YAML file for immediate conversion to spreadsheet-->
<div class="grid-item">
<form action="upload_yaml_to_xls" method="POST" enctype="multipart/form-data">
<div class="custom-file">
<input type="file" accept=".yaml,.yml" name="yamlfile" class="custom-file-input" id="yamlFile">
</div>
<button type="submit" class="btn btn-primary" id="uploadYamlToXls">YAML to spreadsheet</button>
</form>
</div>
<!--Button to upload spreadsheet for migration-->
<div class="grid-item">
<form action="upload_xls" method="POST" enctype="multipart/form-data">
<div class="custom-file">
<input type="file" accept=".xlsx,.xls" name="xlsfile" class="custom-file-input" id="spreadsheetUpload">
</div>
<button type="submit" class="btn btn-primary" id="uploadSpreadsheet">Migrate spreadsheet</button>
</form>
</div>
</div>
<hr/>
</div>
</div>
{% endblock %}