2016-07-07 18:03:32 +02:00
|
|
|
<!--
|
|
|
|
Copyright (c) 2016 VMware, Inc. All Rights Reserved.
|
|
|
|
Licensed 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.
|
|
|
|
-->
|
2016-07-08 03:24:27 +02:00
|
|
|
<div class="well well-custom" style="position: absolute; margin-left: 10px; margin-top: 5px; width: 96%;">
|
2016-06-25 21:12:17 +02:00
|
|
|
<form name="form" class="css-form form-custom" novalidate>
|
2016-06-25 10:15:50 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-10 col-md-10">
|
|
|
|
<div class="form-group col-md-7">
|
|
|
|
<input type="text" class="form-control" placeholder="// 'project_name' | tr //" ng-model="p.projectName" name="uProjectName" ng-change="vm.reset()" ng-model-options="{ debounce: 250 }" project-name required>
|
2016-05-14 07:34:54 +02:00
|
|
|
<div class="error-message">
|
2016-06-25 10:15:50 +02:00
|
|
|
<div ng-messages="form.$submitted && form.uProjectName.$error">
|
2016-05-16 05:41:54 +02:00
|
|
|
<span ng-message="required">// 'project_name_is_required' | tr //</span>
|
2016-06-25 10:15:50 +02:00
|
|
|
<span ng-message="projectName">// 'project_name_is_invalid' | tr //</span>
|
2016-05-14 07:34:54 +02:00
|
|
|
</div>
|
2016-05-14 13:28:15 +02:00
|
|
|
<span ng-show="vm.hasError">// vm.errorMessage | tr //</span>
|
2016-05-14 07:34:54 +02:00
|
|
|
</div>
|
2016-05-01 19:46:50 +02:00
|
|
|
</div>
|
2016-06-28 07:12:25 +02:00
|
|
|
<div class="form-group" style="margin-top: 5px;">
|
2016-07-19 17:52:50 +02:00
|
|
|
<label>
|
|
|
|
<input type="checkbox" ng-model="vm.isPublic"> // 'public' | tr //
|
|
|
|
</label>
|
2016-07-06 06:56:44 +02:00
|
|
|
<inline-help help-title="//'inline_help_publicity_title' | tr//" content="//'inline_help_publicity' | tr//"></inline-help>
|
2016-05-01 19:46:50 +02:00
|
|
|
</div>
|
2016-06-25 10:15:50 +02:00
|
|
|
</div>
|
|
|
|
<div class="col-xs-2 col-md-2">
|
2016-05-14 07:34:54 +02:00
|
|
|
<div class="form-group">
|
2016-06-25 10:15:50 +02:00
|
|
|
<button type="submit" class="btn btn-primary" ng-click="vm.addProject(p)">// 'save' | tr //</button>
|
2016-05-18 11:03:06 +02:00
|
|
|
<button type="button" class="btn btn-default" ng-click="vm.cancel(form)">// 'cancel' | tr //</button>
|
2016-05-01 19:46:50 +02:00
|
|
|
</div>
|
2016-06-25 10:15:50 +02:00
|
|
|
</div>
|
2016-05-01 19:46:50 +02:00
|
|
|
</div>
|
2016-06-25 10:15:50 +02:00
|
|
|
</form>
|
2016-07-19 17:52:50 +02:00
|
|
|
</div>
|