</button>
</div>
</div>
+
+ <div class="row pad-vert"></div>
+
+ <div class="row bg-info">
+ <div class="col-md-6">
+ <b>[% l('Floating') %]</b>
+ </div>
+ </div>
+
+ <div class="row">
+ <div class="col-md-6" ng-class="{'bg-success': working.floating !== undefined}">
+ <select class="form-control"
+ ng-disabled="!defaults.attributes.floating" ng-model="working.floating"
+ ng-options="a.id() as a.name() for a in floating_list"
+ ></select>
+ </div>
+ </div>
</div>
<div class="col-md-4">
};
+ service.get_floating_groups = function() {
+ if (egCore.env.cfg)
+ return $q.when(egCore.env.cfg.list);
+
+ return egCore.pcrud.retrieveAll('cfg', {}, {atomic : true}).then(
+ function(list) {
+ egCore.env.absorbList(list, 'cfg');
+ return list;
+ }
+ );
+
+ };
+
service.bmp_parts = {};
service.get_parts = function(rec) {
if (service.bmp_parts[rec])
circ_as_type : true,
location : true,
holdable : true,
- age_protect : true
+ age_protect : true,
+ floating : true
}
};
});
createSimpleUpdateWatcher('age_protect');
+ $scope.floating_list = [];
+ itemSvc.get_floating_groups().then(function(list){
+ $scope.floating_list = list;
+ });
+ createSimpleUpdateWatcher('floating');
+
createSimpleUpdateWatcher('circ_lib');
createSimpleUpdateWatcher('circulate');
createSimpleUpdateWatcher('holdable');
circ_as_type : true,
location : true,
holdable : true,
- age_protect : true
+ age_protect : true,
+ floating : true
}
};