242 lines
14 KiB
HTML
Executable File
242 lines
14 KiB
HTML
Executable File
<form name="Form" id="form" novalidate>
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
<fieldset>
|
|
<legend>
|
|
Update Branch Details
|
|
</legend>
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-md-4 form-group"
|
|
ng-class="{'has-error':Form.branchcode.$dirty && Form.branchcode.$invalid, 'has-success':Form.branchcode.$valid}">
|
|
<label>
|
|
Branch Code <span class="symbol required"></span>
|
|
</label>
|
|
|
|
<input type="text" placeholder="Enter Branch Code"
|
|
tabindex="1" class="form-control" name="branchcode"
|
|
ng-model="p.BranchCode" ng-pattern="/^[a-zA-Z0-9.\s]*$/" readonly required/>
|
|
<span class="error text-small block"
|
|
ng-if="Form.branchcode.$dirty && Form.branchcode.$error.required">Branch code is required</span>
|
|
<span class="error text-small block"
|
|
ng-if="Form.branchcode.$dirty && Form.branchcode.$error.pattern">Invalid branch code </span>
|
|
<!--<span class="success text-small"-->
|
|
<!--ng-if="Form.stopname.$valid">Thank You!</span>-->
|
|
</div>
|
|
|
|
|
|
<div class="col-md-4 form-group"
|
|
ng-class="{'has-error':Form.branchname.$dirty && Form.branchname.$invalid, 'has-success':Form.branchname.$valid}">
|
|
<label>
|
|
Branch Name <span class="symbol required"></span>
|
|
</label>
|
|
|
|
<input type="text" placeholder="Enter Branch Name"
|
|
tabindex="2" class="form-control" name="branchname"
|
|
ng-model="p.BranchName" ng-pattern="/^[a-zA-Z0-9.\s]*$/" required/>
|
|
<span class="error text-small block"
|
|
ng-if="Form.branchname.$dirty && Form.branchname.$error.required">Branch name is required</span>
|
|
<span class="error text-small block"
|
|
ng-if="Form.branchname.$dirty && Form.branchname.$error.pattern">Invalid branch name </span>
|
|
<!--<span class="success text-small"-->
|
|
<!--ng-if="Form.stopname.$valid">Thank You!</span>-->
|
|
</div>
|
|
|
|
<div class=" col-md-4 form-group"
|
|
ng-class="{'has-error':Form.Email.$dirty && Form.Email.$invalid, 'has-success':Form.Email.$valid}">
|
|
<label>
|
|
Email ID <span class="symbol required"></span>
|
|
</label>
|
|
<input type="email" tabindex="3"
|
|
placeholder="Enter Email ID"
|
|
class="form-control"
|
|
name="Email"
|
|
ng-pattern="/^[-a-z0-9~!$%^&*_=+}{\'?]+(\.[-a-z0-9~!$%^&*_=+}{\'?]+)*@([a-z0-9_][-a-z0-9_]*(\.[-a-z0-9_]+)*\.(aero|arpa|biz|com|coop|edu|gov|info|int|mil|museum|name|net|org|pro|travel|mobi|[a-z][a-z])|([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}))(:[0-9]{1,5})?$/i"
|
|
ng-model="p.EmailID" required>
|
|
<span class="error text-small block"
|
|
ng-if="Form.Email.$dirty && Form.Email.$invalid"
|
|
ng-hide="Form.Email.$error.email">Email is required.</span>
|
|
<span class="error text-small block"
|
|
ng-if="Form.Email.$error.email">Please, enter a valid email address.</span>
|
|
<!--<span style="color:#000" class="success text-small"
|
|
ng-if="Form.primaryEmail.$valid">It's a valid e-mail!</span>-->
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
|
|
<div class="col-md-4 form-group"
|
|
ng-class="{'has-error':Form.primaryPhone.$dirty && Form.primaryPhone.$invalid, 'has-success':Form.primaryPhone.$valid}">
|
|
<label>
|
|
Mobile Number <span
|
|
class="symbol required"></span>
|
|
</label>
|
|
<input type="text" name="primaryPhone" tabindex="4"
|
|
placeholder="Enter Mobile Number"
|
|
class="form-control"
|
|
ng-model="p.MobileNumber"
|
|
ng-minlength="10" ng-maxlength="12"
|
|
ng-pattern="/^[0-9]*$/" required>
|
|
<span class="error text-small block"
|
|
ng-if="Form.primaryPhone.$dirty && Form.primaryPhone.$invalid"
|
|
ng-hide="Form.primaryPhone.$error.maxlength || Form.primaryPhone.$error.minlength || Form.primaryPhone.$error.pattern">Phone number is required.</span>
|
|
<span class="error text-small block"
|
|
ng-if="Form.primaryPhone.$error.maxlength || Form.primaryPhone.$error.minlength || Form.primaryPhone.$error.pattern">Enter a valid phone number</span>
|
|
<!-- <span class="success text-small"
|
|
ng-if="Form.primaryPhone.$valid">Thank You!</span>-->
|
|
</div>
|
|
|
|
<div class="col-md-4 form-group"
|
|
ng-class="{'has-error':Form.secondaryPhone.$dirty && Form.secondaryPhone.$invalid, 'has-success':Form.secondaryPhone.$valid}">
|
|
<label class="control-label">
|
|
Alternate Mobile Number
|
|
</label>
|
|
<input type="text" name="secondaryPhone" tabindex="5"
|
|
placeholder="Enter Alternate Mobile Number"
|
|
class="form-control"
|
|
ng-model="p.AlternateNumber"
|
|
ng-minlength="10" ng-maxlength="12"
|
|
ng-pattern="/^[0-9]*$/"/>
|
|
<span class="error text-small block"
|
|
ng-if="Form.secondaryPhone.$error.maxlength || Form.secondaryPhone.$error.minlength || Form.secondaryPhone.$error.pattern">Enter a valid phone number</span>
|
|
</div>
|
|
<div class="col-md-4 form-group"
|
|
ng-class="{'has-error':Form.Landline.$dirty && Form.Landline.$invalid, 'has-success':Form.Landline.$valid}">
|
|
<label class="control-label">
|
|
Landline Number
|
|
</label>
|
|
<input type="text" name="Landline" tabindex="6"
|
|
placeholder="Enter Landline Number"
|
|
class="form-control"
|
|
ng-model="p.LandlineNumber"
|
|
ng-minlength="11" ng-maxlength="13"
|
|
ng-pattern="/^[0-9-]*$/"/>
|
|
<span class="error text-small block"
|
|
ng-if="Form.Landline.$error.maxlength || Form.Landline.$error.minlength || Form.Landline.$error.pattern">Enter a valid number</span>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
|
|
<div class="col-md-4 form-group"
|
|
ng-class="{'has-error':Form.address.$dirty && Form.address.$invalid, 'has-success':Form.address.$valid}">
|
|
<label>
|
|
Address<span class="symbol required"></span>
|
|
</label>
|
|
<textarea placeholder="Enter Address" tabindex="7"
|
|
class="form-control textdsc" name="address"
|
|
ng-model="p.Address" required></textarea>
|
|
<span class="error text-small block"
|
|
ng-if="Form.address.$dirty && Form.address.$invalid">Address is required</span>
|
|
<!--<span class="success text-small"-->
|
|
<!--ng-if="Form.address.$valid">Thank You!</span>-->
|
|
</div>
|
|
<div class="col-md-2">
|
|
<label>
|
|
Active/De-Active
|
|
</label>
|
|
<div ng-if="p.IsActive==true">
|
|
|
|
<switch ng-model="p.IsActive" ng-init="p.IsActive = true" class="green"></switch>
|
|
|
|
</div>
|
|
<div ng-if="p.IsActive==false">
|
|
<switch ng-model="p.IsActive" ng-init="p.IsActive = false" class="green"></switch>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<div class="col-md-2">
|
|
<img class="thumb prof" ng-src="images/{{p.LogoPath}}" />
|
|
<style>
|
|
.thumb {
|
|
width: 130px;
|
|
height: 140px;
|
|
margin: 18px;
|
|
float: left;
|
|
}
|
|
.prof {
|
|
border: 2px solid #2C3543;
|
|
}
|
|
.uploader {
|
|
clear: both;
|
|
}
|
|
</style>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<form name="Form" id="form1" novalidate ng-submit="form.submit(Form,myModel)" method="post">
|
|
<div class="file-upload">
|
|
<div class="row">
|
|
<div class="col-md-4">
|
|
<h5>Update Logo</h5>
|
|
<div class=" margin-bottom-5">
|
|
|
|
</div>
|
|
<input type="file" accept="image/*" ng-init="resetImageEdit()" file-upload-edit onchange="angular.element(this).scope().imageUploadEdit(event)"
|
|
/>
|
|
</div>
|
|
<div class="col-md-2">
|
|
<div class="form-group">
|
|
<div class="user-image">
|
|
</div>
|
|
<!--<input type="file" file-model="idProof"
|
|
accept="image/*" onchange="angular.element(this).scope().imageUpload(event)"/>-->
|
|
|
|
<div>
|
|
<div ng-repeat="step in stepsModelEdit">
|
|
<!--<a class="close-thin"></a>-->
|
|
<img class="thumb" ng-src="{{step}}" />
|
|
<div class="col-md-12">
|
|
<div class="pull-right">
|
|
<button class="btn btn-success btn-o btn-sm margin-right-15" type="button" ng-click="resetImageEdit()">Reset
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<style>
|
|
.thumb {
|
|
width: 130px;
|
|
height: 140px;
|
|
margin: 18px;
|
|
float: left;
|
|
}
|
|
|
|
.uploader {
|
|
clear: both;
|
|
}
|
|
</style>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
<div class="col-md-12">
|
|
<div class="pull-right">
|
|
<button type="submit" ladda="ldloading.zoom_in" tabindex="9" class="btn btn-wide btn-success" data-style="zoom-in" ng-click="updateBranch(p,Form,'zoom-in')">
|
|
Save
|
|
</button>
|
|
<!-- <button type="submit" class="btn btn-success btn-o" tabindex="8">
|
|
Submit
|
|
</button>-->
|
|
<input type="button" class="btn btn-warning btn-wide" tabindex="10" value="Cancel"
|
|
ng-click="cancel();">
|
|
|
|
</input>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
</form>
|
|
<!-- class="editRowTd" -->
|
|
|