123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- <form id="edit-form" class="form-horizontal form-ajax" role="form" method="POST" action="">
- {:token()}
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Ismenu')}:</label>
- <div class="col-xs-12 col-sm-8">
- {:build_radios('row[ismenu]', ['1'=>__('Yes'), '0'=>__('No')], $row['ismenu'])}
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Parent')}:</label>
- <div class="col-xs-12 col-sm-8">
- {:build_select('row[pid]', $ruledata, $row['pid'], ['class'=>'form-control', 'required'=>''])}
- </div>
- </div>
- <div class="form-group">
- <label for="name" class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input type="text" class="form-control" id="name" name="row[name]" data-placeholder-node="{:__('Node tips')}" data-placeholder-menu="{:__('Menu tips')}" value="{$row.name|htmlentities}" data-rule="required" />
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input type="text" class="form-control" id="title" name="row[title]" value="{$row.title|htmlentities}" data-rule="required" />
- </div>
- </div>
- <div class="form-group" data-type="menu">
- <label class="control-label col-xs-12 col-sm-2">{:__('Url')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input type="text" class="form-control" id="url" name="row[url]" value="{$row.url|htmlentities}" data-rule="" placeholder="{:__('Url tips')}" />
- </div>
- </div>
- <div class="form-group">
- <label for="icon" class="control-label col-xs-12 col-sm-2">{:__('Icon')}:</label>
- <div class="col-xs-12 col-sm-8">
- <div class="input-group input-groupp-md">
- <span class="input-group-addon"><i class="{$row.icon}" id="icon-style"></i></span>
- <input type="text" class="form-control" id="icon" name="row[icon]" value="{$row.icon}" />
- <a href="javascript:;" class="btn-search-icon input-group-addon">{:__('Search icon')}</a>
- </div>
- </div>
- </div>
- <div class="form-group">
- <label for="remark" class="control-label col-xs-12 col-sm-2">{:__('Condition')}:</label>
- <div class="col-xs-12 col-sm-8">
- <textarea class="form-control" id="condition" name="row[condition]">{$row.condition|htmlentities}</textarea>
- </div>
- </div>
- <div class="form-group" data-type="menu">
- <label for="remark" class="control-label col-xs-12 col-sm-2">{:__('Menutype')}:</label>
- <div class="col-xs-12 col-sm-8">
- {:build_radios('row[menutype]', $menutypeList, $row['menutype'])}
- </div>
- </div>
- <div class="form-group" data-type="menu">
- <label for="remark" class="control-label col-xs-12 col-sm-2">{:__('Extend')}:</label>
- <div class="col-xs-12 col-sm-8">
- <textarea class="form-control" id="extend" name="row[extend]">{$row.extend|htmlentities}</textarea>
- </div>
- </div>
- <div class="form-group">
- <label for="remark" class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
- <div class="col-xs-12 col-sm-8">
- <textarea class="form-control" id="remark" name="row[remark]">{$row.remark|__|htmlentities}</textarea>
- </div>
- </div>
- <div class="form-group">
- <label for="weigh" class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input type="text" class="form-control" id="weigh" name="row[weigh]" value="{$row.weigh}" data-rule="required" />
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
- <div class="col-xs-12 col-sm-8">
- {:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')], $row['status'])}
- </div>
- </div>
- <div class="form-group hidden layer-footer">
- <div class="col-xs-2"></div>
- <div class="col-xs-12 col-sm-8">
- <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
- <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
- </div>
- </div>
- </form>
- {include file="auth/rule/tpl" /}
|