Skip to content

Commit cb42e0c

Browse files
committed
Look and Feel: Modal
1 parent 76e1ce1 commit cb42e0c

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

WEBAPI_CRUD_AJAX/CustomScripts/employee.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ function GetEmployeeByID(employeeId) {
5050
$('#btnUpdate').show();
5151
$('#btnAdd').hide();
5252
},
53-
error: function (errormessage) {
54-
debugger;
53+
error: function (errormessage) {
5554
alert(errormessage.responseText);
5655
}
5756
});

WEBAPI_CRUD_AJAX/Views/Home/Index.cshtml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
}
44

55
<div class="container">
6-
<h2>Employees Record</h2>
6+
<h2>Employee Information</h2>
77
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal" onclick="clearTextBox();">Add New Employee</button><br /><br />
88
<table class="table table-bordered table-hover">
99
<thead>
@@ -35,31 +35,30 @@
3535
<div class="modal-dialog">
3636
<div class="modal-content">
3737
<div class="modal-header">
38-
@*<button type="button" class="close" data-dissmiss="modal"><span aria-hidden="true">×</span></button>*@
3938
<button type="button" class="close" data-dismiss="modal">×</button>
4039
<h4 class="modal-title" id="myModalLabel">Add Employee</h4>
4140
</div>
4241
<div class="modal-body">
4342
<form>
4443
<div class="form-group">
4544
<label for="EmployeeId">ID</label>
46-
<input type="text" class="form-control" id="EmployeeID" placeholder="Id" disabled="disabled" />
45+
<input type="text" class="form-control" id="EmployeeID" placeholder="Id" disabled="disabled" style="max-width: 100%;" />
4746
</div>
4847
<div class="form-group">
4948
<label for="Name">Name</label>
50-
<input type="text" class="form-control" id="Name" placeholder="Name" />
49+
<input type="text" class="form-control" id="Name" placeholder="Name" style="max-width: 100%;" />
5150
</div>
5251
<div class="form-group">
5352
<label for="Age">Age</label>
54-
<input type="text" class="form-control" id="Age" placeholder="Age" />
53+
<input type="text" class="form-control" id="Age" placeholder="Age" style="max-width: 100%;" />
5554
</div>
5655
<div class="form-group">
5756
<label for="State">State</label>
58-
<input type="text" class="form-control" id="State" placeholder="State" />
57+
<input type="text" class="form-control" id="State" placeholder="State" style="max-width: 100%;" />
5958
</div>
6059
<div class="form-group">
6160
<label for="Country">Country</label>
62-
<input type="text" class="form-control" id="Country" placeholder="Country" />
61+
<input type="text" class="form-control" id="Country" placeholder="Country" style="max-width: 100%;" />
6362
</div>
6463
</form>
6564
</div>

0 commit comments

Comments
 (0)