Return-Path: X-Original-To: apmail-airavata-commits-archive@www.apache.org Delivered-To: apmail-airavata-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 02E5D17804 for ; Fri, 1 May 2015 21:32:51 +0000 (UTC) Received: (qmail 97484 invoked by uid 500); 1 May 2015 21:32:50 -0000 Delivered-To: apmail-airavata-commits-archive@airavata.apache.org Received: (qmail 97370 invoked by uid 500); 1 May 2015 21:32:50 -0000 Mailing-List: contact commits-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airavata.apache.org Delivered-To: mailing list commits@airavata.apache.org Received: (qmail 95525 invoked by uid 99); 1 May 2015 21:32:49 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 May 2015 21:32:49 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 1034DE17DD; Fri, 1 May 2015 21:32:49 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: ndoshi@apache.org To: commits@airavata.apache.org Date: Fri, 01 May 2015 21:33:23 -0000 Message-Id: <0ffbd8ce66f04a67ac886150c03bc865@git.apache.org> In-Reply-To: <75facea618c04426a66df940fb7893c3@git.apache.org> References: <75facea618c04426a66df940fb7893c3@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [36/57] [partial] airavata-php-gateway git commit: AIRAVATA 1632 + Job Description for Admin Dashboard http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/01413d65/app/views/admin/manage-roles.blade.php ---------------------------------------------------------------------- diff --git a/app/views/admin/manage-roles.blade.php b/app/views/admin/manage-roles.blade.php new file mode 100644 index 0000000..fa39a75 --- /dev/null +++ b/app/views/admin/manage-roles.blade.php @@ -0,0 +1,138 @@ +@extends('layout.basic') + +@section('page-header') + @parent + {{ HTML::style('css/admin.css')}} +@stop + +@section('content') + +
+ + @include( 'partials/dashboard-block') +
+ +
+
+ @if( Session::has("message")) +
+ +
+ {{ Session::forget("message") }} + @endif + +

Roles

+ + + + + + + @foreach( $roles as $role) + + + + + @endforeach +
+ RoleActions
{{ $role }} +    + +    + +    +
+
+ +
+
+
+
+ + +
+
+ +
+
+
+ +
+
+
+ + +
+
+ +
+
+
+ +
+
+
+
+ + + + +@stop + +@section('scripts') + @parent + +@stop \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/01413d65/app/views/admin/manage-users.blade.php ---------------------------------------------------------------------- diff --git a/app/views/admin/manage-users.blade.php b/app/views/admin/manage-users.blade.php new file mode 100644 index 0000000..5cbdb7b --- /dev/null +++ b/app/views/admin/manage-users.blade.php @@ -0,0 +1,144 @@ +@extends('layout.basic') + +@section('page-header') + @parent + {{ HTML::style('css/admin.css')}} +@stop + +@section('content') + +
+ + @include( 'partials/dashboard-block') +
+
+ @if( Session::has("message")) +
+ +
+ {{ Session::forget("message") }} + @endif +
+
+
+ @if( Session::has("message")) +
+ +
+ {{ Session::forget("message") }} + @endif + +

Users

+ + + + + + + @foreach( (array)$users as $user) + + + + + @endforeach +
Username + Role : + +
{{ $user }} + +
+
+ +
+
+
+
+ + + +
+
+ + +
+
+@stop + +@section('scripts') + @parent + +@stop \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/01413d65/app/views/application/deployment.blade.php ---------------------------------------------------------------------- diff --git a/app/views/application/deployment.blade.php b/app/views/application/deployment.blade.php new file mode 100644 index 0000000..2cad93b --- /dev/null +++ b/app/views/application/deployment.blade.php @@ -0,0 +1,180 @@ +@extends('layout.basic') + +@section('page-header') + @parent + {{ HTML::style('css/style.css') }} +@stop + +@section('content') + +
+
+ +
+ +
+ @if( count( $appDeployments) ) + @if( Session::has("message")) +
+ +
+ {{ Session::forget("message") }} + @endif + +
+
+

Existing Application Deployments :

