Revize c3b99cdb
Přidáno uživatelem Lukáš Vlček před téměř 3 roky(ů)
webapp/pages/documents/admin/index.tsx | ||
---|---|---|
436 | 436 |
|
437 | 437 |
return redirecting || role !== 'ADMINISTRATOR' ? null : ( |
438 | 438 |
<MainLayout> |
439 |
<Typography.Title level={2}> |
|
440 |
<FontAwesomeIcon icon={faFileLines} /> Dokumenty |
|
441 |
</Typography.Title> |
|
442 |
<Stack style={{ width: '30%' }} direction="horizontal" key={annotationCount}> |
|
443 |
<span style={{ width: '70%' }}>Výchozí počet anotací:</span> |
|
444 |
<Input |
|
445 |
defaultValue={annotationCount} |
|
446 |
onBlur={changeDefaultAnotationCount} |
|
447 |
/> |
|
448 |
</Stack> |
|
439 |
<div |
|
440 |
style={{ |
|
441 |
display: 'flex', |
|
442 |
flexDirection: 'row', |
|
443 |
justifyContent: 'space-between', |
|
444 |
flexWrap: 'wrap', |
|
445 |
}} |
|
446 |
> |
|
447 |
<Typography.Title level={2}> |
|
448 |
<FontAwesomeIcon icon={faFileLines} /> Dokumenty |
|
449 |
</Typography.Title> |
|
450 |
|
|
451 |
<Stack |
|
452 |
style={{ |
|
453 |
width: '400px', |
|
454 |
border: '1px solid lightgray', |
|
455 |
borderRadius: 3, |
|
456 |
padding: 10, |
|
457 |
marginBottom: 30, |
|
458 |
display: 'flex', |
|
459 |
flexDirection: 'row', |
|
460 |
justifyContent: 'space-between', |
|
461 |
}} |
|
462 |
direction="horizontal" |
|
463 |
key={annotationCount} |
|
464 |
> |
|
465 |
<span>Výchozí požadovaný počet anotací:</span> |
|
466 |
<Input |
|
467 |
style={{ width: '100px' }} |
|
468 |
defaultValue={annotationCount} |
|
469 |
onBlur={changeDefaultAnotationCount} |
|
470 |
/> |
|
471 |
</Stack> |
|
472 |
</div> |
|
473 |
|
|
474 |
<div |
|
475 |
style={{ |
|
476 |
padding: '10px', |
|
477 |
display: 'flex', |
|
478 |
flexDirection: 'row', |
|
479 |
justifyContent: 'flex-start', |
|
480 |
gap: '20px', |
|
481 |
}} |
|
482 |
> |
|
483 |
<Button type={'primary'} onClick={showAddModal}> |
|
484 |
Nahrát dokument |
|
485 |
</Button> |
|
486 |
|
|
487 |
<div> |
|
488 |
<Button |
|
489 |
onClick={showAssignModal} |
|
490 |
disabled={!(selectedDocs?.length > 0)} |
|
491 |
> |
|
492 |
Přiřadit vybrané dokumenty uživatelům |
|
493 |
</Button> |
|
494 |
<Button |
|
495 |
onClick={showRequiredAnnotationsCountModal} |
|
496 |
disabled={!(selectedDocs?.length > 0)} |
|
497 |
> |
|
498 |
Nastavit požadovaný počet anotací vybraným dokumentům |
|
499 |
</Button> |
|
500 |
</div> |
|
501 |
</div> |
|
449 | 502 |
|
450 |
<Button type={'primary'} onClick={showAddModal}> |
|
451 |
Nahrát dokument |
|
452 |
</Button> |
|
453 |
<Button onClick={showAssignModal}>Přiřadit dokumenty</Button> |
|
454 |
<Button onClick={showRequiredAnnotationsCountModal}> |
|
455 |
Nastavit požadovaný počet anotací |
|
456 |
</Button> |
|
457 | 503 |
{visibleAdd && <AddDocumentModal onCancel={hideModal} />} |
458 | 504 |
{visibleAssign && ( |
459 | 505 |
<AssignDocumentModal documentsIds={selectedDocs} onCancel={hideModal} /> |
Také k dispozici: Unified diff
Admin documents table buttons changes, default annotations count redesigned