summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole3/frontend/src/app/pages/software-profile/software-profile.component.html
blob: 0a9abe1630411d901216ef4bebf107d883d76870 (plain)
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
<section class="content-header">
    <h1 translate="software">
    </h1>
    <ol class="breadcrumb">
        <li><a href="#/app/dashboard"><i class="fa fa-dashboard"></i> {{'dashboard'|translate}}</a></li>
        <li><a href="#/app/software"><i class="fa  fa-server"></i> {{'software'|translate}}</a></li>
        <li class="active" translate="software_profile"></li>
    </ol>
</section>
<section fixed-toolboxbar class="toolboxbar">
    <div>
        <div class="col-md-12">
            <div class="box-tools pull-right">
                <button class="btn btn-primary" translate="save" (click)="save(Form)"></button>
            </div>
        </div>
    </div>
</section>
<section class="content">
    <div class="row">
        <div class="col-md-6">
            <div class="box box-primary">
                <div class="box-header with-border">
                    <h3 *ngIf="!softwareProfile.id" class="box-title" translate="new_software_profile"></h3>
                    <h3 *ngIf="softwareProfile.id" class="box-title" translate="software_profile"></h3>
                </div>
                <div class="box-body">
                    <form role="form" name="Form">
                        <app-form-input [cols]="1" [model]="softwareProfile" [formType]="formType"></app-form-input>
                    </form>
                </div>
                <div class="box-footer">
                </div>
            </div>
        </div>
        <div class="col-md-6">
            <div class="box box-primary">
                <div class="box-header with-border">
                    <h4 translate="software_profile_components"></h4>
                    <div class="input-group">
                        <input type="text" name="q" class="form-control" placeholder="Search..."
                               [(ngModel)]="searchText">
                        <span class="input-group-btn">
                        <button type="button" name="search" id="search-btn" class="btn btn-flat"><i
                                class="fa fa-search"></i>
                        </button>
                      </span>
                    </div>
                </div>
                <div class="box-body">
                    <table class="table table-hover">
                        <tbody>
                        <tr>
                            <th translate="select"></th>
                            <th translate="description"></th>
                            <th translate="type"></th>
                        </tr>
                        <tr *ngFor="let softwareComponent of softwareComponents; let index = index"
                            class="(index%2 == 0)?'odd':'even'">
                            <td>
                                <input icheck checkbox-class="icheckbox_square-blue" radio-class="iradio_square-blue"
                                       type="checkbox" class="selection-checkbox"
                                       [(ngModel)]="softwareComponent.$$selected"
                                       (change)="ogCommonService.checkUnchekComponent(softwareProfile, softwareComponent)"/>
                            </td>
                            <td>
                  <span>
                    {{softwareComponent.description}}
                  </span>
                            </td>
                            <td>
                    <span>
                      {{softwareComponent.type ? softwareComponent.type.name : '-'}}
                    </span>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</section>