Commit cb653569 authored by A. Fauzi's avatar A. Fauzi

test

parent fdb88893
<h3>{{title}}</h3>
{{message}}
<ul ng-repeat="t in technologies">
<li>{{t}}</li>
</ul>
\ No newline at end of file
<h3>{{title}}</h3>
<ul ng-repeat="c in contacts">
<li>{{c}}</li>
</ul>
\ No newline at end of file
<h3>{{title}}</h3>
{{message}}
\ No newline at end of file
<h3>{{title}}</h3>
The parameter is {{param}}
\ No newline at end of file
/* userService.get().then(function successCallback(response){
console.log(response.status);
$scope.list = response.data.kontak;
}, function errorCallback(response) {
alert(response.status);
});*/
/*getUser();
function getUser(id = '') {
$http.get('http://localhost/testcrud/restci/index.php/kontak/?id='+id)
.then(function successCallback(response){
console.log(response.status);
if(id == '') {
$scope.list = response.data.kontak;
} else {
$scope.currentUser = response.data.kontak;
$('#modal-user').modal('show');
}
}, function errorCallback(response) {
alert(response.status);
});
}*/
/*$scope.editInfo = function(info) {
$scope.currentUser = {};
$scope.currentUser = info;
console.log($scope.currentUser);
$('#modal-user').modal('show');
}*/
top/views/list.html search
<form class="form-inline ng-pristine ng-valid" role="form" ng-submit="vm.tableSvc.submitSearch(); $event.preventDefault();">
<label class="sr-only">Search</label>
<input type="text" ng-model="vm.tableSvc.where.VCH_TOPINFO" placeholder="Info" class="form-control">
<button class="btn btn-default btn-success" type="submit">Search</button>
</form>
unit/list
<div lazy-load="ui.select">
<form role="form" class="ng-pristine ng-valid form-inline">
<span>Kriteria</span>
<div class="form-group">
<select class="form-control" ng-model="vm.search['CHR_CATEGORY']" ng-change="vm.searchByColumn(vm.search['CHR_CATEGORY'], 'CHR_CATEGORY')">
<option value="">Any</option>
<option value="1">Unit Tetap</option>
<option value="2">Unit GS</option>
<option value="3">Unit Tambahan</option>
</select>
</div>
<div class="form-group">
<div class="input-group input-custom">
<ui-select ng-model="vm.filter.selectedArea" theme="bootstrap" id="selectedArea" on-select="vm.filterOnSubmit();" class="ui-select-with-scroll">
<ui-select-match placeholder="All">{{$select.selected.VCH_AREANAME}}</ui-select-match>
<ui-select-choices repeat="item in vm.units | filter: $select.search"
refresh="vm.searchArea($select.search)"
refresh-delay="0"
>
<div ng-bind-html=" item.VCH_AREANAME | highlight: $select.search"></div>
</ui-select-choices>
</ui-select>
<span class="input-group-btn">
<button ng-click="vm.filter.selectedArea = undefined; vm.filterOnSubmit();" class="btn btn-default" for="selectedArea">
<span class="glyphicon glyphicon-trash"></span>
</button>
</span>
</div>
</div>
<button class="btn btn-default btn-success" type="submit" ng-click="vm.filterOnSubmit()">Search</button>
</form>
</div>
user/list
<form class="form-inline ng-pristine ng-valid" role="form" ng-submit="vm.tableSvc.submitSearch(); $event.preventDefault();">
<span>Kriteria</span>
<select class="form-control" ng-model="vm.tableSvc.where.BIT_ACTIVE" ng-change="vm.tableSvc.submitSearch(); $event.preventDefault();">
<option value="">Status</option>
<option value="1">Active</option>
<option value="0">Not Active</option>
</select>
<label class="sr-only">Search</label>
<input type="text" ng-model="vm.tableSvc.where.VCH_USERNAME" placeholder="Name" class="form-control">
<button class="btn btn-default btn-success" type="submit">Search</button>
</form>
/*switch(vm.workingPlanCriteria) {
case 'monthPlan' : vm.keyword = {'monthPlan' : vm.key}; break;
case 'planYear' : vm.keyword = {'planYear' : vm.key}; break;
case 'days' : vm.keyword = {'days' : vm.key}; break;
case 'dayOn' : vm.keyword = {'dayOn' : vm.key}; break;
case 'dayOff' : vm.keyword = {'dayOff' : vm.key}; break;
case 'createdAt' : vm.keyword = {'createdAt' : vm.key}; break;
default : vm.keyword = {'monthPlan' : vm.key}; break;
}*/
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment