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.
This commit is contained in:
parent
b8923426e2
commit
d8ccdecff5
1 changed files with 10 additions and 2 deletions
|
|
@ -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 => '<br><input type="submit" name="submit" value="Save">' );
|
||||
$f->addField( 'cancel', value => 'Cancel', );
|
||||
|
||||
my $message;
|
||||
eval { $asset->exportCheckPath };
|
||||
if($@) {
|
||||
$message = $@;
|
||||
}
|
||||
|
||||
my $html = $f->toHtml;
|
||||
$html =~ s{<div class="wg-hoverhelp">.*?</div>}{}g; # XXX see http://www.webgui.org/community/webgui-8/issues/12433
|
||||
|
||||
return $session->style->process(
|
||||
$message . $f->toHtml,
|
||||
join('', $message, $html, ),
|
||||
"PBtmpl0000000000000137"
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue