Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Census accessible #94

Merged
merged 10 commits into from
Apr 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions avRegistration/auth-method-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ angular.module('avRegistration')
{
var url = backendUrl + 'auth-event/' + eid + '/ballot-box/' + ballot_box_id + '/tally-sheet/' + tally_sheet_id + "/";

return $http.delete(url, {})
return $http.delete(url, {});
};

/**
Expand All @@ -200,7 +200,7 @@ angular.module('avRegistration')
{
var url = backendUrl + 'auth-event/' + eid + '/ballot-box/' + ballot_box_id + "/delete/";

return $http.delete(url, {})
return $http.delete(url, {});
};

authmethod.updateUserExtra = function (extra) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<input
type="checkbox"
class="form-control"
aria-label="input{{index}}-bool"
id="{{index}}Text"
ng-model="field.value"
ng-disabled="field.disabled"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<input
type="text"
class="form-control"
aria-label="input{{index}}-captcha"
id="{{index}}Text"
minlength={{field.min}}
maxlength={{field.max}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<input
type="text"
class="form-control"
aria-label="{{code_id}}-code"
id="{{code_id}}"
ng-model="field.value"
ng-disabled="field.disabled"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
<label ng-if="!label" class="control-label col-sm-4">{{field.name}}</label>
<label class="control-label col-sm-4" ng-if="label" ng-bind="label"></label>
<div class="col-sm-8">
<select ng-model="date.year" ng-change="onChange()">
<select aria-label="{{field.name}}-year" ng-model="date.year" ng-change="onChange()">
<option ng-selected="date.year == item" ng-repeat="item in years" ng-value="item">{{item}}</option>
</select>

<select ng-model="date.month" ng-change="onChange()">
<select aria-label="{{field.name}}-month" ng-model="date.month" ng-change="onChange()">
<option ng-selected="date.month == item" ng-repeat="item in months" ng-value="item">{{item}}</option>
</select>

<select ng-model="date.day" ng-change="onChange()">
<select aria-label="{{field.name}}-day" ng-model="date.day" ng-change="onChange()">
<option ng-selected="date.day == item" ng-repeat="item in getDays()" ng-value="item">{{item}}</option>
</select>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
[avr-date-field] {
select:focus {
outline: 1px solid blue;
}

.form-group {
min-height: 80px;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
<div
class="form-group"
ng-class="{'has-error': fieldForm.input.$dirty && fieldForm.input.$invalid}">
<label for="input" class="control-label col-sm-4">
<label for="input{{index}}" class="control-label col-sm-4">
<span>{{field.name}}</span>
</label>
<div class="col-sm-8">
<input
type="text"
name="input"
id="input{{index}}"
aria-label="input{{index}}-dni"
class="form-control"
minlength="{{field.min}}"
maxlength="{{field.max}}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
<div
class="form-group"
ng-class="{'has-error': fieldForm.input.$dirty && fieldForm.input.$invalid}">
<label for="input" class="control-label col-sm-4">
<label for="image-field" class="control-label col-sm-4">
<span>{{field.name}}</span>
</label>
<div class="col-sm-8">
<input
type="file"
name="image"
id="image-field"
aria-label="image-field{{index}}"
class="form-control"
ng-disabled="field.disabled"
tabindex="{{index}}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
<div
class="form-group"
ng-class="{'has-error': fieldForm.input.$dirty && fieldForm.input.$invalid}">
<label for="input" class="control-label col-sm-4">
<label for="input{{index}}" class="control-label col-sm-4">
<span>{{field.name}}</span>
</label>
<div class="col-sm-8">
<input
type="number"
class="form-control"
id="input{{index}}"
aria-label="input{{index}}-int"
name="input"
min="{{field.min}}"
max="{{field.max}}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<input
type="tel"
class="form-control phone-login"
aria-label="input{{index}}-tel"
id="input{{index}}"
ng-disabled="field.disabled"
tabindex="{{index}}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@
<div
class="form-group"
ng-class="{'has-error': fieldForm.input.$dirty && fieldForm.input.$invalid}">
<label for="input" class="control-label col-sm-4">
<label for="input{{index}}" class="control-label col-sm-4">
<span ng-if="field.name == 'username'" ng-i18next="avRegistration.usernameLabel"></span>
<span ng-if="field.name != 'username'">{{field.name}}</span>
</label>
<div class="col-sm-8">
<input
type="text"
name="input"
id="input{{index}}"
aria-label="input{{index}}-textarea"
class="form-control"
minlength="{{field.min}}"
maxlength="{{field.max}}"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<textarea id="{{index}}Text" rows="5" cols="60" tabindex="{{index}}" readonly>{{field.name}}</textarea>
<textarea aria-label="{{index}}Text" id="{{index}}Text" rows="5" cols="60" tabindex="{{index}}" readonly>{{field.name}}</textarea>
<p class="help-block" ng-if="field.help">
{{field.help}}
</p>
Expand Down
Loading