83 lines
4.0 KiB
HTML
83 lines
4.0 KiB
HTML
|
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label for="c-type" class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
|
||
|
<div class="col-xs-12 col-sm-8">
|
||
|
|
||
|
<select id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]">
|
||
|
{foreach name="typeList" item="vo"}
|
||
|
<option value="{$key}" {in name="key" value="$row.type"}selected{/in}>{$vo}</option>
|
||
|
{/foreach}
|
||
|
</select>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label for="c-aid" class="control-label col-xs-12 col-sm-2">{:__('Aid')}:</label>
|
||
|
<div class="col-xs-12 col-sm-8">
|
||
|
<input id="c-aid" data-rule="required" class="form-control" name="row[aid]" type="number" value="{$row.aid}">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label for="c-pid" class="control-label col-xs-12 col-sm-2">{:__('Pid')}:</label>
|
||
|
<div class="col-xs-12 col-sm-8">
|
||
|
<input id="c-pid" data-rule="required" class="form-control" name="row[pid]" type="number" value="{$row.pid}">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label for="c-user_id" class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
|
||
|
<div class="col-xs-12 col-sm-8">
|
||
|
<input id="c-user_id" data-rule="required" class="form-control selectpage" data-source="user/user/index" data-field="nickname" name="row[user_id]" type="text" value="{$row.user_id}">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label for="c-content" class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
|
||
|
<div class="col-xs-12 col-sm-8">
|
||
|
<textarea id="c-content" data-rule="required" class="form-control editor" rows="5" name="row[content]" cols="50">{$row.content|htmlentities}</textarea>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label for="c-comments" class="control-label col-xs-12 col-sm-2">{:__('Comments')}:</label>
|
||
|
<div class="col-xs-12 col-sm-8">
|
||
|
<input id="c-comments" data-rule="required" class="form-control" name="row[comments]" type="number" value="{$row.comments}">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label for="c-ip" class="control-label col-xs-12 col-sm-2">{:__('Ip')}:</label>
|
||
|
<div class="col-xs-12 col-sm-8">
|
||
|
<input id="c-ip" data-rule="required" class="form-control" name="row[ip]" type="text" value="{$row.ip}">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label for="c-useragent" class="control-label col-xs-12 col-sm-2">{:__('Useragent')}:</label>
|
||
|
<div class="col-xs-12 col-sm-8">
|
||
|
<input id="c-useragent" data-rule="required" class="form-control" name="row[useragent]" type="text" value="{$row.useragent|htmlentities}">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label for="c-subscribe" class="control-label col-xs-12 col-sm-2">{:__('Subscribe')}:</label>
|
||
|
<div class="col-xs-12 col-sm-8">
|
||
|
{:build_radios('row[subscribe]', [1=>'是', 0=>'否'], $row['subscribe'])}
|
||
|
</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">
|
||
|
|
||
|
<div class="radio">
|
||
|
{foreach name="statusList" item="vo"}
|
||
|
<label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label>
|
||
|
{/foreach}
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group layer-footer">
|
||
|
<label class="control-label col-xs-12 col-sm-2"></label>
|
||
|
<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>
|