[Jifty-commit] jifty branch, setupwizard-refactor, updated. 036ec308babcadb2d4b5ebd9862ca8c47495c041
Jifty commits
jifty-commit at lists.jifty.org
Mon Jul 19 18:56:36 EDT 2010
The branch, setupwizard-refactor has been updated
via 036ec308babcadb2d4b5ebd9862ca8c47495c041 (commit)
from 63c875f597a5845436b15784b7db50de803558d4 (commit)
Summary of changes:
lib/Jifty/Plugin/SetupWizard/View/Helpers.pm | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit 036ec308babcadb2d4b5ebd9862ca8c47495c041
Author: Thomas Sibley <trs at bestpractical.com>
Date: Mon Jul 19 18:58:11 2010 -0400
Provide more styling hooks in the helper templates
diff --git a/lib/Jifty/Plugin/SetupWizard/View/Helpers.pm b/lib/Jifty/Plugin/SetupWizard/View/Helpers.pm
index 2985fbb..a71f9eb 100644
--- a/lib/Jifty/Plugin/SetupWizard/View/Helpers.pm
+++ b/lib/Jifty/Plugin/SetupWizard/View/Helpers.pm
@@ -203,6 +203,7 @@ template 'database_widget/test_connectivity' => sub {
$action->button(
label => _("Test connectivity"),
+ class => 'test-db-connectivity',
onclick => {
# We can't just submit all actions, because that will also send the restart action,
# which we don't want for just testing the DB
@@ -257,8 +258,11 @@ config, but it's usually not necessary.
private template 'buttons' => sub {
my $self = shift;
- show 'previous_step_button', @_;
- show 'next_step_button', @_;
+ my @args = @_;
+ div {{ class is 'button-line' };
+ show 'next_step_button', @args;
+ show 'previous_step_button', @args;
+ };
};
private template 'previous_step_button' => sub {
@@ -275,6 +279,7 @@ private template 'previous_step_button' => sub {
unless ( not defined $args{'prev'} ) {
hyperlink(
url => $args{'prev'},
+ class => 'prev-button',
label => $args{'prev_label'},
as_button => 1,
);
@@ -318,12 +323,16 @@ private template 'next_step_button' => sub {
$restart => 'url',
default_value => $self->fragment_for($args{'next'})
);
- form_submit( label => $args{'next_label'} );
+ form_submit(
+ label => $args{'next_label'},
+ class => 'next-button',
+ );
}
else {
form_submit(
url => $self->fragment_for($args{'next'}),
label => $args{'next_label'},
+ class => 'next-button',
);
}
}
-----------------------------------------------------------------------
More information about the Jifty-commit
mailing list