<?php include_once './partials/htmlOpen.php'; ?> <h1>Form Templates</h1> <h2>Sign In Form</h2> <?php echo SAMUIKit\FormTemplates::signInForm(['textInputs' => [['label' => 'Email address', 'type' => 'email', 'name' => 'email', 'required' => true], ['label' => 'Password', 'type' => 'password', 'name' => 'password', 'required' => true]], 'createPath' => '/path/to/create/account', 'forgotLinks' => ['/forgot/username' => 'Forgot username', '/forgot/password' => 'Forgot password'], 'showPasswordOnClick' => 'ShowPasswordMethod']); include_once './partials/htmlClose.php'; ?>
echo SAMUIKit\FormControls::dateInput(['label' => 'Date fieldset legend - pref-filled', 'name' => 'date_3', 'hint' => 'Inline help text.', 'month' => 1, 'day' => 1, 'year' => 2015, 'errorMessage' => 'There was an error.']); ?> </div> </div> <p style="clear: both; padding-top: 20px;"><strong>Form Templates</strong></p> <p style="clear: both; padding-top: 40px;"><i>Sign in form</i></p> <div class="usa-with-one-whole" style="clear: both; padding-top: 20px;"> <div class="usa-width-one-half"> <?php echo SAMUIKit\FormTemplates::signInForm(['textInputs' => [['label' => 'Email address', 'type' => 'email', 'name' => 'email', 'hint' => 'Your registered email address.'], ['label' => 'Password', 'type' => 'password', 'name' => 'password']], 'createPath' => '/path/to/register', 'forgotLinks' => ['/path/to/reset/password' => 'Forgot password'], 'showPasswordOnClick' => 'ShowPasswordEventHandler']); ?> </div> <div class="usa-width-one-half"> <?php echo SAMUIKit\FormTemplates::signInForm(['textInputs' => [['label' => 'Email address', 'type' => 'email', 'name' => 'email', 'hint' => 'Your registered email address.', 'errorMessage' => 'Invalid email address.', 'value' => 'something is incorrect'], ['label' => 'Password', 'type' => 'password', 'name' => 'password']], 'createPath' => '/path/to/register', 'forgotLinks' => ['/path/to/reset/password' => 'Forgot password'], 'showPasswordOnClick' => 'ShowPasswordEventHandler']); ?> </div> </div> <p style="clear: both; padding-top: 20px;"><strong>Form Controls</strong></p> <p style="clear: both; padding-top: 40px;"><i>SAMUIKit Search Bars</i></p> <div class="usa-with-one-whole" style="clear: both; padding-top: 20px;"> <div class="usa-width-one-half"> <?php echo SAMUIKit\Search::searchBar(['label' => 'Search label', 'type' => 'big', 'action' => '#', 'method' => 'GET']); ?> </div> <div class="usa-width-one-half"> <?php echo SAMUIKit\Search::searchBar(['label' => 'Search label', 'type' => 'medium', 'action' => '#', 'method' => 'GET']);