mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-18 07:52:23 +01:00
update locale
This commit is contained in:
parent
dbc9a388a8
commit
f26e211acb
@ -47,6 +47,9 @@ Application.Controllers.controller "CalendarController", ["$scope", "$state", "$
|
|||||||
availabilitySource.url = "/api/availabilities/public?#{$.param({available_type: availableTypes})}"
|
availabilitySource.url = "/api/availabilities/public?#{$.param({available_type: availableTypes})}"
|
||||||
$scope.calendarConfig.events = availabilitySource.url
|
$scope.calendarConfig.events = availabilitySource.url
|
||||||
|
|
||||||
|
$scope.isAvailableTypeInactive = (type) ->
|
||||||
|
index = availableTypes.indexOf(type)
|
||||||
|
index == -1 ? true : false
|
||||||
|
|
||||||
### PRIVATE SCOPE ###
|
### PRIVATE SCOPE ###
|
||||||
|
|
||||||
|
@ -102,6 +102,15 @@
|
|||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.calendar-filter {
|
||||||
|
.badge {
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
|
&.inactive {
|
||||||
|
opacity: 0.2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -12,10 +12,14 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-xs-12 col-sm-12 col-md-3 b-t hide-b-md">
|
<div class="col-xs-12 col-sm-12 col-md-3 b-t hide-b-md">
|
||||||
<section class="heading-actions wrapper">
|
<section class="heading-actions wrapper calendar-filter">
|
||||||
<span class="badge text-sm bg-formation m-t-md" translate ng-click="filterAvailableType('training')">{{ 'trainings' }}</span>
|
<div>
|
||||||
<span class="badge text-sm bg-machine" translate ng-click="filterAvailableType('machines')">{{ 'machines' }}</span>
|
<i class="fa fa-filter"></i>
|
||||||
<span class="badge text-sm bg-event" translate ng-click="filterAvailableType('event')">{{ 'events' }}</span>
|
<span translate>{{ 'filter' }}</span>
|
||||||
|
</div>
|
||||||
|
<span class="badge text-sm bg-formation" ng-class="{'inactive': isAvailableTypeInactive('training')}" translate ng-click="filterAvailableType('training')">{{ 'trainings' }}</span>
|
||||||
|
<span class="badge text-sm bg-machine" ng-class="{'inactive': isAvailableTypeInactive('machines')}" translate ng-click="filterAvailableType('machines')">{{ 'machines' }}</span>
|
||||||
|
<span class="badge text-sm bg-event" ng-class="{'inactive': isAvailableTypeInactive('event')}" translate ng-click="filterAvailableType('event')">{{ 'events' }}</span>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -25,7 +29,7 @@
|
|||||||
|
|
||||||
<section class="row no-gutter">
|
<section class="row no-gutter">
|
||||||
|
|
||||||
<div class="col-sm-12 col-md-12 col-lg-9">
|
<div class="col-sm-12 col-md-12 col-lg-12">
|
||||||
<div ui-calendar="calendarConfig" ng-model="eventSources" calendar="calendar" class="wrapper-lg public-calendar"></div>
|
<div ui-calendar="calendarConfig" ng-model="eventSources" calendar="calendar" class="wrapper-lg public-calendar"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -95,6 +95,7 @@ en:
|
|||||||
description_is_required: "Description is required."
|
description_is_required: "Description is required."
|
||||||
name_is_required: "Name is required."
|
name_is_required: "Name is required."
|
||||||
all_themes: "All themes"
|
all_themes: "All themes"
|
||||||
|
filter: 'Filter'
|
||||||
|
|
||||||
messages:
|
messages:
|
||||||
you_will_lose_any_unsaved_modification_if_you_quit_this_page: "You will lose any unsaved modification if you quit this page"
|
you_will_lose_any_unsaved_modification_if_you_quit_this_page: "You will lose any unsaved modification if you quit this page"
|
||||||
|
@ -29,7 +29,7 @@ fr:
|
|||||||
confirmation_required: "Confirmation requise"
|
confirmation_required: "Confirmation requise"
|
||||||
description: "Description"
|
description: "Description"
|
||||||
machines: "Machines"
|
machines: "Machines"
|
||||||
events: "Events"
|
events: "Évènements"
|
||||||
materials: "Matériaux"
|
materials: "Matériaux"
|
||||||
date: "Date"
|
date: "Date"
|
||||||
price: "Prix"
|
price: "Prix"
|
||||||
@ -95,6 +95,7 @@ fr:
|
|||||||
description_is_required: "La description est requise."
|
description_is_required: "La description est requise."
|
||||||
name_is_required: "Le nom est requis."
|
name_is_required: "Le nom est requis."
|
||||||
all_themes: "Toutes les thématiques"
|
all_themes: "Toutes les thématiques"
|
||||||
|
filter: 'Filtre'
|
||||||
|
|
||||||
messages:
|
messages:
|
||||||
you_will_lose_any_unsaved_modification_if_you_quit_this_page: "Vous perdrez les modifications non enregistrées si vous quittez cette page"
|
you_will_lose_any_unsaved_modification_if_you_quit_this_page: "Vous perdrez les modifications non enregistrées si vous quittez cette page"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user