Skip to content

Commit

Permalink
bootstrap cards working
Browse files Browse the repository at this point in the history
  • Loading branch information
Praesidiarius committed Mar 30, 2021
1 parent 34318df commit e9181f8
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 14 deletions.
14 changes: 0 additions & 14 deletions view/partial/basic_card_footer.phtml

This file was deleted.

13 changes: 13 additions & 0 deletions view/partial/basic_card.phtml → view/templates/card/basic.phtml
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
<?php
/**
* basic.phtml - Basic Card
*
* Main Template file for Basic Bootstrap Card
*
* @category Template
* @package Template
* @author Verein onePlace
* @copyright (C) 2021 Verein onePlace <[email protected]>
* @license https://opensource.org/licenses/BSD-3-Clause
* @version 1.0.0
* @since 1.0.0
*/
$sCardClassFinal = (!isset($sCardClass)) ? 'col-md-12' : $sCardClass;
?>
<div class="<?=$sCardClassFinal?>">
Expand Down
30 changes: 30 additions & 0 deletions view/templates/card/basic_footer.phtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php
/**
* basic_footer.phtml - Basic Card Footer
*
* Footer Template file for Basic Bootstrap Card
*
* @category Template
* @package Template
* @author Verein onePlace
* @copyright (C) 2021 Verein onePlace <[email protected]>
* @license https://opensource.org/licenses/BSD-3-Clause
* @version 1.0.0
* @since 1.0.0
*/
?>

<?php if(isset($sButtonLabel)) { ?>
<button type="submit" class="btn btn-success btn-lg plc-card-savebutton">
<?=(isset($sButtonIcon)) ? '<i class="'.$sButtonIcon.'"></i> ' : ''?><?=$sButtonLabel?>
</button>
<?php } ?>

<?php if(isset($bCancelButton)) {
if($bCancelButton) { ?>
<a href="<?=$sCancelButtonAction?>" class="btn <?=(isset($sCancelButtonClass)) ? $sCancelButtonClass : 'btn-secondary'?> btn-lg">
<?=$this->translate((isset($sCancelButtonLabel)) ? $sCancelButtonLabel : 'Cancel')?>
</a>
<?php
}
}

0 comments on commit e9181f8

Please sign in to comment.