public inbox for [email protected]help / color / mirror / Atom feed
pgweb : adding a "duplicate event" button ? 3+ messages / 2 participants [nested] [flat]
* pgweb : adding a "duplicate event" button ? @ 2012-12-06 14:46 damien clochard <[email protected]> 0 siblings, 1 reply; 3+ messages in thread From: damien clochard @ 2012-12-06 14:46 UTC (permalink / raw) To: pgsql-www Hi, I'm currently uploading dalibo's training schedule for 2013 to the pg.org website. This means I have to submit 35+ events, which have almost the same description except for the begin/end dates of course. However when I click on the "submit event" button, I get an empty form and then I need copy/paste the content from a previous event. This is quite a boring experience. Am I the only one doing such thing ? Is anyone interested in a "clone" button, so we could just start with a form loaded with data from a previous event ? I took a brief look at the pgweb source code but I'm not sure where to start. I can't even find where the template for : https://www.postgresql.org/account/events/new/ Any help is welcome... -- Sent via pgsql-www mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-www ^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: pgweb : adding a "duplicate event" button ? @ 2012-12-06 15:16 Magnus Hagander <[email protected]> parent: damien clochard <[email protected]> 0 siblings, 1 reply; 3+ messages in thread From: Magnus Hagander @ 2012-12-06 15:16 UTC (permalink / raw) To: damien clochard <[email protected]>; +Cc: pgsql-www On Thu, Dec 6, 2012 at 3:46 PM, damien clochard <[email protected]> wrote: > Hi, > > I'm currently uploading dalibo's training schedule for 2013 to the > pg.org website. This means I have to submit 35+ events, which have > almost the same description except for the begin/end dates of course. > However when I click on the "submit event" button, I get an empty form > and then I need copy/paste the content from a previous event. > > This is quite a boring experience. > > Am I the only one doing such thing ? Is anyone interested in a "clone" > button, so we could just start with a form loaded with data from a > previous event ? That might be useful. And since it's all moderated, i guess the risk of abuse is not *all* that large :) > I took a brief look at the pgweb source code but I'm not sure where to > start. I can't even find where the template for : > https://www.postgresql.org/account/events/new/ All simple forms like this one are handled by simple_form() in util/helpers.py. You'd either have to extend that one with the duplicate functionality (which would be useful if we can assume there will ever be another type of object that we'd want cloning ability for), or have the events no longer use that one. (it's called from events/views.py) -- Magnus Hagander Me: http://www.hagander.net/ Work: http://www.redpill-linpro.com/ -- Sent via pgsql-www mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-www ^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: pgweb : adding a "duplicate event" button ? @ 2012-12-06 15:29 damien clochard <[email protected]> parent: Magnus Hagander <[email protected]> 0 siblings, 0 replies; 3+ messages in thread From: damien clochard @ 2012-12-06 15:29 UTC (permalink / raw) To: Magnus Hagander <[email protected]>; +Cc: pgsql-www Le 06/12/2012 16:16, Magnus Hagander a écrit : > On Thu, Dec 6, 2012 at 3:46 PM, damien clochard <[email protected]> wrote: >> Hi, >> >> I'm currently uploading dalibo's training schedule for 2013 to the >> pg.org website. This means I have to submit 35+ events, which have >> almost the same description except for the begin/end dates of course. >> However when I click on the "submit event" button, I get an empty form >> and then I need copy/paste the content from a previous event. >> >> This is quite a boring experience. >> >> Am I the only one doing such thing ? Is anyone interested in a "clone" >> button, so we could just start with a form loaded with data from a >> previous event ? > > That might be useful. And since it's all moderated, i guess the risk > of abuse is not *all* that large :) > > >> I took a brief look at the pgweb source code but I'm not sure where to >> start. I can't even find where the template for : >> https://www.postgresql.org/account/events/new/ > > All simple forms like this one are handled by simple_form() in > util/helpers.py. You'd either have to extend that one with the > duplicate functionality (which would be useful if we can assume there > will ever be another type of object that we'd want cloning ability > for), or have the events no longer use that one. (it's called from > events/views.py) > > ok thanks :) -- Sent via pgsql-www mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-www ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2012-12-06 15:29 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2012-12-06 14:46 pgweb : adding a "duplicate event" button ? damien clochard <[email protected]> 2012-12-06 15:16 ` Magnus Hagander <[email protected]> 2012-12-06 15:29 ` damien clochard <[email protected]>
This inbox is served by agora; see mirroring instructions for how to clone and mirror all data and code used for this inbox