chuweiqiang 1 yıl önce
ebeveyn
işleme
156d5965ce

+ 1 - 1
application/admin/view/video/video/add.html

@@ -36,7 +36,7 @@
     <div class="form-group">
         <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
         <div class="col-xs-12 col-sm-8">
-            <input id="c-price" data-rule="required" class="form-control" step="0.01" name="row[price]" type="number">
+            <input id="c-price" data-rule="required;range(0.01~)" class="form-control" min="0.01" step="0.01" name="row[price]" type="number">
         </div>
     </div>
     <div class="form-group">

+ 1 - 1
application/admin/view/video/video/edit.html

@@ -35,7 +35,7 @@
     <div class="form-group">
         <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
         <div class="col-xs-12 col-sm-8">
-            <input id="c-price" data-rule="required" class="form-control" step="0.01" name="row[price]" type="number" value="{$row.price|htmlentities}">
+            <input id="c-price" data-rule="required;range(0.01~)" class="form-control" min="0.01" step="0.01" name="row[price]" type="number" value="{$row.price|htmlentities}">
         </div>
     </div>
     <div class="form-group">