RSS Git Download  Clone
Raw Blame History
    [% META title="Initial Screen" %]
<!-- BEGIN screen/load_data.tt -->

    [% # PROCESS dumper.tt dump = screen_categories %]

    [% IF dfv_errors %]
        <p class="error">[% c.config('msg').dfv_errors %]</p>
    [% END %]

    <h2>Screen record:</h2>
    
    <div class="indent">
    [% PROCESS request/summary_display.tt # expects 'data' object %]
    </div>
    
    [% initial_screen_dfv_js %]

    [% INCLUDE site/previous_cases.tt # 'PROCESS' clobbers 'data'  %]

    <span class="spacer">&nbsp;</span>

    <form method="post" action="[% app_url %]/screen/do_initial_screen/[% data.id %]"
            [% initial_screen_onsubmit %] name="_update" id="_update">

        <table class="indent">
            <tr>
                <td class="label">Screen category:</td>
                <td class="content">
                    <select name="screen_category">
                        <option value="">&nbsp;</option>
                        [% FOREACH entry IN screen_categories;
                            NEXT UNLESS entry.is_active.match('yes') %]
                            <option value="[% entry.id %]">
                               [% entry.name %]
                            </option>
                        [% END %]
                    </select>
                    [% error_screen_category %]
                </td>
            </tr>
            <tr>
                <td class="label">Reason for request:</td>
                <td class="content">
                    <select name="option_id">
                        <option value="">&nbsp;</option>
                        [% FOREACH group IN audit_categories %]
                        <optgroup label="[% group.description | upper %]">
                            [% FOREACH item IN request_audit %]
                            [% NEXT UNLESS
                                item.category.description.match(group.description) %]
                            <option value="[% item.id %]">
                                [% item.description %]
                            </option>
                            [% END %]
                        </optgroup>
                        [% END %]
                    </select>
                    [% error_option_id %]
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center" class="borderless">
                    [% site.html.submit %] [% site.html.reset %]
                </td>
            </tr>
        </table>
    </form>
<!-- BEGIN screen/load_data.tt -->