'type' => 'checkbox', 'name' => 'checkbox', 'options' => [ 'check_1' => 'Option 1', 'check_2' => 'Option 2', 'check_3' => 'Option 3', 'check_4' => 'Option 4', 'check_5' => 'Option 5' ] ]); </pre> </code> <h3>Select with all the options</h3> <?php echo SAMUIKit\FormControls::select(['label' => 'Checkbox', 'type' => 'checkbox', 'name' => 'checkbox', 'options' => ['check_1' => 'Option 1', 'check_2' => 'Option 2', 'check_3' => 'Option 3', 'check_4' => 'Option 4', 'check_5' => 'Option 5'], 'required' => true, 'hint' => 'The hint for the form control.', 'errorMessage' => 'This form control has errors', 'selected' => ['check_1', 'check_3', 'check_4']]); ?> <code> <pre> echo SAMUIKit\FormControls::select([ 'label' => 'Checkbox', 'type' => 'checkbox', 'name' => 'checkbox', 'options' => [ 'check_1' => 'Option 1', 'check_2' => 'Option 2', 'check_3' => 'Option 3', 'check_4' => 'Option 4', 'check_5' => 'Option 5' ], 'required' => true,
echo SAMUIKit\Other::action(['type' => 'unarchive', 'target' => '#']); ?> </div> </div> <p><strong>Search Result</strong></p> <div class="usa-grid-full"> <?php echo SAMUIKit\Search::result(['content' => ['<p><strong><a href="#">This is a sample title</a></strong></p>'], 'metadata' => ['<p><strong>Metadata 1:</strong> This is a piece of metadata.</p>']]); echo SAMUIKit\Search::result(['content' => ['<p><strong><a href="#">This is a sample title</a></strong></p>', '<p>This search result allows actions to be performed.</p>'], 'metadata' => ['<p><strong>Metadata 1:</strong> This is a piece of metadata.</p>', '<p><strong>Metadata 2:</strong> This is another piece of metadata.</p>'], 'actions' => [['type' => 'archive', 'target' => '#'], ['type' => 'edit', 'target' => '#'], ['type' => 'delete', 'target' => '#']]]); echo SAMUIKit\Search::result(['content' => ['<p><strong><a href="#">This is a sample title</a></strong></p>', '<p>The search result view inherits from this view. The only difference is that the search result view has a wrapping container for the addition of a border at the bottom. Therefore, the information architecture of both elements is the same.</p>']]); ?> </div> <p><strong>Resource</strong></p> <div class="usa-width-one-whole"> <h1>Viewing a Single Resource</h1> <?php echo SAMUIKit\Other::resource(['content' => ['<p>The search result view inherits from this view. The only difference is that the search result view has a wrapping container for the addition of a border at the bottom. Therefore, the information architecture of both elements is the same.</p>']]); echo SAMUIKit\Other::resource(['content' => ['<p>The search result view inherits from this view. The only difference is that the search result view has a wrapping container for the addition of a border at the bottom. Therefore, the information architecture of both elements is the same.</p>'], 'metadata' => [['template' => 'Other|label', 'config' => ['title' => 'New', 'surround' => '<p>|</p>']], '<p><strong>Metadata 1:</strong> This is a piece of metadata.</p>'], 'actions' => [['type' => 'archive', 'target' => '#'], ['type' => 'edit', 'target' => '#'], ['type' => 'delete', 'target' => '#']]]); ?> </div> <p><strong>State select</strong></p> <div class="usa-width-one-whole"> <?php echo SAMUIKit\FormControls::stateSelect(); ?> </div> <?php include_once './partials/htmlClose.php';