mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-13 06:42:42 +02:00
optional sending of assignment pool from ds assignment page
This commit is contained in:
parent
bd37a75245
commit
67cc186964
3 changed files with 15 additions and 5 deletions
|
@ -42,13 +42,13 @@ body {
|
|||
background-color: #28FF57;
|
||||
}
|
||||
|
||||
#instance-field {
|
||||
#extra-fields {
|
||||
position: absolute;
|
||||
right: 20px;
|
||||
top: 40px;
|
||||
top: 30px;
|
||||
}
|
||||
|
||||
#instance-field input {
|
||||
#extra-fields input {
|
||||
width: 80px;
|
||||
}
|
||||
|
||||
|
|
|
@ -14,8 +14,13 @@
|
|||
Run
|
||||
</a>
|
||||
</div>
|
||||
<div class='big-field' id='instance-field'>
|
||||
<input type='text' name='instances' placeholder='# of instances'>
|
||||
<div id="extra-fields">
|
||||
<div class='big-field' id='instance-field'>
|
||||
<input type='text' name='instances' placeholder='# of instances'>
|
||||
</div>
|
||||
<div class='big-field' id='pool-field'>
|
||||
<input type='text' name='pool' placeholder='pool'>
|
||||
</div>
|
||||
</div>
|
||||
<!-- %div#stop-button.big-button -->
|
||||
</body>
|
||||
|
|
|
@ -22,9 +22,14 @@ $(document).ready(function(){
|
|||
+ '--' + boundary + '--\r\n';
|
||||
|
||||
var headers = {};
|
||||
|
||||
if ($('#instance-field input').val()) {
|
||||
headers['ASSIGNMENT-INSTANCES'] = $('#instance-field input').val();
|
||||
}
|
||||
|
||||
if ($('#pool-field input').val()) {
|
||||
headers['ASSIGNMENT-POOL'] = $('#pool-field input').val();
|
||||
}
|
||||
|
||||
// post form to assignment in order to create an assignment
|
||||
$.ajax({
|
||||
|
|
Loading…
Reference in a new issue