+
+
+ +
+
+
+ @foreach( $appDeployments as $index => $deployment ) +
+ +
+
+
+ @include('partials/deployment-block', array( 'deploymentObject' => $deployment, 'computeResources' => $computeResources, 'modules' => $modules) ) +
+
+
+
+ @endforeach +
+ @endif + +
+ +
+ +
+
+ + +
+
+ +
+
+ + +
+
+ +
+
+ + +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ + + + + + + +
+ +
+ +@stop + +@section('scripts') + @parent + {{ HTML::script('js/deployment.js') }} +@stop \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/01413d65/app/views/application/interface.blade.php ---------------------------------------------------------------------- diff --git a/app/views/application/interface.blade.php b/app/views/application/interface.blade.php new file mode 100644 index 0000000..140a951 --- /dev/null +++ b/app/views/application/interface.blade.php @@ -0,0 +1,165 @@ +@extends('layout.basic') + +@section('page-header') + @parent + {{ HTML::style('css/style.css') }} +@stop + +@section('content') + +
+
+ +
+ +
+ @if( count( $appInterfaces) ) + @if( Session::has("message")) +
+ +
+ {{ Session::forget("message") }} + @endif +
+ +
+

Existing Application Interfaces :

+
+
+ +
+
+
+ @foreach( $appInterfaces as $index => $interface ) +
+ +
+
+
+ @include('partials/interface-block', array( 'interfaceObject' => $interface, 'dataTypes' => $dataTypes, 'modules' => $modules) ) +
+
+
+
+ @endforeach +
+ @endif + +
+ +
+
+ + x +
+
+ +
+ @include('partials/interface-input-block', array( 'dataTypes' => $dataTypes) ) +
+ +
+ @include('partials/interface-output-block', array( 'dataTypes' => $dataTypes) ) +
+
+ + + + + + + +@stop + +@section('scripts') + @parent + {{ HTML::script('js/interface.js') }} +@stop \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/01413d65/app/views/application/module.blade.php ---------------------------------------------------------------------- diff --git a/app/views/application/module.blade.php b/app/views/application/module.blade.php new file mode 100644 index 0000000..006f330 --- /dev/null +++ b/app/views/application/module.blade.php @@ -0,0 +1,189 @@ +@extends('layout.basic') + +@section('page-header') + @parent + {{ HTML::style('css/style.css') }} +@stop + +@section('content') + +
+
+ + + + @if( count( $modules) ) + @if( Session::has("message")) +
+ +
+ {{ Session::forget("message") }} + @endif +
+
+

Existing Modules :

+
+
+ +
+
+
+ @foreach( $modules as $index => $module ) +
+ +
+
+ {{ $module->appModuleDescription }} +
+
+
+ @endforeach +
+ @endif + + + + + + + + +@stop + +@section('scripts') + @parent + + +@stop \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/01413d65/app/views/emails/auth/reminder.blade.php ---------------------------------------------------------------------- diff --git a/app/views/emails/auth/reminder.blade.php b/app/views/emails/auth/reminder.blade.php new file mode 100755 index 0000000..aebea9e --- /dev/null +++ b/app/views/emails/auth/reminder.blade.php @@ -0,0 +1,14 @@ + + + + + + +

Password Reset

+ +
+ To reset your password, complete this form: {{ URL::to('password/reset', array($token)) }}.
+ This link will expire in {{ Config::get('auth.reminder.expire', 60) }} minutes. +
+ + http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/01413d65/app/views/experiment/create-complete.blade.php ---------------------------------------------------------------------- diff --git a/app/views/experiment/create-complete.blade.php b/app/views/experiment/create-complete.blade.php new file mode 100644 index 0000000..a3ee8be --- /dev/null +++ b/app/views/experiment/create-complete.blade.php @@ -0,0 +1,70 @@ +@extends('layout.basic') + +@section('page-header') + @parent +@stop + +@section('content') +
+ +

Create a new experiment

+
+ + + + + + + @include('partials/experiment-inputs', array("expInputs" => $expInputs) ) + +
+
+ + +
+ + Start over +
+ +
+ + +
+ + +@stop + +@section('scripts') + @parent + +@stop \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/01413d65/app/views/experiment/create.blade.php ---------------------------------------------------------------------- diff --git a/app/views/experiment/create.blade.php b/app/views/experiment/create.blade.php new file mode 100755 index 0000000..52873f1 --- /dev/null +++ b/app/views/experiment/create.blade.php @@ -0,0 +1,55 @@ +@extends('layout.basic') + +@section('page-header') + @parent +@stop + +@section('content') +
+ +

