Browse code

Allow for multiple GridPosition widgets to work

Benjamin Roth authored on28/02/2025 14:53:21
Showing1 changed files
... ...
@@ -1,4 +1,4 @@
1 1
 <h3><?= $this->generateLabel().$this->xlabel ?></h3>
2
-<div class="grid-container" data-rows="<?= $this->intRows ?>" data-cols="<?= $this->intCols ?>" data-field-id="<?= $this->id ?>">
2
+<div class="vr--grid-pos-container" data-rows="<?= $this->intRows ?>" data-cols="<?= $this->intCols ?>" data-field-id="ctrl_<?= $this->id ?>">
3 3
 </div>
4 4
 <input type="hidden" name="<?= $this->id ?>" id="ctrl_<?= $this->id ?>" value="<?= $this->value ?>">
5 5
\ No newline at end of file
Browse code

Add turbo frame compatibility

Benjamin Roth authored on28/02/2025 13:41:43
Showing1 changed files
... ...
@@ -1,4 +1,4 @@
1 1
 <h3><?= $this->generateLabel().$this->xlabel ?></h3>
2 2
 <div class="grid-container" data-rows="<?= $this->intRows ?>" data-cols="<?= $this->intCols ?>" data-field-id="<?= $this->id ?>">
3 3
 </div>
4
-<input type="hidden" name="<?= $this->id ?>" id="<?= $this->id ?>" value="<?= $this->value ?>">
5 4
\ No newline at end of file
5
+<input type="hidden" name="<?= $this->id ?>" id="ctrl_<?= $this->id ?>" value="<?= $this->value ?>">
6 6
\ No newline at end of file
Browse code

Add GridPosition widget label to template and add some margin

Benjamin Roth authored on28/02/2025 11:39:37
Showing1 changed files
... ...
@@ -1,3 +1,4 @@
1
+<h3><?= $this->generateLabel().$this->xlabel ?></h3>
1 2
 <div class="grid-container" data-rows="<?= $this->intRows ?>" data-cols="<?= $this->intCols ?>" data-field-id="<?= $this->id ?>">
2 3
 </div>
3 4
 <input type="hidden" name="<?= $this->id ?>" id="<?= $this->id ?>" value="<?= $this->value ?>">
4 5
\ No newline at end of file
Browse code

Add new GridPosition widget

Benjamin Roth authored on28/02/2025 10:55:44
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,3 @@
1
+<div class="grid-container" data-rows="<?= $this->intRows ?>" data-cols="<?= $this->intCols ?>" data-field-id="<?= $this->id ?>">
2
+</div>
3
+<input type="hidden" name="<?= $this->id ?>" id="<?= $this->id ?>" value="<?= $this->value ?>">
0 4
\ No newline at end of file