<div class="handler">
    <form method="post" enctype="multipart/form-data">
        <div class="lap p5">
            Tworzenie newsa
        </div>
        <table class="table">
            <tbody>
                <tr>
                    <td width="150" class="typeName">Tytuł:</td>
                    <td><input class="form-control" type="text" name="name" value="{$data.name}" /></td>
                </tr>
            </tbody>
            <tbody class="dataLap">
                <tr>
                    <td colspan="2">Pozycjonowanie / MetaTagi</td>
                </tr>
            </tbody>
            <tbody>
                <tr>
                    <td class="typeName">Keywords:</td>
                    <td><input class="form-control" type="text" name="keywords" value="{$data.keywords}" />
                    <br /><small>Intelignetne keywords - <a href="javascript:;" onclick="$('[name=keywords]').val($('[name=name]').val().replace(/ /,','))">Utwórz automatycznie</a></small>
                    </td>
                </tr>
            </tbody>
            <tbody>
                <tr>
                    <td class="typeName">Krótki opis i Tag <strong>description</strong>:</td>
                    <td><input class="form-control" type="text" name="description" value="{$data.description}" /></td>
                </tr>
            </tbody>
            <tbody class="dataLap">
                <tr>
                    <td colspan="2">Treść</td>
                </tr>
            </tbody>

            <tbody>
                <tr>
                    <td class="tac" colspan="2"><textarea name="desc" rows="22" style="width:95%">{$data.desc}</textarea></td>
                </tr>
            </tbody>
            <tbody>
                <tr>
                    <td class="typeName">Wyświetlaj na stronie:</td>
                    <td><select class="form-control" name="status">
                        <option value="">NIE</option>
                        <option value="1"{if $data['status']==1} selected="true"{/if}>TAK</option>
                    </select></td>
                </tr>
            </tbody>
            <tfoot>
                <tr>
                    <td colspan="2"><input class="btn btn-primary" type="submit" value="Dodaj" onclick="$(this).val('Czekaj...')" /></td>
                </tr>
            </tfoot>
        </table>
    </form>
</div>