AdminWorkspacePage.jsx 8.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. import React from 'react'
  2. import Sidebar from './Sidebar.jsx'
  3. import {
  4. Delimiter,
  5. PageWrapper,
  6. PageTitle,
  7. PageContent
  8. } from 'tracim_frontend_lib'
  9. import { translate } from 'react-i18next'
  10. class AdminWorkspacePage extends React.Component {
  11. render () {
  12. return (
  13. <div className='sidebarpagecontainer'>
  14. <Sidebar />
  15. <PageWrapper customClass='adminWorkspacePage'>
  16. <PageTitle
  17. parentClass={'adminWorkspacePage'}
  18. title={'Workspace management'}
  19. />
  20. <PageContent parentClass='adminWorkspacePage'>
  21. <div className='adminWorkspacePage__description'>
  22. This page informs all workspaces of the instances
  23. </div>
  24. { /*
  25. Alexi Cauvin 08/08/2018 => desactivate create workspace button due to redundancy
  26. <div className='adminWorkspacePage__createworkspace'>
  27. <button className='adminWorkspacePage__createworkspace__btncreate btn btn-primary primaryColorBg primaryColorBorder primaryColorBorderDarkenHover'>
  28. {this.props.t('Create a workspace')}
  29. </button>
  30. </div>
  31. */ }
  32. <Delimiter customClass={'adminWorkspacePage__delimiter'} />
  33. <div className='adminWorkspacePage__workspaceTable'>
  34. <table className='table'>
  35. <thead>
  36. <tr>
  37. <th scope='col'>ID</th>
  38. <th scope='col'>Workspace</th>
  39. <th scope='col'>Description</th>
  40. <th scope='col'>Member's number</th>
  41. { /*
  42. <th scope='col'>Calendar</th>
  43. */ }
  44. <th scope='col'>Remove Workspace</th>
  45. </tr>
  46. </thead>
  47. <tbody>
  48. <tr>
  49. <th>1</th>
  50. <td>Design v_2</td>
  51. <td>Workspace about tracim v2 design</td>
  52. { /*
  53. <td className='d-flex align-items-center flex-wrap'>
  54. <div className='adminWorkspacePage__workspaceTable__calendaricon mr-2'>
  55. <i className='fa fa-fw fa-check-square-o' />
  56. </div>
  57. Enable
  58. </td>
  59. */ }
  60. <td>8 members</td>
  61. <td>
  62. <div className='adminWorkspacePage__workspaceTable__deleteworkspace primaryColorFont primaryColorFontDarkenHover'>
  63. <div className='adminWorkspacePage__workspaceTable__deleteworkspace__removalicon mr-3'>
  64. <i className='fa fa-fw fa-trash-o' />
  65. </div>
  66. Delete
  67. </div>
  68. </td>
  69. </tr>
  70. <tr>
  71. <th>2</th>
  72. <td>New features</td>
  73. <td>Add a new features : Annotated files</td>
  74. { /*
  75. <td className='d-flex align-items-center flex-wrap'>
  76. <div className='adminWorkspacePage__workspaceTable__calendaricon mr-2'>
  77. <i className='fa fa-fw fa-square-o' />
  78. </div>
  79. Disable
  80. </td>
  81. */ }
  82. <td>5 members</td>
  83. <td>
  84. <div className='adminWorkspacePage__workspaceTable__deleteworkspace primaryColorFont primaryColorFontDarkenHover'>
  85. <div className='adminWorkspacePage__workspaceTable__deleteworkspace__removalicon mr-3'>
  86. <i className='fa fa-fw fa-trash-o' />
  87. </div>
  88. Delete
  89. </div>
  90. </td>
  91. </tr>
  92. <tr>
  93. <th>3</th>
  94. <td>Fix Backend</td>
  95. <td>workspace referring to multiple issues on the backend </td>
  96. { /*
  97. <td className='d-flex align-items-center flex-wrap'>
  98. <div className='adminWorkspacePage__workspaceTable__calendaricon mr-2'>
  99. <i className='fa fa-fw fa-check-square-o' />
  100. </div>
  101. Enable
  102. </td>
  103. */ }
  104. <td>3 members</td>
  105. <td>
  106. <div className='adminWorkspacePage__workspaceTable__deleteworkspace primaryColorFont primaryColorFontDarkenHover'>
  107. <div className='adminWorkspacePage__workspaceTable__deleteworkspace__removalicon mr-3'>
  108. <i className='fa fa-fw fa-trash-o' />
  109. </div>
  110. Delete
  111. </div>
  112. </td>
  113. </tr>
  114. <tr>
  115. <th>4</th>
  116. <td>Design v_2</td>
  117. <td>Workspace about tracim v2 design</td>
  118. { /*
  119. <td className='d-flex align-items-center flex-wrap'>
  120. <div className='adminWorkspacePage__workspaceTable__calendaricon mr-2'>
  121. <i className='fa fa-fw fa-square-o' />
  122. </div>
  123. Disable
  124. </td>
  125. */ }
  126. <td>8 members</td>
  127. <td>
  128. <div className='adminWorkspacePage__workspaceTable__deleteworkspace primaryColorFont primaryColorFontDarkenHover'>
  129. <div className='adminWorkspacePage__workspaceTable__deleteworkspace__removalicon mr-3'>
  130. <i className='fa fa-fw fa-trash-o' />
  131. </div>
  132. Delete
  133. </div>
  134. </td>
  135. </tr>
  136. <tr>
  137. <th>5</th>
  138. <td>New features</td>
  139. <td>Add a new features : Annotated files</td>
  140. { /*
  141. <td className='d-flex align-items-center flex-wrap'>
  142. <div className='adminWorkspacePage__workspaceTable__calendaricon mr-2'>
  143. <i className='fa fa-fw fa-square-o' />
  144. </div>
  145. Disable
  146. </td>
  147. */ }
  148. <td>5 members</td>
  149. <td>
  150. <div className='adminWorkspacePage__workspaceTable__deleteworkspace primaryColorFont primaryColorFontDarkenHover'>
  151. <div className='adminWorkspacePage__workspaceTable__deleteworkspace__removalicon mr-3'>
  152. <i className='fa fa-fw fa-trash-o' />
  153. </div>
  154. Delete
  155. </div>
  156. </td>
  157. </tr>
  158. <tr>
  159. <th>6</th>
  160. <td>Fix Backend</td>
  161. <td>workspace referring to multiple issues on the backend </td>
  162. { /*
  163. <td className='d-flex align-items-center flex-wrap'>
  164. <div className='adminWorkspacePage__workspaceTable__calendaricon mr-2'>
  165. <i className='fa fa-fw fa-check-square-o' />
  166. </div>
  167. Enable
  168. </td>
  169. */ }
  170. <td>3 members</td>
  171. <td>
  172. <div className='adminWorkspacePage__workspaceTable__deleteworkspace primaryColorFont primaryColorFontDarkenHover'>
  173. <div className='adminWorkspacePage__workspaceTable__deleteworkspace__removalicon mr-3'>
  174. <i className='fa fa-fw fa-trash-o' />
  175. </div>
  176. Delete
  177. </div>
  178. </td>
  179. </tr>
  180. </tbody>
  181. </table>
  182. </div>
  183. </PageContent>
  184. </PageWrapper>
  185. </div>
  186. )
  187. }
  188. }
  189. export default translate()(AdminWorkspacePage)