form-instance.component.html 2.54 KB
Newer Older
François Agneray's avatar
François Agneray committed
1
2
3
<form name="form" (ngSubmit)="f.form.valid && emit(f.form.value)" #f="ngForm" novalidate>
    <div class="form-group">
        <label for="name">Name</label>
4
        <input id="name" type="text" class="form-control" name="name" [ngModel]="model.name" #name="ngModel" [disabled]="model.name" required>
François Agneray's avatar
François Agneray committed
5
6
7
    </div>
    <div class="form-group">
        <label for="label">Label</label>
8
        <input id="label" type="text" class="form-control" name="label" [ngModel]="model.label" #label="ngModel" required>
François Agneray's avatar
François Agneray committed
9
10
11
    </div>
    <div class="form-group">
        <label for="client_url">Client URL</label>
12
        <input id="client_url" type="text" class="form-control" name="client_url" [ngModel]="model.client_url" #clientUrl="ngModel">
François Agneray's avatar
François Agneray committed
13
    </div>
14

15
    <hr class="mt-4">
16
17
18
19
20
21
22
    <h4>Authentication: </h4>
    <div class="form-check mb-2">
        <input class="form-check-input" type="checkbox" id="authentication" name="authentication" [ngModel]="getConfig('authentication', 'allowed')">
        <label class="form-check-label" for="authentication">User authentication available</label>
    </div>

    <hr>
23
    <h4>Search: </h4>
24
    <div class="form-check mb-2">
25
        <input class="form-check-input" type="checkbox" id="search" name="search" [ngModel]="getConfig('search', 'allowed')">
26
        <label class="form-check-label" for="search">Classic search allowed</label>
27
    </div>
28
29
30
31

    <hr>
    <h4>Search multiple: </h4>
    <div class="form-check mb-2">
32
        <input class="form-check-input" type="checkbox" id="search_multiple" name="search_multiple" [ngModel]="getConfig('search_multiple', 'allowed')">
33
        <label class="form-check-label" for="search_multiple">Search multiple allowed</label>
34
    </div>
35
36
37
38
39
40
    <div class="form-check mb-2">
        <input class="form-check-input"
               type="checkbox"
               id="all_datasets_selected"
               name="all_datasets_selected"
               [disabled]="!ngForm.form.value.search_multiple"
41
               [ngModel]="getConfig('search_multiple', 'all_datasets_selected')">
42
43
44
45
46
47
        <label class="form-check-label" for="all_datasets_selected">All datasets with cone search enabled selected by default</label>
    </div>

    <hr>
    <h4>Documentation: </h4>
    <div class="form-check mb-2">
48
        <input class="form-check-input" type="checkbox" id="documentation" name="documentation" [ngModel]="getConfig('documentation', 'allowed')">
49
50
        <label class="form-check-label" for="documentation">Documentation allowed</label>
    </div>
51

52
    <div class="form-group pt-4">
François Agneray's avatar
François Agneray committed
53
54
55
        <ng-content></ng-content>
    </div>
</form>