Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
fix(style): Add missing style for button in svc ack form (#6805)
Browse files Browse the repository at this point in the history
  • Loading branch information
lpinsivy authored and kduret committed Oct 13, 2018
1 parent 796f45c commit e4c9123
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/include/monitoring/acknowlegement/serviceAcknowledge.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@
$form->addRule('comment', _("Comment is required"), 'required', '', 'client');
$form->setJsWarnings(_("Invalid information entered"), _("Please correct these fields"));

$form->addElement('submit', 'submit', ($en == 1) ? _("Add") : _("Delete"));
$form->addElement('reset', 'reset', _("Reset"));
$form->addElement('submit', 'submit', ($en == 1) ? _("Add") : _("Delete"), ($en == 1) ? array("class" => "btc bt_success") : array("class" => "btc bt_danger"));
$form->addElement('reset', 'reset', _("Reset"), array("class" => "btc bt_default"));

$renderer = new HTML_QuickForm_Renderer_ArraySmarty($tpl);
$renderer->setRequiredTemplate('{$label}&nbsp;<font color="red" size="1">*</font>');
Expand Down

0 comments on commit e4c9123

Please sign in to comment.