1. mysql
2. add.html
<div class="form-group"> <label class="control-label col-xs-12 col-sm-2">{:__(‘Json‘)}:</label> <div class="col-xs-12 col-sm-8"> <dl class="fieldlist" data-name="row[json]"> <dd> <ins>{:__(‘Json key‘)}</ins> <ins>{:__(‘Json 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[json]" class="form-control hide" cols="30" rows="5"></textarea> </dl> </div> </div>
3. edit.html
<div class="form-group"> <label class="control-label col-xs-12 col-sm-2">{:__(‘Json‘)}:</label> <div class="col-xs-12 col-sm-8"> <dl class="fieldlist" data-name="row[json]"> <dd> <ins>{:__(‘Json key‘)}</ins> <ins>{:__(‘Json 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[json]" class="form-control hide" cols="30" rows="5">{$row.json|htmlentities}</textarea> </dl> </div> </div>