You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2018/01/04 22:02:04 UTC

[airavata-django-portal] branch master updated: AIRAVATA-2598 Toggle for queue settings

This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git


The following commit(s) were added to refs/heads/master by this push:
     new 10a40e4  AIRAVATA-2598 Toggle for queue settings
10a40e4 is described below

commit 10a40e44a92299e82291d2e4a334af8527fb53bf
Author: Marcus Christie <ma...@iu.edu>
AuthorDate: Thu Jan 4 17:01:25 2018 -0500

    AIRAVATA-2598 Toggle for queue settings
---
 .../components/experiment/QueueSettingsEditor.vue  | 77 ++++++++++++++--------
 1 file changed, 51 insertions(+), 26 deletions(-)

diff --git a/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/QueueSettingsEditor.vue b/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/QueueSettingsEditor.vue
index 7c2a478..0d31068 100644
--- a/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/QueueSettingsEditor.vue
+++ b/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/QueueSettingsEditor.vue
@@ -3,34 +3,58 @@
 
         <div class="card border-default">
             <div class="card-body">
-                <h4 class="card-title">Current Settings</h4>
+                <h5 class="card-title">Settings for queue {{ localComputationalResourceScheduling.queueName }}</h5>
+                <div class="row">
+                    <div class="col">
+                        <h1>{{ localComputationalResourceScheduling.nodeCount }}</h1>
+                        <span>NODE COUNT</span>
+                    </div>
+                    <div class="col">
+                        <h1>{{ localComputationalResourceScheduling.totalCPUCount }}</h1>
+                        <span>CORE COUNT</span>
+                    </div>
+                    <div class="col">
+                        <h1>{{ localComputationalResourceScheduling.wallTimeLimit }}</h1>
+                        <span>TIME LIMIT</span>
+                    </div>
+                </div>
+            </div>
+        </div>
+        <div v-if="!showConfiguration">
+            <i class="fa fa-cog" aria-hidden="true"></i>
+            <a href="#" @click.prevent="showConfiguration = true">Configure Resource</a>
+        </div>
+        <div v-if="showConfiguration">
+            <b-form-group label="Select a Queue" label-for="queue">
+                <b-form-select id="queue"
+                    v-model="localComputationalResourceScheduling.queueName"
+                    :options="queueOptions" required
+                    @change="queueChanged">
+                </b-form-select>
+            </b-form-group>
+            <b-form-group label="Node Count" label-for="node-count">
+                <b-form-input id="node-count" type="number" min="1"
+                    v-model="localComputationalResourceScheduling.nodeCount" required
+                    @change="emitValueChanged">
+                </b-form-input>
+            </b-form-group>
+            <b-form-group label="Total Core Count" label-for="core-count">
+                <b-form-input id="core-count" type="number" min="1"
+                    v-model="localComputationalResourceScheduling.totalCPUCount" required
+                    @change="emitValueChanged">
+                </b-form-input>
+            </b-form-group>
+            <b-form-group label="Wall Time Limit" label-for="walltime-limit">
+                <b-form-input id="walltime-limit" type="number" min="1"
+                    v-model="localComputationalResourceScheduling.wallTimeLimit" required
+                    @change="emitValueChanged">
+                </b-form-input>
+            </b-form-group>
+            <div>
+                <i class="fa fa-times" aria-hidden="true"></i>
+                <a href="#" @click.prevent="showConfiguration = false">Hide Settings</a>
             </div>
         </div>
-        <b-form-group label="Select a Queue" label-for="queue">
-            <b-form-select id="queue"
-                v-model="localComputationalResourceScheduling.queueName"
-                :options="queueOptions" required
-                @change="queueChanged">
-            </b-form-select>
-        </b-form-group>
-        <b-form-group label="Node Count" label-for="node-count">
-            <b-form-input id="node-count" type="number" min="1"
-                v-model="localComputationalResourceScheduling.nodeCount" required
-                @change="emitValueChanged">
-            </b-form-input>
-        </b-form-group>
-        <b-form-group label="Total Core Count" label-for="core-count">
-            <b-form-input id="core-count" type="number" min="1"
-                v-model="localComputationalResourceScheduling.totalCPUCount" required
-                @change="emitValueChanged">
-            </b-form-input>
-        </b-form-group>
-        <b-form-group label="Wall Time Limit" label-for="walltime-limit">
-            <b-form-input id="walltime-limit" type="number" min="1"
-                v-model="localComputationalResourceScheduling.wallTimeLimit" required
-                @change="emitValueChanged">
-            </b-form-input>
-        </b-form-group>
     </b-form>
 </template>
 
@@ -53,6 +77,7 @@ export default {
         return {
             localComputationalResourceScheduling: this.value.clone(),
             queueDefaults: [],
+            showConfiguration: false,
         }
     },
     computed: {

-- 
To stop receiving notification emails like this one, please contact
['"commits@airavata.apache.org" <co...@airavata.apache.org>'].