forked from external-repos/pa11y-dashboard
Make WCAG2AA the default standard when adding URL
This commit is contained in:
@@ -8,8 +8,14 @@ module.exports = route;
|
||||
function route (app) {
|
||||
|
||||
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', {
|
||||
standards: getStandards()
|
||||
standards: standards
|
||||
});
|
||||
});
|
||||
|
||||
|
@@ -27,7 +27,6 @@
|
||||
<div class="col-md-4">
|
||||
<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">
|
||||
<option value="">Select a standard</option>
|
||||
{{#standards}}
|
||||
<option {{#selected}}selected{{/selected}}>{{title}}</option>
|
||||
{{/standards}}
|
||||
|
Reference in New Issue
Block a user