Plugin Directory


Ignore:
Timestamp:
10/15/2026 07:29:29 PM (4 days ago)
Author:
roxyapi
Message:

Update to version 1.21.0 from GitHub

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roxyapi/trunk/src/Generated/Forms/GenerateBodygraphForm.php

    r3747703 r3749195  
    1919
    2020        public static function spec(): array {
     21                $labels = \RoxyAPI\Generated\FormLabels::for_language( \RoxyAPI\Support\Language::from_locale( determine_locale() ) );
    2122                return array(
    2223                        'operation_id' => 'generateBodygraph',
    2324                        'title'        => __( 'Human Design Bodygraph', 'roxyapi' ),
    2425                        'submit_label' => __( 'Get reading', 'roxyapi' ),
    25                         'fold_optional' => true,
     26                        'locations'    => array( array( 'anchor' => 'timezone', 'section' => '', 'id' => '', 'fields' => array( 'timezone' => 'timezone', 'latitude' => 'latitude', 'longitude' => 'longitude' ) ) ),
    2627                        'sections'     => array(
    2728
    … …  
    3031                                array(
    3132                                        'name' => 'date',
    32                                         'label' => __( 'Date', 'roxyapi' ),
     33                                        'label' => $labels['fields']['date'] ?? 'Date',
    3334                                        'required' => true,
    34                                         'help' => __( 'Birth date in YYYY-MM-DD format', 'roxyapi' ),
    3535                                        'type' => 'date',
     36                                        'fold' => false,
    3637                                ),
    3738                                array(
    3839                                        'name' => 'time',
    39                                         'label' => __( 'Time', 'roxyapi' ),
     40                                        'label' => $labels['fields']['time'] ?? 'Time',
    4041                                        'required' => true,
    41                                         'help' => __( 'Birth time in 24-hour HH:MM:SS format', 'roxyapi' ),
    4242                                        'type' => 'time',
     43                                        'fold' => false,
    4344                                ),
    4445                                array(
    4546                                        'name' => 'timezone',
    46                                         'label' => __( 'Timezone', 'roxyapi' ),
     47                                        'label' => $labels['fields']['timezone'] ?? 'Timezone',
    4748                                        'required' => true,
    4849                                        'help' => __( 'Select the timezone of the location.', 'roxyapi' ),
    4950                                        'type' => 'timezone',
     51                                        'min' => -14,
     52                                        'max' => 14,
     53                                        'fold' => false,
    5054                                ),
    5155                                array(
    5256                                        'name' => 'latitude',
    53                                         'label' => __( 'Latitude', 'roxyapi' ),
     57                                        'label' => $labels['fields']['latitude'] ?? 'Latitude',
    5458                                        'required' => false,
    55                                         'help' => __( 'Birth latitude in decimal degrees', 'roxyapi' ),
    5659                                        'type' => 'number',
    5760                                        'min' => -90,
    5861                                        'max' => 90,
     62                                        'default' => 0,
    5963                                        'step' => 'any',
     64                                        'fold' => false,
    6065                                ),
    6166                                array(
    6267                                        'name' => 'longitude',
    63                                         'label' => __( 'Longitude', 'roxyapi' ),
     68                                        'label' => $labels['fields']['longitude'] ?? 'Longitude',
    6469                                        'required' => false,
    65                                         'help' => __( 'Birth longitude in decimal degrees', 'roxyapi' ),
    6670                                        'type' => 'number',
    6771                                        'min' => -180,
    6872                                        'max' => 180,
     73                                        'default' => 0,
    6974                                        'step' => 'any',
     75                                        'fold' => false,
    7076                                ),
    7177                                array(
    7278                                        'name' => 'nodeType',
    73                                         'label' => __( 'Node type', 'roxyapi' ),
     79                                        'label' => $labels['fields']['nodeType'] ?? 'Lunar node type',
    7480                                        'required' => false,
    75                                         'help' => __( 'Lunar node convention', 'roxyapi' ),
    7681                                        'type' => 'enum',
    7782                                        'enum' => array( 'mean', 'true' ),
     83                                        'default' => 'true',
     84                                        'enum_labels' => array( $labels['enums']['nodeType.mean'] ?? 'Mean', $labels['enums']['nodeType.true'] ?? 'True' ),
     85                                        'fold' => true,
    7886                                ),
    7987                        ),
Note: See TracChangeset for help on using the changeset viewer.