To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Verified Commit 649eb7d0 authored by Sandro Lutz's avatar Sandro Lutz
Browse files

Add field show_website to joboffers edit form

parent 637fe421
......@@ -39,6 +39,10 @@ export default class newJob extends EditView {
label: 'End of Advertisement',
required: true,
},
show_website: {
type: 'checkbox',
label: 'Show on Website',
},
title_en: { type: 'text', label: 'English Title' },
description_en: {
type: 'text',
......
......@@ -34,6 +34,16 @@ export default class viewJob extends ItemView {
title: 'Offer Ends',
style: stdMargin,
}, `${dateFormatter(this.data.time_end)}`) : '',
m(Property, {
title: 'Show on Website',
style: stdMargin,
}, this.data.show_website ? 'visible' : 'not visible'),
m(Property, {
title: 'PDF',
style: stdMargin,
}, this.data.pdf
? m('a', { href: `${apiUrl}${this.data.pdf.file}`, target: '_blank' }, this.data.pdf.name)
: 'not available'),
]),
m('div.viewcontainer', [
m('div.viewcontainercolumn', m(Card, {
......
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