Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
112
Issues
112
List
Boards
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
81726807
Commit
81726807
authored
Apr 10, 2015
by
Leigh Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show most recent extension reason on admin extend modal.
parent
1e49187b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
www/aptui/js/extend.js
www/aptui/js/extend.js
+2
-1
www/aptui/template/admin-extend-modal.html
www/aptui/template/admin-extend-modal.html
+10
-0
No files found.
www/aptui/js/extend.js
View file @
81726807
...
...
@@ -313,8 +313,9 @@ define(['underscore', 'js/quickvm_sup',
if
(
extendfor
&&
isadmin
)
{
$
(
"
#howlong_extend
"
).
val
(
extendfor
);
}
if
(
$
(
'
#extension_reason
'
).
length
&&
!
isadmin
)
{
if
(
$
(
'
#extension_reason
'
).
length
)
{
$
(
"
#why_extend
"
).
val
(
$
(
'
#extension_reason
'
).
val
());
$
(
"
#why_extend_div
"
).
removeClass
(
"
hidden
"
);
}
$
(
modalname
).
off
(
'
shown.bs.modal
'
);
});
...
...
www/aptui/template/admin-extend-modal.html
View file @
81726807
...
...
@@ -17,6 +17,16 @@
</div>
</div>
<br>
<div
id=
'why_extend_div'
class=
'hidden'
>
<center>
Most recent Extension Reason
<br>
<textarea
id=
'why_extend'
readonly
class=
'form-control align-center-inline'
rows=
5
></textarea>
</center>
<br>
</div>
<button
class=
'btn btn-primary btn-sm align-center'
id=
'request-extension'
type=
'submit'
name=
'request'
>
Extend
</button>
...
...
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