Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
198 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
? my $form = $c->stash->{form}; | ||
|
||
? extends 'common/jobs_base'; | ||
|
||
? block content => sub { | ||
|
||
<h1>Edit Job</h1> | ||
|
||
?= include('job/partial_form', $form); | ||
|
||
? } # endblock content | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
? my $form = shift; | ||
|
||
<form method="post"> | ||
<table id="job_form"> | ||
<tfoot> | ||
<tr> | ||
<td colspan="2"> | ||
<input type="submit" value="Preview your job" /> | ||
</td> | ||
</tr> | ||
</tfoot> | ||
<tbody> | ||
? for my $field (qw/category type company url position location description how_to_apply email/) { | ||
<tr> | ||
<th><?= raw_string $form->label($field) ?></th> | ||
<td> | ||
? if ($form->is_error($field)) { | ||
<ul class="error_list"> | ||
? for my $err (@{ $form->error_messages($field) }) { | ||
<li><?= raw_string $err ?></li> | ||
? } # endfor $err | ||
</ul> | ||
? } # endif | ||
<?= raw_string $form->input($field) ?> | ||
</td> | ||
</tr> | ||
? } # endfor $field | ||
</tbody> | ||
</table> | ||
</form> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
? my $job = $c->stash->{job}; | ||
|
||
? extends 'common/base'; | ||
|
||
? block stylesheets => sub { | ||
<link rel="stylesheet" type="text/css" href="<?= $c->uri_for('/css/main.css') ?>" /> | ||
<link rel="stylesheet" type="text/css" href="<?= $c->uri_for('/css/job.css') ?>" /> | ||
? } | ||
|
||
? block content => sub { | ||
|
||
<div id="job_actions"> | ||
<h3>Admin</h3> | ||
<ul> | ||
? if (!$job->is_activated) { | ||
<li><a href="<?= $c->uri_for('/job', $job->token, 'edit') ?>">Edit</a></li> | ||
<li><a href="<?= $c->uri_for('/job', $job->token, 'publish') ?>">Publish</a></li> | ||
? } | ||
<li><a href="<?= $c->uri_for('/job', $job->token, 'delete') ?>" onclick="return confirm('Are you sure?')">Delete</a></li> | ||
|
||
? if ($job->is_activated) { | ||
<li<?= $job->expires_soon ? ' class="expires_soon"' : '' ?>> | ||
? if ($job->is_expired) { | ||
Expired | ||
? } else { | ||
Expires in <strong><?= $job->days_before_expired ?></strong> days | ||
? } | ||
|
||
? if ($job->expires_soon) { | ||
- <a href="">Extend</a> for another <?= Jobeet::Models->get('conf')->{active_days} ?> days | ||
? } | ||
</li> | ||
? } else { | ||
<li> | ||
[Bookmark this <a href="<?= $c->req->uri ?>">URL</a> to manage this job in the future.] | ||
</li> | ||
? } | ||
</ul> | ||
</div> | ||
|
||
<div id="job"> | ||
<h1><?= $job->company ?></h1> | ||
<h2><?= $job->location ?></h2> | ||
<h3> | ||
<?= $job->category->name ?> <small> - <?= $job->type ?></small> | ||
</h3> | ||
|
||
<div class="description"> | ||
<?= $job->description ?> | ||
</div> | ||
|
||
<h4>How to apply?</h4> | ||
|
||
<p class="how_to_apply"><?= $job->how_to_apply ?></p> | ||
|
||
<div class="meta"> | ||
<small>posted on <?= $job->created_at->ymd ?></small> | ||
</div> | ||
</div> | ||
|
||
? } # endblock content | ||
|