kevin85421 commented on a change in pull request #186:  SUBMARINE-383. 
Implement frontend of workspace in workbench server with Angular
URL: https://github.com/apache/submarine/pull/186#discussion_r380464855
 
 

 ##########
 File path: 
submarine-workbench/workbench-web-ng/src/app/pages/workbench/workspace/project/new-project-page/new-project-page.component.html
 ##########
 @@ -0,0 +1,134 @@
+<!--
+  ~ 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.
+  -->
+
+<button nz-button nzType="primary" nzShape="circle" style="float:right;margin: 
15px;" (click)="clearProject()"><i nz-icon
+    nzType="close" nzTheme="outline"></i></button>
+<br>
+<h1 style="margin-left: 30px;"> Create New Project</h1>
+<div style="padding-left:300px;padding-right:300px;">
+  <nz-steps [nzCurrent]="current">
+    <nz-step nzTitle="Basic Information"></nz-step>
+    <nz-step nzTitle="Initial Project"></nz-step>
+    <nz-step nzTitle="Preview project"></nz-step>
+  </nz-steps>
+</div>
+
+<div [ngSwitch]="current">
+  <div *ngSwitchCase="0">
+    <form #f="ngForm">
+      <br>
+      <div>
+        <label class="form-label"><span class="red-star">* </span> Project 
Name:</label>
+        <input type="text" id="username" class="form-control" 
[(ngModel)]="newProjectContent.projectName"
+          name="username" required>
+      </div>
+      <div>
+        <label class="form-label"><span class="red-star">* 
</span>Description:</label>
+        <textarea rows="6" class="form-control" name="projectDescriptin" 
[(ngModel)]="newProjectContent.description"
+          required></textarea>
+      </div>
+      <div>
+        <label class="form-label"><span class="red-star">* 
</span>Visibility:</label>
+        <nz-radio-group name="visibility" 
[(ngModel)]="newProjectContent.visibility">
+          <label class="darkLabel" nz-radio nzValue="Private">Private - Only 
project collaborators can view or edit the
+            project.</label>
+          <label class="darkLabel" nz-radio nzValue="Team">Team - All members 
of the team can view the project.</label>
+          <div *ngIf="newProjectContent.visibility==='Team'"> 
+            <nz-select [(ngModel)]="newProjectContent.team" name="team" 
nzAllowClear nzPlaceHolder="Choose" style="margin-top: 10px;">
+              <nz-option *ngFor="let team of teams" [nzValue]="team" 
[nzLabel]="team"></nz-option>
+            </nz-select>
+          </div>
+          <label class="darkLabel" nz-radio nzValue="Public">Public - All 
authenticated users can view the
+            project.</label>
+        </nz-radio-group>
+      </div>
+      <div 
*ngIf="newProjectContent.visibility==='Team'||newProjectContent.visibility==='Public'">
+        <label class="form-label"><span class="red-star">* 
</span>Permission:</label>
+        <nz-radio-group name="permission" 
[(ngModel)]="newProjectContent.permission">
+          <label class="darkLabel" nz-radio nzValue="View">Can View - All 
members can view the project.</label>
+          <label class="darkLabel" nz-radio nzValue="Edit">Can Edit - All 
members can edit the project.</label>
+          <label class="darkLabel" nz-radio nzValue="Execute">Can Execute - 
All members can execute the project.</label>
+        </nz-radio-group>
+      </div>
+    </form>
+    <div style="text-align: center;">
+      <br>
+      <button nz-button nzType="primary" [disabled]="!f.valid" 
(click)="next()">
+        Next Step
+      </button>
+    </div>
+  </div>
+  <div style="margin:20px;" *ngSwitchCase="1">
+    <nz-tabset [nzTabPosition]="'top'" [nzType]="'card'">
+      <nz-tab [nzTitle]="blank">
+        <div class="newBlank">
+          <h3 style="padding-top: 130px;">Create a blank project</h3>
+        </div>
+      </nz-tab>
+      <ng-template #blank> <i nz-icon nzType="file" nzTheme="outline"></i> 
Blank </ng-template>
+      <nz-tab [nzTitle]="template" [nzDisabled]="true"> Template</nz-tab>
+      <ng-template #template> <i nz-icon nzType="database" 
nzTheme="outline"></i> Template </ng-template>
+      <nz-tab [nzTitle]="upload" [nzDisabled]="true"> upload</nz-tab>
+      <ng-template #upload> <i nz-icon nzType="to-top" nzTheme="outline"></i> 
Upload </ng-template>
+      <nz-tab [nzTitle]="github" [nzDisabled]="true"> upload</nz-tab>
+      <ng-template #github> <i nz-icon nzType="github" 
nzTheme="outline"></i>Git Repo </ng-template>
+    </nz-tabset>
+
+    <div style="text-align: center;">
+      <br>
+      <button nz-button nzType="default" (click)="pre()">
+        Previous Step
+      </button>
+      <button nz-button nzType="primary" (click)="next()">
+        Next Step
+      </button>
+    </div>
+  </div>
+  <div *ngSwitchCase="2">
+    <h3 style="margin:30px;color: rgb(82, 82, 82);"><strong>Project 
Files</strong></h3>
+      <nz-table style="margin:30px;" nzBordered #basicTable 
[nzData]="newProjectContent.dataSet" [nzNoResult]="'No data record'">
+        <thead>
+          <tr>
+            <th nzWidth="300px">Name</th>
+            <th nzWidth="40px">Size</th>
+            <th nzWidth="80px">Last Modified</th>
+          </tr>
+        </thead>
+        <tbody>
+          <tr *ngFor="let data of basicTable.data">
+            <td>{{ data.name }}</td>
+            <td>{{ data.size }}</td>
+            <td>{{ data.time }}</td>
+          </tr>
+        </tbody>
+      </nz-table>
+      <div style="text-align: center;">
+        <br>
+        <button nz-button nzType="default" (click)="pre()" style="margin: 
3px;">
+          Previous Step
+        </button>
+        <button nz-button nzType="primary" (click)="done()" style="margin: 
3px;">
+          Save
+        </button>
+        <button nz-button nzType="primary" (click)="openNotebook()" 
[disabled]="true" style="margin: 3px;">
+          Open in Notebook
+        </button>
+      </div>
+  </div>
+</div>
 
 Review comment:
   No newline at the end of the file.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to