Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Commit

Permalink
Step name in prev/next buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilco Fiers committed Sep 1, 2014
1 parent 80cbcd7 commit eeb89e2
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 4 deletions.
3 changes: 3 additions & 0 deletions app/scripts/controllers/audit/explore.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,7 @@ evalExploreModel, evalTestModel, $location) {
$location.path('/audit/scope');
};

$scope.nextStepName = 'STEP_SAMPLE';
$scope.previousStepName = 'STEP_SCOPE';

});
3 changes: 3 additions & 0 deletions app/scripts/controllers/audit/finalize.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,8 @@ $location, evalSampleModel, evalReportModel) {
$location.path('/audit/test');
};

$scope.nextStepName = 'STEP_VIEW';
$scope.previousStepName = 'STEP_AUDIT';

});

4 changes: 4 additions & 0 deletions app/scripts/controllers/audit/sample.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,8 @@ evalExploreModel, evalSampleModel, evalTestModel) {
$scope.previousStep = function () {
$location.path('/audit/explore');
};

$scope.nextStepName = 'STEP_AUDIT';
$scope.previousStepName = 'STEP_EXPLORE';

});
3 changes: 3 additions & 0 deletions app/scripts/controllers/audit/scope.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@ angular.module('wcagReporter')
$location.path('/');
};

$scope.nextStepName = 'STEP_EXPLORE';
$scope.previousStepName = 'STEP_START';

});
4 changes: 4 additions & 0 deletions app/scripts/controllers/audit/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ angular.module('wcagReporter')
$location.path('/audit/sample');
};

$scope.nextStepName = 'STEP_REPORT';
$scope.previousStepName = 'STEP_SAMPLE';


$scope.completeSelected = function () {
var pages = $scope.structuredSample.webpage
.concat($scope.randomSample.webpage);
Expand Down
11 changes: 9 additions & 2 deletions app/scripts/locales/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ angular.module('wcagReporter').config(function ($translateProvider) {
'WZRD_TEST': '4. Audit Sample',
'WZRD_FINALIZE': '5. Report Findings',
'WZRD_SAVE': 'View Report',
'STEP_START': 'Start',
'STEP_SCOPE': 'Scope',
'STEP_EXPLORE': 'Explore',
'STEP_SAMPLE': 'Sample',
'STEP_AUDIT': 'Audit',
'STEP_REPORT': 'Report',
'STEP_VIEW': 'View Report',
'HD_START': 'WCAG-EM Report Tool',
'HD_START_1': 'Website Accessibility Evaluation Report Generator',
'HD_STEP1': 'Step 1: Define the Evaluation Scope',
Expand All @@ -68,10 +75,10 @@ angular.module('wcagReporter').config(function ($translateProvider) {
'RESULTS_FOR': 'Results for',
'SAMPLE_FINDINGS': 'Results for the entire sample',
'DOWNLOAD_REPORT': 'Download and customize this report',
'INTRO_START_1': 'This tool helps you generate a report according to the {0}. The tool does not perform any accessibility evaluation. It provides options that allow you to record information about the website and the evaluation, including the evaluation results. It helps you follow the steps suggested by WCAG-EM, and to generate a structured report from the input that you provide. None of the input is required and you can go back and forth between the steps in any sequence. Once you are done providing input, you can download and further customize the report to your liking.',
'INTRO_START_1': 'This tool helps you generate a report according to the {0}. The tool does not perform any accessibility checks. It provides options that allow you to record information about the website and the evaluation, including the evaluation results. It helps you follow the steps suggested by WCAG-EM, and to generate a structured report from the input that you provide. None of the input is required and you can go back and forth between the steps in any sequence. Once you are done providing input, you can download and further customize the report to your liking.',
'INTRO_START_1_0': 'Website Accessibility Conformance Evaluation Methodology (WCAG-EM)',
'INTRO_START_2_HD': 'Before you start',
'INTRO_START_2': 'Following the steps of WCAG-EM and using this tool to carry out a comprehensive accessibility evaluation of a website requires experience in evaluating accessibility using {0}. WCAG-EM provides further guidance on background reading, and users of this tool are expected to be familiar with WCAG-EM. Also, before evaluating an entire website it is usually good to do a preliminary evaluation of different web pages from the target website to identify obvious accessibility barriers and develop an overall understanding of the accessibility of the website. {1} describes such an approach for preliminary evaluation that is complementary to WCAG-EM.',
'INTRO_START_2': 'Following the steps of WCAG-EM and using this tool to carry out a comprehensive accessibility evaluation of a website requires experience in evaluating accessibility using {0}. WCAG-EM provides further guidance on background reading, and users of this tool are expected to be familiar with WCAG-EM. Also, before evaluating an entire website it is usually good to carry out preliminary evaluation of different web pages from the target website to identify obvious accessibility barriers and develop an overall understanding of the accessibility of the website. {1} describes such an approach for preliminary evaluation that is complementary to WCAG-EM.',
'INTRO_START_2_0': 'Web Content Accessibility Guidelines (WCAG) 2.0',
'INTRO_START_2_1': 'Easy Checks - A First Review of Web Accessibility',
'INTRO_START_3_HD': 'About this tool',
Expand Down
4 changes: 2 additions & 2 deletions app/views/step-buttons.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<li ng-if="previousStep">
<button ng-click="previousStep()" class="btn btn-primary-invert">
<span class="glyphicon glyphicon-chevron-left"></span>
{{'PREV_STEP' | translate}}
{{'PREV_STEP' | translate}}: {{previousStepName | translate}}
</button></li>

<li ng-if="previousStep" class="pull-right">
<button ng-click="nextStep()" class="btn btn-primary">
{{'NEXT_STEP' | translate}}
{{'NEXT_STEP' | translate}}: {{nextStepName | translate}}
<span class="glyphicon glyphicon-chevron-right"></span>
</button></li>
</ul>
8 changes: 8 additions & 0 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@
"WZRD_FINALIZE": "5. Report Findings",
"WZRD_SAVE": "View Report",

"STEP_START": "Start",
"STEP_SCOPE": "Scope",
"STEP_EXPLORE": "Explore",
"STEP_SAMPLE": "Sample",
"STEP_AUDIT": "Audit",
"STEP_REPORT": "Report",
"STEP_VIEW": "View Report",

"HD_START": "WCAG-EM Report Tool",
"HD_START_1": "Website Accessibility Evaluation Report Generator",
"HD_STEP1": "Step 1: Define the Evaluation Scope",
Expand Down

0 comments on commit eeb89e2

Please sign in to comment.