oneplace/oneplace-templates

onePlace Templates

Installs: 149

Dependents: 3

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 3

Type:oneplace-module

1.0.1 2021-04-01 09:26 UTC

This package is auto-updated.

Last update: 2024-04-29 04:53:29 UTC


README

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>