Skip to content

Commit

Permalink
Merge pull request #5 from hayk-manasyan/dev
Browse files Browse the repository at this point in the history
- Added create date in jobs list with ordering
  • Loading branch information
hayk-manasyan authored Feb 7, 2018
2 parents 9efbdad + 0738a49 commit 3d2b720
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 0 additions & 2 deletions module/Application/view/application/index/dashboard.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ endforeach;
<table class="table table-hover">
<thead>
<tr>
<!-- <th>Company</th>-->
<th>Title</th>
<th>Location</th>
<th>Type</th>
Expand All @@ -45,7 +44,6 @@ endforeach;
<?php foreach ( $job as $value ) :
?>
<tr >
<!-- <th scope="row">--><?php //echo $value->getCompany(); ?><!--</th>-->
<td><?php echo $value->getTitle(); ?></td>
<td><?php echo $value->getLocation(); ?></td>
<td><?php echo $value->getType(); ?></td>
Expand Down
2 changes: 2 additions & 0 deletions module/Application/view/application/index/manual-search.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ $form->prepare();
<th>Location</th>
<th>Type</th>
<th>Source Type</th>
<th>Create Date</th>
<th></th>
</tr>
</thead>
Expand All @@ -64,6 +65,7 @@ $form->prepare();
<td><?php echo $value->getLocation(); ?></td>
<td><?php echo $value->getType(); ?></td>
<td><?php echo \Jobs\Mapper\SourceMapper::getTitleByType( $value->getSource() ); ?></td>
<td><?php echo date('Y-m-d', strtotime($value->getCreatedAt())); ?></td>
<td>
<a class="btn btn-info"
href="<?php echo $this->basePath() . '/application/detail/' . $value->getId(); ?>">
Expand Down
5 changes: 3 additions & 2 deletions module/Application/view/application/index/search.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<th>Location</th>
<th>Type</th>
<th>Source Type</th>
<th>Ceate Date</th>
<th>&nbsp;</th>
</tr>
</thead>
Expand All @@ -20,6 +21,7 @@
<td><?php echo $value->getLocation(); ?></td>
<td><?php echo $value->getType(); ?></td>
<td><?php echo \Jobs\Mapper\SourceMapper::getTitleByType( $value->getSource() ); ?></td>
<td><?php echo date('Y-m-d', strtotime($value->getCreatedAt())) ; ?></td>
<td>
<a class="btn btn-info" href="
<?php echo $this->basePath() . '/application/detail/' . $value->getId(); ?>"> More </a>
Expand Down Expand Up @@ -53,12 +55,11 @@ echo $this->headScript()
?>
<script>
$( document ).ready( function () {

$( '#list' ).DataTable( {
pageLength: 10,
paging: true,
searching: true,
order: [ [ 0, "asc" ] ]
order: [ [ 4, "desc" ] ]
} );
} );
</script>

0 comments on commit 3d2b720

Please sign in to comment.