- Timestamp:
- 10/15/2026 07:29:29 PM (4 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roxyapi/trunk/src/Generated/Forms/LookupAuspiciousDaysForm.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' => 'lookupAuspiciousDays', 23 24 'title' => __( 'Auspicious Days', 'roxyapi' ), 24 25 'submit_label' => __( 'Get reading', 'roxyapi' ), 25 ' fold_optional' => true,26 'locations' => array( ), 26 27 'sections' => array( 27 28 … … 30 31 array( 31 32 'name' => 'activity', 32 'label' => __( 'Activity', 'roxyapi' ),33 'label' => $labels['fields']['activity'] ?? 'Activity', 33 34 'required' => true, 34 'help' => __( 'Activity to choose a date for', 'roxyapi' ),35 35 'type' => 'enum', 36 36 'enum' => array( 'wedding', 'travel', 'moving-house', 'opening-business', 'signing-contracts', 'construction', 'groundbreaking', 'burial', 'medical-treatment', 'praying' ), 37 'enum_labels' => array( $labels['enums']['activity.wedding'] ?? 'Wedding', $labels['enums']['activity.travel'] ?? 'Travel', $labels['enums']['activity.moving-house'] ?? 'Moving house', $labels['enums']['activity.opening-business'] ?? 'Opening business', $labels['enums']['activity.signing-contracts'] ?? 'Signing contracts', $labels['enums']['activity.construction'] ?? 'Construction', $labels['enums']['activity.groundbreaking'] ?? 'Groundbreaking', $labels['enums']['activity.burial'] ?? 'Burial', $labels['enums']['activity.medical-treatment'] ?? 'Medical treatment', $labels['enums']['activity.praying'] ?? 'Praying' ), 38 'fold' => false, 37 39 ), 38 40 array( 39 41 'name' => 'startDate', 40 'label' => __( 'Start date', 'roxyapi' ),42 'label' => $labels['fields']['startDate'] ?? 'Start date', 41 43 'required' => true, 42 'help' => __( 'First date of the range to search, inclusive.', 'roxyapi' ),43 44 'type' => 'date', 45 'fold' => false, 44 46 ), 45 47 array( 46 48 'name' => 'endDate', 47 'label' => __( 'End date', 'roxyapi' ),49 'label' => $labels['fields']['endDate'] ?? 'End date', 48 50 'required' => true, 49 'help' => __( 'Last date of the range to search, inclusive', 'roxyapi' ),50 51 'type' => 'date', 52 'fold' => false, 51 53 ), 52 54 array( 53 55 'name' => 'avoidAnimal', 54 'label' => __( 'Avoid animal', 'roxyapi' ),56 'label' => $labels['fields']['avoidAnimal'] ?? 'Avoid clashes with', 55 57 'required' => false, 56 'help' => __( 'Zodiac animal to protect', 'roxyapi' ),57 58 'type' => 'enum', 58 59 'enum' => array( 'rat', 'ox', 'tiger', 'rabbit', 'dragon', 'snake', 'horse', 'goat', 'monkey', 'rooster', 'dog', 'pig' ), 60 'enum_labels' => array( $labels['enums']['avoidAnimal.rat'] ?? 'Rat', $labels['enums']['avoidAnimal.ox'] ?? 'Ox', $labels['enums']['avoidAnimal.tiger'] ?? 'Tiger', $labels['enums']['avoidAnimal.rabbit'] ?? 'Rabbit', $labels['enums']['avoidAnimal.dragon'] ?? 'Dragon', $labels['enums']['avoidAnimal.snake'] ?? 'Snake', $labels['enums']['avoidAnimal.horse'] ?? 'Horse', $labels['enums']['avoidAnimal.goat'] ?? 'Goat', $labels['enums']['avoidAnimal.monkey'] ?? 'Monkey', $labels['enums']['avoidAnimal.rooster'] ?? 'Rooster', $labels['enums']['avoidAnimal.dog'] ?? 'Dog', $labels['enums']['avoidAnimal.pig'] ?? 'Pig' ), 61 'fold' => true, 59 62 ), 60 63 ),
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)