Skip to content

Commit

Permalink
Dev: Reordered and added borders to buttons in Menues view
Browse files Browse the repository at this point in the history
  • Loading branch information
thedirtypanda committed Jul 14, 2021
1 parent ff35390 commit 6023778
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions application/models/Surveymenu.php
Expand Up @@ -352,26 +352,25 @@ public function getButtons()
$buttons = "<div style='white-space: nowrap'>";
$raw_button_template = ""
. "<button class='btn btn-default btn-sm %s %s' style='margin-right: 5px;' role='button' data-toggle='tooltip' title='%s' onclick='return false;'>" //extra class //title
. "<i class='fa fa-%s' ></i>" //icon class
. "<i class='fa fa-%s' ></i>"
. "</button>";

if (Permission::model()->hasGlobalPermission('settings', 'update')) {
$editData = array(
'action_surveymenu_editModal',
'text-danger',
'green-border',
gT("Edit this survey menu"),
'pencil'
);
$deleteData = array(
'action_surveymenu_deleteModal',
'text-danger',
'red-border',
gT("Delete this survey menu"),
'trash text-danger'
'trash'
);

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

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

$buttons .= '</div>';
Expand Down
2 changes: 1 addition & 1 deletion application/views/admin/super/fullpagebar_view.php
Expand Up @@ -50,7 +50,7 @@ class='btn btn-default'
<a class="btn btn-default"
id="createnewmenu"
style="margin-top: 10px; margin-bottom: 10px;">
<i class="icon-add text-success"></i>&nbsp;<?php eT('New') ?>
<i class="icon-add text-success"></i>&nbsp;<?php eT('New Menu') ?>
</a>
<?php endif; ?>
<?php endif; ?>
Expand Down

0 comments on commit 6023778

Please sign in to comment.