forked from vmware-archive/admiral
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Align Summary pages to Tango style: Projects.
Change-Id: I25843b03ddff7291d2d89df541df819985b75c00 Reviewed-on: https://bellevue-ci.eng.vmware.com:8080/45963 Closures-Verified: jenkins <[email protected]> Upgrade-Verified: jenkins <[email protected]> Bellevue-Verified: jenkins <[email protected]> PG-Verified: jenkins <[email protected]> CS-Verified: jenkins <[email protected]> Reviewed-by: Iveta Ilieva <[email protected]>
- Loading branch information
Showing
14 changed files
with
317 additions
and
230 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 0 additions & 4 deletions
4
ui/ng-app/src/app/views/projects/project-create/project-create.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
// Copyright (c) 2017-2018 VMware, Inc. All Rights Reserved. | ||
// This software is released under MIT license. | ||
// The full license information can be found in LICENSE in the root directory of this project. | ||
|
||
textarea { | ||
width: 350px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
ui/ng-app/src/app/views/projects/project-details/project-edit.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<!-- | ||
~ Copyright (c) 2018 VMware, Inc. All Rights Reserved. | ||
~ | ||
~ This product is licensed to you under the Apache License, Version 2.0 (the "License"). | ||
~ You may not use this product except in compliance with the License. | ||
~ | ||
~ This product may include a number of subcomponents with separate copyright notices | ||
~ and license terms. Your use of these subcomponents is subject to the terms and | ||
~ conditions of the subcomponent's license, as noted in the LICENSE file. | ||
--> | ||
|
||
<form [formGroup]="projectForm"> | ||
<div class="form-group" *ngIf="editAllowed"> | ||
<label for="name" class="required">{{"projects.edit.name" | i18n}}</label> | ||
<label for="name" aria-haspopup="true" role="tooltip" | ||
class="tooltip tooltip-validation tooltip-sm tooltip-right" | ||
[class.invalid]="projectForm.get('name').invalid | ||
&& (projectForm.get('name').dirty || projectForm.get('name').touched)"> | ||
<input id="name" [attr.disabled]="isNameInputDisabled" type="text" formControlName="name"> | ||
<span class="tooltip-content">{{"projects.edit.nameRequired" | i18n}}</span> | ||
</label> | ||
</div> | ||
<div class="form-group" *ngIf="editAllowed"> | ||
<label for="description">{{"projects.edit.description" | i18n}}</label> | ||
<textarea id="description" rows="2" formControlName="description"></textarea> | ||
</div> | ||
<div class="form-group" *ngIf="editAllowed"> | ||
<div class="checkbox-inline"> | ||
<input type="checkbox" id="isPublic" formControlName="isPublic"> | ||
<label for="isPublic" aria-haspopup="true" role="tooltip" | ||
class="tooltip tooltip-validation tooltip-sm" | ||
>{{"projects.publicDescription" | i18n}}</label> | ||
</div> | ||
</div> | ||
|
||
<ng-content select="[summary]"></ng-content> | ||
|
||
<button *ngIf="editAllowed" type="button" class="btn btn-primary" | ||
[clrLoading]="isUpdatingProject" | ||
[disabled]="!projectForm.dirty || projectForm.invalid" | ||
(click)="update()">{{(isEdit ? "update" : 'create') | i18n}}</button> | ||
<button *ngIf="editAllowed" type="button" class="btn btn-secondary" | ||
[disabled]="isUpdatingProject" | ||
(click)="goBack()">{{ "cancel" | i18n }}</button> | ||
</form> |
7 changes: 7 additions & 0 deletions
7
ui/ng-app/src/app/views/projects/project-details/project-edit.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// Copyright (c) 2018 VMware, Inc. All Rights Reserved. | ||
// This software is released under MIT license. | ||
// The full license information can be found in LICENSE in the root directory of this project. | ||
|
||
input, textarea { | ||
width: 350px; | ||
} |
Oops, something went wrong.