Summary Files Commits Branches @commit @diff @stats
path: root / src / views / dashboard.php
blob: fe7a021db96b9e3f587771ce007cf28fa4d72a6c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<ul class="jobs-listing">
<?php
	foreach($jobs as $job) {
		echo '<li class="job-card">
				<div class="job-primary">
					<h2 class="job-title"><a href="#">' . $job->title . '</a></h2>
					<div class="job-meta">
						<a class="meta-company" href="#">' . self::$companies[$job->companyId] . '</a>
						<span class="meta-date">' . round($job->salary, 2) . ' lev/month</span>
					</div>
				</div>
				<div class="job-edit">
					<form method="post">
						<input type="hidden" name="_method" value="get">
						<input type="hidden" name="jobId" value="' . $job->id . '">
						<input type="submit" value="Edit" class="anchor-btn">
					</form>
					<form method="post">
						<input type="hidden" name="_method" value="delete">
						<input type="hidden" name="jobId" value="' . $job->id . '">
						<input type="submit" value="Delete" class="anchor-btn">
					</form>
				</div>
			</li>';
	}
?>
</ul>