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
eae4bb74
Commit
eae4bb74
authored
Feb 13, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ux(profile): update profile forms with new form markup and classes
parent
caa765ec
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
95 deletions
+42
-95
public/app/features/profile/partials/password.html
+16
-38
public/app/features/profile/partials/profile.html
+25
-56
public/less/normform.less
+1
-1
No files found.
public/app/features/profile/partials/password.html
View file @
eae4bb74
...
...
@@ -2,55 +2,33 @@
</navbar>
<div
class=
"page-container"
>
<div
class=
"page"
>
<h1>
Change password
</h1>
<form
name=
"userForm"
>
<div>
<div
class=
"norm-form"
>
<ul
class=
"norm-form-list"
>
<li
class=
"norm-form-item"
style=
"width: 100px"
>
Old Password
</li>
<li>
<input
type=
"password"
required
ng-model=
"command.oldPassword"
class=
"input-xlarge norm-form-input last"
>
</li>
</ul>
<div
class=
"clearfix"
></div>
</div>
<div
class=
"norm-form"
>
<ul
class=
"norm-form-list"
>
<li
class=
"norm-form-item"
style=
"width: 100px"
>
New Password
</li>
<li>
<input
type=
"password"
required
ng-model=
"command.newPassword"
ng-minlength=
"4"
class=
"input-xlarge norm-form-input last"
>
</li>
</ul>
<div
class=
"clearfix"
></div>
</div>
<div
class=
"norm-form"
>
<ul
class=
"norm-form-list"
>
<li
class=
"norm-form-item"
style=
"width: 100px"
>
Confirm New
</li>
<li>
<input
type=
"password"
required
ng-model=
"command.confirmNew"
ng-minlength=
"4"
class=
"input-xlarge norm-form-input last"
>
</li>
</ul>
<div
class=
"clearfix"
></div>
<form
name=
"userForm"
class=
"gf-form-group"
>
<div
class=
"gf-form"
>
<span
class=
"gf-form-label gf-size-m"
>
Old Password
</span>
<input
class=
"gf-form-input gf-size-xxl"
type=
"text"
required
ng-model=
"command.oldPassword"
>
</div>
<br>
<div
class=
"gf-form"
>
<span
class=
"gf-form-label gf-size-m"
>
New Password
</span>
<input
class=
"gf-form-input gf-size-xxl"
type=
"text"
required
ng-minlength=
"4"
ng-model=
"command.newPassword"
>
</div>
<br>
<div
class=
"gf-form"
>
<span
class=
"gf-form-label gf-size-m"
>
Confirm Password
</span>
<input
class=
"gf-form-input gf-size-xxl"
type=
"text"
required
ng-minlength=
"4"
ng-model=
"command.confirmNew"
>
</div>
<br>
<div
class=
"p"
>
<div
class=
"gf-form-button-row"
>
<button
type=
"submit"
class=
"btn btn-success"
ng-click=
"changePassword()"
>
Change Password
</button>
<a
class=
"btn-text"
href=
"profile"
>
Cancel
</a>
</div>
</form>
</div>
</div>
public/app/features/profile/partials/profile.html
View file @
eae4bb74
...
...
@@ -2,71 +2,42 @@
</navbar>
<div
class=
"page-container"
>
<div
class=
"page-wide"
>
<h1>
Profile
</h1>
<section
class=
"simple-box"
>
<h3
class=
""
>
Preferences
</h3>
</section>
<form
name=
"userForm"
>
<div
class=
"norm-form"
>
<ul
class=
"norm-form-list"
>
<li
class=
"norm-form-item"
style=
"width: 100px"
>
Name
</li>
<li>
<input
type=
"text"
required
ng-model=
"user.name"
class=
"input-xlarge norm-form-input last"
>
</li>
</ul>
<div
class=
"clearfix"
></div>
<form
name=
"userForm"
class=
"gf-form-group"
>
<div
class=
"gf-form"
>
<span
class=
"gf-form-label gf-size-s"
>
Name
</span>
<input
class=
"gf-form-input gf-size-xxl"
type=
"text"
required
ng-model=
"user.name"
>
</div>
<div
class=
"norm-form"
>
<ul
class=
"norm-form-list"
>
<li
class=
"norm-form-item"
style=
"width: 100px"
>
Email
</li>
<li>
<input
type=
"email"
required
ng-model=
"user.email"
class=
"input-xlarge norm-form-input last"
>
</li>
</ul>
<div
class=
"clearfix"
></div>
</div>
<div
class=
"norm-form"
>
<ul
class=
"norm-form-list"
>
<li
class=
"norm-form-item"
style=
"width: 100px"
>
Username
</li>
<li>
<input
type=
"text"
required
ng-model=
"user.login"
class=
"input-xlarge norm-form-input last"
>
</li>
</ul>
<div
class=
"clearfix"
></div>
<br>
<div
class=
"gf-form"
>
<span
class=
"gf-form-label gf-size-s"
>
Email
</span>
<input
class=
"gf-form-input gf-size-xxl"
type=
"email"
required
ng-model=
"user.email"
>
</div>
<br>
<div
class=
"norm-form last"
>
<ul
class=
"norm-form-list"
>
<li
class=
"norm-form-item"
style=
"width: 100px"
>
UI Theme
</li>
<li>
<select
class=
"input-small norm-form-input"
ng-model=
"user.theme"
ng-options=
"f for f in ['dark', 'light']"
></select>
</li>
</ul>
<div
class=
"clearfix"
></div>
<div
class=
"gf-form"
>
<span
class=
"gf-form-label gf-size-s"
>
Username
</span>
<input
class=
"gf-form-input gf-size-xxl"
type=
"text"
required
ng-model=
"user.login"
>
</div>
<br>
<div
class=
"gf-form"
>
<span
class=
"gf-form-label gf-size-s"
>
UI Theme
</span>
<select
class=
"gf-form-input gf-size-auto"
ng-model=
"user.theme"
ng-options=
"f for f in ['dark', 'light']"
></select>
</div>
<div
class=
"gf-form-button-row"
>
<button
type=
"submit"
class=
"btn btn-success"
ng-click=
"update()"
>
Update
</button>
<div
class=
"clearfix"
>
</div>
</div>
</form>
<section
class=
"simple-box"
>
<h3
class=
""
>
Password
</h3>
<a
class=
"btn btn-inverse btn-small"
href=
"profile/password"
style=
"margin: 7px 10px 0 0"
>
Change Password
</a>
</section>
<h3>
Password
</h3>
<a
href=
"profile/password"
class=
"btn btn-inverse"
>
Change Password
</a>
<section
class=
"simple-box"
>
<h3
class=
""
>
Organizations
</h3>
<h3>
Organizations
</h3>
<table
class=
"filter-table form-inline"
>
<thead>
<tr>
...
...
@@ -90,7 +61,5 @@
</tr>
</tbody>
</table>
</div>
</section>
</div>
</div>
public/less/normform.less
View file @
eae4bb74
...
...
@@ -17,7 +17,7 @@
}
.gf-form-button-row {
margin-top:
15
px;
margin-top:
20
px;
margin-bottom: 10px;
}
...
...
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