I am integrating couchcms into a site and got a table with different tr class on each row and know how to add couchcms into the table but unsure how to make each row have a different tr class when adding a new row from the cms side, below is the non couchcms code
Hopefully that makes sense
- Code: Select all
<table class="table">
<thead>
<tr>
<th>When</th>
<th>Location</th>
<th>Time</th>
</tr>
</thead>
<tbody>
<tr class="success">
<td>1st Monday of every month</td>
<td>All Age Café(run by Holy Cross)</td>
<td>At 10.00 am</td>
</tr>
<tr class="error">
<td>3rd Monday of every month</td>
<td>Fun, Food & Friendship(run by Heeley City Farm)</td>
<td>At 10.00 am</td>
</tr>
<tr class="warning">
<td>Tuesday</td>
<td>Street Dance for 5 to 14 year olds</td>
<td>At 5.00 pm</td>
</tr>
<tr class="info">
<td>Tuesday</td>
<td>Self Defence for Girls</td>
<td>At 6.00 pm</td>
</tr>
<tr class="success">
<td>Wednesday</td>
<td>Indoor Bowling</td>
<td>At 1.00 pm</td>
</tr>
<tr class="error">
<td>Thursday</td>
<td>Chairobics</td>
<td>At 9.30 am</td>
</tr>
<tr class="warning">
<td>Thursday</td>
<td>Over-60’s Dance</td>
<td>At 1.00 pm</td>
</tr>
<tr class="info">
<td>Friday</td>
<td>Local History Group</td>
<td>At 1.45 pm</td>
</tr>
</tbody>
</table>
Hopefully that makes sense