<commit_before>{% extends 'timepiece/time-sheet/base.html' %}
{% load timepiece_tags %}

{% block title %}Projection Summary{% endblock %}

{% block content %}
<h2>Projection Summary</h2>

{% date_filters "months" %}

<form method="get" action="" id="date-filter" accept-charset="utf-8">
    <ul id='ledger-date-fieldlist'>
        {{ form.as_ul }}
        <li>
            <input type='submit' name='submit' value='Update' id='id_date_form_submit_btn'/>
        </li>
        <li>
            <input type='button' name='clear' value='Clear' id='id_date_form_clear_btn'/>
        </li>
    </ul>
</form>

<table id='projection'>
    {% for contract in contracts %}
        <tr>
            <th colspan="{{ weeks.count }}" class='contract'>{{ contract }} (Due {{ contract.end_date|date:"n/j" }}) - Remaining: {{ contract.hours_remaining }}, Allocated: {{ contract.hours_allocated }}</th>
        </tr>
        <tr>
            <th>&nbsp;</th>
            <th class='assigned'>Assigned</th>
            <th class='worked'>Worked</th>
            {% for week in weeks %}
                <th>{{ week|date:"n/j" }}</th>
            {% endfor %}
            <th>Allocated</th>
        </tr>
        {% for assignment in contract.assignments.select_related %}
        <tr>
            <td>{{ assignment.user }}</td>
            <td class='assigned'>{{ assignment.num_hours }}{% if assignment.min_hours_per_week %}({{ assignment.min_hours_per_week }}){% endif %}</td>
            <td class='worked'>{{ assignment.hours_worked }}</td>
            {% for week in weeks %}
              <td>{% hours_for_assignment assignment week %}</td>
            {% endfor %}
            <td class='allocated'>{% total_allocated assignment %}</td>
        </tr>
        {% endfor %}
    {% endfor %}
    <tr>
        <th>&nbsp;</th>
        <th colspan="{{ weeks.count }}">&nbsp;</th>
    </tr>
    <tr>
        <th>&nbsp;</th>
          <th>&nbsp;</th>
          <th>&nbsp;</th>
        {% for week in weeks %}
            <th>{{ week|date:"m/j" }}</th>
        {% endfor %}
    <tr/>
    {% for user in users %}
        <tr>
            <th>{{ user }}</th>
            <th>&nbsp;</th>
            <th>&nbsp;</th>
            {% for week in weeks %}
              <td>{% hours_for_week user week %}</td>
            {% endfor %}
         </tr>
    {% endfor %}
</table>

{% endblock %}
<commit_msg>refs #215 - Updated to use bootstrap scaffolding<commit_after>{% extends 'timepiece/time-sheet/base.html' %}
{% load timepiece_tags %}

{% block title %}Projection Summary{% endblock %}

{% block content %}
<div class="row">
    <div class="span12">
        <h2>Projection Summary</h2>
    </div>
</div>

<div class="row">
    <div class="span12">
        {% date_filters "months" %}
    </div>
</div>

<div class="row">
    <div class="span4">
        <form method="get" action="" id="date-filter" accept-charset="utf-8">
            <ul id='ledger-date-fieldlist'>
                {{ form.as_ul }}
                <li>
                    <input type='submit' name='submit' value='Update' id='id_date_form_submit_btn'/>
                </li>
                <li>
                    <input type='button' name='clear' value='Clear' id='id_date_form_clear_btn'/>
                </li>
            </ul>
        </form>
    </div>
</div>

<div class="row">
    <div class="span12">
        <table id='projection'>
            {% for contract in contracts %}
                <tr>
                    <th colspan="{{ weeks.count }}" class='contract'>{{ contract }} (Due {{ contract.end_date|date:"n/j" }}) - Remaining: {{ contract.hours_remaining }}, Allocated: {{ contract.hours_allocated }}</th>
                </tr>
                <tr>
                    <th>&nbsp;</th>
                    <th class='assigned'>Assigned</th>
                    <th class='worked'>Worked</th>
                    {% for week in weeks %}
                        <th>{{ week|date:"n/j" }}</th>
                    {% endfor %}
                    <th>Allocated</th>
                </tr>
                {% for assignment in contract.assignments.select_related %}
                    <tr>
                        <td>{{ assignment.user }}</td>
                        <td class='assigned'>{{ assignment.num_hours }}{% if assignment.min_hours_per_week %}({{ assignment.min_hours_per_week }}){% endif %}</td>
                        <td class='worked'>{{ assignment.hours_worked }}</td>
                        {% for week in weeks %}
                            <td>{% hours_for_assignment assignment week %}</td>
                        {% endfor %}
                        <td class='allocated'>{% total_allocated assignment %}</td>
                    </tr>
                {% endfor %}
            {% endfor %}
            <tr>
                <th>&nbsp;</th>
                <th colspan="{{ weeks.count }}">&nbsp;</th>
            </tr>
            <tr>
                <th>&nbsp;</th>
                    <th>&nbsp;</th>
                    <th>&nbsp;</th>
                    {% for week in weeks %}
                        <th>{{ week|date:"m/j" }}</th>
                    {% endfor %}
            <tr/>
            {% for user in users %}
                <tr>
                    <th>{{ user }}</th>
                    <th>&nbsp;</th>
                    <th>&nbsp;</th>
                    {% for week in weeks %}
                        <td>{% hours_for_week user week %}</td>
                    {% endfor %}
                 </tr>
            {% endfor %}
        </table>
    </div>
</div>
{% endblock %}

{'fraction_non_alphanumeric': 0.17846264110374485, 'fraction_numerical': 0.002866869736606343, 'mean_word_length': 1.5235081374321882, 'pattern_counts': {'":': 0, '<': 155, '<?xml version=': 0, '>': 155, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3403291', 'n_tokens_mistral': 1783, 'n_tokens_neox': 1603, 'n_words': 346}