Esempio n. 1
0
    def render(self, what):
        html.open_div(class_="group")
        html.write_text(_("Spread over") + " ")
        html.text_input("_resched_spread", default_value="0", size=3, cssclass="number")
        html.write_text(" " + _("minutes"))
        html.close_div()

        html.div(html.render_button("_resched_checks", _("Reschedule"), cssclass="hot"),
                 class_="group")
Esempio n. 2
0
    def render(self, what):
        html.open_div(class_="group")
        html.write_text(_('Comment') + ": ")
        html.text_input("_comment", size=33, submit="_add_comment")
        html.close_div()

        html.div(html.render_button("_add_comment",
                                    _("Add comment"),
                                    cssclass="hot"),
                 class_="group")
Esempio n. 3
0
    def render(self, what):
        html.open_div(class_="group")
        html.text_input("_comment",
                        id_="comment",
                        size=60,
                        submit="_add_comment",
                        label=_("Comment"),
                        required=True)
        html.close_div()

        html.div(html.render_button("_add_comment", _("Add comment"), cssclass="hot"),
                 class_="group")
Esempio n. 4
0
    def render(self, what):
        html.open_div(class_="group")
        html.text_input("_cusnot_comment",
                        "TEST",
                        id_="cusnot_comment",
                        size=60,
                        submit="_customnotification",
                        label=_("Comment"))
        html.close_div()

        html.open_div(class_="group")
        html.checkbox("_cusnot_forced", False, label=_("forced"))
        html.checkbox("_cusnot_broadcast", False, label=_("broadcast"))
        html.close_div()

        html.div(html.render_button("_customnotification", _('Send'), cssclass="hot"),
                 class_="group")