68 lines
4.0 KiB
HTML
68 lines
4.0 KiB
HTML
<div class="panel panel-default margin10">
|
|
<div class="panel-heading">
|
|
<div class="row">
|
|
<div class="col col-xs-6">
|
|
<h3 class="panel-title">Editing profile: {{profile?.label}}</h3>
|
|
</div>
|
|
<div class="col col-xs-6 text-right">
|
|
<button type="button" class="btn btn-sm btn-primary btn-create" (click)="goToMain()" > <span class="glyphicon glyphicon-arrow-left"></span> Go back</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="panel-body">
|
|
|
|
<ul class="nav nav-tabs content-tabs" id="maincontent" role="tablist">
|
|
<li class="active"><a href="#profile" role="tab" data-toggle="tab">Profile</a></li>
|
|
<li class=""><a href="#viewstyle" role="tab" data-toggle="tab">Profile's viewstyle</a></li>
|
|
<li class=""><a href="#ruleset" role="tab" data-toggle="tab">Profile's ruleset</a></li>
|
|
</ul>
|
|
|
|
<div class="tab-content">
|
|
|
|
<div class="tab-pane fade active in" id="profile">
|
|
<br />
|
|
<div class="custom-table">
|
|
<input name="profile-label" type="text" placeholder="Enter profile label" [ngModel]="profile?.label" (ngModelChange)="profile.label=$event" (focusin)="onFocusIn($event)" (ngModelChange)="onValueChanged($event)" (focusout)="onFocusOutProfileWin($event)" (keydown)="preventDefaults($event)">
|
|
<label for="profile-label">Label</label>
|
|
</div>
|
|
<br />
|
|
<div class="custom-table">
|
|
<textarea class="form-control custom" rows="10" cols="65" name="profile-definition" [ngModel]="profile?.definition" (ngModelChange)="profile.definition=$event" (focusin)="onFocusIn($event)" (ngModelChange)="onValueChanged($event)" (focusout)="onFocusOutProfileWin($event)" (keydown)="preventDefaults($event)" placeholder="Enter profile definition"></textarea>
|
|
<label for="profile-definition">Definition</label>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="tab-pane fade" id="viewstyle">
|
|
<br />
|
|
<div class="custom-table">
|
|
<input name="viewstyle-label" type="text" placeholder="Enter viewstyle label" [ngModel]="profile?.viewstyle?.label" (ngModelChange)="profile.viewstyle.label=$event" (focusin)="onFocusIn($event)" (ngModelChange)="onValueChanged($event)" (focusout)="onFocusOutProfileWin($event)" (keydown)="preventDefaults($event)">
|
|
<label for="viewstyle-label">Label</label>
|
|
</div>
|
|
<br />
|
|
<div class="custom-table">
|
|
<textarea class="form-control custom" rows="10" cols="65" name="viewstyle-definition" [ngModel]="profile?.viewstyle?.definition" (ngModelChange)="profile.viewstyle.definition=$event" (focusin)="onFocusIn($event)" (ngModelChange)="onValueChanged($event)" (focusout)="onFocusOutProfileWin($event)" (keydown)="preventDefaults($event)"></textarea>
|
|
<label for="viewstyle-definition">Definition</label>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="tab-pane fade" id="ruleset">
|
|
<br />
|
|
<div class="custom-table">
|
|
<input name="ruleset-label" type="text" placeholder="Enter ruleset label" [ngModel]="profile?.ruleset?.label" (ngModelChange)="profile.ruleset.label=$event" (focusin)="onFocusIn($event)" (ngModelChange)="onValueChanged($event)" (focusout)="onFocusOutProfileWin($event)" (keydown)="preventDefaults($event)">
|
|
<label for="ruleset-label">Label</label>
|
|
</div>
|
|
<br />
|
|
<div class="custom-table">
|
|
<textarea class="form-control custom" rows="10" cols="65" name="ruleset-definition" [ngModel]="profile?.ruleset?.definition" (ngModelChange)="profile.ruleset.definition=$event" (focusin)="onFocusIn($event)" (ngModelChange)="onValueChanged($event)" (focusout)="onFocusOutProfileWin($event)" (keydown)="preventDefaults($event)"></textarea>
|
|
<label for="ruleset-definition">Definition</label>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div> |