1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <form id="add-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">{:__('Name')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text">
- </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">
- </div>
- </div>-->
- <input id="c-kind" type="hidden" name="row[kind]" value="QUESTION">
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Parent_id')}:</label>
- <div class="col-xs-12 col-sm-8">
- <select id="c-parent_id" data-rule="required" class="form-control selectpicker" name="row[parent_id]">
- <option value="0" selected>无</option>
- {foreach name="parentList" item="vo"}
- <option data-type="{$vo.kind}" value="{$vo.id}">{$vo.name}</option>
- {/foreach}
- </select>
- <!--<input id="c-parent_id" data-source="exam/cate/selectpage" class="form-control selectpage" name="row[parent_id]"
- type="text" value="">-->
- </div>
- </div>
- <!--<div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Icon')}:</label>
- <div class="col-xs-12 col-sm-8">
- <div class="input-group">
- <input id="c-icon" class="form-control" name="row[icon]" type="text">
- <div class="input-group-addon no-border no-padding">
- <span><button type="button" id="plupload-icon" class="btn btn-danger plupload" data-input-id="c-icon" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-icon"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
- <span><button type="button" id="fachoose-icon" class="btn btn-primary fachoose" data-input-id="c-icon" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
- </div>
- <span class="msg-box n-right" for="c-icon"></span>
- </div>
- <ul class="row list-inline plupload-preview" id="p-icon"></ul>
- </div>
- </div>-->
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Sort')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-sort" data-rule="required" class="form-control" name="row[sort]" type="number" value="1">
- </div>
- </div>
- <!--<div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
- <div class="col-xs-12 col-sm-8">
- <textarea id="c-remark" class="form-control editor" name="row[remark]"></textarea>
- </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>
|