Commit c662359e authored by Matija Obreza's avatar Matija Obreza

Inventory Group: UI cleanup

parent 1e3d640e
......@@ -216,7 +216,10 @@ class InventoryDetailsPage extends React.Component<IDetailsPageProps> {
<TabPanel value={ selectedTab } index="info">
<Card>
<CardHeader title={ inventoryGroup ? inventoryGroup.groupName : t('inventorygroup.public.p.details.title') } />
<CardHeader
title={ inventoryGroup ? inventoryGroup.groupName : t('inventorygroup.public.p.details.members') }
subheader={ inventoryGroup ? <><PrettyDate value={ inventoryGroup.createdDate } /></> : null }
/>
<CardContent>
{ inventoryGroup.note && <p>{ inventoryGroup.note }</p> }
......@@ -248,10 +251,8 @@ class InventoryDetailsPage extends React.Component<IDetailsPageProps> {
</Properties>
</CardContent>
<CardActions>
<Button variant="contained" color="primary">Test</Button>
<Button onClick={ this.openEditInvGroupDialog } variant="contained" color="secondary">Edit</Button>
<Button onClick={ this.handleRemove } variant="outlined" color="secondary">Remove</Button>
<Button variant="text" color="secondary">Do something</Button>
<Button onClick={ this.handleRemove } variant="text" color="secondary">Remove</Button>
</CardActions>
</Card>
</TabPanel>
......
......@@ -64,7 +64,7 @@ class EditGroupDialog extends React.Component<IEditGroupDialogProps, any> {
<Dialog
open={ isOpen }
onClose={ onClose }
maxWidth="sm"
maxWidth="md"
fullWidth
disableEnforceFocus
>
......
......@@ -43,6 +43,7 @@ class EditGroupForm extends React.Component<IEditGroupForm, any> {
name="note"
type="text"
component={ TextField }
multiline
label={ t('client:model._.note') }
/>
</Grid>
......
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