airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndo...@apache.org
Subject [1/3] airavata-php-gateway git commit: Committing changes from Scigap Repo.
Date Thu, 16 Apr 2015 21:19:01 GMT
Repository: airavata-php-gateway
Updated Branches:
  refs/heads/master c362b0543 -> 86394cb45


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/cae5a4dc/app/views/partials/dashboard-block.blade.php
----------------------------------------------------------------------
diff --git a/app/views/partials/dashboard-block.blade.php b/app/views/partials/dashboard-block.blade.php
index 2db3712..b7991d5 100644
--- a/app/views/partials/dashboard-block.blade.php
+++ b/app/views/partials/dashboard-block.blade.php
@@ -10,7 +10,13 @@
                         <a href="{{ URL::to('/')}}/admin/dashboard/roles"><i class="fa
fa-fw fa-table"></i>Roles</a>
                     </li>
                     <li>
-                        <a href="tables.html"><i class="fa fa-fw fa-table"></i>
Resources</a>
+                        <a href="{{ URL::to('/')}}/admin/dashboard/credential-store"><i
class="fa fa-fw fa-table"></i>Credential Store</a>
+                    </li>
+                    <li>
+                        <a href="tables.html"><i class="fa fa-fw fa-table"></i>Resources</a>
+                    </li>
+                    <li>
+                        <a href="{{ URL::to('/')}}/admin/dashboard/experiments"><i
class="fa fa-fw fa-experiments"></i>Experiments</a>
                     </li>
                     <li>
                         <a href="forms.html"><i class="fa fa-fw fa-edit"></i>
Settings</a>

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/cae5a4dc/app/views/partials/experiment-inputs.blade.php
----------------------------------------------------------------------
diff --git a/app/views/partials/experiment-inputs.blade.php b/app/views/partials/experiment-inputs.blade.php
new file mode 100644
index 0000000..6a8f595
--- /dev/null
+++ b/app/views/partials/experiment-inputs.blade.php
@@ -0,0 +1,102 @@
+<div class="form-group required">
+    <label for="experiment-name" class="control-label">Experiment Name</label>
+    <input type="text" class="form-control" name="experiment-name" id="experiment-name"
placeholder="Enter experiment name" autofocus required="required" {{ $expInputs['disabled']
}} value="{{ $expInputs['experimentName'] }}">
+</div>
+<div class="form-group">
+    <label for="experiment-description">Experiment Description</label>
+    <textarea class="form-control" name="experiment-description" id="experiment-description"
placeholder="Optional: Enter a short description of the experiment" {{ $expInputs['disabled']
}}>{{ $expInputs['experimentDescription'] }}</textarea>
+</div>
+<div class="form-group required">
+    <label for="project" class="control-label">Project</label>
+    @if( isset( $expInputs['cloning']))
+        {{ Utilities::create_project_select($expInputs['experiment']->projectID, $expInputs['expVal']['editable'])
}}
+    @else
+        {{ Utilities::create_project_select($expInputs['project'], !$expInputs['disabled'])
}}
+    @endif
+</div>
+    <div class="form-group">
+    <label for="application">Application</label>
+    @if( isset( $expInputs['cloning']))
+        {{ Utilities::create_application_select($expInputs['application'], false)}}
+    @else
+        {{ Utilities::create_application_select($expInputs['application'], !$expInputs['disabled'])
}}
+    @endif
+</div>
+
+<div class="panel panel-default">
+    <div class="panel-heading">Application configuration</div>
+    <div class="panel-body">
+        <label>Application input</label>
+        <div class="well">
+            <input type="hidden" id="allowedFileSize" value="{{$expInputs['allowedFileSize']}}"/>
+            @if( isset( $expInputs['cloning']))
+                <div class="form-group">
+                    <p><strong>Current inputs</strong></p>
+                    {{ Utilities::list_input_files($expInputs['experiment']) }}
+                </div>
+                {{ Utilities::create_inputs($expInputs['application'], false) }}
+            @else
+                {{ Utilities::create_inputs($expInputs['application'], true) }}
+            @endif
+
+        </div>
+        <div class="form-group">
+            <label for="compute-resource">Compute Resource</label>
+            @if( isset( $expInputs['cloning']))
+                {{ Utilities::create_compute_resources_select($expInputs['experiment']->applicationId,
$expInputs['expVal']['scheduling']->resourceHostId) }}
+            @else
+                {{ Utilities::create_compute_resources_select($expInputs['application'],
null) }}
+            @endif
+        </div>
+
+        <div class="form-group">
+            <label for="node-count">Queue Name</label>
+            <input type="text" class="form-control" name="queue-name" id="queue-name"

