Mailinglist Archive: yast-commit (2114 mails)

< Previous Next >
[yast-commit] <web-client> master : two forms for two different settings
  • From: Jiri Suchomel <jsuchome@xxxxxxx>
  • Date: Mon, 14 Sep 2009 16:41:32 +0200
  • Message-id: <E1MnCjz-0004hp-N6@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit 9ba7fbcfd21db8086d0118ef1f82a1cae89483b0
Author: Jiri Suchomel <jsuchome@xxxxxxx>
Date: Mon Sep 14 16:41:15 2009 +0200

two forms for two different settings
---
.../app/views/administrator/index.html.erb | 23 +++++++++++--------
1 files changed, 13 insertions(+), 10 deletions(-)

diff --git a/plugins/administrator/app/views/administrator/index.html.erb
b/plugins/administrator/app/views/administrator/index.html.erb
index fdac4da..c94cedb 100644
--- a/plugins/administrator/app/views/administrator/index.html.erb
+++ b/plugins/administrator/app/views/administrator/index.html.erb
@@ -4,23 +4,26 @@

<% disabled = ! @permissions[:write] %>

-<% form_for(:administrator, @administrator, :url => { :action => "update" },
:html => { :method => :put } ) do |f| %>
+<div class="table">
+ <table class="list">
+ <% form_for(:administrator, @administrator, :url => { :action => "update" },
:html => { :method => :put } ) do |f| %>
<%= f.error_messages %>
- <div class="table">
- <table class="list" cellpadding="0" cellspacing="0">
<tr class="bg">
<td class="first"><strong><%=_("Password")%></strong></td>
<td class="last"><%= f.password_field :password, :disabled => disabled
%></td>
+ <td><%= f.submit _("Save"), :disabled => disabled %></td>
</tr>
+ <% end %>
+ <% form_for(:administrator, @administrator, :url => { :action => "update" },
:html => { :method => :put } ) do |f| %>
+ <%= f.error_messages %>
<tr class="bg">
<td class="first"><strong><%=_("Forward mail to")%></strong></td>
<td class="last"><%= f.text_field :aliases, :disabled => disabled
%></td>
+ <td><%= f.submit _("Save"), :disabled => disabled %></td>
</tr>
- </table>
- <p>
- <%= f.submit _("Save"), :disabled => disabled %>
- <%= link_to _('Back'), {:action => :index},
:onclick=>"Element.show('progress')", :class => "button"%>
- </p>
- </div>
-<% end %>
+ <% end %>
+ </table>
+</div>
+
+<%= link_to _('Back'), {:action => :index},
:onclick=>"Element.show('progress')", :class => "button"%>

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

< Previous Next >
This Thread
  • No further messages