features, cleanup and bug fixes #26
2 changed files with 40 additions and 35 deletions
allow highlighting a specific job offer
commit
b32469611d
|
|
@ -228,6 +228,10 @@ body main {
|
||||||
background: pink;
|
background: pink;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.joboffer-index-entry:target {
|
||||||
|
background: LemonChiffon;
|
||||||
|
}
|
||||||
|
|
||||||
.column, .submission-preview {
|
.column, .submission-preview {
|
||||||
flex-direction:column
|
flex-direction:column
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<section class="joboffer-index-entry {{#if user}}{{job_offer.status.review_status}}{{/if}}">
|
<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,
|
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
|
so that either there is a user or the offers are limited to published ones
|
||||||
|
|
@ -61,47 +61,48 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
{{#if user }}
|
||||||
|
{{# unless job_offer.is_preview }}
|
||||||
|
<hr />
|
||||||
|
<div>ID: {{job_offer.id}}</div>
|
||||||
|
<div>Review Status: <span class="{{#unless job_offer.reviewed}}unreviewed{{/unless}}">{{job_offer.status.review_status}}</span></div>
|
||||||
|
<div>Confirmation Status: <span class="{{#unless job_offer.confirmed}}unconfirmed{{/unless}}">{{job_offer.status.confirmation_status.type}}</span></div>
|
||||||
|
{{/unless}}
|
||||||
|
|
||||||
{{#if user }}
|
{{#if job_offer.actions }}
|
||||||
{{# unless job_offer.is_preview }}
|
<hr />
|
||||||
<hr />
|
{{#if job_offer.reviewed}}
|
||||||
<div>ID: {{job_offer.id}}</div>
|
{{#if job_offer.actions.unpublish_url }}
|
||||||
<div>Review Status: <span class="{{#unless job_offer.reviewed}}unreviewed{{/unless}}">{{job_offer.status.review_status}}</span></div>
|
{{#> confirm-modal}}
|
||||||
<div>Confirmation Status: <span class="{{#unless job_offer.confirmed}}unconfirmed{{/unless}}">{{job_offer.status.confirmation_status.type}}</span></div>
|
{{#*inline "id"}}{{job_offer.id}}{{/inline}}
|
||||||
{{/unless}}
|
{{#*inline "kind"}}unpublish{{/inline}}
|
||||||
|
{{#*inline "action"}}{{#if job_offer.published}}Un-Publish{{else}}Retract Review{{/if}}{{/inline}}
|
||||||
{{#if job_offer.actions }}
|
{{#*inline "formaction"}}{{job_offer.actions.unpublish_url}}{{/inline}}
|
||||||
<hr />
|
{{/confirm-modal}}
|
||||||
{{#if job_offer.reviewed}}
|
{{/if}}
|
||||||
{{#if job_offer.actions.unpublish_url }}
|
{{else}}
|
||||||
{{#> confirm-modal}}
|
{{#if job_offer.actions.publish_url }}
|
||||||
{{#*inline "id"}}{{job_offer.id}}{{/inline}}
|
{{#> confirm-modal}}
|
||||||
{{#*inline "kind"}}unpublish{{/inline}}
|
{{#*inline "id"}}{{job_offer.id}}{{/inline}}
|
||||||
{{#*inline "action"}}{{#if job_offer.published}}Un-Publish{{else}}Retract Review{{/if}}{{/inline}}
|
{{#*inline "kind"}}publish{{/inline}}
|
||||||
{{#*inline "formaction"}}{{job_offer.actions.unpublish_url}}{{/inline}}
|
{{#*inline "action"}}{{#if job_offer.confirmed}}Publish{{else}}Review{{/if}}{{/inline}}
|
||||||
{{/confirm-modal}}
|
{{#*inline "formaction"}}{{job_offer.actions.publish_url}}{{/inline}}
|
||||||
|
{{/confirm-modal}}
|
||||||
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{else}}
|
|
||||||
{{#if job_offer.actions.publish_url }}
|
{{#if job_offer.actions.delete_url }}
|
||||||
{{#> confirm-modal}}
|
{{#> confirm-modal}}
|
||||||
{{#*inline "id"}}{{job_offer.id}}{{/inline}}
|
{{#*inline "id"}}{{job_offer.id}}{{/inline}}
|
||||||
{{#*inline "kind"}}publish{{/inline}}
|
{{#*inline "kind"}}delete{{/inline}}
|
||||||
{{#*inline "action"}}{{#if job_offer.confirmed}}Publish{{else}}Review{{/if}}{{/inline}}
|
{{#*inline "action"}}Delete{{/inline}}
|
||||||
{{#*inline "formaction"}}{{job_offer.actions.publish_url}}{{/inline}}
|
{{#*inline "formaction"}}{{job_offer.actions.delete_url}}{{/inline}}
|
||||||
{{/confirm-modal}}
|
{{/confirm-modal}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if job_offer.actions.delete_url }}
|
<a href="{{job_offer.actions.edit_url}}">Bearbeiten</a>
|
||||||
{{#> confirm-modal}}
|
|
||||||
{{#*inline "id"}}{{job_offer.id}}{{/inline}}
|
|
||||||
{{#*inline "kind"}}delete{{/inline}}
|
|
||||||
{{#*inline "action"}}Delete{{/inline}}
|
|
||||||
{{#*inline "formaction"}}{{job_offer.actions.delete_url}}{{/inline}}
|
|
||||||
{{/confirm-modal}}
|
|
||||||
{{/if}}
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
</div>
|
||||||
<a href="{{job_offer.actions.edit_url}}">Bearbeiten</a>
|
|
||||||
{{/if}}
|
|
||||||
</section>
|
</section>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue