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

Extend alarm-clock module : weekday selection #572

Closed
wants to merge 1 commit into from
Closed
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
11 changes: 11 additions & 0 deletions src/app/components/side-menu/elements/modal-alarm-clock.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,17 @@ <h3 class="modal-title"><i class="fa fa-clock-o"></i> {{::modal.dataObj.name}}</
show-meridian="modal.showMeridian">
</uib-timepicker>
</div>
<div class="col-xs-12 col-sm-6">
<div class="btn-group">
<label class="btn btn-primary" ng-model="alarm.monday" uib-btn-checkbox>{{'ALARM.MONDAY' | translate}}</label>
<label class="btn btn-primary" ng-model="alarm.tuesday" uib-btn-checkbox>{{'ALARM.TUESDAY' | translate}}</label>
<label class="btn btn-primary" ng-model="alarm.wednesday" uib-btn-checkbox>{{'ALARM.WEDNESDAY' | translate}}</label>
<label class="btn btn-primary" ng-model="alarm.thursday" uib-btn-checkbox>{{'ALARM.THURSDAY' | translate}}</label>
<label class="btn btn-primary" ng-model="alarm.friday" uib-btn-checkbox>{{'ALARM.FRIDAY' | translate}}</label>
<label class="btn btn-primary" ng-model="alarm.saturday" uib-btn-checkbox>{{'ALARM.SATURDAY' | translate}}</label>
<label class="btn btn-primary" ng-model="alarm.sunday" uib-btn-checkbox>{{'ALARM.SUNDAY' | translate}}</label>
</div>
</div>
<div class="col-xs-12 col-sm-6 pull-down">
<input
bs-switch
Expand Down
9 changes: 8 additions & 1 deletion src/app/i18n/locale-en.json
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,14 @@
"OFF": "Off"
},
"ALARM": {
"CRATE_PLAYLIST_FIRST": "In order to use Alarm Clock, you must create at least one Playlist first"
"CRATE_PLAYLIST_FIRST": "In order to use Alarm Clock, you must create at least one Playlist first",
"MONDAY":"Monday",
"TUESDAY":"Tuesday",
"WEDNESDAY":"Wednesday",
"THURSDAY":"Thursday",
"FRIDAY":"Friday",
"SATURDAY":"Saturday",
"SUNDAY":"Sunday"
},
"MULTIDEVICE": {
"EDIT_GROUPS": "Edit groups",
Expand Down
9 changes: 8 additions & 1 deletion src/app/i18n/locale-fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,14 @@
"OFF": "Stop"
},
"ALARM": {
"CRATE_PLAYLIST_FIRST": "Avant de pouvoir utiliser l'alarme, vous devez créer au moins une playlist"
"CRATE_PLAYLIST_FIRST": "Avant de pouvoir utiliser l'alarme, vous devez créer au moins une playlist",
"MONDAY":"Lundi",
"TUESDAY":"Mardi",
"WEDNESDAY":"Mercredi",
"THURSDAY":"Jeudi",
"FRIDAY":"Vendredi",
"SATURDAY":"Samedi",
"SUNDAY":"Dimanche"
},
"MULTIDEVICE": {
"EDIT_GROUPS": "Editer les groupes",
Expand Down