Skip to content

Commit

Permalink
Update FormHelper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
funadmin authored Mar 31, 2022
1 parent f74c981 commit ec9ddf4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/helper/FormHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ class="layui-btn layui-btn-warm" lay-filter="cropper" id="cropper">'
<div class="layui-upload">
<input ' . self::addextend($options) . ' ' . self::addstyle($options) . ' value="' . $value . '" style="' . $css . ' ;width:65% " type="text" name="' . $name . '" class="layui-input attach ' . self::addClass($options) . '"' . self::verify($options) . '/>
' . $croper_container . '
<button type="button" style="margin-left:0px" class="layui-btn" ' . $op . ' lay-filter="upload"><i class="layui-icon layui-icon-upload-circle"></i>' . lang('Uploads') . '</button>
<button type="button" style="margin-left:0px" class="layui-btn layui-btn-normal" ' . $op . ' lay-filter="upload"><i class="layui-icon layui-icon-upload-circle"></i>' . lang('Uploads') . '</button>
' . $select_container . '
<div class="layui-upload-list">'
. $li . '
Expand Down Expand Up @@ -808,13 +808,12 @@ public static function submitbtn($reset=true, $options=[])
$show = 'layui-hide';
}
$str = '<input type="hidden" name="__token__" value="' . self::token() . '"><div class=" layui-btn-submit layui-form-item layui-btn-center ' . $show . '" />
<button type="submit" class="layui-btn layui-btn-sm" lay-fitler="submit" lay-submit>' . lang('Submit') .
<button type="submit" class="layui-btn layui-btn-sm submit" lay-fitler="submit" lay-submit>' . lang('Submit') .
'</button>';
if ($reset) {
$str .= '<button type="reset" class="layui-btn layui-btn-sm layui-btn-primary">' . lang('Reset') . '</button>';
$str .= '<button type="reset" class="layui-btn layui-btn-sm layui-btn-primary reset">' . lang('Reset') . '</button>';
}
$str .= '</div>';

return $str;
}

Expand Down

0 comments on commit ec9ddf4

Please sign in to comment.