1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-30 11:24:21 +01:00

fix navigation flow in trainings

This commit is contained in:
Sylvain 2016-06-27 15:47:13 +02:00
parent 7bb724ce88
commit cb3bd229a3
2 changed files with 7 additions and 1 deletions

View File

@ -36,6 +36,12 @@ Application.Controllers.controller "ShowTrainingController", ['$scope', '$state'
##
$scope.reserveTraining = (training, event) ->
$state.go('app.logged.trainings_reserve', {id: training.id})
##
# Revert view to the full list of trainings ("<-" button)
##
$scope.cancel = (event) ->
$state.go('app.public.trainings_list')
]

View File

@ -4,7 +4,7 @@
<div class="row no-gutter">
<div class="col-xs-2 col-sm-2 col-md-1">
<section class="heading-btn">
<a href="#" ng-click="backPrevLocation($event)"><i class="fa fa-long-arrow-left "></i></a>
<a href="#" ng-click="cancel($event)"><i class="fa fa-long-arrow-left "></i></a>
</section>
</div>
<div class="col-xs-10 col-sm-10 col-md-7 b-l b-r-md">