first standalone plugin commit
This commit is contained in:
13
templates/States/select.php
Normal file
13
templates/States/select.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
/**
|
||||
* @var \App\View\AppView $this
|
||||
* @var iterable<\Cake\Datasource\EntityInterface> $states
|
||||
*/
|
||||
|
||||
$this->setLayout('ajax');
|
||||
|
||||
?>
|
||||
<option value="">Select a state</option>
|
||||
<?php foreach ($states as $stateId => $stateName): ?>
|
||||
<option value="<?= $stateId; ?>" <?= $this->request->getQuery('state_id') == $stateId ? 'selected="selected"' : ''; ?>><?= $stateName; ?></option>
|
||||
<?php endforeach; ?>
|
||||
Reference in New Issue
Block a user