TT#87505 CF timeset fields extend cyclic

* "month", "day", "hour", "minute" can now
      be entered as "day":"30-12" where max < min,
      that is to allow timeset date ranges entered via the API.
      That also brings it equal to how it is accepted to be entered in
      timesets UI form.

Change-Id: Icbfa8f4a3e9086d917fca061525999202b105b64
changes/11/42111/1
Kirill Solomko 5 years ago
parent ba2a80fc81
commit 339a80314a

@ -37,6 +37,7 @@ has_field 'times.month' => (
type => '+NGCP::Panel::Field::NumRangeAPI',
min_start => 1,
max_end => 12,
cyclic => 1,
label => 'Month',
empty_select => '',
);
@ -44,6 +45,7 @@ has_field 'times.mday' => (
type => '+NGCP::Panel::Field::NumRangeAPI',
min_start => 1,
max_end => 31,
cyclic => 1,
label => 'Day',
);
@ -60,6 +62,7 @@ has_field 'times.hour' => (
type => '+NGCP::Panel::Field::NumRangeAPI',
min_start => 0,
max_end => 23,
cyclic => 1,
label => 'Hour',
empty_select => '',
);
@ -68,6 +71,7 @@ has_field 'times.minute' => (
type => '+NGCP::Panel::Field::NumRangeAPI',
min_start => 0,
max_end => 59,
cyclic => 1,
label => 'Minute',
empty_select => '',
);

Loading…
Cancel
Save