How to text boxes in modal using table - html

I designed modal. Which contains text boxes. In first row there are two text boxes and there column its button called add another. And in second row there are three text boxes and following rows same.In mobile view the content is floating of the box. I need to show text boxes in the modal. please help
<!-- Modal -->
<div class="modal fade" id="myModal" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-body">
<div class="container">
<div class="row">
<div class="col-md-6">
<div class="panel-body">
<div class="panel panel-default">
<button type="button" class="close" data-dismiss="modal">
<font color="black"> <a href="hrtoolkit.html" style="color:darkred">
<span style="color:darkred;">×</span></a></font></button>
<div class="form-body">
<label class=" col-sm-4">Edit View Save</label>
<br /><br />
<table id="table1">
<tbody>
<tr>
<td></td>
<td ><input type="text" placeholder="10th"/></td>
<td > <input type="text" placeholder="Degree" /></td>
<td > <button type="button" class="btn btn-default "
data-toggle="collapse" data-target="#filter-panel"
style="font-size: 9px; background-color: #ccc; font-weight: bold;">Add
Another</button>
</td>
</tr>
<tr>
<td >Stream<input type="text" placeholder="Stream"/></td>
<td > Institution<input type="text" placeholder="Institution" /></td>
<td >Yr of Passing <input type="text" placeholder="Yr of Passing" /></td>
</div>
</tr>
<tr>
<td >State<input type="text" placeholder="State"/></td>
<td >Country <input type="text" placeholder="Country" /></td>
<td > <input type="file" /></td>
</div>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

I have done this for you
.form-body {
overflow-x: scroll;
}
table tbody tr td {
padding: 0 10px;
}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-target="#myModal">Open Modal</button>
<!-- Modal -->
<div class="modal fade" id="myModal" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-body">
<div class="">
<div class="row">
<div class="col-md-6">
<div class="panel-body">
<div class="panel panel-default">
<button type="button" class="close" data-dismiss="modal">
<font color="black"> <a href="hrtoolkit.html" style="color:darkred">
<span style="color:darkred;">×</span></a></font></button>
<div class="form-body">
<label class=" col-sm-4">Edit View Save</label>
<br />
<br />
<table id="table1">
<tbody>
<tr>
<td></td>
<td>
<input type="text" placeholder="10th" />
</td>
<td>
<input type="text" placeholder="Degree" />
</td>
<td>
<button type="button" class="btn btn-default " data-toggle="collapse" data-target="#filter-panel" style="font-size: 9px; background-color: #ccc; font-weight: bold;">Add Another
</button>
</td>
</tr>
<tr>
<td>Stream
<input type="text" placeholder="Stream" />
</td>
<td> Institution
<input type="text" placeholder="Institution" />
</td>
<td>Yr of Passing
<input type="text" placeholder="Yr of Passing" />
</td>
</tr>
<tr>
<td>State
<input type="text" placeholder="State" />
</td>
<td>Country
<input type="text" placeholder="Country" />
</td>
<td>
<input type="file" />
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

Related

Show all the columns in a single row and not overflow to next row in HTML

