Mailinglist Archive: yast-devel (152 mails)

< Previous Next >
Re: [yast-devel] Re: [yast-commit] <web-client> master : Remove all empty 'alt=' tags
  • From: Klaus Kaempf <kkaempf@xxxxxxx>
  • Date: Wed, 15 Jul 2009 11:42:43 +0200
  • Message-id: <20090715094242.GB22973@xxxxxxxxxxxxx>
* josef reidinger <jreidinger@xxxxxxx> [Jul 15. 2009 11:07]:
- <input class="button jqModal" type="submit" value="Add"
id="add-host" />
+ <%= link_to _('Add'), new_host_path, :class => "button" %>
FIXME may be add remove and edit buttons and get rid of the icons
<input class="button disabled" disabled="true" type="submit"
value="Remove" id="remove-printer"/>

Hi, I don't understand this change. If it is part of form, that direct
link doesn't work, does? And if it is separated button that do action
(think this is that case) why not use button_to? Is there some magic in
rails that I don't see?

The <input...> didn't work at all, so to get to the 'add host' page, I
simply replaced it with a link.

But 'button_to' is an even better solution, now it looks right.

Thanks, I didn't know about 'button_to' before !

SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG N├╝rnberg)

To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >