-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvalidator.html
87 lines (73 loc) · 4.1 KB
/
validator.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8" />
<link rel="icon" href="https://open-innovations.org/resources/images/logos/oi-square-8.svg" />
<title>Business rates validator</title>
<script type="text/javascript" src="https://open-innovations.org/resources/stuquery.js"></script>
<link rel="StyleSheet" href="https://open-innovations.org/resources/style-oi.css" type="text/css" />
<link rel="StyleSheet" href="https://open-innovations.org/resources/spinner.css" type="text/css" />
<link rel="StyleSheet" href="style.css" type="text/css" />
<script type="text/javascript" src="validator.js"></script>
</head>
<body>
<div id="site-message" class="c14-bg">
<div>This is experimental and work-in-progress. Things might not work or even be correct.</div>
</div>
<div id="main">
<header>
<div class="b1-bg padded">
<div class="holder" style="text-align:center;">
<a href="https://open-innovations.org/" aria-label="Open Innovations"><img src="https://open-innovations.org/resources/images/logos/oi-square-8.svg" alt="Open Innovations" width="100px" height="100px" /></a>
<h1>Business rates: validator</h1>
</div>
</div>
</header>
<div class="holder">
<p>The Open Innovations (formerly ODI Leeds) Open Data Collaboration group are exploring local council <a href="index.html">Business Rates data</a> and we've defined <a href="format.html">a common format for sharing Business Rates data</a>. This validator lets you check how well a CSV file matches that format. If you are a Local Authority <a href="https://github.com/odileeds/business-rates/blob/master/index.csv">add the URL of your CSV file to our index</a>, send a pull request, and we'll update your score on the <a href="status.html">status page</a>.</p>
<h2>Select a CSV file</h2>
<form id="validation_form" method="POST" enctype="multipart/form-data" accept-charset="UTF-8" >
<section class="chooser">
<div class="part b5-bg">
<label for="url">URL</label><input id="url" type="url" name="url" class="" placeholder="e.g. https://dataworks.calderdale.gov.uk/download/calderdale-business-properties---complete-list/164d66b9-f7f9-40a0-a268-fa7377e46322/Complete_List_Of_Properties_In_calderdale_new.csv" pattern="https://.*" />
</div>
<div class="vs">or</div>
<div class="part b5-bg dropzone" id="drop_zone">
<label for="standard_files">File</label>
<div class="helpertext">Drop CSV file here (or click to browse files)</div>
<input id="standard_files" class="fileselect" type="file" title="browse" name="file" accept=".csv, .tsv, .txt, .xlsx">
</div>
<div class="choose">
<button id="submit" type="submit" class="button seasonal">Validate</button>
</div>
</section>
<div class="spinner"><div class="rect1 seasonal-accent"></div><div class="rect2 seasonal-accent"></div><div class="rect3 seasonal-accent"></div><div class="rect4 seasonal-accent"></div><div class="rect5 seasonal-accent"></div></div>
<section id="results">
<h2>Results</h2>
<div class="table-outer">
<!-- Start status -->
<table class="odi">
<tr><th>Pos</th><th class="LA-name">Local authority</th><th>Last updated</th><th>Rows</th><th id="sortby">Score</th><th>Valid required headings</th><th>Includes required columns</th><th>Includes empties</th><th>Valid coords</th><th>Valid dates</th><th>Valid currency values</th><th>Hosted</th><th>CORS</th></tr>
</table>
<!-- End status -->
</div>
<div id="messages"></div>
</section>
<button id="reset" type="reset" class="b2-bg">Reset</button>
<button id="example" class="c8-bg">Load example</button>
</form>
</div>
</div>
<footer class="b1-bg">
<div class="holder">
<p>© 2019-2021 Open Innovations (<a href="http://creativecommons.org/licenses/by/4.0/">CC-BY 4.0</a>)
</p>
</div>
</footer>
<script src="https://open-innovations.org/resources/oi.log.js"></script>
<script>
OI.log.setup({'id':'open-innovations','target':['odileeds.github.io']}).add('action=view');
</script>
</body>
</html>