I have an HTML page with lay out something like this:
The problem is. I want the MSAN and Users column in the same row, otherwise, for a large number of records, it won't be suitable. this is my HTML File. Ignore how the values are being shown or which.
<div class="panel panel-default">
<div class="panel-heading">
<br>
<h1 style="text-align: center">License Generator</h1><br>
<div class="row" [hidden]="!deleteMessage">
<!--<div class="col-sm-4"></div> -->
<div> <!---->
<div class="alert alert-info alert-dismissible">
<button type="button" class="close" data-dismiss="alert">×</button>
<strong>License Deleted</strong>
</div>
</div>
<!-- <div class="col-sm-4"></div> -->
</div>
</div>
<div class="panel-body">
<table class="table table-hover table-sm" datatable [dtOptions]="dtOptions"
[dtTrigger]="dtTrigger" >
<thead class="thead-light">
<tr>
<th>Customer ID</th>
<th>Hardware Key</th>
<th>Product</th>
<th>License Key</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let student of students ">
<td>33333</td>
<td>22222</td>
<td>ABC</td>
<td><textarea rows="2" cols="20" wrap="hard">fxLBJ0BF5b+CLBCW9xamqsCgP0AyVIVpCCiYGI3WfEOAPPB7nVgHipERQmv2wVJYQI9PwfpS+4qP5owl4eDfI/f42cbu+SBTty3Sk/sGzZfon1xUndfAzsqbHD/DbFjQAtbpzeB7yr7AtNSV22WBv/lwC4ZW0k1KGR44tNM8aW5UQf9/WmuKeM/dFKIiW6vKMd9dn35jJ5AdlUIBRKwTFg==</textarea></td>
<td><button (click)="deleteStudent(student.student_id)" class='btn btn-primary'><i class="fa fa-futboll-0">Delete</i></button>
<button (click)="updateStudent(student.student_id)" class='btn btn-primary'
data-toggle="modal" data-target="#myModal">Update</button>
<button (click)="updateStudent(student.student_id)" class='btn btn-primary'
data-toggle="modal" data-target="#myModal">Copy License Key</button>
</td>
</tr>
</tbody><br>
<thead class="thead-light">
<tr>
<th>Max MSAN</th>
<th>Max Users</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let student of students ">
<td>10000</td>
<td>10000</td>
</tr>
</tbody><br>
</table>
</div>
</div>
<div class="modal" id="myModal">
<div class="modal-dialog">
<div class="modal-content">
<form [formGroup]="studentupdateform" #updstu (ngSubmit)="updateStu(updstu)">
<!-- Modal Header -->
<div class="modal-header">
<h4 class="modal-title" style="text-align: center">Update Student</h4>
</div>
<!-- Modal body -->
<div class="modal-body" *ngFor="let student of studentlist " >
<div [hidden]="isupdated">
<input type="hidden" class="form-control" formControlName="student_id" [(ngModel)]="student.student_id">
<div class="form-group">
<label for="name">Student Name</label>
<input type="text" class="form-control" formControlName="student_name" [(ngModel)]="student.student_name" >
</div>
<div class="form-group">
<label for="name">Student Email</label>
<input type="text" class="form-control" formControlName="student_email" [(ngModel)]="student.student_email">
</div>
<div class="form-group">
<label for="name">Student Branch</label>
<select class="form-control" formControlName="student_branch" required>
<option value="B-Tech" [selected]="'B-Tech' == student.student_branch">ZMS</option>
</select>
</div>
</div>
<div [hidden]="!isupdated">
<h4>Student Detail Updated!</h4>
</div>
</div>
<!-- Modal footer -->
<div class="modal-footer" >
<button type="submit" class="btn btn-success" [hidden]="isupdated">Update</button>
<button type="button" class="btn btn-danger" data-dismiss="modal" (click)="changeisUpdate()">Close</button>
</div>
</form>
</div>
</div>
</div>
There is nothing in the CSS file. If I try to keep all columns in same , then I lose the Search field and the number of entries data. I have taken help of a Spring Boot project from a website and got this, but not able to get this done. Please help. Stuck on this for hours.
try to add white-space:nowrap; to all the td and I think it should solve the problem
this is what nowrap does:
Sequences of whitespace will collapse into a single whitespace. Text
will never wrap to the next line. The text continues on the same line
until a tag is encountered.took from w3school

Aligning ends of toolbar with ends of table in Bootstrap3