Create a new experiment

+ +
+ + + +
+ + +
+
+ + +
+
+ + + + {{ Utilities::create_project_select($project, !$disabled) }} + +
+
+ + + {{ Utilities::create_application_select($application, !$disabled) }} + +
+
+ + +
+
+ +
+ +@stop \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/01413d65/app/views/experiment/edit.blade.php ---------------------------------------------------------------------- diff --git a/app/views/experiment/edit.blade.php b/app/views/experiment/edit.blade.php new file mode 100755 index 0000000..8eb759a --- /dev/null +++ b/app/views/experiment/edit.blade.php @@ -0,0 +1,77 @@ +@extends('layout.basic') + +@section('page-header') + @parent +@stop + +@section('content') + + $echoResources, 'WRF' => $wrfResources); +?> + + +
+ +
+

Edit Cloned Experiment

+ +
+ + + @include('partials/experiment-inputs') + + +
+
+ > + > +
+
+ + +
+
+ +
+ +@stop + + +@section('scripts') + @parent + +@stop \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/01413d65/app/views/experiment/search.blade.php ---------------------------------------------------------------------- diff --git a/app/views/experiment/search.blade.php b/app/views/experiment/search.blade.php new file mode 100755 index 0000000..e33acd0 --- /dev/null +++ b/app/views/experiment/search.blade.php @@ -0,0 +1,265 @@ +@extends('layout.basic') + +@section('page-header') + @parent + {{ HTML::style('css/datetimepicker.css')}} + +@stop + +@section('content') + +
+

Search for Experiments

+ +
+
+ + +
+ +
+ + +
+ +
+
+ Select dates between which you want to search for experiments. +
+
+
+
+
+ + + +
+
+
+
+
+
+ + + +
+
+
+
+
+ + +

You can use * as a wildcard character. Tip: search for * alone to retrieve all of your experiments.

+
+ + + + + + +
+ + + + + + + + + + + +description; + if (strlen($description) > 17) // 17 is arbitrary + { + $description = substr($experiment['experiment']->description, 0, 17) . '...'; + } + + echo ''; + $addEditOption=""; + if( $experiment['expValue']['editable']) + $addEditOption = ''; + + echo ''; + + echo ''; + + echo ''; + + //echo ""; + echo ''; + + + switch ($experiment['expValue']['experimentStatusString']) + { + case 'CANCELING': + case 'CANCELED': + case 'UNKNOWN': + $textClass = 'text-warning'; + break; + case 'FAILED': + $textClass = 'text-danger'; + break; + case 'COMPLETED': + $textClass = 'text-success'; + break; + default: + $textClass = 'text-info'; + break; + } + + ?> + + + + + + + '; + } + + +} +?> + + + + +@stop + +@section('scripts') + @parent + {{ HTML::script('js/moment.js')}} + {{ HTML::script('js/datetimepicker.js')}} + + +@stop \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/01413d65/app/views/experiment/summary.blade.php ---------------------------------------------------------------------- diff --git a/app/views/experiment/summary.blade.php b/app/views/experiment/summary.blade.php new file mode 100755 index 0000000..c3f3d4e --- /dev/null +++ b/app/views/experiment/summary.blade.php @@ -0,0 +1,31 @@ +@extends('layout.basic') + +@section('page-header') + @parent +@stop + +@section('content') + @include('partials/experiment-info') +@stop + + +@section('scripts') + @parent + +@stop \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/01413d65/app/views/gateway/browse.blade.php ---------------------------------------------------------------------- diff --git a/app/views/gateway/browse.blade.php b/app/views/gateway/browse.blade.php new file mode 100644 index 0000000..6d26a06 --- /dev/null +++ b/app/views/gateway/browse.blade.php @@ -0,0 +1,218 @@ +@extends('layout.basic') + +@section('page-header') + @parent +@stop + +@section('content') + +
+
+ + @if( count( $gatewayProfiles) ) + @if( Session::has("message")) +
+ +
+ {{ Session::forget("message") }} + @endif +
+ +
+

