116 lines
4.9 KiB
Text
116 lines
4.9 KiB
Text
<section id="joboffer-{{job_offer.id}}" class="joboffer-index-entry {{#if user}}{{job_offer.status.review_status}}{{/if}}">
|
|
{{!
|
|
the job offers should be filtered in the rust code,
|
|
so that either there is a user or the offers are limited to published ones
|
|
}}
|
|
|
|
<div class="joboffer-index-entry-content">
|
|
<h2 class="joboffer-title centered centered-text">{{job_offer.title}}</h2>
|
|
<div class="joboffer-offering-party centered centered-text italic-text">
|
|
{{job_offer.offering_party}}
|
|
</div>
|
|
<br />
|
|
|
|
<div>Eingereicht am: {{job_offer.submission_date}}</div>
|
|
{{# if job_offer.expiry_date }}
|
|
<div>Gültig bis: {{job_offer.expiry_date}}</div>
|
|
{{/if}}
|
|
|
|
{{# if job_offer.expired }}
|
|
<span class="expired">Abgelaufen!</span>
|
|
{{/if}}
|
|
|
|
{{# if job_offer.contact_data }}
|
|
<br />
|
|
Kontakt-Adresse: <a href="mailto:{{job_offer.contact_data}}">{{job_offer.contact_data}}</a>
|
|
{{/if}}
|
|
|
|
{{#if job_offer.attachments }}
|
|
{{#each job_offer.attachments as |attachment| }}
|
|
{{# if @first}}
|
|
<hr />
|
|
<h3>Anhänge</h3>
|
|
<ul>
|
|
{{/if}}
|
|
<li>
|
|
<a target="_blank" href="{{attachment.attachment_location}}">
|
|
{{attachment.title}}
|
|
</a>
|
|
</li>
|
|
{{#if @last}}
|
|
</ul>
|
|
{{/if}}
|
|
{{/each}}
|
|
{{/if}}
|
|
{{#if job_offer.links}}
|
|
{{#each job_offer.links as |link| }}
|
|
{{# if @first}}
|
|
<hr />
|
|
<h3>Links</h3>
|
|
<ul>
|
|
{{/if}}
|
|
<li>
|
|
<a target="_blank" href="{{link.destination}}">
|
|
{{link.title}}
|
|
</a>
|
|
</li>
|
|
{{#if @last}}
|
|
</ul>
|
|
{{/if}}
|
|
{{/each}}
|
|
{{/if}}
|
|
|
|
</div>
|
|
<div>
|
|
{{#if user }}
|
|
{{#unless job_offer.is_preview }}
|
|
<hr />
|
|
{{#if job_offer.actions.highlight_link }}
|
|
<div>ID: <a href="{{job_offer.actions.highlight_link}}" >{{job_offer.id}}</a></div>
|
|
{{/if}}
|
|
<div>Review-Status: <span class="{{#unless job_offer.reviewed}}unreviewed{{/unless}}">{{job_offer.status.review_status}}</span></div>
|
|
<div>Bestätigungsstatus: <span class="{{#unless job_offer.confirmed}}unconfirmed{{/unless}}">{{job_offer.status.confirmation_status.type}}</span></div>
|
|
{{#if job_offer.actions.confirmation_link}}
|
|
<div><a href="mailto:{{job_offer.contact_data}}?body=Confirmation%20Link:%20{{job_offer.actions.confirmation_link}}" >Manuelle Bestätigungsmail senden</a></div>
|
|
{{/if}}
|
|
{{/unless}}
|
|
|
|
{{#if job_offer.actions }}
|
|
<hr />
|
|
{{#if job_offer.reviewed}}
|
|
{{#if job_offer.actions.unpublish_url }}
|
|
{{#> confirm-modal}}
|
|
{{#*inline "id"}}{{job_offer.id}}{{/inline}}
|
|
{{#*inline "kind"}}unpublish{{/inline}}
|
|
{{#*inline "action"}}{{#if job_offer.published}}Veröffentlichung zurückziehen{{else}}Review zurückziehen{{/if}}{{/inline}}
|
|
{{#*inline "formaction"}}{{job_offer.actions.unpublish_url}}{{/inline}}
|
|
{{/confirm-modal}}
|
|
{{/if}}
|
|
{{else}}
|
|
{{#if job_offer.actions.publish_url }}
|
|
{{#> confirm-modal}}
|
|
{{#*inline "id"}}{{job_offer.id}}{{/inline}}
|
|
{{#*inline "kind"}}publish{{/inline}}
|
|
{{#*inline "action"}}{{#if job_offer.confirmed}}Veröffentlichen{{else}}Als gereviewed markieren{{/if}}{{/inline}}
|
|
{{#*inline "formaction"}}{{job_offer.actions.publish_url}}{{/inline}}
|
|
{{/confirm-modal}}
|
|
{{/if}}
|
|
{{/if}}
|
|
|
|
{{#if job_offer.actions.delete_url }}
|
|
{{#> confirm-modal}}
|
|
{{#*inline "id"}}{{job_offer.id}}{{/inline}}
|
|
{{#*inline "kind"}}delete{{/inline}}
|
|
{{#*inline "action"}}Löschen{{/inline}}
|
|
{{#*inline "formaction"}}{{job_offer.actions.delete_url}}{{/inline}}
|
|
{{/confirm-modal}}
|
|
{{/if}}
|
|
|
|
{{#if job_offer.actions.edit_url }}
|
|
<a href="{{job_offer.actions.edit_url}}">Bearbeiten</a>
|
|
{{/if}}
|
|
{{/if}}
|
|
|
|
{{/if}}
|
|
</div>
|
|
</section>
|