{config_load file="lang" section='support'}

<div id="result_datas" style="display:none">
    <h1>{#support_create_result#}</h1>
    <p id="all_is_ok" style="display:none;" class="success">{#result_support_create_ok#}</p>
    <p id="err_hosting_id" style="display:none;" class="error">{#error_hosting_id#}</p>
    <p id="err_req_subject_missing" style="display:none;" class="error">{#error_subject_missing#}</p>
    <p id="err_req_subject" style="display:none;" class="error">{#error_subject_format#}</p>
    <p id="err_req_message_missing" style="display:none;" class="error">{#error_message_missing#}</p>
    <p id="err_req_message" style="display:none;" class="error">{#error_message_format#}</p>
</div>
<div id="form_new_ticket_container">
    <h1>{#support_create#}</h1>
    <p>{#support_create_intro#}</p>
    <p>{#support_create_helpmsg#}</p>
    <form id="form_new_ticket" name="form_new_ticket" action="">
        <table>
            <tr>
                <td id="form_hosting" title="{#ticket_hosting_title#}">{#ticket_hosting_legend#} :</td>
                <td>
                    <select name="hosting_id" id="hosting_id">
                        <option value="0" selected="selected">{#no_hosting_associated#}</option>
                        {foreach item=hosting from=$hostings}
                        <option value="{$hosting->id}">{$hosting->base_name}</option>
                        {/foreach}
                    </select>
                </td>
            </tr>
            <tr>
                <td id="form_subject" title="{#ticket_subject_title#}">{#ticket_subject_legend#} :</td>
                <td><input type="text" name="req_subject" value="" id="req_subject" /></td>
            </tr>
            <tr>
                <td id="form_msg" title="{#ticket_msg_title#}" style="vertical-align:top;">{#ticket_msg_legend#} :</td>
                <td><textarea class="textarea" name="req_message" id="req_message"></textarea></td>
            </tr>
            <tr>
                <td></td>
                <td><input type="button" value="{#button_new_legend#}" onclick="validateForm('form_new_ticket');" /></td>
            </tr>
        </table>
    </form>
</div>
