<commit_before><?php
/**
 * YAWIK
 *
 * @filesource
 * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de)
 * @license   MIT
 */
/**
 * renders the form for entering a job opening
 *
 * NOTE: price for jobsintown is currently hardcoded. This will be replaced by
 * a dynamic solution as soon there is a Channels module available
 *
 */

$options = $this->services('Core/Options');
$defaultCurrencyCode = $options->defaultCurrencyCode;
$defaultTaxRate = $options->defaultTaxRate;

$channels = $this->services('Jobs/Options/Provider');

$this->headscript()->appendFile($this->basepath('Core/js/core.forms.js'));
$this->headscript()->appendFile($this->basepath('Core/js/jquery.summary-form.js'));


$total=0;
$sum=0;
/* @var \Jobs\Entity\Job $job */

if ($job->isDraft()) {
    $status = "draft";
} else {
    $status = $job->getStatus()->getName();
}

?>
<h1>
    <?php
    if ('new' == $this->action):
        echo $this->translate('Publish a job');
    else:
        echo sprintf($this->translate($job->isDraft()?'Create a job':'Edit job %s'),'<i>'.$this->title.'</i>');
    endif;
    ?>
    <small>(<?php echo $this->translate($status);?>)</small>
    <?php

        switch($status) {
            case \Jobs\Entity\StatusInterface::ACTIVE:

                $deactivateLink = $this->url(
                               'lang/jobs/manage',
                               [
                                   'action' => 'edit',
                               ],
                               [
                                   'query' => [
                                       'id' => $job->getId(),
                                       'status' => \Jobs\Entity\StatusInterface::INACTIVE
                                   ],
                               ]
                );?>

                <a href="<?=$deactivateLink?>" class="pull-right btn btn-danger"><?=$this->translate('Deactivate')?></a><commit_msg>[Jobs] Fixes translation error in job form view<commit_after><?php
/**
 * YAWIK
 *
 * @filesource
 * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de)
 * @license   MIT
 */
/**
 * renders the form for entering a job opening
 *
 * NOTE: price for jobsintown is currently hardcoded. This will be replaced by
 * a dynamic solution as soon there is a Channels module available
 *
 */

$options = $this->services('Core/Options');
$defaultCurrencyCode = $options->defaultCurrencyCode;
$defaultTaxRate = $options->defaultTaxRate;

$channels = $this->services('Jobs/Options/Provider');

$this->headscript()->appendFile($this->basepath('Core/js/core.forms.js'));
$this->headscript()->appendFile($this->basepath('Core/js/jquery.summary-form.js'));


$total=0;
$sum=0;
/* @var \Jobs\Entity\Job $job */

if ($job->isDraft()) {
    $status = "draft";
} else {
    $status = $job->getStatus()->getName();
}

?>
<h1>
    <?php
    if ('new' == $this->action):
        echo $this->translate('Publish a job');
    else:
        echo sprintf($this->translate($job->isDraft()?'Create a job':'Edit job "%s"'),'<i>'.$this->title.'</i>');
    endif;
    ?>
    <small>(<?php echo $this->translate($status);?>)</small>
    <?php

        switch($status) {
            case \Jobs\Entity\StatusInterface::ACTIVE:

                $deactivateLink = $this->url(
                               'lang/jobs/manage',
                               [
                                   'action' => 'edit',
                               ],
                               [
                                   'query' => [
                                       'id' => $job->getId(),
                                       'status' => \Jobs\Entity\StatusInterface::INACTIVE
                                   ],
                               ]
                );?>

                <a href="<?=$deactivateLink?>" class="pull-right btn btn-danger"><?=$this->translate('Deactivate')?></a>
{'fraction_non_alphanumeric': 0.17391304347826086, 'fraction_numerical': 0.005626598465473146, 'mean_word_length': 1.8096264367816093, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 81, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7306381', 'n_tokens_mistral': 1142, 'n_tokens_neox': 1104, 'n_words': 214}