Skip to content

Instantly share code, notes, and snippets.

@groupewibi
Last active January 25, 2018 03:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save groupewibi/b05057e94aa9cc68853d327b673c80c7 to your computer and use it in GitHub Desktop.
Save groupewibi/b05057e94aa9cc68853d327b673c80c7 to your computer and use it in GitHub Desktop.
/* in ...application/modules/quotes/views/modal_create_quote.php : replace --------*/
<select name="client_id" id="create_quote_client_id" class="client-id-select form-control"
autofocus="autofocus">
<?php if (!empty($client)) : ?>
<option value="<?php echo $client->client_id; ?>"><?php _htmlsc(format_client($client)); ?></option>
<?php endif; ?>
</select>
/* ----- BY --------*/
<select name="client_id" id="create_quote_client_id" class="form-control" autofocus="autofocus">
<?php
foreach ($clients as $client) {
echo "<option value=\"" . $client->client_id . "\" ";
echo ">" . htmlsc(format_client($client)) . "</option>";
}
?>
</select>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment