Skip to content

Instantly share code, notes, and snippets.

@Johan-ZeLearner
Johan-ZeLearner / rancher_ubuntu_16_04.md
Created March 4, 2018 11:04
Installation of Rancher UI on a fresh ubuntu 16.04 with HTTPS / Nginx / Let's encrypt

step 1 Root privileges for installation

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&params=:params');
}]);
})();
@Johan-ZeLearner
Johan-ZeLearner / CustomerProfileRootController.js
Created May 4, 2015 10:47
CustomerProfile CRUD AngularJS module : Root state files
(function(){
angular.module('erpedia-customer-profile')
.controller('CustomerProfileRootController', function(){
});
})();
@Johan-ZeLearner
Johan-ZeLearner / routes.js
Last active August 29, 2015 14:20
Routes configuration for our CustomerProfile module
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'