Skip to content

Latest commit

 

History

History
56 lines (42 loc) · 1.52 KB

README.md

File metadata and controls

56 lines (42 loc) · 1.52 KB

oneplace-templates

Packagist Downloads Stable Version GitHub Release Date Open Issues

Introduction

This is a collection of templates to build software with onePlace

You can actually use this collection of bootstrap based html templates for every laminas-mvc based application

Included Components

Installation

The easiest way to install onePlace Templates is via composer

composer require oneplace/oneplace-templates

Quick Start

Just use the templates you want and customize them in the way you need. Here is an example of an form based on a bootstrap card

# Define Body
$sCardBody = 'YOUR-HTML-OR-PARTIAL-HERE';

# Define Footer
$sCardFooter = $this->partial('templates/card/basic_footer', [
    'sButtonLabel' => $this->translate('Save Calendar'),
    'sButtonIcon' => 'fas fa-save',
    'bCancelButton' => true,
    'sCancelButtonAction' => '/calendar',
]);

?>
<form action="" method="POST">
    <div class="row">
    <?php
    # Print Card
    echo $this->partial('templates/card/basic', [
        'sCardTitle' => $this->translate('Manage Calendar'),
        'sCardBody' => $sCardBody,
        'sCardFooter' => $sCardFooter,
    ]);
    ?>
    </div>
</form>