deleted file mode 100644| .. | .. |
|---|
| 1 | | -<h3 md-dialog-title>{{form_title}}</h3> |
|---|
| 2 | | -<form #packForm="ngForm" (keyup.enter)="save()"> |
|---|
| 3 | | -<md-dialog-content> |
|---|
| 4 | | - <div layout="column" layout-align="start center"> |
|---|
| 5 | | - <div layout="row" layout-align="start center" layout-margin> |
|---|
| 6 | | - <md-input-container flex> |
|---|
| 7 | | - <input mdInput maxLength="50" type="text" [(ngModel)]="data.code" name="code" required /> |
|---|
| 8 | | - <md-placeholder> |
|---|
| 9 | | - <span i18n>Code</span> |
|---|
| 10 | | - </md-placeholder> |
|---|
| 11 | | - </md-input-container> |
|---|
| 12 | | - <!-- TODO: <div class="alert inline-alert alert-warning" ng-show="packForm.code.$invalid"> |
|---|
| 13 | | - <span class="glyphicon glyphicon-warning-sign"></span> |
|---|
| 14 | | - <span ng-show="packForm.code.$error.maxlength" ng-bind="maxLengthErrorMsg('Code', maxlength.code)" |
|---|
| 15 | | - class="ng-binding ng-hide">Code length is too long (max: 50).</span> |
|---|
| 16 | | - <span ng-show="packForm.code.$error.required" ng-bind="mandatoryFieldErrorMsg('Code')" class="ng-binding">'Code' is required.</span> |
|---|
| 17 | | - </div> --> |
|---|
| 18 | | - <md-input-container flex> |
|---|
| 19 | | - <input mdInput type="number" type="text" [(ngModel)]="data.num_licenses" name="num_licenses" required /> |
|---|
| 20 | | - <md-placeholder> |
|---|
| 21 | | - <span i18n>Num. licenses</span> |
|---|
| 22 | | - </md-placeholder> |
|---|
| 23 | | - </md-input-container> |
|---|
| 24 | | - </div> |
|---|
| 25 | | - <div layout="row" layout-align="start center" layout-margin> |
|---|
| 26 | | - <md-input-container flex> |
|---|
| 27 | | - <input mdInput type="date" type="text" [(ngModel)]="data.init_valid_date" name="init_valid_date" required /> |
|---|
| 28 | | - <md-placeholder> |
|---|
| 29 | | - <span i18n>Initial date</span> |
|---|
| 30 | | - </md-placeholder> |
|---|
| 31 | | - </md-input-container> |
|---|
| 32 | | - <md-input-container flex> |
|---|
| 33 | | - <input mdInput type="date" type="text" [(ngModel)]="data.end_valid_date" name="end_valid_date" required /> |
|---|
| 34 | | - <md-placeholder> |
|---|
| 35 | | - <span i18n>End date</span> |
|---|
| 36 | | - </md-placeholder> |
|---|
| 37 | | - </md-input-container> |
|---|
| 38 | | - </div> |
|---|
| 39 | | - <div layout="row" layout-align="start center" layout-margin> |
|---|
| 40 | | - <md-select flex placeholder="Organization" [(ngModel)]="data.organization_id" name="organization_id"> |
|---|
| 41 | | - <md-option *ngFor="let org of organizations" [value]="org.id"> |
|---|
| 42 | | - {{org.label}} |
|---|
| 43 | | - </md-option> |
|---|
| 44 | | - </md-select> |
|---|
| 45 | | - <md-select flex placeholder="License type" [(ngModel)]="data.license_type_id" name="license_type_id"> |
|---|
| 46 | | - <md-option *ngFor="let lt of lictypes" [value]="lt.id"> |
|---|
| 47 | | - {{lt.label}} |
|---|
| 48 | | - </md-option> |
|---|
| 49 | | - </md-select> |
|---|
| 50 | | - </div> |
|---|
| 51 | | - </div> |
|---|
| 52 | | -</md-dialog-content> |
|---|
| 53 | | -<md-dialog-actions layout="row" layout-align="end center"> |
|---|
| 54 | | - <button flex [disabled]="!packForm.form.valid" md-raised-button color="primary" (click)="save()">Save</button> |
|---|
| 55 | | - <button flex md-button (click)="close()">Cancel</button> |
|---|
| 56 | | -</md-dialog-actions> |
|---|
| 57 | | -</form> |
|---|
| 58 | | - |
|---|
| 59 | | -<!-- ************************************************************************************************** |
|---|
| 60 | | - ************************************************************************************************** |
|---|
| 61 | | - ************************************************************************************************** |
|---|
| 62 | | ---> |
|---|
| 63 | | - |
|---|
| 64 | | -<div class="form-group"> |
|---|
| 65 | | -<label class="col-md-3 control-label" for="license_type_id" i18n="">License |
|---|
| 66 | | - type</label> |
|---|
| 67 | | -<div class="col-md-8"> |
|---|
| 68 | | - <!-- ngIf: isNew --> |
|---|
| 69 | | - <select ng-if="isNew" class="form-control ng-pristine ng-untouched ng-scope ng-invalid ng-invalid-required" id="license_type_id" |
|---|
| 70 | | - ng-change="updateMetadata()" |
|---|
| 71 | | - ng-required="mandatory.license_type_id" |
|---|
| 72 | | - ng-model="pack.license_type_id" |
|---|
| 73 | | - ng-options="o.id as o.label for o in refs.license_type_id" required="required"> |
|---|
| 74 | | - <option value="" selected="selected" label=""></option><option value="0" label="CI ConfigServer ext">CI ConfigServer ext</option><option value="1" label="Analytic2">Analytic2</option><option value="2" label="Doxr L2">Doxr L2</option><option value="3" label="Doxr L3">Doxr L3</option><option value="4" label="CurisIntegrity - Desktop">CurisIntegrity - Desktop</option><option value="5" label="CurisIntegrity SA">CurisIntegrity SA</option><option value="6" label="Analytic1">Analytic1</option><option value="7" label="CurisIntegrity - List of modes">CurisIntegrity - List of modes</option><option value="8" label="CurisIntegrity for Curistec">CurisIntegrity for Curistec</option><option value="9" label="CurisIntegrity for BP">CurisIntegrity for BP</option><option value="10" label="CD_AllMod_AllCemtest_Custom_0U">CD_AllMod_AllCemtest_Custom_0U</option><option value="11" label="CurisIntegrity StandAlone - A1CPC">CurisIntegrity StandAlone - A1CPC</option><option value="12" label="CD_AllMod_AllCemtest_MIDtest_Custom_0U">CD_AllMod_AllCemtest_MIDtest_Custom_0U</option><option value="13" label="CI SA Complete">CI SA Complete</option><option value="14" label="CI for Dev Complete">CI for Dev Complete</option><option value="15" label="CD_RockMod_MIDtest_MIDSynth_Express_50U">CD_RockMod_MIDtest_MIDSynth_Express_50U</option><option value="16" label="CurisData for Sonatrach">CurisData for Sonatrach</option><option value="17" label="CD_AllMod_Alltest_Full_100_L_0S_0U">CD_AllMod_Alltest_Full_100_L_0S_0U</option><option value="18" label="CD_CementAdvMod_AllCemtest_Custom_100L_0S_0U">CD_CementAdvMod_AllCemtest_Custom_100L_0S_0U</option><option value="19" label="CD_CementAdvMod_AllCemtest_Custom_30U">CD_CementAdvMod_AllCemtest_Custom_30U</option><option value="20" label="CD_CementAdvMod_30U_10L_Express">CD_CementAdvMod_30U_10L_Express</option><option value="21" label="CD_CementAdv_Monolab">CD_CementAdv_Monolab</option><option value="22" label="Stand alone - MultiComputation">Stand alone - MultiComputation</option><option value="23" label="MultiCement">MultiCement</option><option value="24" label="CD_CementAdvMod_AllCemtest_Custom_100U">CD_CementAdvMod_AllCemtest_Custom_100U</option><option value="25" label="CI StandAlone A1">CI StandAlone A1</option><option value="26" label="CI StandAlone A1 A2 QL CementProperties">CI StandAlone A1 A2 QL CementProperties</option><option value="27" label="CI Corporate A1">CI Corporate A1</option><option value="28" label="CI Demo version">CI Demo version</option><option value="29" label="CD Complete">CD Complete</option></select> |
|---|
| 75 | | - <!-- end ngIf: isNew --> |
|---|
| 76 | | - <!-- ngIf: !isNew --> |
|---|
| 77 | | - <div class="alert inline-alert alert-warning ng-hide" ng-show="packForm.license_type_id.$invalid"> |
|---|
| 78 | | - <span class="glyphicon glyphicon-warning-sign"></span> <span ng-show="packForm.license_type_id.$error.required" ng-bind="mandatoryFieldErrorMsg('License type')" class="ng-binding ng-hide">'License type' is required.</span> |
|---|
| 79 | | - </div> |
|---|
| 80 | | -</div> |
|---|
| 81 | | -</div> |
|---|
| 82 | | - |
|---|
| 83 | | -<div class="form-group"> |
|---|
| 84 | | -<label class="col-md-3 control-label" for="organization_id" i18n="">Organization</label> |
|---|
| 85 | | -<div class="col-md-8"> |
|---|
| 86 | | - <!-- ngIf: isNew --><select ng-if="isNew" class="form-control ng-pristine ng-untouched ng-scope ng-invalid ng-invalid-required" ng-model="pack.organization_id" ng-required="mandatory.organization_id" ng-options="o.id as o.label for o in refs.organization_id" required="required"><option value="" selected="selected" label=""></option><option value="0" label="British Petroleum">British Petroleum</option><option value="1" label="CurisTec">CurisTec</option><option value="2" label="KindSoft">KindSoft</option><option value="3" label="CurisIT">CurisIT</option><option value="4" label="Trican">Trican</option><option value="5" label="Schlumberger">Schlumberger</option><option value="6" label="Sonatrach">Sonatrach</option><option value="7" label="Sanjel-Taqa">Sanjel-Taqa</option><option value="8" label="National Petroleum Services Saudi Arabia Int.">National Petroleum Services Saudi Arabia Int.</option></select><!-- end ngIf: isNew --> |
|---|
| 87 | | - <!-- ngIf: !isNew --> |
|---|
| 88 | | - <div class="alert inline-alert alert-warning ng-hide" ng-show="packForm.organization_id.$invalid"> |
|---|
| 89 | | - <span class="glyphicon glyphicon-warning-sign"></span> <span ng-show="packForm.organization_id.$error.required" ng-bind="mandatoryFieldErrorMsg('Organization')" class="ng-binding ng-hide">'Organization' is required.</span> |
|---|
| 90 | | - </div> |
|---|
| 91 | | -</div> |
|---|
| 92 | | -</div> |
|---|
| 93 | | -<div class="form-group"> |
|---|
| 94 | | -<label class="col-md-3 control-label" for="license_preactivation" i18n="">License preactivation</label> |
|---|
| 95 | | -<div class="col-md-8"> |
|---|
| 96 | | - <input type="checkbox" class="form-control ng-pristine ng-untouched ng-valid" ng-model="pack.license_preactivation"> |
|---|
| 97 | | -</div> |
|---|
| 98 | | -</div> |
|---|
| 99 | | -<div class="form-group"> |
|---|
| 100 | | -<label class="col-md-3 control-label" for="preactivation_valid_period" i18n="">Preactivation valid period (days)</label> |
|---|
| 101 | | -<div class="col-md-8"> |
|---|
| 102 | | - <input type="number" id="preactivation_valid_period" name="preactivation_valid_period" min="1" class="form-control ng-pristine ng-untouched ng-valid ng-valid-min ng-valid-required" ng-model="pack.preactivation_valid_period" ng-required="pack.license_preactivation" required="required"> |
|---|
| 103 | | - <div class="alert inline-alert alert-warning ng-hide" ng-show="packForm.preactivation_valid_period.$invalid"> |
|---|
| 104 | | - <span class="glyphicon glyphicon-warning-sign"></span> |
|---|
| 105 | | - <span ng-show="packForm.preactivation_valid_period.$error.required" ng-bind="mandatoryFieldErrorMsg('Preactivation valid period')" class="ng-binding ng-hide">'Preactivation valid period' is required.</span> |
|---|
| 106 | | - <span ng-show="packForm.preactivation_valid_period.$error.min" ng-bind="field1ShouldBeGreaterThanField2('The preactivation valid period', '0')" class="ng-binding ng-hide">The preactivation valid period should be greater than 0</span> |
|---|
| 107 | | - </div> |
|---|
| 108 | | -</div> |
|---|
| 109 | | -</div> |
|---|
| 110 | | -<div class="form-group"> |
|---|
| 111 | | -<label class="col-md-3 control-label" for="renew_valid_period" i18n="">Period for renew (days)</label> |
|---|
| 112 | | -<div class="col-md-8"> |
|---|
| 113 | | - <input type="number" id="renew_valid_period" name="renew_valid_period" min="0" class="form-control ng-pristine ng-untouched ng-valid-min ng-valid ng-valid-required" ng-model="pack.renew_valid_period" ng-required="true" required="required"> |
|---|
| 114 | | - <div class="alert inline-alert alert-warning ng-hide" ng-show="packForm.renew_valid_period.$invalid"> |
|---|
| 115 | | - <span class="glyphicon glyphicon-warning-sign"></span> |
|---|
| 116 | | - <span ng-show="packForm.renew_valid_period.$error.required" ng-bind="mandatoryFieldErrorMsg('Period for renew')" class="ng-binding ng-hide">'Period for renew' is required.</span> |
|---|
| 117 | | - <span ng-show="packForm.renew_valid_period.$error.min" ng-bind="field1ShouldBeGreaterThanField2('The period for renew valid period', '0')" class="ng-binding ng-hide">The period for renew valid period should be greater than 0</span> |
|---|
| 118 | | - </div> |
|---|
| 119 | | -</div> |
|---|
| 120 | | -</div> |
|---|
| 121 | | - |
|---|
| 122 | | - |
|---|
| 123 | | -<div class="form-group"> |
|---|
| 124 | | -<label class="col-md-3 control-label" for="comments" i18n="">Comments</label> |
|---|
| 125 | | -<div class="col-md-8"> |
|---|
| 126 | | - <textarea type="string" id="comments" name="comments" placeholder="" class="form-control ng-pristine ng-untouched ng-valid ng-valid-maxlength ng-valid-required" ng-model="pack.comments" rows="2" ng-required="mandatory.comments" ng-maxlength="1024"></textarea> |
|---|
| 127 | | - <div class="alert inline-alert alert-warning ng-hide" ng-show="packForm.comments.$invalid"> |
|---|
| 128 | | - <span class="glyphicon glyphicon-warning-sign"></span> <span ng-show="packForm.comments.$error.maxlength" ng-bind="maxLengthErrorMsg('Comments', maxlength.comments)" class="ng-binding ng-hide">Comments length is too long (max: 1024).</span> |
|---|
| 129 | | - <span ng-show="packForm.comments.$error.required" ng-bind="mandatoryFieldErrorMsg('comments')" class="ng-binding ng-hide">'comments' is required.</span> |
|---|
| 130 | | - </div> |
|---|
| 131 | | -</div> |
|---|
| 132 | | -</div> |
|---|
| 133 | | - |
|---|
| 134 | | -<!-- ngIf: !isNew --> |
|---|
| 135 | | - |
|---|
| 136 | | -<!-- ngIf: !isNew --> |
|---|
| 137 | | - |
|---|
| 138 | | -<div class="form-group"> |
|---|
| 139 | | -<label class="col-md-3 control-label" i18n="">Metadata</label> |
|---|
| 140 | | -<div class="col-md-8"> |
|---|
| 141 | | - <table class="table table-hover table-condensed"> |
|---|
| 142 | | - <thead> |
|---|
| 143 | | - <tr> |
|---|
| 144 | | - <th i18n="">Key</th> |
|---|
| 145 | | - <th i18n="">Value</th> |
|---|
| 146 | | - </tr> |
|---|
| 147 | | - </thead> |
|---|
| 148 | | - <tbody> |
|---|
| 149 | | - <!-- ngRepeat: row_md in pack.metadata --> |
|---|
| 150 | | - </tbody> |
|---|
| 151 | | - </table> |
|---|
| 152 | | -</div> |
|---|
| 153 | | -</div> |
|---|
| 154 | | - |
|---|
| 155 | | -<div class="form-group"> |
|---|
| 156 | | -<div class="col-md-offset-3 col-md-10"> |
|---|
| 157 | | - <button id="save" type="submit" class="btn btn-primary"> |
|---|
| 158 | | - <span i18n="" class="glyphicon glyphicon-floppy-disk"></span> Save |
|---|
| 159 | | - </button> |
|---|
| 160 | | - <!-- ngIf: !isNew --> |
|---|
| 161 | | - <ul class="dropdown-menu" role="menu"> |
|---|
| 162 | | - <li><!-- ngIf: Packs.isActionAvailable('activate', pack) --><a ng-click="execute('activate')" ng-if="Packs.isActionAvailable('activate', pack)" href="#" class="ng-scope">Activate</a><!-- end ngIf: Packs.isActionAvailable('activate', pack) --></li> |
|---|
| 163 | | - <li><!-- ngIf: Packs.isActionAvailable('putonhold', pack) --></li> |
|---|
| 164 | | - <li class="divider"></li> |
|---|
| 165 | | - <li><!-- ngIf: Packs.isActionAvailable('cancel', pack) --></li> |
|---|
| 166 | | - <li><!-- ngIf: Packs.isActionAvailable('delete', pack) --><a ng-click="execute('delete')" ng-if="Packs.isActionAvailable('delete', pack)" href="#" class="ng-scope">Delete</a><!-- end ngIf: Packs.isActionAvailable('delete', pack) --></li> |
|---|
| 167 | | - </ul> |
|---|
| 168 | | -</div> |
|---|
| 169 | | -</div> |
|---|
| 170 | | -</form> |
|---|