<br/>
<div id="desc_<%= rule.id -%>" class="rule_desc" style="display:none">
<%= rule.description %>
- <% if rule.parameters.size>0 %>
- <table >
+ <table style="margin: 10px 0">
<% rule.parameters.each do |parameter|
active_parameter = active_rule.active_param_by_param_id(parameter.id) if active_rule
%>
:locals => {:parameter => parameter, :active_parameter => active_parameter, :profile => profile, :active_rule => active_rule, :is_admin => is_admin } %>
</tbody>
<% end %>
- </table>
- <% end %>
- <br/><span>Key: <%= rule.plugin_rule_key -%></span>
+ <tr>
+ <td width="10%" nowrap class="left">Key: </td>
+ <td class="left"><%= rule.plugin_rule_key -%></td>
+ </tr>
+ </table>
<% if is_admin %>
- <br/>
<% if rule.template? %>
- <a href="<%= url_for :action => 'new', :id => profile.id, :rule_id => rule.id -%>">Create new rule from this template</a>
+ <%= button_to "Create new rule from this template", :action => 'new', :id => profile.id, :rule_id => rule.id %>
<% end %>
<% if rule.editable? %>
- <a href="<%= url_for :action => 'edit', :id => profile.id, :rule_id => rule.id -%>">Edit rule</a>
+ <%= button_to "Edit rule", :action => 'edit', :id => profile.id, :rule_id => rule.id -%>
<% end %>
<% end %>
</div>
%>
<tr>
<td width="10%" nowrap class="left">
- <%= image_tag 'bullet.png' %>
- <%= parameter.name %>
+ <%= parameter.name %>:
</td>
<td width="90%" nowrap class="left">
<%= form_remote_tag :url => {:action => 'update_param', :id => active_param_id, :profile_id => profile.id, :param_id => parameter.id, :active_rule_id => active_rule_id},
.rule_desc {
color: #444;
- padding: 2px 0 15px 0;
+ padding: 2px 0;
}
.rule_desc li {
border-bottom: 1px solid #DDD;
padding: 3px 5px;
height: 20px;
- vertical-align: middle;
-}
-table.data2 > tbody > tr > td {
- vertical-align: middle;
+ vertical-align: top;
}
table.data2 > thead > tr > th {
font-weight: bold;