72 lines
3.5 KiB
HTML
72 lines
3.5 KiB
HTML
|
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
|
||
|
|
||
|
<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 id="c-title" data-rule="required" class="form-control" name="row[title]" type="text" value="{$row.title|htmlentities}">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label class="control-label col-xs-12 col-sm-2">{:__('Keyword')}:</label>
|
||
|
<div class="col-xs-12 col-sm-8">
|
||
|
<input id="c-keyword" class="form-control" name="row[keyword]" type="text" value="{$row.keyword|htmlentities}">
|
||
|
<span class="help-block">{:__('Will be used to match user statements')}</span>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label 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" name="row[content]" rows="3">{$row.content}</textarea>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label class="control-label col-xs-12 col-sm-2">{:__('Views')}:</label>
|
||
|
<div class="col-xs-12 col-sm-8">
|
||
|
<input id="c-views" data-rule="required" class="form-control" name="row[views]" type="number" value="{$row.views|htmlentities}">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label class="control-label col-xs-12 col-sm-2">{:__('Likes')}:</label>
|
||
|
<div class="col-xs-12 col-sm-8">
|
||
|
<input id="c-likes" data-rule="required" class="form-control" name="row[likes]" type="number" value="{$row.likes|htmlentities}">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label class="control-label col-xs-12 col-sm-2">{:__('Dislikes')}:</label>
|
||
|
<div class="col-xs-12 col-sm-8">
|
||
|
<input id="c-dislikes" data-rule="required" class="form-control" name="row[dislikes]" type="number" value="{$row.dislikes|htmlentities}">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label class="control-label col-xs-12 col-sm-2">{:__('Note')}:</label>
|
||
|
<div class="col-xs-12 col-sm-8">
|
||
|
<textarea id="c-note" class="form-control" name="row[note]" rows="3">{$row.note|htmlentities}</textarea>
|
||
|
</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">
|
||
|
<label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
|
||
|
<div class="col-xs-12 col-sm-8">
|
||
|
<input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
|
||
|
</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>
|