Using Bootstrap3, I have a "toolbar" above a table. The toolbar has a series of input fields and buttons. I need the left/right ends of the toolbar to align with the ends of the table.
I tried to use Bootstrap's column classes to position the various toolbar elements. The positioning seems to be correct when viewed in full screen mode on a typical large (or greater) display.
I am able to align the fields and buttons to the end of the table if I remove the left and right padding from the first and last divs respectively. This is what I'm currently doing and it works. But I was hoping to achieve this without overriding the default styles. I suspect there is a simpler way of doing this that I am missing.
This is a little different than I'm used to since there are several different types of elements in the toolbar.
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<div class="container-fluid">
<div class="col-sm-12">
<div class="row">
<div class="btn-toolbar">
<div class="col-sm-2">
<div class="form-group">
<label class="control-label">Start Date</label>
<div>
<input type="text" class="form-control" />
</div>
</div>
</div>
<div class="col-sm-2">
<div class="form-group">
<label class="control-label">End Date</label>
<div>
<input type="text" class="form-control" />
</div>
</div>
</div>
<div class="col-sm-2">
<label class="control-label"> </label>
<div>
<button type="button" class="btn btn-success">
Get Data
</button>
</div>
</div>
<div class="col-sm-2">
<div class="form-group">
<div>
<label class="control-label">Search</label>
<input type="search" class="form-control" />
</div>
</div>
</div>
<div class="col-sm-1">
<label class="control-label"> </label>
<div>
<button type="button" class="btn btn-success">
Search
</button>
</div>
</div>
<div class="col-sm-3">
<div class="pull-right">
<label class="control-label"> </label>
<div class="btn-toolbar">
<button type="button" class="btn btn-success">Create
</button>
<button type="button" class="btn btn-danger">
Close
</button>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<table class="table table-condensed table-striped table-bordered">
<thead>
<tr>
<th>Col1</th>
<th>Col2</th>
<th>Col3</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
Any suggestions would be appreciated.
Two elements are extra in your code. One of them is the .btn-toolbar (the one in between .row and Bootstrap grid columns) while the second is .row around the table element.
Wrapping .row around the table is excess because you are not using any columns inside this row. Further remove .btn-toolbar element as well because you have set some custom margin-left here which is causing some misalignment from the left side.
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<div class="container-fluid">
<div class="col-sm-12">
<div class="row">
<div class="col-sm-2">
<div class="form-group">
<label class="control-label">Start Date</label>
<div>
<input type="text" class="form-control" />
</div>
</div>
</div>
<div class="col-sm-2">
<div class="form-group">
<label class="control-label">End Date</label>
<div>
<input type="text" class="form-control" />
</div>
</div>
</div>
<div class="col-sm-2">
<label class="control-label"> </label>
<div>
<button type="button" class="btn btn-success">Get Data</button>
</div>
</div>
<div class="col-sm-2">
<div class="form-group">
<div>
<label class="control-label">Search</label>
<input type="search" class="form-control" />
</div>
</div>
</div>
<div class="col-sm-1">
<label class="control-label"> </label>
<div>
<button type="button" class="btn btn-success">Search</button>
</div>
</div>
<div class="col-sm-3">
<div class="pull-right">
<label class="control-label"> </label>
<div class="btn-toolbar">
<button type="button" class="btn btn-success">Create</button>
<button type="button" class="btn btn-danger">Close</button>
</div>
</div>
</div>
</div>
<table class="table table-condensed table-striped table-bordered">
<thead>
<tr>
<th>Col1</th>
<th>Col2</th>
<th>Col3</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
</tbody>
</table>
</div>
</div>

Table is not shown of full sizae in MODAL of POPUP WINDOW

