Example #1
0
                                                </span>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label>
                                                <input type="hidden" name="autopath" value="0" />
                                                <input type="checkbox" name="autopath" value="1"<?php 
echo $site->autopath ? ' checked' : '';
?>
 /> Autopath
                                            </label>
                                        </div>
                                        <div class="form-group">
                                            <label>Шаблон:</label> <br />
                                            <?php 
echo Form::template(isset($parent) ? $parent->template_childs : ($site->id ? $site->template : ''));
?>
                                        </div>
                                    </div>
                                    <div class="col-lg-6">
                                        <div class="form-group">
                                            <label>Действия</label>
                                            <div class="checkbox">
                                                <label>
                                                    <input type="hidden" name="act" value="0" />
                                                    <input type="checkbox" name="act" value="1"<?php 
echo $site->act ? ' checked' : '';
?>
 /> Активен
                                                </label>
                                            </div>
Example #2
0
<form class="ajax" action="<?php 
echo URL::to('/') . "/admin/site/template/" . $site->id;
?>
" method="POST"> 
    <input type="hidden" name="id" value="<?php 
echo $site->id;
?>
" /> 
    <input type="hidden" name="_method" value="PUT" />
    <input type="hidden" class="medium" name="part" value="<?php 
echo $site->part;
?>
" />

    <div>
        <label>Шаблон:</label> <br />
        <?php 
echo Form::template($site->template);
?>
    </div>

    <div>
        <label>Шаблон потомков:</label> <br />
        <?php 
echo Form::template('', true, 'template_childs');
?>
    </div>

</form>