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:
parent
7bb724ce88
commit
cb3bd229a3
@ -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')
|
||||
]
|
||||
|
||||
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user