+            value="@if(isset($expInputs['expVal']) ){{ $expInputs['expVal']['scheduling']->queueName
}}  @else{{$expInputs['queueName']}} @endif"
+            @if(isset($expInputs['expVal']) ) @if(!$expInputs['expVal']['editable']){{ disabled
}} @endif @endif>
+        </div>
+        <div class="form-group">
+            <label for="node-count">Node Count</label>
+            <input type="number" class="form-control" name="node-count" id="node-count"
min="1"
+            value="@if(isset($expInputs['expVal']) ){{ $expInputs['expVal']['scheduling']->nodeCount
}}@else{{$expInputs['nodeCount']}}@endif"
+            @if(isset($expInputs['expVal']) ) @if(!$expInputs['expVal']['editable']){{disabled}}
@endif @endif>
+        </div>
+        <div class="form-group">
+            <label for="cpu-count">Total Core Count</label>
+            <input type="number" class="form-control" name="cpu-count" id="cpu-count"
min="1"
+            value="@if(isset($expInputs['expVal']) ){{ $expInputs['expVal']['scheduling']->totalCPUCount
}}@else{{$expInputs['cpuCount']}}@endif"
+            @if(isset($expInputs['expVal'])) @if(!$expInputs['expVal']['editable']){{disabled}}
@endif @endif>
+        </div>
+        <div class="form-group">
+            <label for="wall-time">Wall Time Limit</label>
+            <div class="input-group">
+                <input type="number" class="form-control" name="wall-time" id="wall-time"
min="0"
+                value="@if(isset($expInputs['expVal']) ){{ $expInputs['expVal']['scheduling']->wallTimeLimit
}}@else{{$expInputs['wallTimeLimit']}}@endif"
+                @if(isset($expInputs['expVal'])) @if(!$expInputs['expVal']['editable']){{disabled}}
@endif @endif>
+                <span class="input-group-addon">minutes</span>
+            </div>
+        </div>
+        <div class="form-group">
+            <label for="wall-time">Total Physical Memory</label>
+            <div class="input-group">
+                <input type="number" class="form-control" name="total-physical-memory"
id="wall-time" min="0"
+                value="@if(isset($expInputs['expVal']) ){{ $expInputs['expVal']['scheduling']->totalPhysicalMemory
}}@endif"
+                @if(isset($expInputs['expVal'])) @if(!$expInputs['expVal']['editable']){{disabled}}
@endif @endif>
+                <span class="input-group-addon">MB</span>
+            </div>
+        </div>
+    </div>
+</div>
+<h3>Notifications</h3>
+<div class="form-group well">
+	<label for=""></label>
+	<input type="checkbox" id="enableEmail" name="enableEmailNotification" value="1">Do
you want to receive email notifications for status changes in the experiment?<br/>
+	<div class="emailSection hide">
+		<h4>Enter Email Address here.</h4>
+		<div class="emailAddresses">
+			<input type="email" id="emailAddresses" class="form-control" name="emailAddresses[]"
placeholder="Email"/>
+		</div>
+		<button type="button" class="addEmail btn btn-default">Add another Email</button>
+	</div>
+</div>
+

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/cae5a4dc/app/views/partials/gateway-preferences.blade.php
----------------------------------------------------------------------
diff --git a/app/views/partials/gateway-preferences.blade.php b/app/views/partials/gateway-preferences.blade.php
index de8d5d8..51889d4 100644
--- a/app/views/partials/gateway-preferences.blade.php
+++ b/app/views/partials/gateway-preferences.blade.php
@@ -11,11 +11,17 @@
 		</div>
 	</div><br/>
 	<div class="form-group">
+		<label class="control-label col-md-3">Login Username</label>
+		<div class="col-md-9">
+			<input type="text" name="loginUserName" class="form-control" value="@if( isset( $preferences)
){{$preferences->loginUserName}}@endif" />
+		</div>
+	</div>
+	<div class="form-group">
 		<label class="control-label col-md-3">Preferred Job Submission Protocol</label>
 		<div class="col-md-9">
 			<select name="preferredJobSubmissionProtocol" class="form-control">
 			@foreach( (array)$computeResource->jobSubmissionInterfaces as $index => $jsi)
-				<option value="{{ $jsi->jobSubmissionInterfaceId}}" @if( isset( $preferences) )
 @if( $preferences->preferredJobSubmissionProtocol == $jsi->jobSubmissionProtocol) selected
@endif @endif>{{ $crData["jobSubmissionProtocols"][$jsi->jobSubmissionProtocol] }}</option>
+				<option value="{{$jsi->jobSubmissionProtocol}}" @if( isset( $preferences) )  @if(
$preferences->preferredJobSubmissionProtocol == $jsi->jobSubmissionProtocol) selected
@endif @endif>{{ $crData["jobSubmissionProtocols"][$jsi->jobSubmissionProtocol] }}</option>
 			@endforeach
 			</select>
 
@@ -27,7 +33,7 @@
 		<div class="col-md-9">
 			<select name="preferredDataMovementProtocol" class="form-control">
 			@foreach( (array)$computeResource->dataMovementInterfaces as $index => $dmi)
-				<option value="{{ $dmi->dataMovementInterfaceId}}"  @if( isset( $preferences) )
 @if( $preferences->preferredDataMovementProtocol == $dmi->dataMovementProtocol) selected
@endif @endif>{{ $crData["dataMovementProtocols"][$dmi->dataMovementProtocol] }}</option>
+				<option value="{{ $dmi->dataMovementProtocol}}"  @if( isset( $preferences) )  @if(
$preferences->preferredDataMovementProtocol == $dmi->dataMovementProtocol) selected
@endif @endif>{{ $crData["dataMovementProtocols"][$dmi->dataMovementProtocol] }}</option>
 			@endforeach
 			</select>
 		</div>
@@ -48,6 +54,7 @@
 			<input type="text" name="scratchLocation" class="form-control" value="@if( isset( $preferences)
){{$preferences->scratchLocation}}@endif" />
 		</div>
 	</div>
+
 	<div class="form-group">
 		<label class="control-label col-md-3">Allocation Project Number</label>
 		<div class="col-md-9">


Mime
View raw message