Fixes #4679

parent 7eb91a5d
......@@ -35,19 +35,16 @@
<h2>Project</h2>
<hr/>
<div class="col-xs-4 col-md-4">
<div ng-include="'/partials/project/project_current.html'" ng-show="currentProject"></div>
<div ng-include="'/partials/project/project_form.html'" ng-hide="currentProject"></div>
<div ng-include="'partials/project/project_current.html'" ng-show="currentProject"></div>
<div ng-include="'partials/project/project_form.html'" ng-hide="currentProject"></div>
</div>
<div class="col-xs-6 col-md-6">
<div ng-include="'/partials/project/project_current_dataset.html'" ng-show="currentProject && currentDataSet"></div>
<div ng-include="'/partials/project/project_dataset.html'" ng-show="showDataSetForm"></div>
<div ng-include="'/partials/project/project_datasetfile.html'" ng-show="showDataSetFileForm"></div>
<div ng-include="'partials/project/project_current_dataset.html'"
ng-show="currentProject && currentDataSet"></div>
<div ng-include="'partials/project/project_dataset.html'" ng-show="showDataSetForm"></div>
<div ng-include="'partials/project/project_datasetfile.html'" ng-show="showDataSetFileForm"></div>
</div>
</div>
</div>
<script type="text/ng-template" id="partials/project/project_current.html">
<div id="current-project">
GrantNo {{currentProject.grantNo}}<br/>
<h4>{{currentProject.titl}}</h4>
......@@ -18,3 +19,4 @@
{{dataset.sampProc}}<br />
</div>
</div>
</script>
{{currentDataSet}}
<script type="text/ng-template" id="partials/project/project_current_dataset.html">
{{currentDataSet}}
</script>
<div id="current-project">
<script type="text/ng-template" id="partials/project/project_dataset.html">
<div id="current-project">
<h4>Data Set</h4>
<form class="form-horizontal" role="form" name="dataSet-form">
<h4>Data Set</h4>
<div class="form-group">
<label class="col-md-4 control-label" for="collDate">collDate</label>
<div class="col-md-4">
<input ng-model="dataSet.collDate" id="collDate" name="" type="text" placeholder="collDate"
class="form-control input-md">
<form class="form-horizontal" role="form" name="dataSet-form">
<div class="form-group">
<label class="col-md-4 control-label" for="collDate">collDate</label>
<div class="col-md-4">
<input ng-model="dataSet.collDate" id="collDate" name="" type="text" placeholder="collDate"
class="form-control input-md">
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label" for="nation">nation</label>
<div class="col-md-4">
<select ng-model="dataSet.nation" class="form-control"
ng-options="nation.name for nation in nations">
<option value="" disabled selected>Select nation</option>
</select>
</div>
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label" for="nation">nation</label>
<div class="col-md-4">
<select ng-model="dataSet.nation" class="form-control"
ng-options="nation.name for nation in nations">
<option value="" disabled selected>Select nation</option>
</select>
<div class="form-group">
<label class="col-md-4 control-label" for="geogCover">geogCover</label>
<div class="col-md-4">
<input ng-model="dataSet.geogCover" id="geogCover" name="geogCover" type="text" placeholder="geogCover"
class="form-control input-md">
</div>
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label" for="geogCover">geogCover</label>
<div class="col-md-4">
<input ng-model="dataSet.geogCover" id="geogCover" name="geogCover" type="text" placeholder="geogCover"
class="form-control input-md">
<div class="form-group">
<label class="col-md-4 control-label" for="anlyUnit">anlyUnit</label>
<div class="col-md-4">
<input ng-model="dataSet.anlyUnit" id="anlyUnit" name="anlyUnit" type="text" placeholder="anlyUnit"
class="form-control input-md">
</div>
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label" for="anlyUnit">anlyUnit</label>
<div class="col-md-4">
<input ng-model="dataSet.anlyUnit" id="anlyUnit" name="anlyUnit" type="text" placeholder="anlyUnit"
class="form-control input-md">
<div class="form-group">
<label class="col-md-4 control-label" for="universe">universe</label>
<div class="col-md-4">
<input ng-model="dataSet.universe" id="universe" name="universe" type="text" placeholder="universe"
class="form-control input-md">
</div>
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label" for="universe">universe</label>
<div class="col-md-4">
<input ng-model="dataSet.universe" id="universe" name="universe" type="text" placeholder="universe"
class="form-control input-md">
<div class="form-group">
<label class="col-md-4 control-label" for="sampProc">sampProc</label>
<div class="col-md-4">
<input ng-model="dataSet.sampProc" id="sampProc" name="sampProc" type="text" placeholder="sampProc"
class="form-control input-md">
</div>
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label" for="sampProc">sampProc</label>
<div class="col-md-4">
<input ng-model="dataSet.sampProc" id="sampProc" name="sampProc" type="text" placeholder="sampProc"
class="form-control input-md">
<div class="form-group">
<label class="col-md-4 control-label" for="timeMeth">timeMeth</label>
<div class="col-md-4">
<input ng-model="dataSet.timeMeth" id="timeMeth" name="timeMeth" type="text" placeholder="timeMeth"
class="form-control input-md">
</div>
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label" for="timeMeth">timeMeth</label>
<div class="col-md-4">
<input ng-model="dataSet.timeMeth" id="timeMeth" name="timeMeth" type="text" placeholder="timeMeth"
class="form-control input-md">
<div class="form-group">
<label class="col-md-4 control-label" for="collMode">collMode</label>
<div class="col-md-4">
<input ng-model="dataSet.collMode" id="collMode" name="collMode" type="text" placeholder="collMode"
class="form-control input-md">
</div>
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label" for="collMode">collMode</label>
<div class="col-md-4">
<input ng-model="dataSet.collMode" id="collMode" name="collMode" type="text" placeholder="collMode"
class="form-control input-md">
<div class="form-group">
<label class="col-md-4 control-label" for="dataCollectorAffiliation">dataCollectorAffiliation</label>
<div class="col-md-4">
<input ng-model="dataSet.dataCollectorAffiliation" id="dataCollectorAffiliation"
name="dataCollectorAffiliation" type="text" placeholder="dataCollectorAffiliation"
class="form-control input-md">
</div>
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label" for="dataCollectorAffiliation">dataCollectorAffiliation</label>
<div class="col-md-4">
<input ng-model="dataSet.dataCollectorAffiliation" id="dataCollectorAffiliation" name="dataCollectorAffiliation" type="text" placeholder="dataCollectorAffiliation"
class="form-control input-md">
<div class="form-group">
<label class="col-md-4 control-label" for="isAnonymous">isAnonymous</label>
<div class="col-md-4">
<input ng-model="dataSet.isAnonymous" id="isAnonymous" name="isAnonymous" type="text"
placeholder="isAnonymous"
class="form-control input-md">
</div>
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label" for="isAnonymous">isAnonymous</label>
<div class="col-md-4">
<input ng-model="dataSet.isAnonymous" id="isAnonymous" name="isAnonymous" type="text" placeholder="isAnonymous"
class="form-control input-md">
<div class="form-group">
<label class="col-md-4 control-label" for="post"></label>
<div class="col-md-8">
<button type="submit" id="post" name="post" class="btn btn-success" ng-click="createDataSet()">Save
</button>
<button id="clear" name="clear" class="btn btn-warning" ng-click="resetDataSet()">Clear</button>
</div>
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label" for="post"></label>
<div class="col-md-8">
<button type="submit" id="post" name="post" class="btn btn-success" ng-click="createDataSet()">Save
</button>
<button id="clear" name="clear" class="btn btn-warning" ng-click="resetDataSet()">Clear</button>
<div class="alert alert-danger" role="alert" ng-show="postError != null">
{{postError}}
</div>
</div>
<div class="alert alert-danger" role="alert" ng-show="postError != null">
{{postError}}
</div>
</form>
<a href ng-click="showDataSetFile(true)">Add File</a>
<a href ng-click="showDataSetFile(true)">Add File</a>
</div>
</div>
</script>
<div class="upload-buttons">
<form name="fileForm">
<fieldset>
<legend>Add file</legend>
<input type="file" ng-file-select ng-model="file" name="file" accept="*/*" required>
<i ng-show="myForm.file.$error.required">*required</i>
<script type="text/ng-template" id="partials/project/project_datasetfile.html">
<div class="upload-buttons">
<form name="fileForm">
<fieldset>
<legend>Add file</legend>
<input type="file" ng-file-select ng-model="file" name="file" accept="*/*" required>
<i ng-show="myForm.file.$error.required">*required</i>
<br/>
<button ng-disabled="!fileForm.$valid" ng-click="uploadFile(file)">Submit</button>
</fieldset>
a
<br/>
</form>
</div>
<div class="err" ng-show="errorMsg != null">{{errorMsg}}</div>
<button ng-disabled="!fileForm.$valid" ng-click="uploadFile(file)">Submit</button>
</fieldset>
<br/>
</form>
</div>
<div class="err" ng-show="errorMsg != null">{{errorMsg}}</div>
<progressbar animate="false" value="uploadProgress" type="success"><b>{{uploadProgress}}%</b></progressbar>
<progressbar animate="false" value="uploadProgress" type="success"><b>{{uploadProgress}}%</b></progressbar>
</script>
<div id="project-form">
<script type="text/ng-template" id="partials/project/project_form.html">
<div id="project-form">
<form class="form-horizontal" role="form" name="project-form">
<div class="form-group">
<label class="col-md-4 control-label" for="grantNo">Grant No</label>
<form class="form-horizontal" role="form" name="project-form">
<div class="form-group">
<label class="col-md-4 control-label" for="grantNo">Grant No</label>
<div class="col-md-4">
<input ng-model="project.grantNo" id="grantNo" name="grantNo" type="text" placeholder="Grant No"
class="form-control input-md">
<div class="col-md-4">
<input ng-model="project.grantNo" id="grantNo" name="grantNo" type="text" placeholder="Grant No"
class="form-control input-md">
</div>
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label" for="title">Title</label>
<div class="form-group">
<label class="col-md-4 control-label" for="title">Title</label>
<div class="col-md-4">
<input ng-model="project.titl" id="title" name="title" type="text" placeholder="Title"
class="form-control input-md">
<div class="col-md-4">
<input ng-model="project.titl" id="title" name="title" type="text" placeholder="Title"
class="form-control input-md">
</div>
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label" for="authEnty">AuthEnty</label>
<div class="form-group">
<label class="col-md-4 control-label" for="authEnty">AuthEnty</label>
<div class="col-md-4">
<input ng-model="project.authEnty" id="authEnty" name="authEnty" type="text" placeholder="AuthEnty"
class="form-control input-md">
<div class="col-md-4">
<input ng-model="project.authEnty" id="authEnty" name="authEnty" type="text" placeholder="AuthEnty"
class="form-control input-md">
</div>
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label" for="timePrd">TimePrd</label>
<div class="form-group">
<label class="col-md-4 control-label" for="timePrd">TimePrd</label>
<div class="col-md-4">
<input ng-model="project.timePrd" id="timePrd" name="timePrd" type="text" placeholder="TimePrd"
class="form-control input-md">
<div class="col-md-4">
<input ng-model="project.timePrd" id="timePrd" name="timePrd" type="text" placeholder="TimePrd"
class="form-control input-md">
</div>
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label" for="fundAg">Fund Ag</label>
<div class="form-group">
<label class="col-md-4 control-label" for="fundAg">Fund Ag</label>
<div class="col-md-4">
<input ng-model="project.fundAg" id="fundAg" name="fundAg" type="text" placeholder="Fund Ag"
class="form-control input-md">
<div class="col-md-4">
<input ng-model="project.fundAg" id="fundAg" name="fundAg" type="text" placeholder="Fund Ag"
class="form-control input-md">
</div>
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label" for="abs">Abs</label>
<div class="form-group">
<label class="col-md-4 control-label" for="abs">Abs</label>
<div class="col-md-4">
<input ng-model="project.abs" id="abs" name="abs" type="text" placeholder="Abs"
class="form-control input-md">
<div class="col-md-4">
<input ng-model="project.abs" id="abs" name="abs" type="text" placeholder="Abs"
class="form-control input-md">
</div>
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label" for="post"></label>
<div class="form-group">
<label class="col-md-4 control-label" for="post"></label>
<div class="col-md-8">
<button type="submit" id="post" name="post" class="btn btn-success" ng-click="createProject()">Save
</button>
<button id="clear" name="clear" class="btn btn-warning" ng-click="resetProjectForm()">Clear</button>
<div class="col-md-8">
<button type="submit" id="post" name="post" class="btn btn-success" ng-click="createProject()">Save
</button>
<button id="clear" name="clear" class="btn btn-warning" ng-click="resetProjectForm()">Clear</button>
</div>
</div>
</div>
<div class="alert alert-danger" role="alert" ng-show="postError != null">
{{postError}}
</div>
</form>
</div>
<div class="alert alert-danger" role="alert" ng-show="postError != null">
{{postError}}
</div>
</form>
</div>
</script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment