Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RESCOI-453:Admin: Upload attachments to disclosures
- Loading branch information
Showing
15 changed files
with
444 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
client/scripts/components/Admin/DetailView/UploadAttachmentsPanel/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* | ||
The Conflict of Interest (COI) module of Kuali Research | ||
Copyright © 2015 Kuali, Inc. | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Affero General Public License as | ||
published by the Free Software Foundation, either version 3 of the | ||
License, or (at your option) any later version. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Affero General Public License for more details. | ||
You should have received a copy of the GNU Affero General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/> | ||
*/ | ||
|
||
import styles from './style'; | ||
import React from 'react'; | ||
import {AdminActions} from '../../../../actions/AdminActions'; | ||
import {FileUpload} from '../../../FileUpload'; | ||
import classNames from 'classnames'; | ||
|
||
export default function UploadAttachmentsPanel(props) { | ||
return ( | ||
<div className={classNames(styles.container, props.className)}> | ||
<div className={styles.header}> | ||
<span className={styles.close} onClick={AdminActions.hideUploadAttachmentsPanel}> | ||
<i className="fa fa-times" style={{fontSize: 23}}></i> CLOSE | ||
</span> | ||
<span className={styles.title}>UPLOAD ATTACHMENTS</span> | ||
</div> | ||
<FileUpload | ||
fileType='Admin' | ||
readonly={props.readonly} | ||
onDrop={AdminActions.addAdminAttachment} | ||
delete={AdminActions.deleteAdminAttachment} | ||
files={props.files} | ||
multiple={true} | ||
className={`${styles.override} ${styles.fileUploadStyles}`} | ||
> | ||
<div>Drag and drop or upload your management plan</div> | ||
<div style={{fontSize: 10, marginTop: 2}}>Acceptable Formats: .pdf, .png, .doc, .jpeg</div> | ||
</FileUpload> | ||
</div> | ||
); | ||
} |
97 changes: 97 additions & 0 deletions
97
client/scripts/components/Admin/DetailView/UploadAttachmentsPanel/style.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
/* | ||
The Conflict of Interest (COI) module of Kuali Research | ||
Copyright © 2015 Kuali, Inc. | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Affero General Public License as | ||
published by the Free Software Foundation, either version 3 of the | ||
License, or (at your option) any later version. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Affero General Public License for more details. | ||
You should have received a copy of the GNU Affero General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/> | ||
*/ | ||
|
||
.container { | ||
padding: 25px 30px; | ||
background-color: white; | ||
height: 100%; | ||
box-shadow: 0 0 10px 0 #AAA; | ||
} | ||
|
||
.close { | ||
float: right; | ||
font-weight: bold; | ||
cursor: pointer; | ||
margin-bottom: 8px; | ||
color: #0095A0; | ||
font-size: 20px; | ||
} | ||
|
||
:global(.color-blind) .close { | ||
color: black; | ||
} | ||
|
||
.download { | ||
float: right; | ||
border: 0; | ||
background-color: #333; | ||
color: white; | ||
padding: 5px 10px; | ||
} | ||
|
||
.dragAndDrop { | ||
margin: 25px 0; | ||
border: 3px dashed #888; | ||
padding: 10px 15px; | ||
border-radius: 4px; | ||
} | ||
|
||
.complete { | ||
padding-bottom: 15px; | ||
font-size: 14px; | ||
vertical-align: middle; | ||
} | ||
|
||
.additionalReviewerLabel { | ||
border-top: 1px solid #BBB; | ||
padding-top: 25px; | ||
} | ||
|
||
.header { | ||
border-bottom: 1px solid #777; | ||
margin-bottom: 20px; | ||
padding-bottom: 10px; | ||
} | ||
|
||
.searchLabel { | ||
margin: 15px 0 5px 0; | ||
font-size: 12px; | ||
color: #666; | ||
} | ||
|
||
.searchBox { | ||
width: 100%; | ||
border: 1px solid #999; | ||
padding: 10px 15px; | ||
} | ||
|
||
.title { | ||
font-size: 22px; | ||
font-weight: 300; | ||
} | ||
|
||
.subLabel { | ||
font-size: 15px; | ||
width: 50%; | ||
border-bottom: 1px solid #777; | ||
padding-bottom: 4px; | ||
} | ||
|
||
.override.fileUploadStyles { | ||
font-size: 12px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.