ref: refs/heads/master
commit 2fc82f99257af354c62354003d861e638691fa79
Author: Martin Kudlvasr
Date: Thu Jul 23 19:07:52 2009 +0200
beautify button in host edit form
change code from <a> for link_to in patch_updates
---
.../app/views/patch_updates/index.html.erb | 2 +-
webclient/app/views/hosts/edit.html.erb | 7 +++++--
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/plugins/patch_updates/app/views/patch_updates/index.html.erb b/plugins/patch_updates/app/views/patch_updates/index.html.erb
index 7a6a9db..8f17153 100644
--- a/plugins/patch_updates/app/views/patch_updates/index.html.erb
+++ b/plugins/patch_updates/app/views/patch_updates/index.html.erb
@@ -39,7 +39,7 @@
<input type="checkbox" name="All" id="All">All</input>
<%= submit_tag _("Update"), :onclick=>"Element.show('progress')", :action => 'install', :class => 'button' -%>
- <a href="/" class="button"><%=_("Back")%></a>
+ <%= link_to _("Back"), '/', :class=>"button" %>
<% end %>
</div>
diff --git a/webclient/app/views/hosts/edit.html.erb b/webclient/app/views/hosts/edit.html.erb
index c8641f9..0f952df 100644
--- a/webclient/app/views/hosts/edit.html.erb
+++ b/webclient/app/views/hosts/edit.html.erb
@@ -36,7 +36,10 @@ $(document).ready(function() {
<td class="last"><%= f.text_field :description %></td>
</tr>
</table>
- <p><%= f.submit _("Ok") %></p>
+ <p>
+ <%= f.submit _("Ok"), :class => "button" %>
+ <%= link_to _("Back"), '/hosts', :class=>"button" %>
+ </p>
</div>
<% end %>
-<%= button_to _('Cancel'), host_path, :class => "button" %>
\ No newline at end of file
+
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org