add groups feature

This commit is contained in:
Denis barbaron
2019-06-12 10:29:07 +02:00
parent 6fd750dad5
commit 7f5dc4c152
119 changed files with 12416 additions and 402 deletions

View File

@@ -1,6 +1,13 @@
/**
* Copyright © 2019 contains code contributed by Orange SA, authors: Denis Barbaron - Licensed under the Apache license 2.0
**/
require('./signin.css')
module.exports = angular.module('stf.signin', [])
module.exports = angular.module('stf.signin', [
require('stf/util/common').name,
require('stf/common-ui').name
])
.config(function($routeProvider) {
$routeProvider
.when('/auth/mock/', {

View File

@@ -1,4 +1,8 @@
module.exports = function SignInCtrl($scope, $http) {
/**
* Copyright © 2019 contains code contributed by Orange SA, authors: Denis Barbaron - Licensed under the Apache license 2.0
**/
module.exports = function SignInCtrl($scope, $http, CommonService) {
$scope.error = null
@@ -33,4 +37,12 @@ module.exports = function SignInCtrl($scope, $http) {
}
})
}
$scope.mailToSupport = function() {
CommonService.url('mailto:' + $scope.contactEmail)
}
$http.get('/auth/contact').then(function(response) {
$scope.contactEmail = response.data.contact.email
})
}

View File

@@ -1,3 +1,7 @@
//
Copyright © 2019 contains code contributed by Orange SA, authors: Denis Barbaron - Licensed under the Apache license 2.0
//
.login2(ng-controller='SignInCtrl')
.login-wrapper
a(href='./')
@@ -29,3 +33,14 @@
span(ng-show='signin.email.$error.required', translate) Please enter your email
input.btn.btn-lg.btn-primary.btn-block(type='submit', value='Log In')
button.btn.btn-sm.btn-default-outline(
type='button'
uib-tooltip="{{'Write a mail to the support team' | translate}}"
ng-disabled='!contactEmail'
ng-click='mailToSupport()'
tooltip-placement='top'
tooltip-popup-delay='500')
i.fa.fa-envelope-o
span(translate) Contact Support