mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
improved texts
This commit is contained in:
parent
35d9bec8a5
commit
b1a98d3574
@ -483,6 +483,7 @@ Application.Controllers.controller('NewEventController', ['$scope', '$state', 'C
|
||||
{ label: _t('app.admin.events_new.every_year'), value: 'year' }
|
||||
];
|
||||
|
||||
// triggered when the new event form was submitted to the API and have received an answer
|
||||
$scope.onSubmited = function(content) {
|
||||
if ((content.id == null)) {
|
||||
$scope.alerts = [];
|
||||
@ -527,17 +528,17 @@ Application.Controllers.controller('EditEventController', ['$scope', '$state', '
|
||||
// List of age ranges
|
||||
$scope.ageRanges = ageRangesPromise;
|
||||
|
||||
// Default edit mode for periodic event
|
||||
// Default edit-mode for periodic event
|
||||
$scope.editMode = 'single';
|
||||
|
||||
// show edit mode modal if event is recurrence
|
||||
// show edit-mode modal if event is recurrent
|
||||
$scope.isShowEditModeModal = $scope.event.recurrence_events.length > 0;
|
||||
|
||||
$scope.editRecurrent = function (e) {
|
||||
if ($scope.isShowEditModeModal && $scope.event.recurrence_events.length > 0) {
|
||||
e.preventDefault();
|
||||
|
||||
// open a choice edit mode dialog
|
||||
// open a choice edit-mode dialog
|
||||
const modalInstance = $uibModal.open({
|
||||
animation: true,
|
||||
templateUrl: '<%= asset_path "events/editRecurrent.html" %>',
|
||||
@ -547,7 +548,7 @@ Application.Controllers.controller('EditEventController', ['$scope', '$state', '
|
||||
editMode: function () { return $scope.editMode; }
|
||||
}
|
||||
});
|
||||
// submit form event by edit mode
|
||||
// submit form event by edit-mode
|
||||
modalInstance.result.then(function(res) {
|
||||
$scope.isShowEditModeModal = false;
|
||||
$scope.editMode = res.editMode;
|
||||
@ -556,6 +557,7 @@ Application.Controllers.controller('EditEventController', ['$scope', '$state', '
|
||||
}
|
||||
};
|
||||
|
||||
// triggered when the edit event form was submitted to the API and have received an answer
|
||||
$scope.onSubmited = function(data) {
|
||||
if (data.total === data.updated) {
|
||||
if (data.updated > 1) {
|
||||
@ -623,7 +625,7 @@ Application.Controllers.controller('EditEventController', ['$scope', '$state', '
|
||||
]);
|
||||
|
||||
/**
|
||||
* Controller used in the event edit mode modal window
|
||||
* Controller used in the event edit-mode modal window
|
||||
*/
|
||||
Application.Controllers.controller('EditRecurrentEventController', ['$scope', '$uibModalInstance', 'editMode', 'growl', '_t',
|
||||
function ($scope, $uibModalInstance, editMode, growl, _t) {
|
||||
|
@ -231,7 +231,7 @@ en:
|
||||
# edit an existing event
|
||||
edit_the_event: "Edit the event"
|
||||
confirmation_required: "Confirmation required"
|
||||
edit_recurring_event: "What do you want to update this periodic event ?"
|
||||
edit_recurring_event: "You're about to update a periodic event. What do you want to update ?"
|
||||
edit_this_event: "Only this event"
|
||||
edit_this_and_next: "This event and the following"
|
||||
edit_all: "All events"
|
||||
|
@ -231,7 +231,7 @@ es:
|
||||
# edit an existing event
|
||||
edit_the_event: "Editar el evento"
|
||||
confirmation_required: "Confirmation required"
|
||||
edit_recurring_event: "What do you want to update this periodic event ?"
|
||||
edit_recurring_event: "You're about to update a periodic event. What do you want to update ?"
|
||||
edit_this_event: "Only this event"
|
||||
edit_this_and_next: "This event and the following"
|
||||
edit_all: "All events"
|
||||
|
@ -231,7 +231,7 @@ fr:
|
||||
# modifier un évènement existant
|
||||
edit_the_event: "Éditer l'évènement"
|
||||
confirmation_required: "Confirmation requise"
|
||||
edit_recurring_event: "Que voulez-vous modifier cet évènement périodique ?"
|
||||
edit_recurring_event: "Vous êtes sur le point de modifier un évènement périodique. Que voulez-vous modifier ?"
|
||||
edit_this_event: "Uniquement cet évènement"
|
||||
edit_this_and_next: "Cet évènement et tous les suivants"
|
||||
edit_all: "Tous les évènements"
|
||||
|
@ -231,7 +231,7 @@ pt:
|
||||
# edit an existing event
|
||||
edit_the_event: "Editar evento"
|
||||
confirmation_required: "Confirmation required"
|
||||
edit_recurring_event: "What do you want to update this periodic event ?"
|
||||
edit_recurring_event: "You're about to update a periodic event. What do you want to update ?"
|
||||
edit_this_event: "Only this event"
|
||||
edit_this_and_next: "This event and the following"
|
||||
edit_all: "All events"
|
||||
|
Loading…
Reference in New Issue
Block a user