<div class="nk-block mb-2">
    <div class="nk-block-head">
        <h5 class="title">Свойства страницы</h5>
    </div>
</div>
<div class="gy-3">
    <div class="row">
        {foreach $page->template_properties AS $tp}
        <div class="col-md-6  js-param-item">
            <div class="row g-3 align-center">
                <div class="col-lg-12">
                    <div class="form-group">
                        <input type="hidden" name="properties[name][]" class="form-control" value="{$tp->name|escape}">
                        <input type="hidden" name="properties[description][]" class="form-control" value="{$tp->description|escape}">
                    </div>
                </div>
                <div class="col-lg-12">
                    <div class="form-group w-100 mb-0 mr-2">
                        <label class="form-label" for="prop_{$tp->id}">{$tp->description|escape}</label>
                        &mdash; {$tp->name|escape}
                        <button type="button" class="btn btn-trigger btn-icon text-danger float-right js-param-delete" data-toggle="tooltip" data-placement="top" title="" data-original-title="Удалить">
                            <em class="icon ti ti-trash"></em>
                        </button>
                        <textarea name="properties[value][]" id="prop_{$tp->id}" class="form-control">{$page->properties[$tp->name]|escape}</textarea>
                    </div>
                </div>
            </div>
        </div>
        {/foreach}

        <div class="col-md-6">
            <div class="row g-3 pt-5">
                <div class="col-lg-12">
                    <div class="form-group">
                        <input type="text" name="properties[name][]" class="form-control" placeholder="Название, например price" value="">
                    </div>
                </div>
                <div class="col-lg-12">
                    <div class="form-group">
                        <input type="text" name="properties[description][]" class="form-control" placeholder="Описание, например цена" value="">
                    </div>
                </div>
                <div class="col-lg-12">
                    <div class="form-group w-100 mb-0 mr-2">
                        <input type="text" name="properties[value][]" class="form-control" placeholder="Значение, например 1500 руб." value="">
                    </div>
                </div>
            </div>
        </div>
    </div>


</div>
<div class="justify-center mt-2">
    <button type="submit" class="btn btn-success">Сохранить</button>
</div>