Existing Gateway Resource Profiles :

+
+
+ +
+
+
+ @foreach( $gatewayProfiles as $indexGP => $gp ) +
+ +
+
+
+
{{ $gp->gatewayDescription}}
+
+
+
+ +
+
+ @if( count( $gp->computeResourcePreferences) ) +
+

Existing Compute Resources :

+
+
+
+ @foreach( (array)$gp->computeResourcePreferences as $indexCRP => $crp ) +
+ +
+
+
+
+ + +
+ @include('partials/gateway-preferences', array('computeResource' => $crp->crDetails, 'crData' => $crData, 'preferences'=>$crp, 'show'=>true)) +
+ +
+
+
+
+ @endforeach +
+
+ @endif +
+
+
+
+ @endforeach +
+ @endif +
+
+ +
+
+
+ +
+ + x +
+
+ +
+
+ + + + + + + + + + + +@foreach( (array)$computeResources as $index => $cr) + @include('partials/gateway-preferences', array('computeResource' => $cr, 'crData' => $crData)) +@endforeach + + +@stop + +@section('scripts') + @parent + {{ HTML::script('js/gateway.js') }} +@stop \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/01413d65/app/views/gateway/create.blade.php ---------------------------------------------------------------------- diff --git a/app/views/gateway/create.blade.php b/app/views/gateway/create.blade.php new file mode 100644 index 0000000..24cba9c --- /dev/null +++ b/app/views/gateway/create.blade.php @@ -0,0 +1,34 @@ +@extends('layout.basic') + +@section('page-header') + @parent +@stop + +@section('content') + +
+
+

Create a Gateway

+
+
+ + +
+
+ + +
+
+ + +
+ +
+
+ +@stop + +@section('scripts') + @parent + {{ HTML::script('js/script.js') }} +@stop \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/01413d65/app/views/home.blade.php ---------------------------------------------------------------------- diff --git a/app/views/home.blade.php b/app/views/home.blade.php new file mode 100755 index 0000000..a3deeeb --- /dev/null +++ b/app/views/home.blade.php @@ -0,0 +1,180 @@ +@extends('layout.basic') + +@section('page-header') + @parent +@stop + +@section('content') + +
+
+ + Welcome'. $admin . ', '. Session::get("username") . '!'; + + if( Session::get("username") == 'admin1') // temporary hard-coded admin user. will replace with admin role in future + { + try + { + Utilities::open_tokens_file($tokenFilePath); + } + catch (Exception $e) + { + Utilities::print_error_message($e->getMessage()); + } + + + if(isset($_GET['tokenId'])) + { + try + { + Utilities::write_new_token($_GET['tokenId']); + + Utilties::print_success_message('Received new XSEDE token ' . $tokenFile->tokenId . + '! Click here to fetch a new token.'); + } + catch (Exception $e) + { + print_error_message($e->getMessage()); + } + } + else + { + echo '

Community token currently set to ' . $tokenFile->tokenId . + '. Click here to fetch a new token.

'; + } + } + else // standard user + { + /* temporarily remove to avoid confusion during XSEDE tutorial + if (isset($_SESSION['tokenId'])) + { + echo '

XSEDE token currently active. + All experiments launched during this session will use your personal allocation.

'; + } + elseif(!isset($_GET['tokenId']) && !isset($_SESSION['tokenId'])) + { + echo '

Currently using community allocation. Click here to use your personal allocation for this session.

'; + } + elseif(isset($_GET['tokenId'])) + { + $_SESSION['tokenId'] = $_GET['tokenId']; + + print_success_message('Received XSEDE token!' . + '
All experiments launched during this session will use your personal allocation.'); + } + */ + } + } + else + { + $columnClass = 'col-md-6'; + + echo ' +

PHP Gateway with Airavata

+

+ PGA is a science gateway built with the Airavata API. You can reference PGA as you integrate Airavata + into your own gateway, or you can create your gateway on top of PGA by cloning it at the link below. + PGA is known to work well in the Chrome, Firefox, and Internet Explorer browsers. +

+

See the code

+

