Skip to content

Commit

Permalink
dev: modal change participant delete (action button in list)
Browse files Browse the repository at this point in the history
  • Loading branch information
Trischi80 committed Jul 14, 2021
1 parent 5102c74 commit 0713c99
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions application/models/ParticipantAttributeName.php
Expand Up @@ -126,9 +126,15 @@ public function getButtons()
gT("Delete this attribute"),
'trash'
);
$buttons .= "<a href='#' data-toggle='modal' data-target='#confirmation-modal' data-onclick='deleteAttributeAjax(" . $this->attribute_id . ")'>"
. vsprintf($raw_button_template, $deleteData)
. "</a>";
$buttons .= "<a href='#'
data-toggle='modal'
data-target='#confirmation-modal'
data-title='" . gT("Delete this attribute") . "'
data-btnclass='btn-danger'
data-btntext='" . gt("Delete") . "'
data-message=' " . gt("Do you really want to delete this attribute") ."?'
data-onclick='deleteAttributeAjax(" . $this->attribute_id . ")'>";
$buttons.= vsprintf($raw_button_template, $deleteData) . "</a>";

return $buttons;
}
Expand Down

0 comments on commit 0713c99

Please sign in to comment.