I want to show the table inside the MODAL of pop up of full length.But it is coming in the center with just fixed length.I have used the css but dont know what is wrong.I need to show the table of 100% length inside the MODAl.please someone help me to structure the table.I have used bootstrap table and getting such error.
[![<!DOCTYPE html>
<html>
<head>
<title></title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
<style type="text/css">
.table {
border-radius: 5px;
width: 50%;
margin: 0px auto;
float: none;
}
</style>
</head>
<body>
<div class="container" style="margin-top: 25px; margin-bottom: 30px; text-transform: none;">
<form class="form-inline" action="">
<div class="form-group">
<label for="test" class="col-sm-3 control-label">ClientId</label>
<input type="text" class="form-control" id="test" placeholder="Enter A Value">
</div>
<div class="form-group">
<button type="button" id="go" class="btn btn-primary"> <span class="glyphicon glyphicon-search"></span></button>
</div>
</form>
<!--Modal if input is empty-->
<div class="modal fade" id="#myModal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span>
</button>
<h4 class="modal-title">Modal title</h4>
</div>
<div class="modal-body" >
<!--div class="container"-->
<h2>Basic Table</h2>
<div class="table-responsive" id="holder-table">
<!--TAble COntent-->
</div>
<!--/div-->
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal-dialog -->
</div>
<!--modal if there is some text-->
<!--Modal-->
<div class="modal fade" id="#myModal1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span>
</button>
<h3 class="modal-title modal-title-or">
Edit
Relative
</h3>
</div>
<form id="relativeFormEdit" class="form-horizontal">
<div class="modal-body">
<!--form body-->
<div class="form-group ">
<div class="row">
<label class="control-label col-md-4">Name:</label>
<div class="col-md-6">
<input name="name" title="Name" class="form-control">
</div>
</div>
<div class="row">
<label class="control-label col-md-4">Age:</label>
<div class="col-md-6">
<input name="age" title="age" class="form-control">
</div>
</div>
<div class="row">
<label class="control-label col-md-4">Cid:</label>
<div class="col-md-6">
<input name="cid" title="cid" class="form-control">
</div>
</div>
<div class="col-md-10">
<button type="button" class="btn btn-info btn pull-right" id="search" >
<span class="glyphicon glyphicon-search"></span>Search
</button>
</div>
<div id="holder-table1">
<!--table content-->
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal-dialog -->
</div>
</form>
<div class="table-responsive">
<table id="tableModel" style="display:none" class="table table-hover table-striped table-condensed" >
<thead>
<tr>
<th>Name</th>
<th>Age</th>
<th>Cid</th>
</tr>
</thead>
<tbody>
<tr>
<td>John</td>
<td>10</td>
<td>john#example.com</td>
</tr>
<tr>
<td>Mary</td>
<td>11</td>
<td>mary#example.com</td>
</tr>
<tr>
<td>July</td>
<td>12</td>
<td>july#example.com</td>
</tr>
</tbody>
</table>
</div>
</div>
<script>
$(document).ready(function(){
$('#go').click(function() {
var test1 = $('#test').val();
if (test1 === "") {
$("#tableModel").css({display: "block"});
$('#holder-table1').append($("#tableModel"));
$('#\\#myModal1').modal('show');
$('#holder-table1').hide();
}
else{
$("#tableModel").css({display: "block"});
$('#holder-table').append($("#tableModel"));
$('#\\#myModal').modal('show');
}
$('#search').click(function() {
$("#tableModel").css({display: "block"});
$("#holder-table1").show();
});
});
});
</script>
<!-- /.modal -->
<!--End Modal-->
</body>
</html>][1]][1]
try this
<style type="text/css">
.table {
border-radius: 5px;
width: 100%;
margin: 0px auto;
float: none;
}
</style>
and use inline-table instead of block in css
<table id="tableModel" style="display:inline-table" class="table table-hover table-striped table-condensed" >
if (test1 === "") {
$("#tableModel").css({display: "inline-table"});
$('#holder-table1').append($("#tableModel"));
$('#\\#myModal1').modal('show');
$('#holder-table1').hide();
}
else{
$("#tableModel").css({display: "inline-table"});
$('#holder-table').append($("#tableModel"));
$('#\\#myModal').modal('show');
}
$('#search').click(function() {
$("#tableModel").css({display: "inline-table"});
$("#holder-table1").show();
});

The Modal Opens up incorrectly at start

