Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

week days in table format in html

{% set days = ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"] %}


<div class="container">
    <table class="table table-striped">
        <thead>
        <tr>
            {% for day in days %}
                <th>{{ day }}</th>
            {% endfor %}
        </tr>
        </thead>
        <tbody>
            <tr id="event_start">
                {% for day in days %}
                    <td name="{{ day }}">
                    </td>
                {% endfor %}
            </tr>
            <tr id="event_end">
                {% for day in days %}
                    <td name="{{ day }}">
                    </td>
                {% endfor %}
            </tr>
        </tbody>
    </table>
</div>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #week #days #table #format #html
ADD COMMENT
Topic
Name
3+8 =