View the XSEDE 2014 tutorial documentation

+ '; + } + + ?> + + +
+
+ +
+ +
+ +

PHP Gateway with Airavata

+ +

+ PGA is a science gateway built with the Airavata API. You can reference PGA as you integrate + Airavata into your own gateway, or you can create your gateway on top of PGA by cloning it at + the link below. PGA is known to work well in the Chrome, Firefox, and Internet Explorer browsers. +

+

See the code

+

View the XSEDE 2014 tutorial documentation

+
+ '; + } + + ?> +
+
+ SciGaP +
+

+ SciGaP is a hosted service with a public API that science gateways can use to manage + applications and workflows running on remote supercomputers, as well as other services. Gateway + developers can thus concentrate their efforts on building their scientific communities and not + worry about operations. +

+

+ Science Gateway Platform as a Service (SciGaP) provides application programmer interfaces (APIs) + to hosted generic infrastructure services that can be used by domain science communities to + create Science Gateways. +

+

Learn more

+
+
+
+
+
+ Apache Airavata +
+

+ Apache Airavata is a software framework which is dominantly used to build Web-based science + gateways and assist to compose, manage, execute and monitor large scale applications and + workflows on distributed computing resources such as local clusters, supercomputers, national + grids, academic and commercial clouds. Airavata mainly supports long running applications and + workflows on distributed computational resources. +

+

Learn more

+
+
+
+
+ + + +@stop + http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/01413d65/app/views/layout/basic.blade.php ---------------------------------------------------------------------- diff --git a/app/views/layout/basic.blade.php b/app/views/layout/basic.blade.php new file mode 100755 index 0000000..7bebad9 --- /dev/null +++ b/app/views/layout/basic.blade.php @@ -0,0 +1,102 @@ +@section ('page-header') + + + + + PHP Reference Gateway + + + + {{ HTML::style('css/bootstrap.min.css')}} + + + + + + + + + + +@show + +@yield('content') + + +@section('scripts') + + + + + + + + + + + + +@show + + \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/01413d65/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 new file mode 100644 index 0000000..b7991d5 --- /dev/null +++ b/app/views/partials/dashboard-block.blade.php @@ -0,0 +1,50 @@ + http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/01413d65/app/views/partials/deployment-block.blade.php ---------------------------------------------------------------------- diff --git a/app/views/partials/deployment-block.blade.php b/app/views/partials/deployment-block.blade.php new file mode 100644 index 0000000..b624c3a --- /dev/null +++ b/app/views/partials/deployment-block.blade.php @@ -0,0 +1,125 @@ + +@if( isset( $deploymentObject) ) + +@endif +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+
+ @if( isset( $deploymentObject)) + @foreach( (array)$deploymentObject->moduleLoadCmds as $index => $cmd) + + @endforeach + @endif +
+
+
+
+
+
Library Prepend Paths
+ @if( isset( $deploymentObject)) + @foreach( (array)$deploymentObject->libPrependPaths as $path) +
+ + +
+ @endforeach + @endif +
+
+
+
+
+
Library Append Paths
+ @if( isset( $deploymentObject)) + @foreach( (array)$deploymentObject->libAppendPaths as $path) +
+ + +
+ @endforeach + @endif +
+
+
+
+
+
Environments
+ @if( isset( $deploymentObject)) + @foreach( (array)$deploymentObject->setEnvironment as $path) +
+ + +
+ @endforeach + @endif +
+
+ +
+
+
Pre Job Commands
+ @if( isset( $deploymentObject)) + @foreach( (array)$deploymentObject->preJobCommands as $preJobCommand) +
+ +
+ @endforeach + @endif +
+
+ +
+
+
Post Job Commands
+ @if( isset( $deploymentObject)) + @foreach( (array)$deploymentObject->postJobCommands as $postJobCommand) +
+ +
+ @endforeach + @endif +
+
\ No newline at end of file
NameApplicationDescriptionCreation Time + +
' . $experiment['experiment']->name . $addEditOption . '' . $experiment['expValue']['applicationInterface']->applicationName . '' . $description . '$computeResource->hostName' . date('Y-m-d H:i:s', $experiment['experiment']->creationTime/1000) . ' + + + +