mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-20 00:53:26 +02:00
add groups feature
This commit is contained in:
@@ -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/', {
|
||||
|
||||
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user