- Timestamp:
- 10/15/2026 07:29:29 PM (4 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roxyapi/trunk/src/Generated/Forms/CalculateTransitForm.php
r3747703 r3749195 19 19 20 20 public static function spec(): array { 21 $labels = \RoxyAPI\Generated\FormLabels::for_language( \RoxyAPI\Support\Language::from_locale( determine_locale() ) ); 21 22 return array( 22 23 'operation_id' => 'calculateTransit', 23 24 'title' => __( 'Transit Analysis', 'roxyapi' ), 24 25 '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' ) ) ), 26 27 'sections' => array( 27 28 … … 30 31 array( 31 32 'name' => 'birthDate', 32 'label' => __( 'Birth date', 'roxyapi' ),33 'label' => $labels['fields']['birthDate'] ?? 'Birth date', 33 34 'required' => true, 34 'help' => __( 'Birth date in YYYY-MM-DD format', 'roxyapi' ),35 35 'type' => 'date', 36 'fold' => false, 36 37 ), 37 38 array( 38 39 'name' => 'birthTime', 39 'label' => __( 'Birth time', 'roxyapi' ),40 'label' => $labels['fields']['birthTime'] ?? 'Birth time', 40 41 'required' => true, 41 'help' => __( 'Birth time in HH:MM:SS format (24-hour)', 'roxyapi' ),42 42 'type' => 'time', 43 'fold' => false, 43 44 ), 44 45 array( 45 46 'name' => 'transitDate', 46 'label' => __( 'Transit date', 'roxyapi' ),47 'label' => $labels['fields']['transitDate'] ?? 'Transit date', 47 48 'required' => true, 48 'help' => __( 'Transit date to analyze in YYYY-MM-DD format', 'roxyapi' ),49 49 'type' => 'date', 50 'fold' => false, 50 51 ), 51 52 array( 52 53 'name' => 'transitTime', 53 'label' => __( 'Transit time', 'roxyapi' ),54 'label' => $labels['fields']['transitTime'] ?? 'Transit time', 54 55 'required' => false, 55 'help' => __( 'Transit time in HH:MM:SS format (24-hour)', 'roxyapi' ),56 56 'type' => 'time', 57 'fold' => true, 57 58 ), 58 59 array( 59 60 'name' => 'latitude', 60 'label' => __( 'Latitude', 'roxyapi' ),61 'label' => $labels['fields']['latitude'] ?? 'Latitude', 61 62 'required' => true, 62 'help' => __( 'Observer latitude in decimal degrees', 'roxyapi' ),63 63 'type' => 'number', 64 64 'min' => -90, 65 65 'max' => 90, 66 66 'step' => 'any', 67 'fold' => false, 67 68 ), 68 69 array( 69 70 'name' => 'longitude', 70 'label' => __( 'Longitude', 'roxyapi' ),71 'label' => $labels['fields']['longitude'] ?? 'Longitude', 71 72 'required' => true, 72 'help' => __( 'Observer longitude in decimal degrees', 'roxyapi' ),73 73 'type' => 'number', 74 74 'min' => -180, 75 75 'max' => 180, 76 76 'step' => 'any', 77 'fold' => false, 77 78 ), 78 79 array( 79 80 'name' => 'timezone', 80 'label' => __( 'Timezone', 'roxyapi' ),81 'label' => $labels['fields']['timezone'] ?? 'Timezone', 81 82 'required' => false, 82 83 'help' => __( 'Select the timezone of the location.', 'roxyapi' ), 83 84 'type' => 'timezone', 85 'min' => -14, 86 'max' => 14, 87 'default' => 5.5, 88 'fold' => false, 84 89 ), 85 90 array( 86 91 'name' => 'coordinateSystem', 87 'label' => __( 'Coordinate system', 'roxyapi' ),92 'label' => $labels['fields']['coordinateSystem'] ?? 'Coordinate system', 88 93 'required' => false, 89 'help' => __( 'Coordinate system for longitude output', 'roxyapi' ),90 94 'type' => 'enum', 91 95 'enum' => array( 'sidereal', 'tropical' ), 96 'default' => 'sidereal', 97 'enum_labels' => array( $labels['enums']['coordinateSystem.sidereal'] ?? 'Sidereal', $labels['enums']['coordinateSystem.tropical'] ?? 'Tropical' ), 98 'fold' => true, 92 99 ), 93 100 ),
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)