mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-17 06:52:27 +01:00
fix c/p issue + prevent link disabled training to user
This commit is contained in:
parent
4d7a317315
commit
41eef71ead
@ -27,11 +27,12 @@ class MembersController
|
||||
Group.query (groups) ->
|
||||
$scope.groups = groups.filter (g) -> g.slug != 'admins' && !g.disabled
|
||||
|
||||
## Retrieve the list the available trainings
|
||||
## Retrieve the list of available trainings
|
||||
Training.query().$promise.then (data)->
|
||||
$scope.trainings = data.map (d) ->
|
||||
id: d.id
|
||||
name: d.name
|
||||
disabled: d.disabled
|
||||
|
||||
## Default parameters for AngularUI-Bootstrap datepicker
|
||||
$scope.datePicker =
|
||||
|
@ -40,7 +40,7 @@
|
||||
<span ng-bind="$item.name"></span>
|
||||
<input type="hidden" name="user[training_ids][]" value="{{$item.id}}" />
|
||||
</ui-select-match>
|
||||
<ui-select-choices repeat="t.id as t in (trainings | filter: $select.search)">
|
||||
<ui-select-choices ui-disable-choice="t.disabled" repeat="t.id as t in (trainings | filter: $select.search)">
|
||||
<span ng-bind-html="t.name | highlight: $select.search"></span>
|
||||
</ui-select-choices>
|
||||
</ui-select>
|
||||
|
@ -1,6 +1,4 @@
|
||||
<div class="row m-t m-b padder" ng-repeat="plansGroup in plaest dimentionnable et ses principes sont généralisables à toute production de pas de vis.
|
||||
|
||||
A l'origine du fichier stl est une procédure Python que j'nsClassifiedByGroup" ng-if="ctrl.member.group_id == plansGroup.id || !ctrl.member" ng-show="plansAreShown">
|
||||
<div class="row m-t m-b padder" ng-repeat="plansGroup in plansClassifiedByGroup" ng-if="ctrl.member.group_id == plansGroup.id || !ctrl.member" ng-show="plansAreShown">
|
||||
<div class="col-md-12 text-center">
|
||||
<h2 class="text-u-c">{{ plansGroup.name }}</h2>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user