Add selectobservation view
Project: http://git-wip-us.apache.org/repos/asf/climate/repo Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/e19a5acc Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/e19a5acc Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/e19a5acc Branch: refs/heads/master Commit: e19a5acc256dd8c016f62b0c8f1e78444d4de26a Parents: 1047bd7 Author: Michael Joyce <[email protected]> Authored: Wed Jul 16 16:36:44 2014 -0700 Committer: Michael Joyce <[email protected]> Committed: Wed Jul 16 16:36:44 2014 -0700 ---------------------------------------------------------------------- .../app/views/selectobservation.html | 58 ++++++++++++++++++++ 1 file changed, 58 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/climate/blob/e19a5acc/ocw-ui/frontend-new/app/views/selectobservation.html ---------------------------------------------------------------------- diff --git a/ocw-ui/frontend-new/app/views/selectobservation.html b/ocw-ui/frontend-new/app/views/selectobservation.html new file mode 100644 index 0000000..c560b6f --- /dev/null +++ b/ocw-ui/frontend-new/app/views/selectobservation.html @@ -0,0 +1,58 @@ +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you under the Apache License, Version 2.0 (the + ~ "License"); you may not use this file except in compliance + ~ with the License. You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, + ~ software distributed under the License is distributed on an + ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + ~ KIND, either express or implied. See the License for the + ~ specific language governing permissions and limitations + ~ under the License. +--> + +<div ng-controller="ObservationSelectCtrl"> + <form class="form-inline" autocomplete="off"> + <input id="observationFileInput" predictive-file-browser-input ng-model="filePathInput" type="text" class="input-xlarge" autocomplete="off" /> + <button class="btn" ng-click="uploadLocalFile()" ng-disabled="shouldDisableLoadButton()"> + <div ng-hide="loadingFile">Parse File</div> + <div ng-show="loadingFile"><i class="icon-spinner icon-spin"></i></div> + </button> + </form> + + <div class="row"> + <div class="span2 text-center"> + Evaluation Variable + </div> + <div class="span3"> + <select ng-model="paramSelect" ng-options="param for param in params"></select> + </div> + <div class="span2 text-center"> + Latitude Variable + </div> + <div class="span3"> + <select ng-model="latsSelect" ng-options="lat for lat in lats"></select> + </div> + <div class="span2 text-center"> + Longitude Variable + </div> + <div class="span3"> + <select ng-model="lonsSelect" ng-options="lon for lon in lons"></select> + </div> + <div class="span2 text-center"> + Date/Time Variable + </div> + <div class="span3"> + <select ng-model="timeSelect" ng-options="time for time in times"></select> + </div> + </div> + + <button class="btn btn-primary pull-left" ng-click="addDataSet()">Add Dataset</button> + <div class="pull-left small-alert" ng-show="fileAdded">Successfully added dataset...</div> +</div>
