Skip to content

Instantly share code, notes, and snippets.

Johan Johan-ZeLearner

Block or report user

Report or block Johan-ZeLearner

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Johan-ZeLearner
Johan-ZeLearner / rancher_ubuntu_16_04.md
Created Mar 4, 2018
Installation of Rancher UI on a fresh ubuntu 16.04 with HTTPS / Nginx / Let's encrypt
View rancher_ubuntu_16_04.md

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:
View customerProfileCreateController.js
(function () {
angular.module('erpedia-customer-profile')
.controller('CustomerProfileCreateController', ['$scope', function ($scope) {
}]);
})();
View create.html
<jarvis-widget title="Formulaire d'édition de profil client">
<customer-profile-form idCustomerProfile="0"></customer-profile-form>
</jarvis-widget>
View customerProfileForm.html
<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>
View customer_profiles.json
[
{
"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"
},
View list.html
<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>
View CustomerProfileListController .js
(function(){
angular.module('erpedia-customer-profile')
.controller('CustomerProfileListController', ['CustomerProfile', '$scope', function(CustomerProfile, $scope){
$scope.customerProfiles = CustomerProfile.query({key: -1});
}]);
})();
View customerProfile.js
(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
CustomerProfile CRUD AngularJS module : Root state files
View CustomerProfileRootController.js
(function(){
angular.module('erpedia-customer-profile')
.controller('CustomerProfileRootController', function(){
});
})();
@Johan-ZeLearner
Johan-ZeLearner / routes.js
Last active Aug 29, 2015
Routes configuration for our CustomerProfile module
View routes.js
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'
You can’t perform that action at this time.