mirror of
https://github.com/arnaucube/commonroutesAdminWeb.git
synced 2026-02-07 03:06:44 +01:00
moving and renaming
This commit is contained in:
0
views/login/login.html
Normal file → Executable file
0
views/login/login.html
Normal file → Executable file
0
views/login/login.js
Normal file → Executable file
0
views/login/login.js
Normal file → Executable file
10
views/main/main.html
Normal file → Executable file
10
views/main/main.html
Normal file → Executable file
@@ -3,7 +3,10 @@
|
||||
<div class="col-sm-4">
|
||||
<div class="panel">
|
||||
<div class="panel-heading c_deepPurple300">
|
||||
<h3 class="panel-title">All users</h3>
|
||||
<h3 class="panel-title">
|
||||
All users
|
||||
<span class="badge badge-secondary pull-right c_deepPurple300">{{users.length}}</span>
|
||||
</h3>
|
||||
</div>
|
||||
<div class="panel-body" style="max-height: 500px;overflow-y: scroll;">
|
||||
<div class="list-group">
|
||||
@@ -30,7 +33,10 @@
|
||||
<div class="col-sm-6">
|
||||
<div class="panel">
|
||||
<div class="panel-heading c_deepPurple300">
|
||||
<h3 class="panel-title">All travels</h3>
|
||||
<h3 class="panel-title">
|
||||
All travels
|
||||
<span class="badge badge-secondary pull-right c_deepPurple300">{{travels.length}}</span>
|
||||
</h3>
|
||||
</div>
|
||||
<div class="panel-body" style="max-height: 500px;overflow-y: scroll;">
|
||||
<table class="table table-striped table-hover ">
|
||||
|
||||
23
views/main/main.js
Normal file → Executable file
23
views/main/main.js
Normal file → Executable file
@@ -11,11 +11,9 @@ angular.module('app.main', ['ngRoute'])
|
||||
|
||||
.controller('MainCtrl', function($scope, $http) {
|
||||
$scope.users = [];
|
||||
$scope.travels = [];
|
||||
$scope.loadMorePagination = true;
|
||||
$scope.page = 0;
|
||||
|
||||
$http.get(urlapi + 'users?page=' + $scope.page)
|
||||
$scope.pageUsers = 0;
|
||||
$http.get(urlapi + 'users?page=' + $scope.pageUsers)
|
||||
.then(function(data) {
|
||||
console.log('data success');
|
||||
console.log(data);
|
||||
@@ -24,7 +22,10 @@ angular.module('app.main', ['ngRoute'])
|
||||
}, function(data) {
|
||||
console.log('data error');
|
||||
});
|
||||
$http.get(urlapi + 'travels?page=' + $scope.page)
|
||||
|
||||
$scope.travels = [];
|
||||
$scope.pageTravels = 0;
|
||||
$http.get(urlapi + 'travels?page=' + $scope.pageTravels)
|
||||
.then(function(data) {
|
||||
console.log('data success');
|
||||
console.log(data);
|
||||
@@ -33,4 +34,16 @@ angular.module('app.main', ['ngRoute'])
|
||||
}, function(data) {
|
||||
console.log('data error');
|
||||
});
|
||||
|
||||
$scope.admins=[];
|
||||
$scope.pageAdmins = 0;
|
||||
$http.get(urlapi + 'admins?page=' + $scope.pageAdmins)
|
||||
.then(function(data) {
|
||||
console.log('data success');
|
||||
console.log(data);
|
||||
$scope.admins = data.data;
|
||||
|
||||
}, function(data) {
|
||||
console.log('data error');
|
||||
});
|
||||
});
|
||||
|
||||
6
views/navbar.html
Normal file → Executable file
6
views/navbar.html
Normal file → Executable file
@@ -1,5 +1,5 @@
|
||||
<div ng-controller="NavbarCtrl">
|
||||
<div class="navbar c_grey700">
|
||||
<div ng-show="storageuser" class="navbar c_grey700">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">
|
||||
@@ -24,7 +24,7 @@
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li><a href="javascript:void(0)">Info</a></li>
|
||||
<li class="dropdown">
|
||||
<a href="bootstrap-elements.html" data-target="#" class="dropdown-toggle" data-toggle="dropdown">Settings
|
||||
<a href="" data-target="#" class="dropdown-toggle" data-toggle="dropdown">Settings
|
||||
<b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="javascript:void(0)">Action</a></li>
|
||||
@@ -34,7 +34,7 @@
|
||||
<li><a href="javascript:void(0)">Separated link</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a ng-click="logout()">Logout</a></li>
|
||||
<li><a href="" ng-click="logout()">Logout</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
5
views/navbar.js
Normal file → Executable file
5
views/navbar.js
Normal file → Executable file
@@ -22,6 +22,11 @@ angular.module('app.navbar', ['ngRoute'])
|
||||
console.log($scope.searchString);
|
||||
window.location.href = "#!/search/" + $scope.searchString;
|
||||
};
|
||||
if (localStorage.getItem("cic_admin_userdata")) {
|
||||
$scope.storageuser = JSON.parse(localStorage.getItem("cic_admin_userdata"));
|
||||
console.log($scope.storageuser);
|
||||
}
|
||||
|
||||
$scope.logout = function() {
|
||||
localStorage.removeItem("cic_admin_token");
|
||||
localStorage.removeItem("cic_admin_userdata");
|
||||
|
||||
0
views/network/network.html
Normal file → Executable file
0
views/network/network.html
Normal file → Executable file
0
views/network/network.js
Normal file → Executable file
0
views/network/network.js
Normal file → Executable file
0
views/search/search.html
Normal file → Executable file
0
views/search/search.html
Normal file → Executable file
0
views/search/search.js
Normal file → Executable file
0
views/search/search.js
Normal file → Executable file
0
views/signup/signup.html
Normal file → Executable file
0
views/signup/signup.html
Normal file → Executable file
0
views/signup/signup.js
Normal file → Executable file
0
views/signup/signup.js
Normal file → Executable file
0
views/travel/travel.html
Normal file → Executable file
0
views/travel/travel.html
Normal file → Executable file
0
views/travel/travel.js
Normal file → Executable file
0
views/travel/travel.js
Normal file → Executable file
0
views/travels/travels.html
Normal file → Executable file
0
views/travels/travels.html
Normal file → Executable file
0
views/travels/travels.js
Normal file → Executable file
0
views/travels/travels.js
Normal file → Executable file
1
views/user/user.html
Normal file → Executable file
1
views/user/user.html
Normal file → Executable file
@@ -102,6 +102,7 @@
|
||||
<div class="panel-body">
|
||||
<!--<div class="btn btn-block btn-sm c_orange300">Ban user</div>-->
|
||||
<div ng-show="!user.validated" ng-click="validateUser()" class="btn btn-block btn-sm c_deepPurple300">Validate User</div>
|
||||
<div ng-show="user.validated">Validated by: {{user.validatedBy.username}}</div>
|
||||
<div ng-show="user.validated" ng-click="unvalidateUser()" class="btn btn-block btn-sm c_red200">Unvalidate User</div>
|
||||
<div ng-click="deleteUser()" class="btn btn-block btn-sm c_red300">Delete user</div>
|
||||
</div>
|
||||
|
||||
0
views/user/user.js
Normal file → Executable file
0
views/user/user.js
Normal file → Executable file
0
views/userNetwork/userNetwork.html
Normal file → Executable file
0
views/userNetwork/userNetwork.html
Normal file → Executable file
0
views/userNetwork/userNetwork.js
Normal file → Executable file
0
views/userNetwork/userNetwork.js
Normal file → Executable file
Reference in New Issue
Block a user