[Jifty-commit] r3678 - in jifty/trunk: lib/Jifty/View/Declare
lib/Jifty/Web/Form/Field
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Thu Jul 12 00:47:48 EDT 2007
Author: trs
Date: Thu Jul 12 00:47:47 2007
New Revision: 3678
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/View/Declare/CRUD.pm
jifty/trunk/lib/Jifty/Web/Form/Field/Upload.pm
Log:
r25178 at zot: tom | 2007-07-12 00:45:24 -0400
Add some classes
Modified: jifty/trunk/lib/Jifty/View/Declare/CRUD.pm
==============================================================================
--- jifty/trunk/lib/Jifty/View/Declare/CRUD.pm (original)
+++ jifty/trunk/lib/Jifty/View/Declare/CRUD.pm Thu Jul 12 00:47:47 2007
@@ -276,7 +276,8 @@
replace_with => $self->fragment_for('view'),
args => { object_type => $object_type, id => $id }
},
- as_button => 1
+ as_button => 1,
+ class => 'cancel'
);
if ( $record->current_user_can('delete') ) {
$delete->button(
@@ -285,7 +286,8 @@
submit => $delete,
confirm => 'Really delete?',
refresh => Jifty->web->current_region->parent,
- }
+ },
+ class => 'delete'
);
}
};
Modified: jifty/trunk/lib/Jifty/Web/Form/Field/Upload.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Web/Form/Field/Upload.pm (original)
+++ jifty/trunk/lib/Jifty/Web/Form/Field/Upload.pm Thu Jul 12 00:47:47 2007
@@ -44,4 +44,15 @@
'';
}
+=head2 classes
+
+Add 'upload' to the rest of the classes
+
+=cut
+
+sub classes {
+ my $self = shift;
+ return join(' ', 'upload', ($self->SUPER::classes));
+}
+
1;
More information about the Jifty-commit
mailing list