Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TgdO3-0005nG-Tu for pgsql-www@arkaria.postgresql.org; Thu, 06 Dec 2012 15:29:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TgdO3-0003WA-Em for pgsql-www@arkaria.postgresql.org; Thu, 06 Dec 2012 15:29:19 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TgdO2-0003W5-Uw for pgsql-www@postgresql.org; Thu, 06 Dec 2012 15:29:19 +0000 Received: from msa05.smtpout.orange.fr ([193.252.23.214] helo=msa.smtpout.orange.fr) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TgdO1-0008Pf-GV for pgsql-www@postgresql.org; Thu, 06 Dec 2012 15:29:18 +0000 Received: from [192.168.42.12] ([86.201.162.152]) by mwinf5d20 with ME id YFVE1k00B3Hbamm03FVEeU; Thu, 06 Dec 2012 16:29:14 +0100 Message-ID: <50C0B9C9.7050800@dalibo.info> Date: Thu, 06 Dec 2012 16:29:13 +0100 From: damien clochard User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Magnus Hagander CC: PostgreSQL www Subject: Re: pgweb : adding a "duplicate event" button ? References: <50C0AFA9.6000806@dalibo.info> In-Reply-To: X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-www Precedence: bulk Sender: pgsql-www-owner@postgresql.org Le 06/12/2012 16:16, Magnus Hagander a écrit : > On Thu, Dec 6, 2012 at 3:46 PM, damien clochard 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 (pgsql-www@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-www