Skip to content
Snippets Groups Projects
Unverified Commit c4cbda44 authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire:
Browse files

Add file upload (VPU/Middleware/API#40)

parent 9173d880
No related branches found
No related tags found
No related merge requests found
......@@ -13,3 +13,6 @@
[submodule "vendor/person-profile"]
path = vendor/person-profile
url = git@gitlab.tugraz.at:VPU/WebComponents/PersonProfile.git
[submodule "vendor/file-upload"]
path = vendor/file-upload
url = git@gitlab.tugraz.at:VPU/WebComponents/FileUpload.git
......@@ -3089,6 +3089,11 @@
}
}
},
"material-design-icons-svg": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/material-design-icons-svg/-/material-design-icons-svg-3.0.0.tgz",
"integrity": "sha512-MbHjWXGzHLPZX9qiICq3CLp0zkxaKm1uzNnrwsmThoCf5J70Lq8zSMKJMxG6uLAZB4b6evvBXrdf3C34RoRfaA=="
},
"media-typer": {
"version": "0.3.0",
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
......@@ -5153,6 +5158,25 @@
"lit-element": "^2.2.1"
}
},
"vpu-file-upload": {
"version": "file:vendor/file-upload",
"requires": {
"i18next": "^17.0.3",
"lit-element": "^2.1.0",
"lit-html": "^1.1.1",
"material-design-icons-svg": "^3.0.0"
},
"dependencies": {
"i18next": {
"version": "17.3.1",
"resolved": "https://registry.npmjs.org/i18next/-/i18next-17.3.1.tgz",
"integrity": "sha512-4nY+yaENaoZKmpbiDXPzucVHCN3hN9Z9Zk7LyQXVOKVIpnYOJ3L/yxHJlBPtJDq3PGgjFwA0QBFm/26Z0iDT5A==",
"requires": {
"@babel/runtime": "^7.3.1"
}
}
}
},
"vpu-language-select": {
"version": "file:vendor/language-select",
"requires": {
......
import $ from 'jquery';
import {createI18nInstance} from './i18n.js';
import {css, html} from 'lit-element';
import {send as notify} from 'vpu-notification';
import VPUSignatureLitElement from "./vpu-signature-lit-element";
import Suggestions from 'suggestions';
import * as commonUtils from 'vpu-common/utils';
import * as commonStyles from 'vpu-common/styles';
import suggestionsCSSPath from 'suggestions/dist/suggestions.css';
import * as errorUtils from "vpu-common/error";
import {classMap} from 'lit-html/directives/class-map.js';
import 'vpu-file-upload';
const i18n = createI18nInstance();
......@@ -83,11 +81,8 @@ class SignaturePdfUpload extends VPUSignatureLitElement {
<div class="field">
<label class="label">${i18n.t('pdf-upload.label')}</label>
<div class="control">
<!--
<vpu-knowledge-base-organization-select lang="${this.lang}"
value="${this.organizationId}"
@change="${this.onOrgUnitCodeChanged}"></vpu-knowledge-base-organization-select>
-->
<vpu-fileupload lang="${this.lang}" url="${this.entryPointUrl}/pdf_official_signing_actions" accept="application/pdf"
text="Einreichung als PDF" button-label="PDF auswählen"></vpu-fileupload>
</div>
</div>
......
Subproject commit fb38fafc2e2b465b145e0746f997c50287accfc3
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment