mirror of
https://github.com/pa11y/pa11y-dashboard.git
synced 2025-09-25 06:41:21 +00:00
Make WCAG2AA the default standard when adding URL
This commit is contained in:
@@ -8,8 +8,14 @@ module.exports = route;
|
|||||||
function route (app) {
|
function route (app) {
|
||||||
|
|
||||||
app.express.get('/new', function (req, res) {
|
app.express.get('/new', function (req, res) {
|
||||||
|
var standards = getStandards().map(function (standard) {
|
||||||
|
if (standard.title === 'WCAG2AA') {
|
||||||
|
standard.selected = true;
|
||||||
|
}
|
||||||
|
return standard;
|
||||||
|
});
|
||||||
res.render('new', {
|
res.render('new', {
|
||||||
standards: getStandards()
|
standards: standards
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@@ -27,7 +27,6 @@
|
|||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<label class="control-label" for="new-task-standard">Standard</label>
|
<label class="control-label" for="new-task-standard">Standard</label>
|
||||||
<select data-role="new-task-select" class="form-control" id="new-task-standard" name="standard">
|
<select data-role="new-task-select" class="form-control" id="new-task-standard" name="standard">
|
||||||
<option value="">Select a standard</option>
|
|
||||||
{{#standards}}
|
{{#standards}}
|
||||||
<option {{#selected}}selected{{/selected}}>{{title}}</option>
|
<option {{#selected}}selected{{/selected}}>{{title}}</option>
|
||||||
{{/standards}}
|
{{/standards}}
|
||||||
|
Reference in New Issue
Block a user