diff options
1 files changed, 23 insertions, 13 deletions
| -rw-r--r-- | src/views/dashboard.php | 36 |
diff --git a/src/views/dashboard.php b/src/views/dashboard.php index 06be539..fe7a021 100644 --- a/src/views/dashboard.php +++ b/src/views/dashboard.php @@ -1,17 +1,27 @@ +<ul class="jobs-listing"> <?php foreach($jobs as $job) { - echo "{$job->id} {$job->title} {$job->description} " . self::$companies[$job->companyId] . " {$job->salary} - <form method=\"post\"> - <input type=\"hidden\" name=\"_method\" value=\"get\"> - <input type=\"hidden\" name=\"jobId\" value=\"{$job->id}\"> - <input type=\"submit\" value=\"Edit\"> - </form> - <form method=\"post\"> - <input type=\"hidden\" name=\"_method\" value=\"delete\"> - <input type=\"hidden\" name=\"jobId\" value=\"{$job->id}\"> - <input type=\"submit\" value=\"Delete\"> - </form> - <br>"; + 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>'; } ?> -<a href="/">< Back</a> +</ul> |
