|
|
|
@ -98,7 +98,7 @@ class Item extends Component {
@@ -98,7 +98,7 @@ class Item extends Component {
|
|
|
|
|
return ( |
|
|
|
|
<div style={{ pageBreakInside: 'avoid', paddingTop: '20px'}}> |
|
|
|
|
|
|
|
|
|
<table style={{width: '100%', marginTop: '20px', borderBottom: '1px solid black'}}> |
|
|
|
|
<table style={{width: '100%', marginTop: '20px', borderBottom: comments && task.comments.filter(i => i.comment_type == 'text').length > 0 ? '0px solid black' : '1px solid black'}}> |
|
|
|
|
{!hide_user ? <tr style={{pageBreakInside: 'avoid', pageBreakAfter: 'auto'}} > |
|
|
|
|
<td colSpan={4} style={{...styles.td, fontSize: '19px'}}> |
|
|
|
|
<strong><span style={{textDecoration: 'underline',}}>{user_done.name}</span></strong> <i>{factory}</i> |
|
|
|
@ -140,11 +140,15 @@ class Item extends Component {
@@ -140,11 +140,15 @@ class Item extends Component {
|
|
|
|
|
<tr><td colSpan={3} ></td><td></td></tr> |
|
|
|
|
</table> |
|
|
|
|
{comments && task.comments.filter(i => i.comment_type == 'text').length > 0 && <p style={{fontSize: '14px', pageBreakInside: 'avoid', pageBreakAfter: 'auto', fontWeight: 'bold', color: 'black'}}>Коментарі:</p>} |
|
|
|
|
{comments && task.comments.filter(i => i.comment_type == 'text').length > 0 && <table style={{width: '100%', marginTop: '10px', color: 'black'}}> |
|
|
|
|
{task.comments.filter(i => i.comment_type == 'text').map((item) => <tr style={{pageBreakInside: 'avoid', pageBreakAfter: 'auto', fontSize: '14px', color: 'black'}}> |
|
|
|
|
{comments && task.comments.filter(i => i.comment_type == 'text').length > 0 && <table style={{width: '100%', marginTop: '10px', color: 'black', borderBottom: '1px solid black'}}> |
|
|
|
|
{task.comments.filter(i => i.comment_type == 'text').map((item) => <><tr style={{pageBreakInside: 'avoid', pageBreakAfter: 'auto', fontSize: '14px', color: 'black'}}> |
|
|
|
|
<td>{this.getUser(item.user_created)}:</td> |
|
|
|
|
<td>{item.description}</td> |
|
|
|
|
</tr>)} |
|
|
|
|
</tr> |
|
|
|
|
<tr> |
|
|
|
|
<td colSpan="2"><br/></td> |
|
|
|
|
</tr> |
|
|
|
|
</>)} |
|
|
|
|
</table>} |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|