mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 01:56:54 +02:00
Merge pull request #2683 from birarda/ds-web
add pool option to DS script webpage
This commit is contained in:
commit
4ef9aa9e64
3 changed files with 15 additions and 5 deletions
|
@ -42,13 +42,13 @@ body {
|
||||||
background-color: #28FF57;
|
background-color: #28FF57;
|
||||||
}
|
}
|
||||||
|
|
||||||
#instance-field {
|
#extra-fields {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 20px;
|
right: 20px;
|
||||||
top: 40px;
|
top: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#instance-field input {
|
#extra-fields input {
|
||||||
width: 80px;
|
width: 80px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,8 +14,13 @@
|
||||||
Run
|
Run
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class='big-field' id='instance-field'>
|
<div id="extra-fields">
|
||||||
<input type='text' name='instances' placeholder='# of instances'>
|
<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>
|
||||||
<!-- %div#stop-button.big-button -->
|
<!-- %div#stop-button.big-button -->
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -22,9 +22,14 @@ $(document).ready(function(){
|
||||||
+ '--' + boundary + '--\r\n';
|
+ '--' + boundary + '--\r\n';
|
||||||
|
|
||||||
var headers = {};
|
var headers = {};
|
||||||
|
|
||||||
if ($('#instance-field input').val()) {
|
if ($('#instance-field input').val()) {
|
||||||
headers['ASSIGNMENT-INSTANCES'] = $('#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
|
// post form to assignment in order to create an assignment
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
|
Loading…
Reference in a new issue