Verified Commit 11d62c0a authored by Sandro Lutz's avatar Sandro Lutz
Browse files

Bump version of web-ui-components

parent bfa835e4
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
"@material/drawer": "^0.30.0", "@material/drawer": "^0.30.0",
"@material/select": "^0.35.1", "@material/select": "^0.35.1",
"ajv": "^5.5.0", "ajv": "^5.5.0",
"amiv-web-ui-components": "git+https://git@gitlab.ethz.ch/amiv/web-ui-components.git#98d1e07a4df864875590bc19c711abe85e7afa19", "amiv-web-ui-components": "git+https://git@gitlab.ethz.ch/amiv/web-ui-components.git#068a864cae7c8408286d835efe1850467f69098d",
"axios": "^0.17.1", "axios": "^0.17.1",
"client-oauth2": "^4.2.0", "client-oauth2": "^4.2.0",
"mithril": "^1.1.6", "mithril": "^1.1.6",
......
...@@ -52,10 +52,11 @@ class PermissionEditor { ...@@ -52,10 +52,11 @@ class PermissionEditor {
}, [ }, [
m(Select, { m(Select, {
label: apiEndpoint.title, label: apiEndpoint.title,
options: ['read', 'readwrite'], options: ['no permission', 'read', 'readwrite'],
default: 'no permission',
style: { width: '200px' }, style: { width: '200px' },
onChange: ({ newVal }) => { onChange: ({ newVal }) => {
if (newVal === '') { if (newVal === 'no permission') {
// the api equivalent to no permission is to delete the key out of the dict // the api equivalent to no permission is to delete the key out of the dict
if (internalPerm[apiEndpoint.href]) delete internalPerm[apiEndpoint.href]; if (internalPerm[apiEndpoint.href]) delete internalPerm[apiEndpoint.href];
} else internalPerm[apiEndpoint.href] = newVal; } else internalPerm[apiEndpoint.href] = newVal;
......
...@@ -35,7 +35,7 @@ export default class newJob extends EditView { ...@@ -35,7 +35,7 @@ export default class newJob extends EditView {
label: 'Company Logo', label: 'Company Logo',
accept: 'image/png, image/jpeg', accept: 'image/png, image/jpeg',
})), })),
...this.form.renderSchema(['time_end', 'title_en']), ...this.form.renderSchema(['show_website', 'time_end', 'title_en']),
this.form._renderField('description_en', { this.form._renderField('description_en', {
multiLine: true, multiLine: true,
rows: 5, rows: 5,
......
...@@ -34,6 +34,16 @@ export default class viewJob extends ItemView { ...@@ -34,6 +34,16 @@ export default class viewJob extends ItemView {
title: 'Offer Ends', title: 'Offer Ends',
style: stdMargin, style: stdMargin,
}, `${dateFormatter(this.data.time_end)}`) : '', }, `${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.viewcontainer', [
m('div.viewcontainercolumn', m(Card, { 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