<div class="modal-body">
<% if @error %>
- <p class="error"><%= @error -%></p>
+ <p class="error"><%= h @error -%></p>
<% end %>
<div class="modal-field">
- <label for="manual_rules[]">Name<em class="mandatory">*</em>:</label>
+ <label for="manual_rules[]">Name <em class="mandatory">*</em></label>
<input type="text" name="name" value=""/>
<br/>
<span class="desc">Ex. : Performance</span>
</div>
<div class="modal-field">
- <label for="manual_rules[]">Description:</label>
+ <label for="manual_rules[]">Description <em class="mandatory">*</em></label>
<textarea rows="5" cols="25" name="description"></textarea>
<br/>
</div>
<script>
$j("#manual-rules-form").modalForm();
-</script>
\ No newline at end of file
+</script>
<form action="<%= ApplicationController.root_context -%>/manual_rules/edit" method="POST" id="manual-rules-form">
<fieldset>
<div class="modal-head">
- <h2>Edit Manual Rule: <%= @rule.name -%></h2>
+ <h2>Edit Manual Rule: <%= h @rule.name -%></h2>
</div>
<div class="modal-body">
<% if @error %>
- <p class="error"><%= @error -%></p>
+ <p class="error"><%= h @error -%></p>
<% end %>
<input type="hidden" name="id" value="<%= @rule.id -%>"/>
<div class="modal-field">
- <label for="manual_rules[]">Name<em class="mandatory">*</em>:</label>
+ <label for="manual_rules[]">Name <em class="mandatory">*</em></label>
<input type="text" name="name" value="<%= h @rule.name -%>"/>
<br/>
<span class="desc">Ex. : Performance</span>
</div>
<div class="modal-field">
- <label for="manual_rules[]">Description:</label>
- <textarea rows="5" cols="25" name="description"><%= h(@rule.description) -%></textarea>
+ <label for="manual_rules[]">Description <em class="mandatory">*</em></label>
+ <textarea rows="5" cols="25" name="description"><%= h @rule.description -%></textarea>
<br/>
</div>
</div>
<script>
$j("#manual-rules-form").modalForm();
-</script>
\ No newline at end of file
+</script>
<%= link_to_action message('delete'), "#{ApplicationController.root_context}/manual_rules/delete/#{rule.id}",
:class => 'link-action link-red',
- :id => "delete_#{u(rule.key)}",
+ :id => "delete_#{rule.key.parameterize}",
:confirm_button => message('delete'),
:confirm_title => 'Delete rule: '+rule.name,
:confirm_msg => 'Are you sure?',