174 lines
8.6 KiB
Plaintext
174 lines
8.6 KiB
Plaintext
<div class="survey_form" style="padding: 0 16px;">
|
|
<form name="form" style="position: relative; margin: 0 auto;" novalidate>
|
|
<div class="add_survey_body">
|
|
<div class="add_survey_header_title"></div>
|
|
<div class="survey_info">
|
|
<div class="title">
|
|
@Resource.StaticLabelFabInfo
|
|
</div>
|
|
<div class="survey_content">
|
|
<div class="row">
|
|
<label class="col-sm-2 col-form-label">@Resource.FabName</label>
|
|
<div class="col">
|
|
<input type="text"
|
|
name="name"
|
|
placeholder="@Resource.RequiredMessage"
|
|
required
|
|
ng-model="fab.Name" maxlength="50" />
|
|
</div>
|
|
<div ng-show="form.name.$invalid && form.name.$dirty">
|
|
<small style="color: red;" ng-show="form.name.$error.required">@Resource.RequiredMessage</small>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<label class="col-sm-2 col-form-label">@Resource.FabPhone</label>
|
|
<div class="col">
|
|
<input type="text"
|
|
name="phone"
|
|
placeholder="@Resource.RequiredMessage"
|
|
required
|
|
phone-number
|
|
ng-model="fab.Phone" maxlength="30" />
|
|
</div>
|
|
<div ng-show="form.phone.$dirty">
|
|
<small style="color: red;" ng-show="form.phone.$error.required">@Resource.RequiredMessage</small>
|
|
<small style="color: red;" ng-show="form.phone.$error.pattern">@Resource.PhoneValidateMsg (eg.0912-345-678 or 05-234-3456)</small>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<label class="col-sm-2 col-form-label">@Resource.FabAddress</label>
|
|
<div class="col">
|
|
<input type="text"
|
|
name="address"
|
|
placeholder="@Resource.RequiredMessage"
|
|
required
|
|
ng-model="fab.Address" maxlength="300" />
|
|
</div>
|
|
<div ng-show="form.address.$invalid && form.address.$dirty">
|
|
<small style="color: red;" ng-show="form.address.$error.required">@Resource.RequiredMessage</small>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<label class="col-sm-2 col-form-label">@Resource.FabCity</label>
|
|
<div class="col">
|
|
<input type="text"
|
|
name="addressCity"
|
|
placeholder="@Resource.RequiredMessage"
|
|
required
|
|
ng-model="fab.addressCity" maxlength="20" />
|
|
</div>
|
|
<div ng-show="form.address.$invalid && form.address.$dirty">
|
|
<small style="color: red;" ng-show="form.address.$error.required">@Resource.RequiredMessage</small>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<label class="col-sm-2 col-form-label">@Resource.FabFloor</label>
|
|
<div class="col">
|
|
<input type="text"
|
|
name="addressFloor"
|
|
placeholder="@Resource.RequiredMessage"
|
|
required
|
|
ng-model="fab.addressFloor" maxlength="10" />
|
|
</div>
|
|
<div ng-show="form.address.$invalid && form.address.$dirty">
|
|
<small style="color: red;" ng-show="form.address.$error.required">@Resource.RequiredMessage</small>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<label class="col-sm-2 col-form-label">@Resource.Status</label>
|
|
<label class="col col-form-label">
|
|
<input type="radio"
|
|
ng-model="fab.enable"
|
|
ng-value="true"
|
|
style="display:initial;width:auto">@Resource.Enabled
|
|
<input type="radio"
|
|
ng-model="fab.enable"
|
|
ng-value="false"
|
|
style="display:initial;width:auto">@Resource.Disabled
|
|
</label>
|
|
</div>
|
|
<div class="row" ng-show="insynerger">
|
|
<label class="col-sm-2 col-form-label">group ID</label>
|
|
<div class="col">
|
|
<input type="text"
|
|
name="groupId"
|
|
placeholder="group ID"
|
|
ng-model="fab.groupId" maxlength="10" />
|
|
<select ng-model="selectedgroup" ng-change="onGroupChange(selectedgroup)"
|
|
ng-options="value for (key, value) in fab.groupOptions">
|
|
<option value="">-- @Resource.StaticLabelGlobal_New --</option>
|
|
</select>
|
|
</div>
|
|
@*<div ng-show="form.groupId.$invalid && form.groupId.$dirty">
|
|
<small style="color: red;" ng-show="form.groupId.$error.required">@Resource.RequiredMessage</small>
|
|
</div>*@
|
|
</div>
|
|
|
|
@*<div class="row">
|
|
<label class="col-sm-2 col-form-label">@Resource.IsIso14064Passed</label>
|
|
<div class="col">
|
|
<select ng-model="fab.IsIso14064Passed"
|
|
ng-init="fab.IsIso14064Passed=false"
|
|
ng-options="option.value as option.text for option in isoOptions"></select>
|
|
</div>
|
|
</div>*@
|
|
|
|
@*<div class="row" ng-show="fab.IsIso14064Passed">
|
|
<label class="col-sm-2 col-form-label">@Resource.StaticLabelISO14064BV</label>
|
|
<div class="col">
|
|
<label>
|
|
<input type="checkbox" ng-model="fab.ISO14064TUV" />
|
|
TUV
|
|
</label>
|
|
<label>
|
|
<input type="checkbox" ng-model="fab.ISO14064DNV" />
|
|
DNV
|
|
</label>
|
|
<label>
|
|
<input type="checkbox" ng-model="fab.ISO14064BV" />
|
|
BV
|
|
</label>
|
|
<label>
|
|
<input type="checkbox" ng-model="fab.ISO14064SGS" />
|
|
SGS
|
|
</label>
|
|
<label>
|
|
<input type="checkbox" ng-model="fab.ISO14064BSI" />
|
|
BSI
|
|
</label>
|
|
<label>
|
|
<input type="checkbox" ng-model="fab.ISO14064UL" />
|
|
UL
|
|
</label>
|
|
<label>
|
|
<input type="checkbox" ng-model="fab.ISO14064Other" />
|
|
Others
|
|
</label>
|
|
<input ng-show="fab.ISO14064Other"
|
|
type="text" ng-model="fab.ISO14064OtherString"
|
|
placeholder="@Resource.ISO14064CompanyName" />
|
|
</div>
|
|
</div>*@
|
|
</div>
|
|
</div>
|
|
|
|
<div class="survey_info survey_btn_wrap">
|
|
<div class="survey_content">
|
|
<div class="row">
|
|
<button class="header_button" style="float: left; margin-left: 16px;" ng-click="saveFab()" ng-disabled="form.$invalid">
|
|
@Resource.StaticLabelGlobal_Save
|
|
</button>
|
|
<button class="header_button" style="margin-left: 16px;" ng-click="backToFab()">
|
|
@Resource.StaticLabelGlobal_Cancel
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div> |