File tree Expand file tree Collapse file tree
Admin/CreateUser/BulkCreation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ const BulkCreation = observer((props: Props) => {
2727 { state === 'paste' && (
2828 < FromXlsxClipboard
2929 importLabel = "Weiter zur Benutzererstellung"
30+ toAssign = { [ 'E-Mail' , 'Passwort' ] }
3031 matchUsers
3132 withoutKnownUsers
3233 includeHeader
Original file line number Diff line number Diff line change @@ -6,11 +6,13 @@ import { useStore } from '@tdev-hooks/useStore';
66import Button from '../Button' ;
77import Table from '../Table' ;
88import { mdiCheckboxBlankOutline , mdiCheckboxMarked } from '@mdi/js' ;
9+ import Badge from '../Badge' ;
910
1011interface Props {
1112 matchUsers ?: boolean ;
1213 withoutKnownUsers ?: boolean ;
1314 onDone ?: ( table ?: string [ ] [ ] , hasHeader ?: boolean ) => void ;
15+ toAssign ?: string [ ] ;
1416 importLabel ?: string ;
1517 cancelLabel ?: string ;
1618 cancelIcon ?: string ;
@@ -64,9 +66,18 @@ const FromXlsxClipboard = (props: Props) => {
6466 < h3 > Excel-Zellen einfügen</ h3 >
6567 </ div >
6668 < div className = "card__body" >
67- < p >
69+ < div >
6870 Kopierte Excel-Zellen hier per < kbd > Strg</ kbd > + < kbd > V</ kbd > einfügen.
69- </ p >
71+ </ div >
72+ { props . toAssign && (
73+ < div className = { clsx ( styles . rowsToAssign ) } >
74+ { props . toAssign . map ( ( col , idx ) => (
75+ < Badge key = { idx } type = "info" >
76+ { col }
77+ </ Badge >
78+ ) ) }
79+ </ div >
80+ ) }
7081 < div className = { clsx ( styles . main ) } >
7182 < div className = { clsx ( styles . input ) } >
7283 < TextAreaInput
Original file line number Diff line number Diff line change 11.xlsxImport {
22 margin-bottom : var (--ifm-paragraph-margin-bottom );
3+ .rowsToAssign {
4+ display : flex ;
5+ gap : 0.5em ;
6+ margin-bottom : 1em ;
7+ }
38 .main {
49 display : flex ;
510 flex-wrap : wrap ;
You can’t perform that action at this time.
0 commit comments