{extend name="../../admin/view/public/admin"}

{block name='content'}
    <div class="page-header">
        当前位置：<span class="text-primary">{if !empty($item)}编辑{else}新建{/if}
        </span>
    </div>

    <div class="page-content">
        <form action="" method="post" class="form-validate form-horizontal">
            <input type="hidden" name="id" value="{$item['id']}"/>

            <div class="form-group">
                <label class="col-lg control-label">标题</label>
                <div class="col-sm-9 col-xs-12">
                    <input type="text" name="title" class="form-control" value="{$item['title']}"/>
                </div>
            </div>

            <div class="form-group">
                <label class="col-lg control-label"></label>
                <div class="col-sm-9">
                    <input type="submit" class="btn btn-primary" value="保存">
                    <a class="btn btn-default" href="javascript:;" onclick='history.back()' style='margin-left:10px;'>返回列表</a>
                </div>
            </div>
        </form>
    </div>
{/block}

{block name='script'}
<script>

</script>
{/block}