Content
Updated by Catalin Ene almost 4 years ago
Add in wysiwyg editor basic arithmetic calculations for rows/columns when using tables in the "description" of a work package.
Somehow like in Excel.
Ex1
<figure class="table"><table><tbody><tr><td>Task name</td><td>01-05 DEC</td><td>08-10 DEC</td><td>04-06 JAN</td><td style="background-color:hsl(180, 75%, 60%);"><strong>Total SUM</strong></td></tr><tr><td>task1</td><td>24</td><td>12</td><td>8</td><td style="background-color:hsl(180, 75%, 60%);">16</td></tr><tr><td>task2</td><td>24</td><td>12</td><td>4</td><td style="background-color:hsl(180, 75%, 60%);">24</td></tr></tbody></table></figure>
Ex2
<figure class="table"><table><tbody><tr><td>Task name</td><td>Number of people</td><td>Hours per day</td><td style="background-color:hsl(180, 75%, 60%);"><strong>Total (multiply)</strong></td></tr><tr><td>task1</td><td>2</td><td>8</td><td style="background-color:hsl(180, 75%, 60%);">16</td></tr><tr><td>task2</td><td>3</td><td>8</td><td style="background-color:hsl(180, 75%, 60%);">24</td></tr></tbody></table></figure>
Somehow like in Excel.
Ex1
<figure class="table"><table><tbody><tr><td>Task name</td><td>01-05 DEC</td><td>08-10 DEC</td><td>04-06 JAN</td><td style="background-color:hsl(180, 75%, 60%);"><strong>Total SUM</strong></td></tr><tr><td>task1</td><td>24</td><td>12</td><td>8</td><td style="background-color:hsl(180, 75%, 60%);">16</td></tr><tr><td>task2</td><td>24</td><td>12</td><td>4</td><td style="background-color:hsl(180, 75%, 60%);">24</td></tr></tbody></table></figure>
Ex2
<figure class="table"><table><tbody><tr><td>Task name</td><td>Number of people</td><td>Hours per day</td><td style="background-color:hsl(180, 75%, 60%);"><strong>Total (multiply)</strong></td></tr><tr><td>task1</td><td>2</td><td>8</td><td style="background-color:hsl(180, 75%, 60%);">16</td></tr><tr><td>task2</td><td>3</td><td>8</td><td style="background-color:hsl(180, 75%, 60%);">24</td></tr></tbody></table></figure>