Skip to content

A Set of View Templates to Build Sofware wih onePlace or any other laminas-mvc based application

License

Notifications You must be signed in to change notification settings

OnePlc/PLC_X_Templates

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>