Jake Vanderwerf
2025-11-10 e9967fa22781d922ba4eb8fb44fe72d200ac4b14
inc/meta/MetaForm.php
@@ -426,7 +426,7 @@
                  class="decrease"
                  title="<?= array_key_exists('remove', $field) ? $field['remove'] : 'Decrease amount' ?>"
                  aria-label="Decrease <?= esc_attr($field['label']) ?>">
               <?= jvbIcon('minus') ?>
               <?= jvbIcon('minus-square') ?>
            </button>
            <input type="number"
@@ -445,7 +445,7 @@
                  class="increase"
                  title="<?= array_key_exists('add', $field) ? $field['add'] : 'Increase amount' ?>"
                  aria-label="Increase <?= esc_attr($field['label']) ?>">
               <?= jvbIcon('add') ?>
               <?= jvbIcon('plus-square') ?>
            </button>
         </div>
@@ -678,11 +678,11 @@
      <div class="repeater-row" data-index="<?= esc_attr($index); ?>">
         <details <?= (is_string($index)) ? 'open' : ''; ?>>
            <summary class="repeater-row-header row btw">
               <span class="drag-handle"><?= jvbIcon('grab'); ?></span>
               <span class="drag-handle"><?= jvbIcon('dots-six-vertical'); ?></span>
               <span class="row-number">#<?= esc_html($display_number); ?></span>
               <span class="row-title"><?= esc_html($this->getRowTitle($fields, $values, $rowTitle)); ?></span>
               <button type="button" class="remove-row" title="Remove">
                  <?= jvbIcon('delete', ['title'=>'Remove']); ?>
                  <?= jvbIcon('trash', ['title'=>'Remove']); ?>
               </button>
            </summary>
            <div class="repeater-row-content">
@@ -931,18 +931,18 @@
                     <div class="selection-actions row btw" hidden>
                        <button type="button" data-action="add-to-group">
                           <?= jvbIcon('add') ?>
                           <?= jvbIcon('plus-square') ?>
                           Group
                        </button>
                        <button type="button" data-action="delete-upload">
                           <?= jvbIcon('delete') ?>
                           <?= jvbIcon('trash') ?>
                           Delete
                        </button>
                     </div>
                  </div>
                  <button type="button" data-action="upload" class="submit-uploads">
                     <?= jvbIcon('upload') ?> Upload <?= esc_html($plural ?? 'Content'); ?>
                     <?= jvbIcon('cloud-arrow-up') ?> Upload <?= esc_html($plural ?? 'Content'); ?>
                  </button>
               </div>
               <?php endif; ?>
@@ -959,7 +959,7 @@
               </div>
               <?php if ($destination === 'post_group') : ?>
               <p class="hint"><?= jvbIcon('elbow-left-up') ?>  These will become individual <?= $plural ?>  <?= jvbIcon('elbow-right-up')?></p>
               <p class="hint"><?= jvbIcon('arrow-elbow-left-up') ?>  These will become individual <?= $plural ?>  <?= jvbIcon('arrow-elbow-right-up')?></p>
            </div>
            <div class="sidebar flex col">
               <div class="header">
@@ -971,7 +971,7 @@
                     <p>Drag here to create a new <?= $singular ?>!</p>
                  </div>
               </div>
               <p class="hint"><?= jvbIcon('elbow-left-up') ?>  Each group will become its own <?= $singular ?>  <?= jvbIcon('elbow-right-up')?></p>
               <p class="hint"><?= jvbIcon('arrow-elbow-left-up') ?>  Each group will become its own <?= $singular ?>  <?= jvbIcon('arrow-elbow-right-up')?></p>
            </div>
         </div>
      <?php endif; ?>
@@ -1087,12 +1087,12 @@
                  </div>
                  <button type="button" data-action="delete-upload" title="Remove from Group">
                     <?=jvbIcon('delete')?>
                     <?=jvbIcon('trash')?>
                  </button>
               </div>
            </div>
            <details>';
               <summary class="row btw"><?=jvbIcon('edit')?><span>Edit Info</span></summary>
            <details>
               <summary class="row btw"><?=jvbIcon('pencil-simple')?><span>Edit Info</span></summary>
      <?php
@@ -1127,7 +1127,10 @@
         ]
      ], $fields);
      $this->render('upload_data', null, $fields);
      $meta = new MetaManager($id);
      foreach ($fields as $field => $config) {
         $meta->render('form', $field, $config);
      }
      ?>
            </details>
      </div>
@@ -1162,12 +1165,12 @@
                  </div>
                  <button type="button" data-action="delete-upload" title="Remove from Group">
                     <?=jvbIcon('delete')?>
                     <?=jvbIcon('trash')?>
                  </button>
               </div>
            </div>
            <details>';
               <summary class="row btw"><?=jvbIcon('edit')?><span>Edit Info</span></summary>
               <summary class="row btw"><?=jvbIcon('pencil-simple')?><span>Edit Info</span></summary>
      <?php
      $fields = array_key_exists('fields', $config) ? $config['fields'] : [];
@@ -1235,12 +1238,12 @@
                  </div>
                  <button type="button" data-action="delete-upload" title="Remove from Group">
                     <?=jvbIcon('delete')?>
                     <?=jvbIcon('trash')?>
                  </button>
               </div>
            </div>
            <details>';
               <summary class="row btw"><?=jvbIcon('edit')?><span>Edit Info</span></summary>
               <summary class="row btw"><?=jvbIcon('pencil-simple')?><span>Edit Info</span></summary>
      <?php
      $fields = array_key_exists('fields', $config) ? $config['fields'] : [];