/
create-integration.component.html
107 lines (98 loc) · 3.52 KB
/
create-integration.component.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!--
Copyright (C) 2015 The Gravitee team (http://gravitee.io)
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.
-->
<div>
<div class="page-header">
<h1>Integrations</h1>
<span class="page-header__description">Connect to third-party API gateways and event brokers to create a unified control plane and API portal with
Gravitee</span>
</div>
<mat-card>
<mat-card-content>
<div class="card-header">
<div class="card-header__title">
<h3>Create Integration</h3>
</div>
<div class="card-header__actions">
<button
mat-raised-button
[disabled]="false"
data-testid="exit-create-integration-button"
routerLink=".."
>
<mat-icon svgIcon="gio:cancel"></mat-icon>
Exit without saving
</button>
</div>
</div>
<form [formGroup]="informationForm" class="form" (ngSubmit)="onSubmit()">
<div class="form__body">
<mat-card class="form-card">
<mat-card-content>
<div>
<h5>General Information</h5>
<p class="info">Enter the general information for this new integration.</p>
</div>
<div>
<mat-form-field appearance="outline" class="form-field">
<input
id="name"
type="text"
matInput
formControlName="name"
required="true"
data-testid="create-integration-name-input"
/>
<mat-label>Name</mat-label>
<mat-error *ngIf="informationForm.controls.name.errors?.required">Name is required</mat-error>
</mat-form-field>
</div>
<div>
<mat-form-field appearance="outline" class="form-field">
<textarea
id="description"
matInput #input
maxlength="250"
formControlName="description"
rows="2"
data-testid="create-integration-description"
></textarea>
<mat-label>Description</mat-label>
<mat-hint align="start">{{ input.value.length }}/250</mat-hint>
</mat-form-field>
</div>
</mat-card-content>
</mat-card>
</div>
<div class="form__actions">
<button
mat-flat-button
[disabled]="true"
data-testid="back-create-integration-button"
routerLink=".."
>
Back
</button>
<button
type="submit"
mat-raised-button
color="primary"
data-testid="create-integration-submit-button"
[disabled]="!informationForm.valid"
>
Create Integration
</button>
</div>
</form>
</mat-card-content>
</mat-card>
</div>