<form class="layui-form" lay-filter="J_ajaxForm_popup" style="padding: 20px 0 0 0;" action="{:url('wendasns/navig/dorun')}" method="post">
      <script type="text/html" template>
        <input type="hidden" name="id" value="{{ d.params.id || 0 }}">
      </script>  
      
  <div class="layui-form-item">
          <div class="layui-inline">
            <label class="layui-form-label">上级导航</label>
            <div class="layui-input-inline">
            <script type="text/html" template>
              <select id="selectnav" name="parent" lay-search="">
                <option value="0">顶级导航</option>
                {volist name="data" id="item"}
                <option value="{$item.id}" {{# if(d.params.parentid=={$item.id}){ }}selected="selected"{{# } }}>{$item.name}</option>
                {/volist}
              </select>
            </script>
            </div>
          </div>
        </div>
        
  <div class="layui-form-item">
    <label class="layui-form-label">导航名称</label>
    <div class="layui-input-inline">
      <script type="text/html" template>
        <input type="text" name="name" value="{{ d.params.name || '' }}" placeholder="导航名称" class="layui-input">
      </script>
    </div>
  </div>
  
  <div class="layui-form-item">
    <label class="layui-form-label">链接地址</label>
    <div class="layui-input-inline">
      <script type="text/html" template>
        <input type="text" name="url" value="{{ d.params.url || '' }}" class="layui-input">
      </script>
    </div>
  </div>
  
  <div class="layui-form-item">
    <label class="layui-form-label">顺序</label>
    <div class="layui-input-inline">
      <script type="text/html" template>
        <input type="text" name="order" value="{{ d.params.order || 0 }}" lay-verify="number" class="layui-input">
      </script>
    </div>
  </div>

  
  <div class="layui-form-item">
    <label class="layui-form-label">启用</label>
    <div class="layui-input-block">
      <script type="text/html" template>
        <input type="radio" name="enable" value="1" title="是" {{ d.params.enable === 1 ? 'checked="checked"' : '' }}>
        <input type="radio" name="enable" value="0" title="否" {{ d.params.enable === 0 ? 'checked="checked"' : '' }}>
      </script>
    </div>
  </div>
  
  <div class="layui-form-item">
    <label class="layui-form-label"></label>
    <div class="layui-input-inline">
      <button lay-submit lay-filter="J_ajax_submit_btn" class="layui-btn"><i class="layui-icon layui-icon-ok-circle"></i>提交</button>
    </div>
  </div>
</form>
