Skip to content

Commit

Permalink
Fixed issue #10115: if no labelset button export disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Dec 16, 2015
1 parent 5f665a1 commit d1769fa
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 7 deletions.
22 changes: 17 additions & 5 deletions application/views/admin/labels/labelsetsbar_view.php
Expand Up @@ -21,14 +21,26 @@


<!-- Export Multiple -->
<?php if (Permission::model()->hasGlobalPermission('labelsets','export')):?>
<a class="btn btn-default" href="<?php echo $this->createUrl("admin/labels/sa/exportmulti");?>" role="button">
<span class="icon-export text-success"></span>
<?php eT("Export multiple label sets"); ?>
</a>
<?php if ( count($labelsets) > 0 ): ?>
<?php if (Permission::model()->hasGlobalPermission('labelsets','export')):?>
<a class="btn btn-default" href="<?php echo $this->createUrl("admin/labels/sa/exportmulti");?>" role="button">
<span class="icon-export text-success"></span>
<?php eT("Export multiple label sets"); ?>
</a>
<?php endif; ?>
<?php else:?>
<?php if (Permission::model()->hasGlobalPermission('labelsets','export')):?>
<span title="<?php eT("No label set"); ?>" data-toggle="tooltip" data-placement="bottom" style="display: inline-block">
<a class="btn btn-default disabled" role="button" >
<span class="icon-export text-success"></span>
<?php eT("Export multiple label sets"); ?>
</a>
</span>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>


<!-- Edition buttons -->
<?php if (isset($labelbar['buttons']['edit'])):?>

Expand Down
Binary file not shown.
6 changes: 6 additions & 0 deletions styles/Sea_Green/css/lime-admin.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion styles/Sea_Green/css/lime-admin.css.map

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion styles/Sea_Green/css/lime-admin.scss
Expand Up @@ -4653,5 +4653,13 @@ input:focus, textarea:focus {


.jumbotron p {
font-weight: 300;
font-weight: 300;
}


span[data-tooltip] {
display: inline-block;
}
span[data-tooltip]:hover, .btn.disabled, .btn.disabled:hover{
cursor: pointer;
}

0 comments on commit d1769fa

Please sign in to comment.