airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sma...@apache.org
Subject [36/40] airavata-php-gateway git commit: Fixing AIRAVATA-1407. Adding max lengths for name and description in project and experiment
Date Tue, 14 Jul 2015 16:38:41 GMT
Fixing AIRAVATA-1407. Adding max lengths for name and description in project and experiment


Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/b86d1815
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/b86d1815
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/b86d1815

Branch: refs/heads/0.15-release-branch
Commit: b86d181512bbe1f0c0b2835fff3295a6475a8b2f
Parents: 526c67d
Author: Supun Nakandala <scnakandala@apache.org>
Authored: Wed Jul 1 15:22:59 2015 +0530
Committer: Supun Nakandala <scnakandala@apache.org>
Committed: Wed Jul 1 15:22:59 2015 +0530

----------------------------------------------------------------------
 app/views/experiment/create.blade.php          | 4 ++--
 app/views/partials/experiment-inputs.blade.php | 6 ++++--
 app/views/project/create.blade.php             | 4 ++--
 app/views/project/edit.blade.php               | 4 ++--
 4 files changed, 10 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/b86d1815/app/views/experiment/create.blade.php
----------------------------------------------------------------------
diff --git a/app/views/experiment/create.blade.php b/app/views/experiment/create.blade.php
index 1318460..b8b8a01 100755
--- a/app/views/experiment/create.blade.php
+++ b/app/views/experiment/create.blade.php
@@ -26,12 +26,12 @@
         <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">
+                   placeholder="Enter experiment name" autofocus required="required" maxlength="50">
         </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"></textarea>
+                      placeholder="Optional: Enter a short description of the experiment"
maxlength="200"></textarea>
         </div>
         <div class="form-group required">
             <label for="project" class="control-label">Project</label>

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/b86d1815/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
index 93d2aa5..7d09106 100644
--- a/app/views/partials/experiment-inputs.blade.php
+++ b/app/views/partials/experiment-inputs.blade.php
@@ -1,13 +1,15 @@
 <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="{{
+           placeholder="Enter experiment name" autofocus required="required" maxlength="50"
{{ $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']
}}>{{
+              placeholder="Optional: Enter a short description of the experiment" maxlength="200"
{{
+    $expInputs['disabled'] }}>{{
     $expInputs['experimentDescription'] }}</textarea>
 </div>
 <div class="form-group required">

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/b86d1815/app/views/project/create.blade.php
----------------------------------------------------------------------
diff --git a/app/views/project/create.blade.php b/app/views/project/create.blade.php
index 46c04bc..5b47beb 100755
--- a/app/views/project/create.blade.php
+++ b/app/views/project/create.blade.php
@@ -15,13 +15,13 @@
         <div class="form-group required">
             <label for="project-name" class="control-label">Project Name</label>
             <input type="text" class="form-control projectName" name="project-name" id="project-name"
-                   placeholder="Enter project name" autofocus required>
+                   placeholder="Enter project name" autofocus required maxlength="50">
         </div>
 
         <div class="form-group">
             <label for="project-description">Project Description</label>
             <textarea class="form-control" name="project-description" id="project-description"
-                      placeholder="Optional: Enter a short description of the project"></textarea>
+                      placeholder="Optional: Enter a short description of the project" maxlength="200"></textarea>
         </div>
 
         <input name="save" type="submit" class="btn btn-primary create-project" value="Save">

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/b86d1815/app/views/project/edit.blade.php
----------------------------------------------------------------------
diff --git a/app/views/project/edit.blade.php b/app/views/project/edit.blade.php
index 45d3e63..a3beec6 100755
--- a/app/views/project/edit.blade.php
+++ b/app/views/project/edit.blade.php
@@ -27,13 +27,13 @@
                    class="form-control"
                    name="project-name"
                    id="project-name"
-                   value="{{ $project->name }}" required>
+                   value="{{ $project->name }}" required maxlength="50">
         </div>
         <div class="form-group">
             <label for="project-description">Project Description</label>
             <textarea class="form-control"
                       name="project-description"
-                      id="project-description">{{ $project->description }}</textarea>
+                      id="project-description" maxlength="200">{{ $project->description
}}</textarea>
             <input type="hidden" name="projectId" value="{{ Input::get('projId') }}"/>
         </div>
 


Mime
View raw message