- Timestamp:
- 10/15/2026 07:29:29 PM (4 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roxyapi/trunk/src/Generated/Forms/GetChoghadiyaForm.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' => 'getChoghadiya', 23 24 'title' => __( 'Choghadiya', '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' => 'date', 32 'label' => __( 'Date', 'roxyapi' ),33 'label' => $labels['fields']['date'] ?? 'Date', 33 34 'required' => true, 34 'help' => __( 'Date in YYYY-MM-DD format', 'roxyapi' ),35 35 'type' => 'date', 36 'fold' => false, 36 37 ), 37 38 array( 38 39 'name' => 'latitude', 39 'label' => __( 'Latitude', 'roxyapi' ),40 'label' => $labels['fields']['latitude'] ?? 'Latitude', 40 41 'required' => true, 41 'help' => __( 'Observer latitude in decimal degrees', 'roxyapi' ),42 42 'type' => 'number', 43 43 'min' => -90, 44 44 'max' => 90, 45 45 'step' => 'any', 46 'fold' => false, 46 47 ), 47 48 array( 48 49 'name' => 'longitude', 49 'label' => __( 'Longitude', 'roxyapi' ),50 'label' => $labels['fields']['longitude'] ?? 'Longitude', 50 51 'required' => true, 51 'help' => __( 'Observer longitude in decimal degrees', 'roxyapi' ),52 52 'type' => 'number', 53 53 'min' => -180, 54 54 'max' => 180, 55 55 'step' => 'any', 56 'fold' => false, 56 57 ), 57 58 array( 58 59 'name' => 'timezone', 59 'label' => __( 'Timezone', 'roxyapi' ),60 'label' => $labels['fields']['timezone'] ?? 'Timezone', 60 61 'required' => false, 61 62 'help' => __( 'Select the timezone of the location.', 'roxyapi' ), 62 63 'type' => 'timezone', 64 'min' => -14, 65 'max' => 14, 66 'default' => 5.5, 67 'fold' => false, 63 68 ), 64 69 ),
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)