Brak opisu

skuedit.blade.php 4.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. @extends('admin/master')
  2. @section('content')
  3. <body>
  4. @if(count($errors) > 0)
  5. <div class="Huialert Huialert-info" id="error">
  6. @foreach($errors->all() as $error)
  7. <li>{{$error}}</li>
  8. @endforeach
  9. </div>
  10. @endif
  11. <div class="page-container">
  12. <form action="/admin/goods/skuupdate" method="post" class="form form-horizontal">
  13. <input type="hidden" name="_token" value="{{ csrf_token() }}" />
  14. <input type="hidden" name="id" value="{{$sku['id']}}" />
  15. <input type="hidden" name="goods_id" value="{{$goods_id}}" />
  16. <div class="row cl">
  17. <label class="form-label col-xs-4 col-sm-2">
  18. <font color='red'>* </font> 商品规格:</label>
  19. <div class="formControls col-xs-6 col-sm-6">
  20. <input type="text" class="input-text" value="{{$sku['propsName']}}" placeholder="" name="propsName">
  21. </div>
  22. </div>
  23. <div class="row cl">
  24. <label class="form-label col-xs-4 col-sm-2">
  25. <font color='red'>* </font>成本价:</label>
  26. <div class="formControls col-xs-6 col-sm-6">
  27. <input type="text" class="input-text" value="{{$sku['referenceCost']}}" placeholder="" name="referenceCost">
  28. </div>
  29. </div>
  30. <div class="row cl">
  31. <label class="form-label col-xs-4 col-sm-2">
  32. <font color='red'>* </font>建议零售价:</label>
  33. <div class="formControls col-xs-6 col-sm-6">
  34. <input type="text" class="input-text" value="{{$sku['price']}}" placeholder="" name="price">
  35. </div>
  36. </div>
  37. <div class="row cl">
  38. <label class="form-label col-xs-4 col-sm-2">
  39. <font color='red'>* </font>分销商价格:</label>
  40. <div class="formControls col-xs-6 col-sm-6">
  41. <input type="text" class="input-text" value="{{$sku['outPrice']}}" placeholder="" name="outPrice">
  42. </div>
  43. </div>
  44. <div class="row cl">
  45. <label class="form-label col-xs-4 col-sm-2">
  46. <font color='red'>* </font>是否称重:</label>
  47. <div class="formControls col-xs-6 col-sm-6">
  48. <input type="radio" name="is_weigh" value="0" @if($sku['is_weigh']=='0') checked @else checked @endif>
  49. <label for="status-1" style="margin-right: 27px;">否</label>
  50. <input type="radio" name="is_weigh" value="1" @if($sku['is_weigh']=='1') checked @endif>
  51. <label for="status-0">是</label>
  52. </div>
  53. </div>
  54. <div class="row cl">
  55. <div class="col-9 col-offset-2">
  56. <button class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">&nbsp;&nbsp;修改&nbsp;&nbsp;</button>&nbsp;
  57. <button class="btn btn-default" type="reset" onclick="return_index();">&nbsp;&nbsp;返回&nbsp;&nbsp;</button>&nbsp;
  58. {{--<a href="javascript:void(0)" class="btn btn-default radius" onclick="redirect('{{url('/admin/admin/all')}}')">返回并查看结果</a>--}}
  59. </div>
  60. </div>
  61. </form>
  62. </div>
  63. <!--_footer 作为公共模版分离出去-->
  64. <script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
  65. <script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
  66. <script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
  67. <script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
  68. <!--/_footer 作为公共模版分离出去-->
  69. <!--请在下方写此页面业务相关的脚本-->
  70. <script type="text/javascript">
  71. $(function(){
  72. setTimeout("$('#error').hide()",3000);
  73. });
  74. /*返回*/
  75. function return_index(){
  76. location.href='/admin/goods/skulist?goods_id={{$goods_id}}';
  77. }
  78. </script>
  79. </body>
  80. @endsection