[Jifty-commit] r7259 - in jifty/trunk/lib/Jifty/Plugin: .
Jifty commits
jifty-commit at lists.jifty.org
Mon Jun 15 23:32:47 EDT 2009
Author: sartak
Date: Mon Jun 15 23:32:46 2009
New Revision: 7259
Modified:
jifty/trunk/lib/Jifty/Plugin/SetupWizard.pm
jifty/trunk/lib/Jifty/Plugin/SetupWizard/View.pm
Log:
Hide the "save" button on the finalize step
Modified: jifty/trunk/lib/Jifty/Plugin/SetupWizard.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/SetupWizard.pm (original)
+++ jifty/trunk/lib/Jifty/Plugin/SetupWizard.pm Mon Jun 15 23:32:46 2009
@@ -36,8 +36,9 @@
header => 'Web',
},
{
- template => 'finalize',
- header => 'Finalize',
+ template => 'finalize',
+ header => 'Finalize',
+ hide_button => 1,
},
]);
}
Modified: jifty/trunk/lib/Jifty/Plugin/SetupWizard/View.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/SetupWizard/View.pm (original)
+++ jifty/trunk/lib/Jifty/Plugin/SetupWizard/View.pm Mon Jun 15 23:32:46 2009
@@ -30,19 +30,22 @@
h3 { _('%1. %2', $step+1, $step_info->{header}) } if $step_info->{header};
show "/__jifty/admin/setupwizard/$step_info->{template}";
- form_submit(
- label => _('Save'),
- onclick => {
- # Submit all actions
- submit => undef,
-
- # Advance to the next step
- refresh_self => 1,
- arguments => {
- step => $step + 1,
+
+ unless ($step_info->{hide_button}) {
+ form_submit(
+ label => _('Save'),
+ onclick => {
+ # Submit all actions
+ submit => undef,
+
+ # Advance to the next step
+ refresh_self => 1,
+ arguments => {
+ step => $step + 1,
+ },
},
- },
- );
+ );
+ }
};
};
More information about the Jifty-commit
mailing list