|
11 | 11 | -->
|
12 | 12 |
|
13 | 13 | <form nz-form [nzLayout]="'horizontal'" [formGroup]="validateForm" (ngSubmit)="handleSubmit()">
|
| 14 | + <p style="color: #1890ff; font-size: 12px;"> |
| 15 | + Adding a repository with an existing ID will update the existing repository. |
| 16 | + </p> |
14 | 17 | <nz-form-item>
|
15 | 18 | <nz-form-label [nzSpan]="6" nzRequired>
|
16 | 19 | ID
|
17 | 20 | </nz-form-label>
|
18 | 21 | <nz-form-control nz-col [nzSpan]="16">
|
19 |
| - <input |
20 |
| - nz-input |
21 |
| - autofocus |
22 |
| - formControlName="id" |
23 |
| - placeholder="Repository id" |
24 |
| - /> |
| 22 | + <input nz-input autofocus formControlName="id" placeholder="Repository id" /> |
25 | 23 | </nz-form-control>
|
26 | 24 | </nz-form-item>
|
27 | 25 | <nz-form-item>
|
|
30 | 28 | </nz-form-label>
|
31 | 29 | <nz-form-control nz-col [nzSpan]="16">
|
32 | 30 | <nz-input-group [nzAddOnBefore]="addOnBeforeTemplate">
|
33 |
| - <input type="text" |
34 |
| - nz-input |
35 |
| - formControlName="url" |
36 |
| - placeholder="Repository url"> |
| 31 | + <input type="text" nz-input formControlName="url" placeholder="Repository url" /> |
37 | 32 | </nz-input-group>
|
38 | 33 | <ng-template #addOnBeforeTemplate>
|
39 |
| - <nz-select name="urlProtocol" |
40 |
| - [(ngModel)]="urlProtocol" |
41 |
| - [ngModelOptions]="{standalone: true}"> |
| 34 | + <nz-select name="urlProtocol" [(ngModel)]="urlProtocol" [ngModelOptions]="{ standalone: true }"> |
42 | 35 | <nz-option [nzLabel]="'http://'" [nzValue]="'http://'"></nz-option>
|
43 | 36 | <nz-option [nzLabel]="'https://'" [nzValue]="'https://'"></nz-option>
|
44 | 37 | <nz-option [nzLabel]="'file://'" [nzValue]="'file://'"></nz-option>
|
|
59 | 52 | Username
|
60 | 53 | </nz-form-label>
|
61 | 54 | <nz-form-control nz-col [nzSpan]="16">
|
62 |
| - <input |
63 |
| - nz-input |
64 |
| - formControlName="username" |
65 |
| - placeholder="username" |
66 |
| - /> |
| 55 | + <input nz-input formControlName="username" placeholder="username" /> |
67 | 56 | </nz-form-control>
|
68 | 57 | </nz-form-item>
|
69 | 58 | <nz-form-item>
|
70 | 59 | <nz-form-label [nzSpan]="6">
|
71 | 60 | Password
|
72 | 61 | </nz-form-label>
|
73 | 62 | <nz-form-control nz-col [nzSpan]="16">
|
74 |
| - <input |
75 |
| - nz-input |
76 |
| - type="password" |
77 |
| - formControlName="password" |
78 |
| - placeholder="password" |
79 |
| - /> |
| 63 | + <input nz-input type="password" formControlName="password" placeholder="password" /> |
80 | 64 | </nz-form-control>
|
81 | 65 | </nz-form-item>
|
82 | 66 | <nz-divider nzType="horizontal"></nz-divider>
|
|
96 | 80 | Host
|
97 | 81 | </nz-form-label>
|
98 | 82 | <nz-form-control nz-col [nzSpan]="16">
|
99 |
| - <input |
100 |
| - nz-input |
101 |
| - formControlName="proxyHost" |
102 |
| - placeholder="proxy host" |
103 |
| - /> |
| 83 | + <input nz-input formControlName="proxyHost" placeholder="proxy host" /> |
104 | 84 | </nz-form-control>
|
105 | 85 | </nz-form-item>
|
106 | 86 | <nz-form-item>
|
107 | 87 | <nz-form-label [nzSpan]="6">
|
108 | 88 | Port
|
109 | 89 | </nz-form-label>
|
110 | 90 | <nz-form-control nz-col [nzSpan]="16">
|
111 |
| - <input |
112 |
| - nz-input |
113 |
| - formControlName="proxyPort" |
114 |
| - placeholder="proxy port" |
115 |
| - /> |
| 91 | + <input nz-input formControlName="proxyPort" placeholder="proxy port" /> |
116 | 92 | </nz-form-control>
|
117 | 93 | </nz-form-item>
|
118 | 94 | <nz-form-item>
|
119 | 95 | <nz-form-label [nzSpan]="6">
|
120 | 96 | Login
|
121 | 97 | </nz-form-label>
|
122 | 98 | <nz-form-control nz-col [nzSpan]="16">
|
123 |
| - <input |
124 |
| - nz-input |
125 |
| - formControlName="proxyLogin" |
126 |
| - placeholder="proxy login" |
127 |
| - /> |
| 99 | + <input nz-input formControlName="proxyLogin" placeholder="proxy login" /> |
128 | 100 | </nz-form-control>
|
129 | 101 | </nz-form-item>
|
130 | 102 | <nz-form-item>
|
131 | 103 | <nz-form-label [nzSpan]="6">
|
132 | 104 | Password
|
133 | 105 | </nz-form-label>
|
134 | 106 | <nz-form-control nz-col [nzSpan]="16">
|
135 |
| - <input |
136 |
| - nz-input |
137 |
| - type="password" |
138 |
| - formControlName="proxyLogin" |
139 |
| - placeholder="proxy password" |
140 |
| - /> |
| 107 | + <input nz-input type="password" formControlName="proxyLogin" placeholder="proxy password" /> |
141 | 108 | </nz-form-control>
|
142 | 109 | </nz-form-item>
|
143 | 110 | </form>
|
144 | 111 |
|
145 | 112 | <div class="modal-footer ant-modal-footer">
|
146 |
| - <button |
147 |
| - nz-button |
148 |
| - nzType="primary" |
149 |
| - [disabled]="!validateForm.valid" |
150 |
| - (click)="handleSubmit()" |
151 |
| - [nzLoading]="submitting" |
152 |
| - > |
| 113 | + <button nz-button nzType="primary" [disabled]="!validateForm.valid" (click)="handleSubmit()" [nzLoading]="submitting"> |
153 | 114 | Add
|
154 | 115 | </button>
|
155 | 116 | <button nz-button (click)="handleCancel()">
|
|
0 commit comments