Ok -- I think I have something that will work well for everybody.
Please check out this branch I just created:

http://github.com/eksatx/communityengine/commits/events_with_metro_areas/

- It uses location (so you can specify an address) with a link to
Google Maps.
- It uses the metro area selector widget (defaults to the user's metro
area if set for new events)
- The new events index view displays both the metro area and location
elegantly (I think)

I also took the liberty of adding the calendar_date_select.  I have
used this gem on a bunch of sites and I have found it to work well.
It has a few advantages:

- Fast
- Easy integration
- Looks good
- Integrates date and time in one widget -- a cleaner look than the
other date selector

Bruno -- I hope you don't mind that I threw in this other calendar
widget.  If you hate it, it's pretty trivial to back it out.  I think
you'll like it better too...

If we go with calendar_date_select then you need to update the install
template.  It requires:

- gem install calendar_date_select
- add config.gem 'calendar_date_select' to environment.rb

Alright, I'm going to sleep now...

On Jul 7, 9:17 am, Errol Siegel <[email protected]> wrote:
> That's good news about the date selector -- I was gonna look at that next.
>
> I reviewed the relevant views controllers to see how hard it would be to
> have fields for both location and metro area, and it looks like you had
> already started this (I see the commented out location selector in the new
> and edit views).
>
> This should be easy.  With any luck I'll knock this out today.
>
> On Tue, Jul 7, 2009 at 8:53 AM, Bruno Bornsztein <[email protected]
>
> > wrote:
> > Update: your changes are merged into edge. I also went ahead and added a js
> > datepicker (I was sick of those ugly date_select fields).
>
> >> I am allowing users to enter an actual address, not necessarily just a
> >> city name.
>
> >> So, if somebody enters, "Spider House Cafe, 2908 Fruth St., Austin, TX,"
> >> it will display that along with a Google Maps link to that address.  If 
> >> they
> >> enter nothing, it will display the metro area name if the user has set one.
> >> If neither a location for the event nor a metro area for the user are set
> >> then it displays nothing.
>
> > In that case let's at least call it "event_location" (no need to save
> > keystrokes)
>
> >> Do you not like the idea of allowing users to enter an address for the
> >> location?
>
> >> If you do not like the way I have done this, I have an alternate idea that
> >> I could put together:
>
> >> 1. Add a drop-down menu to the edit/new view to select a metro area.  The
> >> default selection would be the user's metro area (if it is set).
>
> >> 2. Use location only as an address (or nil).
>
> >> 3. Update the index view to display separate lines for metro area (if set)
> >> and location (if set).  This leaves the door open to add a link to filter
> >> the view by metro area.
>
> > This would probably be best. Plus we could link the address they entered to
> > Google Maps as well.
>
> > Thanks,
> > Bruno
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CommunityEngine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to