jqh 5 gadi atpakaļ
vecāks
revīzija
e17eaebcdc
3 mainītis faili ar 9 papildinājumiem un 9 dzēšanām
  1. 4 4
      src/Form.php
  2. 4 4
      src/Form/Builder.php
  3. 1 1
      src/Form/Field.php

+ 4 - 4
src/Form.php

@@ -1460,7 +1460,7 @@ class Form implements Renderable
      * @param int $width
      * @param Closure $callback
      */
-    public function column(int $width, \Closure $callback)
+    public function block(int $width, \Closure $callback)
     {
         $layout = $this->builder->layout();
 
@@ -1471,9 +1471,9 @@ class Form implements Renderable
      * @param int $width
      * @return $this
      */
-    public function setDefaultColumnWidth(int $width)
+    public function setDefaultBlockWidth(int $width)
     {
-        $this->builder->setDefaultColumnWidth($width);
+        $this->builder->setDefaultBlockWidth($width);
 
         return $this;
     }
@@ -1491,7 +1491,7 @@ class Form implements Renderable
     /**
      * @return bool
      */
-    public static function isDialogFormPage()
+    public static function inDialog()
     {
         return DialogForm::is();
     }

+ 4 - 4
src/Form/Builder.php

@@ -111,7 +111,7 @@ class Builder
     /**
      * @var int
      */
-    protected $defaultColumnWidth = 12;
+    protected $defaultBlockWidth = 12;
 
     /**
      * @var string
@@ -185,9 +185,9 @@ class Builder
      * @param int $width
      * @return $this
      */
-    public function setDefaultColumnWidth(int $width)
+    public function setDefaultBlockWidth(int $width)
     {
-        $this->defaultColumnWidth = $width;
+        $this->defaultBlockWidth = $width;
 
         return $this;
     }
@@ -733,7 +733,7 @@ class Builder
         ];
 
         $this->layout->prepend(
-            $this->defaultColumnWidth,
+            $this->defaultBlockWidth,
             $this->doWrap(view($this->view, $data))
         );
 

+ 1 - 1
src/Form/Field.php

@@ -905,7 +905,7 @@ class Field implements Renderable
      */
     public function hideInDialog()
     {
-        if (Form::isDialogFormPage()) {
+        if (Form::inDialog()) {
             $this->setDisplay(false);
         }