2016-05-01 19:46:50 +02:00
|
|
|
<div class="well panel-group">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-10 col-md-10">
|
2016-05-14 07:34:54 +02:00
|
|
|
<form name="form" ng-submit="form.$valid">
|
|
|
|
<div class="form-group col-md-6">
|
2016-05-16 07:44:35 +02:00
|
|
|
<input type="text" class="form-control" placeholder="// 'project_name' | tr //" ng-model="p.projectName" name="uProjectName" ng-model-options="{ updateOn: 'blur' }" ng-change="vm.reset()" required>
|
2016-05-14 07:34:54 +02:00
|
|
|
<div class="error-message">
|
2016-05-14 13:28:15 +02:00
|
|
|
<div ng-messages="form.$dirty && form.uProjectName.$error" ng-if="form.uProjectName.$touched">
|
2016-05-16 05:41:54 +02:00
|
|
|
<span ng-message="required">// 'project_name_is_required' | 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>
|
|
|
|
<div class="form-group">
|
2016-05-13 12:48:06 +02:00
|
|
|
<input type="checkbox" ng-model="vm.isPublic"> // 'public_projects' | tr //
|
2016-05-01 19:46:50 +02:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="col-xs-2 col-md-2">
|
|
|
|
<form>
|
2016-05-14 07:34:54 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<button type="button" class="btn btn-default" ng-click="vm.cancel(form)">// 'cancel' | tr //</button>
|
2016-05-14 13:28:15 +02:00
|
|
|
<button type="button" class="btn btn-primary" ng-disabled="form.$invalid" ng-click="vm.addProject(p)">// 'save' | tr //</button>
|
2016-05-01 19:46:50 +02:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|