123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- <form id="question-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">{:__('Cate_id')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-cate_id" data-rule="required" data-source="exam/cate/selectpage" data-params='{"custom[kind]":"QUESTION"}' class="form-control selectpage" name="row[cate_id]" type="text" value="">
- </div>
- </div>
- <!--<div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Exam_type_id')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-exam_type_id" data-rule="required" data-source="exam_type/index" class="form-control selectpage" name="row[exam_type_id]" type="text" value="">
- </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 id="c-title" data-rule="required" class="form-control" name="row[title]" type="text">-->
- <textarea id="c-title" data-rule="required" class="form-control editor" name="row[title]"></textarea>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Explain')}:</label>
- <div class="col-xs-12 col-sm-8">
- <!-- <input id="c-explain" class="form-control" name="row[explain]" type="text">-->
- <textarea id="c-explain" class="form-control editor" name="row[explain]"></textarea>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Difficulty')}:</label>
- <div class="col-xs-12 col-sm-8">
- <select id="c-difficulty" data-rule="required" class="form-control selectpicker" name="row[difficulty]">
- {foreach name="difficultyList" item="vo"}
- <option value="{$key}" {in name="key" value="GENERAL"}selected{/in}>{$vo}</option>
- {/foreach}
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Kind')}:</label>
- <div class="col-xs-12 col-sm-8">
- <!--<select id="c-kind" data-rule="required" class="form-control selectpicker" name="row[kind]">
- {foreach name="kindList" item="vo"}
- <option value="{$key}" {in name="key" value="JUDGE"}selected{/in}>{$vo}</option>
- {/foreach}
- </select>-->
- <div class="radio">
- {foreach name="kindList" item="vo"}
- <label for="row[kind]-{$key}">
- <input id="row[kind]-{$key}" name="row[kind]" type="radio" value="{$key}" {in name="key" value="SINGLE" }checked{/in} /> {$vo}
- </label>
- {/foreach}
- </div>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Options_json')}:</label>
- <div class="col-xs-12 col-sm-8">
- <dl class="fieldlist" data-name="row[options_json]">
- <dd>
- <ins>{:__('Key')}</ins>
- <ins>{:__('Value')}</ins>
- </dd>
- <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
- <textarea name="row[options_json]" class="form-control hide" cols="30" rows="5"></textarea>
- </dl>
- <textarea id="c-options_img" name="row[options_img]" class="form-control hide" cols="30" rows="5"></textarea>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Answer')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-answer" data-rule="required" class="form-control" name="row[answer]" type="text" readonly="readonly">
- </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="NORMAL"}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-success btn-embossed disabled">{:__('OK')}</button>
- <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
- </div>
- </div>
- </form>
- <style>
- .m-l-5 {
- margin-left: 5px;
- }
- </style>
|