1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
- <div class="form-group">
- <label for="c-post_id" class="control-label col-xs-12 col-sm-2">{:__('Post')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-post_id" data-rule="required" data-source="blog/post/index" data-field="title" class="form-control selectpage" name="row[post_id]" type="text" value="{$row.post_id}">
- </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-username" class="control-label col-xs-12 col-sm-2">{:__('Username')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-username" data-rule="required" class="form-control" name="row[username]" type="text" value="{$row.username|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label for="c-email" class="control-label col-xs-12 col-sm-2">{:__('Email')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-email" data-rule="required" class="form-control" name="row[email]" type="text" value="{$row.email|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label for="c-website" class="control-label col-xs-12 col-sm-2">{:__('Website')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-website" class="form-control" name="row[website]" type="text" value="{$row.website|htmlentities}">
- </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" 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" class="form-control" name="row[ip]" type="text" value="{$row.ip|htmlentities}">
- </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" 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">
- <input id="c-subscribe" data-rule="required" class="form-control" name="row[subscribe]" type="number" value="{$row.subscribe|htmlentities}">
- </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">
-
- {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 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-success btn-embossed disabled">{:__('OK')}</button>
- <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
- </div>
- </div>
- </form>
|