Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Using the fancy date/time widget with newforms
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dave  
View profile  
 More options Oct 9 2007, 3:24 pm
From: Dave <demsulli...@gmail.com>
Date: Tue, 09 Oct 2007 12:24:46 -0700
Local: Tues, Oct 9 2007 3:24 pm
Subject: Using the fancy date/time widget with newforms
Hey All,

Is there a simple way to re-create the fancy admin date/time widget
(with the 'Today'/'Now' buttons and the pop-up calendar) with
newforms?
I can see how to do it by creating a custom widget, but I thought
perhaps there was an easier way.

Thoughts?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Russell Keith-Magee  
View profile  
 More options Oct 9 2007, 7:38 pm
From: "Russell Keith-Magee" <freakboy3...@gmail.com>
Date: Wed, 10 Oct 2007 07:38:51 +0800
Local: Tues, Oct 9 2007 7:38 pm
Subject: Re: Using the fancy date/time widget with newforms
On 10/10/07, Dave <demsulli...@gmail.com> wrote:

> Hey All,

> Is there a simple way to re-create the fancy admin date/time widget
> (with the 'Today'/'Now' buttons and the pop-up calendar) with
> newforms?
> I can see how to do it by creating a custom widget, but I thought
> perhaps there was an easier way.

A custom widget would be the correct approach. In fact, the widget has
already been written - it is in the newforms-admin branch in
django.contrib.admin.widgets as AdminDateWidget and AdminTimeWidget.

These admin widgets won't be directly usable in a trunk-based project
- they make use of Media defintions, which have been added in the
newforms-admin branch. However, you should be able to use them to give
you ideas on how a custom date widget should be written.

Yours,
Russ Magee %-)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Ford  
View profile  
 More options Oct 9 2007, 10:08 pm
From: "Ben Ford" <ben.for...@gmail.com>
Date: Wed, 10 Oct 2007 09:08:41 +0700
Local: Tues, Oct 9 2007 10:08 pm
Subject: Re: Using the fancy date/time widget with newforms

Hi Dave,
I believe this is what you're looking for
http://www.djangosnippets.org/snippets/391/ I had to tweek a few things to
get it to work, but it looks pretty damn good now! If it's what you want let
me know if you have any issues setting it up and I'll do my best to help ;-)
Ben

On 10/10/2007, Dave <demsulli...@gmail.com> wrote:

> Hey All,

> Is there a simple way to re-create the fancy admin date/time widget
> (with the 'Today'/'Now' buttons and the pop-up calendar) with
> newforms?
> I can see how to do it by creating a custom widget, but I thought
> perhaps there was an easier way.

> Thoughts?

--
Regards,
Ben Ford
ben.for...@gmail.com
+6281317958862

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »