Commit 81726807 authored by Leigh Stoller's avatar Leigh Stoller

Show most recent extension reason on admin extend modal.

parent 1e49187b
......@@ -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');
});
......
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment