www/app/components/provisionalPlan/controllers/provisionalPlanDetailsController.js
/**
     * @desc Init data shared with $ionicModal of add movement modal
     * @param {Movement} movement Movement to edit
     * @function _initEditMovementModal
     */
@desc Init data shared with $ionicModal of add movement modal
@param {Movement} movement Movement to edit
@function _initEditMovementModal
@desc Init data shared with $ionicModal of add movement modal @param { Movement } movement Movement to edit @function _initEditMovementModal
function _initEditMovementModal(movement) {
      $scope.movementFormModel = jQuery.extend(true, {}, movement);
      $scope.modal = {
        current: {
          modes: budgetManager.uiManager.formMode,
          mode: budgetManager.uiManager.formMode.edit,
          provisionalPlanTitle: self.provisionalPlan.name,
          modeMessage: 'Éditer le mouvement ' + movement.name
        }
      };
      return $ionicModal.fromTemplateUrl('app/components/movement/views/movementModalForm.html', {
        scope: $scope,
        animation: 'slide-in-up'
      }).then(function (modal) {
        self.movementFormModal = modal;
      });
    }
function _initEditMovementModal ( movement ) { $scope . movementFormModel = jQuery . extend ( true , { } , movement ) ; $scope . modal = { current : { modes : budgetManager . uiManager . formMode , mode : budgetManager . uiManager . formMode . edit , provisionalPlanTitle : self . provisionalPlan . name , modeMessage : 'Éditer le mouvement '  ovement. n ame } } ; return $ionicModal . fromTemplateUrl ( 'app/components/movement/views/movementModalForm.html' , { scope : $scope , animation : 'slide-in-up' } ) . then ( function ( modal ) { self . movementFormModal = modal ; } ) ; }
@desc Init data shared with $ionicModal of add movement modal
 @param {Movement} movement Movement to edit
 @function _initEditMovementModal
@desc Init data shared with $ionicModal of add movement modal @param { Movement } movement Movement to edit @function _initEditMovementModal
//Build new movement by default