There's an issue in my modal view in the html page. It happens each time when I load the page. The Modal always starts from the bottom of the html page. But only happens one time in each load. How do I resolve this. What am I doing wrong. Help would be appreciated.
Here's my html
<div class="form-group">
<div class="col-lg-12 co-md-9">
<div class="row">
<table id="basic-datatables" class="table table-bordered table-hover" cellspacing="0" width="100">
<thead style="text-align:match-parent">
<tr>
<th rowspan="1" colspan="1" style="width:100px">
<a href="javascript:void(0)" class="table-links" ng-click="sortType='Name'; sortReverse=!sortReverse">
<span ng-show="sortType != 'Name'" class="fa fa-unsorted"></span>
<span ng-show="sortType == 'Name' && !sortReverse" class="fa fa-sort-asc"></span>
<span ng-show="sortType == 'Name' && sortReverse" class="fa fa-sort-desc"></span> Customer Name
</a>
</th>
<th rowspan="1" colspan="1" style="width:100px">Email</th>
<th rowspan="1" colspan="1" style="width:100px">Mobile</th>
<th rowspan="1" colspan="1" style="width:100px">Company</th>
<th style="width:50px">Actions</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="customer in filteredDetails = (customerDetails | filter : Search | orderBy:sortType:sortReverse | limitTo: itemsPerPage: (currentPage - 1) * itemsPerPage)" style="text-align:match-parent">
<td>{{customer.Name}}</td>
<td>{{customer.Email}}</td>
<td>{{customer.Telephone}}</td>
<td>{{customer.Company}}</td>
<td style="text-align:center">
<span class="glyphicon glyphicon-edit"></span>
<span class="glyphicon glyphicon-trash"></span>
</td>
</tr>
</tbody>
</table>
<div ng-show="filteredDetails.length==0">
No results found.
</div>
<div class="row">
<div class="col-md-8 col-xs-12">
<uib-pagination total-items="totalCustomers" ng-model="currentPage" ng-change="pageChanged()" max-size="maxSize" boundary-links="true" class="pagination" items-per-page="itemsPerPage"></uib-pagination>
</div>
</div>
<!--Modal: edit-->
<div id="cusEditModal" class="modal fade modal-style2 in" data-backdrop="static" data-keyboard="false" role="dialog" tabindex="-1" style="position:center" aria-labelledby="myModalLabel">
<div class="modal-dialog modal-dialog-center" style="width:700px" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true" class="fa fa-times-circle-o"></span></button>
<h4 class="modal-title"><i class="round round-lg grey"><span class="icons8-create-new s20"></span></i> Edit Customer Details</h4>
</div>
<div class="modal-body">
<div class="form-group">
<label class="col-lg-2 col-md-3 control-label" for="">Customer Id</label>
<div class="col-lg-10 col-md-9">
<input type="text" class="form-control" name="cid" ng-model="modalEditDetails.Id" disabled />
</div>
</div>
<div class="form-group">
<label class="col-lg-2 col-md-3 control-label" for="">Name</label>
<div class="col-lg-10 col-md-9">
<input type="text" class="form-control" name="cname" ng-model="modalEditDetails.Name" />
</div>
</div>
<div class="form-group">
<label class="col-lg-2 col-md-3 control-label" for="">Email</label>
<div class="col-lg-10 col-md-9">
<input type="text" class="form-control" name="cemail" ng-model="modalEditDetails.Email" />
</div>
</div>
<div class="form-group">
<label class="col-lg-2 col-md-3 control-label" for="">Telephone</label>
<div class="col-lg-10 col-md-9">
<input type="text" class="form-control" name="ctel" ng-model="modalEditDetails.Telephone" />
</div>
</div>
<div class="form-group">
<label class="col-lg-2 col-md-3 control-label" for="">Company</label>
<div class="col-lg-10 col-md-9">
<input type="text" class="form-control" name="cid" ng-model="modalEditDetails.Company" />
</div>
</div>
</div>
<div class="modal-footer">
<button class="btn btn-default mr5 mb10" data-dismiss="modal" type="button">Close</button>
<button class="btn btn-warning mr5 mb10" type="button" ng-click="EditCustomer()">Edit</button>
</div>
</div>
</div>
</div>
<!--Modal .End-->
</div>
</div>
</div>
This is the screenshot when I load the page and open the modal when the row is clicked.
Renders correctly when I close and reopen the modal.
Added the editDetails function
$scope.editDetails = function(details) {
$scope.modalEditDetails = details;
$("#cusEditModal").modal("show");
}
})();
Leaving this here in case it helps anyone else.
Bootstrap modals have options to animate their opening. In your case you had the "fade" and "in" classes which enable this option. Changing/removing any of those should help. This might be due to how the js doesn't properly figure out modal height at the time of DOM insertion and they place it too far down.

