Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
d3c13a1d
Commit
d3c13a1d
authored
Jan 21, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed old signup/register view
parent
8ed92124
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
85 deletions
+0
-85
src/app/controllers/all.js
+0
-1
src/app/controllers/signUpCtrl.js
+0
-29
src/app/partials/register.html
+0
-51
src/app/routes/backend/all.js
+0
-4
No files found.
src/app/controllers/all.js
View file @
d3c13a1d
...
...
@@ -7,6 +7,5 @@ define([
'./inspectCtrl'
,
'./jsonEditorCtrl'
,
'./loginCtrl'
,
'./signUpCtrl'
,
'./errorCtrl'
,
],
function
()
{});
src/app/controllers/signUpCtrl.js
deleted
100644 → 0
View file @
8ed92124
define
([
'angular'
,
],
function
(
angular
)
{
"use strict"
;
var
module
=
angular
.
module
(
'grafana.routes'
);
module
.
controller
(
'SignUpCtrl'
,
function
(
$scope
,
backendSrv
,
$location
)
{
$scope
.
loginModel
=
{};
$scope
.
grafana
.
sidemenu
=
false
;
$scope
.
register
=
function
()
{
delete
$scope
.
registerError
;
if
(
!
$scope
.
loginForm
.
$valid
)
{
return
;
}
if
(
$scope
.
loginModel
.
password
!==
$scope
.
loginModel
.
password2
)
{
$scope
.
registerError
=
"Passwords do not match"
;
return
;
}
backendSrv
.
post
(
'/api/account/signup'
,
$scope
.
loginModel
).
then
(
function
()
{
$location
.
path
(
'/login'
);
});
};
});
});
src/app/partials/register.html
deleted
100644 → 0
View file @
8ed92124
<div
class=
"container"
>
<div
class=
"login-box"
>
<div
class=
"login-box-logo"
>
<img
src=
"img/logo_transparent_200x75.png"
>
</div>
<div
class=
"text-center"
style=
"margin-bottom: 50px"
>
<h3>
Account registration
</32>
</div>
<form
name=
"loginForm"
class=
"form-horizontal"
>
<div
class=
"row-fluid"
>
<div
class=
"span8"
>
<div
class=
"control-group"
>
<label
class=
"control-label"
for=
"inputEmail"
>
Email
</label>
<div
class=
"controls"
>
<input
type=
"text"
required
ng-model=
"loginModel.email"
id=
"inputEmail"
placeholder=
"Email"
>
</div>
</div>
<div
class=
"control-group"
>
<label
class=
"control-label"
for=
"inputPassword"
>
Password
</label>
<div
class=
"controls"
>
<input
type=
"password"
required
ng-model=
"loginModel.password"
id=
"inputPassword"
placeholder=
"Password"
>
</div>
</div>
<div
class=
"control-group"
>
<label
class=
"control-label"
for=
"inputPassword2"
>
Confirm password
</label>
<div
class=
"controls"
>
<input
type=
"password"
required
ng-model=
"loginModel.password2"
id=
"password2"
placeholder=
"Confirm password"
>
</div>
</div>
</div>
<div
class=
"span4"
>
<button
type=
"submit"
ng-click=
"register()"
class=
"btn btn-success btn-large"
>
<i
class=
"fa fa-lock"
></i>
Sign up
</button>
</div>
</div>
<div
class=
"alert alert-error"
ng-show=
"loginError"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"alert"
>
×
</button>
<strong>
Login failed:
</strong>
{{loginError}}
</div>
</form>
</div>
</div>
src/app/routes/backend/all.js
View file @
d3c13a1d
...
...
@@ -58,10 +58,6 @@ define([
templateUrl
:
'app/partials/login.html'
,
controller
:
'LoginCtrl'
,
})
.
when
(
'/signup'
,
{
templateUrl
:
'app/partials/register.html'
,
controller
:
'SignUpCtrl'
,
})
.
when
(
'/dashboard/solo/:id/'
,
{
templateUrl
:
'app/partials/solo-panel.html'
,
controller
:
'SoloPanelCtrl'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment