123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201 |
- import React from 'react'
- import Sidebar from './Sidebar.jsx'
- import {
- Delimiter,
- PageWrapper,
- PageTitle,
- PageContent
- } from 'tracim_frontend_lib'
- import { translate } from 'react-i18next'
-
- class AdminWorkspacePage extends React.Component {
- render () {
- return (
- <div className='sidebarpagecontainer'>
- <Sidebar />
-
- <PageWrapper customClass='adminWorkspacePage'>
- <PageTitle
- parentClass={'adminWorkspacePage'}
- title={'Workspace management'}
- />
-
- <PageContent parentClass='adminWorkspacePage'>
-
- <div className='adminWorkspacePage__description'>
- This page informs all workspaces of the instances
- </div>
-
- { /*
- Alexi Cauvin 08/08/2018 => desactivate create workspace button due to redundancy
-
- <div className='adminWorkspacePage__createworkspace'>
- <button className='adminWorkspacePage__createworkspace__btncreate btn btn-primary primaryColorBg primaryColorBorder primaryColorBorderDarkenHover'>
- {this.props.t('Create a workspace')}
- </button>
- </div>
- */ }
-
- <Delimiter customClass={'adminWorkspacePage__delimiter'} />
-
- <div className='adminWorkspacePage__workspaceTable'>
-
- <table className='table'>
- <thead>
- <tr>
- <th scope='col'>ID</th>
- <th scope='col'>Workspace</th>
- <th scope='col'>Description</th>
- <th scope='col'>Member's number</th>
- { /*
- <th scope='col'>Calendar</th>
- */ }
- <th scope='col'>Remove Workspace</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <th>1</th>
- <td>Design v_2</td>
- <td>Workspace about tracim v2 design</td>
- { /*
- <td className='d-flex align-items-center flex-wrap'>
- <div className='adminWorkspacePage__workspaceTable__calendaricon mr-2'>
- <i className='fa fa-fw fa-check-square-o' />
- </div>
- Enable
- </td>
- */ }
- <td>8 members</td>
- <td>
- <div className='adminWorkspacePage__workspaceTable__deleteworkspace primaryColorFont primaryColorFontDarkenHover'>
- <div className='adminWorkspacePage__workspaceTable__deleteworkspace__removalicon mr-3'>
- <i className='fa fa-fw fa-trash-o' />
- </div>
- Delete
- </div>
- </td>
- </tr>
- <tr>
- <th>2</th>
- <td>New features</td>
- <td>Add a new features : Annotated files</td>
- { /*
- <td className='d-flex align-items-center flex-wrap'>
- <div className='adminWorkspacePage__workspaceTable__calendaricon mr-2'>
- <i className='fa fa-fw fa-square-o' />
- </div>
- Disable
- </td>
- */ }
- <td>5 members</td>
- <td>
- <div className='adminWorkspacePage__workspaceTable__deleteworkspace primaryColorFont primaryColorFontDarkenHover'>
- <div className='adminWorkspacePage__workspaceTable__deleteworkspace__removalicon mr-3'>
- <i className='fa fa-fw fa-trash-o' />
- </div>
- Delete
- </div>
- </td>
- </tr>
- <tr>
- <th>3</th>
- <td>Fix Backend</td>
- <td>workspace referring to multiple issues on the backend </td>
- { /*
- <td className='d-flex align-items-center flex-wrap'>
- <div className='adminWorkspacePage__workspaceTable__calendaricon mr-2'>
- <i className='fa fa-fw fa-check-square-o' />
- </div>
- Enable
- </td>
- */ }
- <td>3 members</td>
- <td>
- <div className='adminWorkspacePage__workspaceTable__deleteworkspace primaryColorFont primaryColorFontDarkenHover'>
- <div className='adminWorkspacePage__workspaceTable__deleteworkspace__removalicon mr-3'>
- <i className='fa fa-fw fa-trash-o' />
- </div>
- Delete
- </div>
- </td>
- </tr>
- <tr>
- <th>4</th>
- <td>Design v_2</td>
- <td>Workspace about tracim v2 design</td>
- { /*
- <td className='d-flex align-items-center flex-wrap'>
- <div className='adminWorkspacePage__workspaceTable__calendaricon mr-2'>
- <i className='fa fa-fw fa-square-o' />
- </div>
- Disable
- </td>
- */ }
- <td>8 members</td>
- <td>
- <div className='adminWorkspacePage__workspaceTable__deleteworkspace primaryColorFont primaryColorFontDarkenHover'>
- <div className='adminWorkspacePage__workspaceTable__deleteworkspace__removalicon mr-3'>
- <i className='fa fa-fw fa-trash-o' />
- </div>
- Delete
- </div>
- </td>
- </tr>
- <tr>
- <th>5</th>
- <td>New features</td>
- <td>Add a new features : Annotated files</td>
- { /*
- <td className='d-flex align-items-center flex-wrap'>
- <div className='adminWorkspacePage__workspaceTable__calendaricon mr-2'>
- <i className='fa fa-fw fa-square-o' />
- </div>
- Disable
- </td>
- */ }
- <td>5 members</td>
- <td>
- <div className='adminWorkspacePage__workspaceTable__deleteworkspace primaryColorFont primaryColorFontDarkenHover'>
- <div className='adminWorkspacePage__workspaceTable__deleteworkspace__removalicon mr-3'>
- <i className='fa fa-fw fa-trash-o' />
- </div>
- Delete
- </div>
- </td>
- </tr>
- <tr>
- <th>6</th>
- <td>Fix Backend</td>
- <td>workspace referring to multiple issues on the backend </td>
- { /*
- <td className='d-flex align-items-center flex-wrap'>
- <div className='adminWorkspacePage__workspaceTable__calendaricon mr-2'>
- <i className='fa fa-fw fa-check-square-o' />
- </div>
- Enable
- </td>
- */ }
- <td>3 members</td>
- <td>
- <div className='adminWorkspacePage__workspaceTable__deleteworkspace primaryColorFont primaryColorFontDarkenHover'>
- <div className='adminWorkspacePage__workspaceTable__deleteworkspace__removalicon mr-3'>
- <i className='fa fa-fw fa-trash-o' />
- </div>
- Delete
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
-
- </PageContent>
- </PageWrapper>
- </div>
- )
- }
- }
-
- export default translate()(AdminWorkspacePage)
|