-
Notifications
You must be signed in to change notification settings - Fork 0
Improve the ScheduleForm #294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
2953bec
to
b17824b
Compare
application/forms/ScheduleForm.php
Outdated
$this->addElement('text', 'name', [ | ||
'required' => true, | ||
'label' => $this->translate('Name') | ||
'label' => $this->translate('Schedule Name'), | ||
'placeholder' => 'e.g. working hours, on call, etc ...' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
translate?
public/css/form.less
Outdated
@@ -116,3 +116,8 @@ | |||
border-color: transparent; | |||
} | |||
} | |||
|
|||
.icinga-form p.description { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.icinga-form
is used for layout, this is style. For style a tag is usually not important, just a class suffices.
.icinga-form p.description { | |
.icinga-controls .description { |
new Text($this->translate( | ||
'Organize contacts and contact groups in a time based schedule and let them rotate' | ||
. ' automatically. Multiple rotations can be added to your schedule to represent the rotating' | ||
. ' members in your admin team. Schedules can be used as recipients of event rules.' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This poses another question for me 🤣 : What is an admin team?
I think a less specific but still not too abstract example is required, to explain why multiple rotations are useful.
Something along this line:
Multiple rotations allow differing rotation patterns to override others.
But not quite this line, I just cannot come up with a better alternative right now. But I hope you get the idea.
b17824b
to
143e2f5
Compare
resolves #275