This commit is contained in:
resicovenba 2017-11-23 21:14:40 +05:30
commit 327abce682
3 changed files with 33 additions and 214 deletions

View File

@ -1,3 +1,13 @@
<style>
b.fa {
display: inline-block;
border-radius: 60px;
box-shadow: 0px 0px 2px #007AFF;
padding: 0.5em 0.6em;
}
</style>
<!-- start: PAGE TITLE -->
<section id="page-title">
<div class="row">
@ -46,45 +56,7 @@
</div>
<div class="table-responsive">
<!--<table ng-table="tableParams" class="table">
<tbody ng-repeat="p in $data| filter:search:strict">
<tr id="tr{{p.BranchCode}}" ng-class-odd="'odd'" ng-class-even="'even'">
<td class="rowTd" data-title="'Branch Code'" sortable="'BranchCode'">
{{p.BranchCode}}
</td>
<td class="rowTd" data-title="'Branch Name'" sortable="'BranchName'">
{{p.BranchName}}
</td>
<td class="rowTd" data-title="'Address'"
sortable="">{{p.Address}}
</td>
<td class="rowTd" data-title="'Email'"
sortable="">{{p.EmailID}}
</td>
<td class="rowTd" data-title="'Mobile Number'"
sortable="">{{p.MobileNumber}}
</td>
<td class="rowTd" data-title="'Alternate Mobile'"
sortable="">{{p.AlternateNumber}}
</td>
<td class="rowTd" data-title="'Landline Number'"
sortable="">{{p.LandlineNumber}}
</td>
<td class="rowTd">
<div class="pull-right margin-right-10">
<input type=button class="btn btn-info btn-sm"
id="editRowBtn{{p.BranchCode}}" value="Modify"
ng-click="setEditId(p.BranchCode);">
</div>
</td>
</tr>
<tr ng-show="editId === p.BranchCode" ng-if="editId === p.BranchCode" style="width: ">
<td colspan="12" ng-include
src="'assets/views/editBranchDetails.html'"></td>
</tr>
</tbody>
</table>-->
<fieldset>
<table class="table table-hover">
<thead>
@ -124,14 +96,14 @@
<td>{{p.AlternateNumber}}</td>
<td>{{p.LandlineNumber}}</td>
<td>
<div class="pull-right margin-right-10">
<input type=button class="btn btn-info btn-sm"
id="editRowBtn{{p.BranchCode}}" value="Modify"
ng-click="setEditId(p.BranchCode);">
</div></td>
<a href="#" class="text-azure" id="editRowBtn{{p.BranchCode}}" ng-click="setEditId(p.BranchCode);"><b class="fa fa-hover fa-pencil " aria-hidden="true"></b>
</a></td>
</tr>
<tr ng-show="editId === p.BranchCode" ng-if="editId === p.BranchCode" style="width: ">
<td colspan="6" ng-include
<td colspan="12" ng-include
src="'assets/views/editBranchDetails.html'"></td>
</tr>
</tbody>

View File

@ -82,7 +82,7 @@
<td>{{p.UniversityName}}</td>
<td>
<a href="#" class="text-primary" id="editRowBtn{{p.CourseID}}" ng-click="setEditId(p.CourseID);"><b class="fa fa-hover fa-pencil " aria-hidden="true"></b>
<a href="#" class="text-azure" id="editRowBtn{{p.CourseID}}" ng-click="setEditId(p.CourseID);"><b class="fa fa-hover fa-pencil " aria-hidden="true"></b>
</a>
</td>

View File

@ -1,5 +1,6 @@
<form name="Form" id="form" novalidate>
<div class="row">
<div class="col-md-12">
<fieldset>
<legend>
@ -149,180 +150,26 @@
</div>
<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>
</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>
<!-- <fieldset>
<table class="table">
<tr>
<td>
<div class="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="5" 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 required</span>
<span class="error text-small block"
ng-if="Form.branchname.$dirty && Form.branchname.$error.pattern">Invalid Branch Name </span>
&lt;!&ndash;<span class="success text-small"&ndash;&gt;
&lt;!&ndash;ng-if="Form.stopname.$valid">Thank You!</span>&ndash;&gt;
</div>
</td>
<td>
<div class="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="27"
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.primaryEmail.$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>
&lt;!&ndash;<span style="color:#000" class="success text-small"
ng-if="Form.primaryEmail.$valid">It's a valid e-mail!</span>&ndash;&gt;
</div>
</td>
<td>
<div class="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="29"
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">Primary phone 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>
&lt;!&ndash; <span class="success text-small"
ng-if="Form.primaryPhone.$valid">Thank You!</span>&ndash;&gt;
</div>
</td>
</tr>
<tr>
<td>
<div class="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="30"
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>
</td>
<td>
<div class="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="30"
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>
</td>
<td>
<div class="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="31"
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>
&lt;!&ndash;<span class="success text-small"&ndash;&gt;
&lt;!&ndash;ng-if="Form.address.$valid">Thank You!</span>&ndash;&gt;
</div>
</td>
<td>
<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>
</td>
<tr>
<td colspan="6">
<div class="pull-right">
<button type="submit" ladda="ldloading.zoom_in" class="btn btn-success btn-sm margin-right-15" id="update" name="update" data-style="zoom-in" ng-click="updateBranch(p,Form,'zoom-in')" tabindex="9">
Save
</button>
&lt;!&ndash; <button type="submit" class="btn btn-success btn-sm margin-right-15" ng-click="cancel()" tabindex="9">
Save
</button>&ndash;&gt;
<input type="button" class="btn btn-warning btn-sm" value=" cancel" ng-click="cancel();" tabindex="10">
</div>
</td>
</tr>
</tr>
</table>
</fieldset>-->
</form>
<!-- class="editRowTd" -->