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 /
Created Mar 4, 2018
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:
View customerProfileCreateController.js
(function () {
.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>
View customerProfileForm.html
<form ng-submit="saveItem(customer_profile)" method="post" class="smart-form" novalidate="novalidate">
<header>Edition : profil client</header>
<div class="row">
<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="">
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">
<th>Nom complet</th>
<th>Id sur la boutique</th>
<th>Créé le</th>
<th>Modifié le</th>
View CustomerProfileListController .js
.controller('CustomerProfileListController', ['CustomerProfile', '$scope', function(CustomerProfile, $scope){
$scope.customerProfiles = CustomerProfile.query({key: -1});
View customerProfile.js
(function () {
.factory('CustomerProfile', ['$resource', function ($resource) {
return $resource('/CustomerProfile/api/?key=:id&params=:params');
Johan-ZeLearner / CustomerProfileRootController.js
Created May 4, 2015
CustomerProfile CRUD AngularJS module : Root state files
View CustomerProfileRootController.js
.controller('CustomerProfileRootController', function(){
Johan-ZeLearner / routes.js
Last active Aug 29, 2015
Routes configuration for our CustomerProfile module
View routes.js
.config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider){
url: '/customerProfile',
controller: 'CustomerProfileRootController',
templateUrl: jsBaseHref + '/templates/root.html'
You can’t perform that action at this time.