Commit c42a3c6c authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic

Bug 1857381: Cover letter styles targeted independently

In the one resume field blocktype, with a cover letter selected
we need a <div class="card-body flush"> after the <div class="block"...>

The same is needed for the Interest resume field

behatnotneeded

Change-Id: Ib080ae663f549410b0de715a314a66ed7d95cbd2
parent 55e985a9
......@@ -270,6 +270,12 @@ class ArtefactTypeCoverletter extends ArtefactTypeResume {
parent::__construct($id, $data);
}
public function render_self($options) {
$smarty = smarty_core();
$smarty->assign('content', $this->description);
return array('html' => $smarty->fetch('artefact:resume:fragments/coverletter.tpl'));
}
}
class ArtefactTypeInterest extends ArtefactTypeResume {
......@@ -278,6 +284,12 @@ class ArtefactTypeInterest extends ArtefactTypeResume {
return true;
}
public function render_self($options) {
$smarty = smarty_core();
$smarty->assign('content', $this->description);
return array('html' => $smarty->fetch('artefact:resume:fragments/interest.tpl'));
}
}
class ArtefactTypeContactinformation extends ArtefactTypeResume {
......
{if $content}
<div class="card-body flush">
{$content|safe}
</div>
{/if}
{if $content}
<div class="card-body flush">
{$content|safe}
</div>
{/if}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment