Skip to content

Commit

Permalink
Dev: Added green and red borders to buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
thedirtypanda committed Jul 14, 2021
1 parent bc41957 commit ecf40f3
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions application/models/ParticipantAttributeName.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ public function attributeLabels()
}

/**
* Returns Buttons for Grid view
* @return string html
*/
public function getButtons()
Expand All @@ -108,22 +109,22 @@ public function getButtons()
. "<span class='fa fa-%s' ></span>" //icon class
. "</button>";
$buttons = "";
//DELETE attribute

//Edit-button
$editData = array(
'action_attributeNames_editModal',
'green-border action_attributeNames_editModal',
'',
gT("Edit this attribute"),
'pencil'
);

$buttons .= vsprintf($raw_button_template, $editData);

//delete-button
$deleteData = array(
'action_attributeNames_deleteModal',
'text-danger',
'red-border action_attributeNames_deleteModal',
'',
gT("Delete this attribute"),
'trash text-danger'
'trash'
);
$buttons .= "<a href='#' data-toggle='modal' data-target='#confirmation-modal' data-onclick='deleteAttributeAjax(" . $this->attribute_id . ")'>"
. vsprintf($raw_button_template, $deleteData)
Expand Down

0 comments on commit ecf40f3

Please sign in to comment.