[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[5648] trunk
- Subject: SF.net SVN: ledger-smb:[5648] trunk
- From: ..hidden..
- Date: Thu, 07 Feb 2013 08:28:07 +0000
Revision: 5648
http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=5648&view=rev
Author: einhverfr
Date: 2013-02-07 08:28:06 +0000 (Thu, 07 Feb 2013)
Log Message:
-----------
Removed 'Reposting not allowed' error for orders and quotations (new problem for 1.4)
Modified Paths:
--------------
trunk/bin/oe.pl
Added Paths:
-----------
trunk/UI/oe-save_warn.html
Added: trunk/UI/oe-save_warn.html
===================================================================
--- trunk/UI/oe-save_warn.html (rev 0)
+++ trunk/UI/oe-save_warn.html 2013-02-07 08:28:06 UTC (rev 5648)
@@ -0,0 +1,24 @@
+<?lsmb INCLUDE "ui-header.html";
+PROCESS elements.html ?>
+<body>
+<form method=post action="oe.pl">
+<h2 class=confirm> <?lsmb text('Warning!') ?></h2>
+<?lsmb FOR h IN hiddens.keys;
+ PROCESS input element_data = {
+ type = "hidden"
+ name = h
+ value = hiddens.$h
+ };
+END ?>
+<h4><?lsmb text('Saving over an existing document. Continue?') ?></h4>
+<?lsmb PROCESS button element_data = {
+ name="action"
+ class="submit"
+ type="submit"
+ value="continue"
+ text=text('Continue')
+} ?>
+</form>
+</body>
+</html>
+
Modified: trunk/bin/oe.pl
===================================================================
--- trunk/bin/oe.pl 2013-02-07 07:45:30 UTC (rev 5647)
+++ trunk/bin/oe.pl 2013-02-07 08:28:06 UTC (rev 5648)
@@ -1306,10 +1306,15 @@
}
if ( !$form->{repost} ) {
- if ( $form->{id} ) {
- &repost("Save");
- $form->finalize_request();
- }
+ my $template = LedgerSMB::Template->new_UI(
+ user => \%myconfig,
+ locale => $locale,
+ template => 'oe-save_warn',
+ );
+
+ return $template->render({
+ hiddens => $form
+ });
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.