From d8ccdecff5bd4bc89ed88a38973e48eb75ed803d Mon Sep 17 00:00:00 2001 From: Scott Walters Date: Thu, 26 Sep 2013 20:03:12 -0500 Subject: [PATCH] Save button in Export as HTML has bad style (#12424): Heh. Actually, the save button is a YUI styled button, and it is perfectly rendered. It also happens to have a background color exactly matching the dialog's background's. Since these buttons are usually unstyled HTML buttons, I swapped the YUI one out for that. I also got distracted with the form rendering half way down the page and creeping down further as the hoverhelp tips come and go so I opened http://www.webgui.org/community/webgui-8/issues/12433 and then temporarily vanquished them in this form. --- lib/WebGUI/AssetHelper/ExportHtml.pm | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/WebGUI/AssetHelper/ExportHtml.pm b/lib/WebGUI/AssetHelper/ExportHtml.pm index c01fde891..56c227d63 100644 --- a/lib/WebGUI/AssetHelper/ExportHtml.pm +++ b/lib/WebGUI/AssetHelper/ExportHtml.pm @@ -133,14 +133,22 @@ ENDHTML 'none' => $i18n->get('rootUrl form option none') }, value => ['none'], ); - $f->addField( "submit", name => "send" ); + + # $f->addField( "submit", name => "send", value => "Save" ); + $f->addField( 'control', name => 'save', value => '
' ); + $f->addField( 'cancel', value => 'Cancel', ); + my $message; eval { $asset->exportCheckPath }; if($@) { $message = $@; } + + my $html = $f->toHtml; + $html =~ s{
.*?
}{}g; # XXX see http://www.webgui.org/community/webgui-8/issues/12433 + return $session->style->process( - $message . $f->toHtml, + join('', $message, $html, ), "PBtmpl0000000000000137" ); }