Skip to content

Commit

Permalink
add comments regarding profile timezone list
Browse files Browse the repository at this point in the history
  • Loading branch information
amnah committed Jan 23, 2016
1 parent 048b3ec commit da5fa76
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions views/default/profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@

<?= $form->field($profile, 'full_name') ?>

<?php
// by default, this contains the entire php timezone list of 400+ entries
// so you may want to set up a fancy jquery select plugin for this, eg, select2 or chosen
// alternatively, you could use your own filtered list
// a good example is twitter's timezone choices, which contains ~143 entries
// @link https://twitter.com/settings/account
?>
<?= $form->field($profile, 'timezone')->dropDownList(ArrayHelper::map(Timezone::getAll(), 'identifier', 'name')); ?>

<div class="form-group">
Expand Down

0 comments on commit da5fa76

Please sign in to comment.