Jake Vanderwerf
2 days ago 235ce5716edc2f7cbe80fdccf26eac7269587839
inc/registrar/Fields.php
@@ -17,7 +17,7 @@
class Fields {
   protected array $fields;
   protected Registrar $registrar;
   private Registrar $registrar;
   public function __construct(?string $type = null, ?Registrar $registrar = null) {
      $this->registrar = $registrar;
@@ -97,6 +97,12 @@
         ];
      }
      $fields = [
            'post_status'  => [
                'type'     => 'radio',
                'label'    => 'Status',
                'default'  => 'draft',
                'options'  => $statuses
            ],
         'post_thumbnail'  => [
            'type'   => 'upload',
            'subtype'   => 'image',
@@ -107,6 +113,11 @@
            'type'   => 'datetime',
            'label'  => 'Date',
         ],
         'post_modified' => [
            'type'   => 'datetime',
            'label'  => 'Date Modified',
            'hidden' => true,
         ],
         'post_content' => [
            'type'   => 'textarea',
            'quill'  => true,
@@ -122,12 +133,6 @@
            'label'  => 'TLDR',
            'maxLength' => 158,
         ],
         'post_status'  => [
            'type'      => 'radio',
            'label'     => 'Status',
            'default'   => 'draft',
            'options'   => $statuses
         ]
      ];
      foreach ($fields as $name => $config) {