<% end %>
</h4>
<p><%= note.html_text -%></p>
- <% elsif is_admin %>
+ <% elsif is_admin && !active_rule.rules_profile.provided? %>
<input type="button" id="<%= add_active_note_button_id -%>" value="<%= message('rules_configuration.add_note') -%>"
onclick="$('<%= active_note_form_div_id -%>').show();$('<%= active_note_detail_div_id -%>').hide();$('<%= active_note_textarea_id -%>').focus();">
<% end %>
%>
<tbody id="param_<%= parameter.id -%>">
<%= render :partial => 'rule_param', :object => nil,
- :locals => {:parameter => parameter, :active_parameter => active_parameter, :profile => profile,
+ :locals => {:parameter => parameter, :active_parameter => active_parameter, :profile => profile, :rule => rule,
:active_rule => active_rule, :ancestor_active_rule => ancestor_active_rule, :is_admin => is_admin } %>
</tbody>
<% end %>
</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},
- :update => "rule_#{active_rule.rule_id}",
+ :update => "rule_#{rule.id}",
:loading => "$('param_loading_#{parameter.id}').show();",
- :complete => "$('desc_#{active_rule.rule_id}').show();" %>
+ :complete => "$('desc_#{rule.id}').show();" %>
<% span_id = "text_#{parameter.id}" %>
<% read_only = !active_rule || !enable_modification %>
<% end %>
<%
- if active_rule.overrides? && ancestor_active_rule
+ if active_rule && active_rule.overrides? && ancestor_active_rule
ancestor_param = ancestor_active_rule.active_param_by_param_id(parameter.id)
ancestor_value = ancestor_param.value unless ancestor_param.value.blank?