how to include an html file to a single application, for example if you click add button it should display the content about add button?

I have a form which search for the country code, name, and a valid date. It has got two buttons named search and cancel. At the bottom of a form it also has four buttons named terminate, add, edit, and delete. When you click add button it should display another that has the following, but I just do not have an idea on how am I gonna make this work.
Here is the html file for both forms:
<div class="container">
<div class="row">
<div class="col-md-4">
<thead>
<hr>
<div class="panel panel-default">
IETA-Admin-Exchange Rate
</div>
</thead>
<div class="panel panel-success">
<div class="table-responsive">
<table class="table table-striped">
<tr>
<th>Code</th>
<th>Rate</th>
<th>Start Date</th>
<th>End Date</th>
</tr>
<tr>
<td>ZAR</td>
<td>1.02</td>
<td>13/10/15</td>
<td>12/11/15</td>
</tr>
<tr>
<td>LUX</td>
<td>1.02</td>
<td>13/10/15</td>
<td>12/11/15</td>
</tr>
<tr>
<td>JPY</td>
<td>1.02</td>
<td>13/10/15</td>
<td>12/11/15</td>
</tr>
<tr>
<td>EEK</td>
<td>1.02</td>
<td>13/10/15</td>
<td>12/11/15</td>
</tr>
<tr>
<td>CAD</td>
<td>1.02</td>
<td>13/10/15</td>
<td>12/11/15</td>
</tr>
</table>
</div>
</div>
</div>
<div class="col-md-8">
<hr>
<p>Search___________________________________________________________________________________________________________________________________________________________</p>
<form class="form-vertical">
<div class="col-md-12">
<div class="form-group">
<label for="code" class="col-md-8 control-label">Code:</label>
<div class="col-md-12">
<input type="text" class="form-control" ng-model="code">
</div>
</div>
</div>
<div class="col-md-12">
<div class="form-group">
<label for="name" class="col-md-8 control-label">Name:</label>
<div class="col-md-12">
<input type="text" class="form-control" ng-model= "name">
</div>
</div>
</div>
<div class="col-md-12">
<div class="form-group">
<label for="date" class="col-md-12 control-label">Valid On:</label>
<div class="col-md-6">
<input type="date" class="form-control" ng-model="date">
</div>
</div>
</div>
<div class="jumbotron text-right">
<button ng-click="search()" class="btn btn-active btn-sm">
<span class="glyphicon glyphicon-search">Search</button>
<button ng-click="cancel()" class="btn btn-active btn-sm">
<span class="glyphicon glyphicon-remove"></span>Cancel</button>
</div>
</form>
</div>
</div>
<hr>
<!-- Add html file-->
<!-- end of Add html-->
<div class="jumbotron text-right">
<div class="col-md-12">
<button ng-click="terminateToday()" class="btn btn-active btn-sm">Terminate Today</button>
<button ng-click="add()" class="btn btn-active btn-sm">
<span class="glyphicon glyphicon-plus"></span>Add</button>
<button ng-click="edit()" class="btn btn-active btn-sm">
<span class="glyphicon glyphicon-edit"></span>Edit</button>
<button ng-click="delete()" class="btn btn-active btn-sm">
<span class="glyphicon glyphicon-trash"></span>Delete</button>
</div>
</div>
</div>
<!-- end of Add html-->
Please help!