By default ubuntu 16.04
have set the ubuntu
user with sudo privileges
In order to connect as root, we must set a password for the ubuntu user :
$ sudo passwd
Enter new UNIX password:
Retype new UNIX password:
(function () { | |
angular.module('erpedia-customer-profile') | |
.controller('CustomerProfileCreateController', ['$scope', function ($scope) { | |
}]); | |
})(); |
<jarvis-widget title="Formulaire d'édition de profil client"> | |
<customer-profile-form idCustomerProfile="0"></customer-profile-form> | |
</jarvis-widget> |
<form ng-submit="saveItem(customer_profile)" method="post" class="smart-form" novalidate="novalidate"> | |
<header>Edition : profil client</header> | |
<fieldset> | |
<div class="row"> | |
<section> | |
<label class="label">Nom</label> | |
<label class="input"> | |
<i class="icon-append fa fa-user"></i> | |
<input placeholder="Indiquez le nom du profil client" type="text" ng-model="customer_profile.name"> | |
</label> |
[ | |
{ | |
"id_customer_profile": 1, | |
"id_store": 1, | |
"id_on_store": 1, | |
"name": "Visiteur", | |
"visible": true, | |
"date_create": "2015-04-30 15:13:17", | |
"date_update": "2015-04-30 16:26:51" | |
}, |
<jarvis-widget padding="false" icon="fa-users" title="Liste des profils clients" padding="false"> | |
<table class="table table-hover"> | |
<thead> | |
<tr> | |
<th>id</th> | |
<th>Nom complet</th> | |
<th>Id sur la boutique</th> | |
<th>Créé le</th> | |
<th>Modifié le</th> | |
<th></th> |
(function(){ | |
angular.module('erpedia-customer-profile') | |
.controller('CustomerProfileListController', ['CustomerProfile', '$scope', function(CustomerProfile, $scope){ | |
$scope.customerProfiles = CustomerProfile.query({key: -1}); | |
}]); | |
})(); |
(function () { | |
angular.module('erpedia-customer-profile') | |
.factory('CustomerProfile', ['$resource', function ($resource) { | |
return $resource('/CustomerProfile/api/?key=:id¶ms=:params'); | |
}]); | |
})(); |
(function(){ | |
angular.module('erpedia-customer-profile') | |
.controller('CustomerProfileRootController', function(){ | |
}); | |
})(); |
angular.module('erpedia-customer-profile') | |
.config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider){ | |
$urlRouterProvider.otherwise('/customerProfile/list'); | |
$stateProvider | |
.state('customerProfile',{ | |
url: '/customerProfile', | |
controller: 'CustomerProfileRootController', | |
templateUrl: jsBaseHref + '/templates/root.html' |