<div class="form_wrapper">
    <form method="post">
        <div class="buttons">
            <a href="/admin/delete_training_template/{$template_data.tt_id}" class="addbutton delete-big">Törlés</a>
        </div>
        <input type="hidden" name="action" value="training_template_update">
        <input type="hidden" name="tt_id" value="{$template_data.tt_id}">

        <div>
            <label class="desc" id="title1" for="tt_name">Új edzés sablon neve:</label>
            <div><input type="text" name="tt_name" id="tt_name" value="{$template_data.tt_name}" required></div>
        </div>

        <div>
            <label class="desc" id="title1" for="tt_time">Edzés ideje:</label>
            <div><input type="text" name="tt_time" id="tt_time" placeholder="ÓÓ:PP" value="{$template_data.tt_time}"></div>
        </div>

        <div>
            <label class="desc" id="title2" for="tt_training_type">Típus:</label>
            <div>
                <select name="tt_training_type" id="tt_training_type">
                    <option value="null"> - </option>
                    {foreach $training_type_assoc_array as $training_type_array}
                        <option value="{$training_type_array.trt_id}"{if $training_type_array.trt_id == $template_data.tt_training_type} selected{/if}>
                            {$training_type_array.trt_name}
                        </option>
                    {/foreach}
                </select>
            </div>
        </div>

         <div>
            <label class="desc" id="title1" for="tt_duration">Időtartam (perc):</label>
            <div><input type="text" name="tt_duration" id="tt_duration" value="{$template_data.tt_duration}"></div>
        </div>


        <div>
            <div>
                <input class="button black" type="submit" value="Mentés">
            </div>
        </div>

    </form>
</div>
