Plugin Directory


Ignore:
Timestamp:
10/15/2026 07:29:29 PM (3 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/GenerateAsteroidsForm.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' => 'generateAsteroids',
    2324                        'title'        => __( 'Asteroid Goddesses', 'roxyapi' ),
    2425                        'submit_label' => __( 'Get reading', 'roxyapi' ),
    25                         'fold_optional' => true,
     26                        'locations'    => array( array( 'anchor' => 'latitude', 'section' => '', 'id' => '', 'fields' => array( 'latitude' => 'latitude', 'longitude' => 'longitude', 'timezone' => 'timezone' ) ) ),
    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' => 'latitude',
    46                                         'label' => __( 'Latitude', 'roxyapi' ),
     47                                        'label' => $labels['fields']['latitude'] ?? 'Latitude',
    4748                                        'required' => true,
    48                                         'help' => __( 'Birth location latitude in decimal degrees (-90 to 90)', 'roxyapi' ),
    4949                                        'type' => 'number',
    5050                                        'min' => -90,
    5151                                        'max' => 90,
    5252                                        'step' => 'any',
     53                                        'fold' => false,
    5354                                ),
    5455                                array(
    5556                                        'name' => 'longitude',
    56                                         'label' => __( 'Longitude', 'roxyapi' ),
     57                                        'label' => $labels['fields']['longitude'] ?? 'Longitude',
    5758                                        'required' => true,
    58                                         'help' => __( 'Birth location longitude in decimal degrees (-180 to 180)', 'roxyapi' ),
    5959                                        'type' => 'number',
    6060                                        'min' => -180,
    6161                                        'max' => 180,
    6262                                        'step' => 'any',
     63                                        'fold' => false,
    6364                                ),
    6465                                array(
    6566                                        'name' => 'timezone',
    66                                         'label' => __( 'Timezone', 'roxyapi' ),
     67                                        'label' => $labels['fields']['timezone'] ?? 'Timezone',
    6768                                        'required' => true,
    6869                                        'help' => __( 'Select the timezone of the location.', 'roxyapi' ),
    6970                                        'type' => 'timezone',
     71                                        'min' => -14,
     72                                        'max' => 14,
     73                                        'fold' => false,
    7074                                ),
    7175                                array(
    7276                                        'name' => 'nodeType',
    73                                         'label' => __( 'Node type', 'roxyapi' ),
     77                                        'label' => $labels['fields']['nodeType'] ?? 'Lunar node type',
    7478                                        'required' => false,
    75                                         'help' => __( 'Lunar node convention', 'roxyapi' ),
    7679                                        'type' => 'enum',
    7780                                        'enum' => array( 'mean', 'true' ),
     81                                        'default' => 'true',
     82                                        'enum_labels' => array( $labels['enums']['nodeType.mean'] ?? 'Mean', $labels['enums']['nodeType.true'] ?? 'True' ),
     83                                        'fold' => true,
    7884                                ),
    7985                                array(
    8086                                        'name' => 'houseSystem',
    81                                         'label' => __( 'House system', 'roxyapi' ),
     87                                        'label' => $labels['fields']['houseSystem'] ?? 'House system',
    8288                                        'required' => false,
    83                                         'help' => __( 'House system used to assign each asteroid to a natal house', 'roxyapi' ),
    8489                                        'type' => 'enum',
    8590                                        'enum' => array( 'placidus', 'whole-sign', 'equal', 'koch' ),
     91                                        'default' => 'placidus',
     92                                        'enum_labels' => array( $labels['enums']['houseSystem.placidus'] ?? 'Placidus', $labels['enums']['houseSystem.whole-sign'] ?? 'Whole sign', $labels['enums']['houseSystem.equal'] ?? 'Equal', $labels['enums']['houseSystem.koch'] ?? 'Koch' ),
     93                                        'fold' => true,
    8694                                ),
    8795                        ),
Note: See TracChangeset for help on using the changeset viewer.