<div class="form_wrapper">
    <div class="buttons">
        <a href="/admin/delete_news/{$news->get_n_id()}" class="addbutton delete-big">Hír törlése</a>
    </div>
    <form method="post">
        <input type="hidden" name="action" value="news_update">
        <input type="hidden" name="n_id" value="{$news->get_n_id()}">

        <div>
            <label for="n_title">Cím:</label>
            <div><input type="text" name="n_title" id="n_title" value="{$news->get_n_title()}"></div>
        </div>
        <div>
            <label for="n_date">Dátum:</label>
            <div><input type="text" name="n_date" id="n_date" value='{$news->get_n_date()|date_format:"%Y-%m-%d %H:%M"}' required></div>
        </div>
        <div>
            <label for="n_text">Szöveg:</label>
            <div><textarea type="text" name="n_text" id="n_text">{$news->get_n_text()}</textarea></div>
        </div>
        <div>
            <div>
                <input class="button black" type="submit" value="Mentés">
            </div>
        </div>
    </form>
</div>

 <script type="text/javascript">
     CKEDITOR.replace('n_text');
 </script>
