Skip to content

Commit 2100bdd

Browse files
empty state for json validator
1 parent 894f923 commit 2100bdd

File tree

1 file changed

+60
-19
lines changed

1 file changed

+60
-19
lines changed

application/views/json_validator_view.php

Lines changed: 60 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,44 +6,85 @@
66
</div>
77
</div>
88
9-
<div class="row">
10-
<div class="col-sm-12">
9+
10+
<div class="row gx-5">
11+
<div class="col-md-5">
1112
<div class="mb-5">
1213
<label class="form-label">Upload a file</label>
1314
<input id="fileupload" type="file" name="file" class="form-control"/>
1415
</div>
15-
</div>
16-
</div>
1716
18-
<div class="row">
19-
<div class="col-sm-12">
2017
<div class="mb-3">
2118
<label class="form-label">Or paste your JSON here</label>
22-
<textarea id="result" class="form-control result save" rows="14" placeholder="Paste your JSON here"></textarea>
19+
<textarea id="result" class="form-control result save" rows="14" placeholder="Paste your JSON here" spellcheck="false">[
20+
{
21+
"album": "The White Stripes",
22+
"year": 1999,
23+
"US_peak_chart_post": "-"
24+
},
25+
{
26+
"album": "De Stijl",
27+
"year": 2000,
28+
"US_peak_chart_post": "-"
29+
},
30+
{
31+
"album": "White Blood Cells",
32+
"year": 2001,
33+
"US_peak_chart_post": 61
34+
},
35+
{
36+
"album": "Elephant",
37+
"year": 2003,
38+
"US_peak_chart_post": 6
39+
},
40+
{
41+
"album": "Get Behind Me Satan",
42+
"year": 2005,
43+
"US_peak_chart_post": 3
44+
},
45+
{
46+
"album": "Icky Thump",
47+
"year": 2007,
48+
"US_peak_chart_post": 2
49+
},
50+
{
51+
"album": "Under Great White Northern Lights",
52+
"year": 2010,
53+
"US_peak_chart_post": 11
54+
},
55+
{
56+
"album": "Live in Mississippi",
57+
"year": 2011,
58+
"US_peak_chart_post": "-"
59+
},
60+
{
61+
"album": "Live at the Gold Dollar",
62+
"year": 2012,
63+
"US_peak_chart_post": "-"
64+
},
65+
{
66+
"album": "Nine Miles from the White City",
67+
"year": 2013,
68+
"US_peak_chart_post": "-"
69+
}
70+
]</textarea>
2371
</div>
24-
</div>
2572
26-
</div>
2773
28-
<div class="row">
29-
<div class="col-sm-12">
3074
<div class="clearfix more-bottom-margin">
3175
<button id="convert" type="submit" class="btn btn-primary action">
3276
<i class="bi bi-chevron-right"></i> Format
3377
</button>
34-
<button id="clear" type="submit" class="btn">
78+
<button id="clear" type="submit" class="btn btn-light">
3579
<i class="bi bi-backspace"></i> Clear
3680
</button>
37-
<a id="issue" class="btn btn-default pull-right" href="#" tabindex="0" role="button" data-toggle="popover" title= "Found an issue? Want an improvement?">Bug or suggestion?</a>
3881
</div>
39-
</div>
40-
</div>
4182
42-
<div class="row">
43-
<div class="col-sm-12">
83+
</div>
84+
<div class="col-md-7">
4485
<div class="form-group">
45-
<label>Result</label>
46-
<div id="status" class="alert alert-default"></div>
86+
<label class="form-label">Result</label>
87+
<div id="status" class="alert alert-default m-t-2"></div>
4788
</div>
4889
</div>
4990
</div>

0 commit comments

Comments
 (0)