https://svn.lrde.epita.fr/svn/ranch/trunk
Index: ChangeLog
from Nicolas Despr�s <nicolas.despres(a)gmail.com>
Change error messages position.
* web/ranch/app/views/graph_form/draw.rhtml: Display error messages
at the same place that the graph.
draw.rhtml | 5 ++++-
1 files changed, 4 insertions(+), 1 deletion(-)
Index: web/ranch/app/views/graph_form/draw.rhtml
--- web/ranch/app/views/graph_form/draw.rhtml (revision 43)
+++ web/ranch/app/views/graph_form/draw.rhtml (working copy)
@@ -67,7 +67,6 @@
</table>
</p>
-<p style="color: red;"><%= flash[:error] %></p>
<p><%= submit_tag "Draw" %></p>
<%= end_form_tag %>
@@ -90,6 +89,10 @@
@output_arg_num, @input_set_num %>
<% end %>
<% else %>
+ <% if flash[:error] %>
+ <p style="color: red;"><%= flash[:error] %></p>
+ <% else %>
<%= content_tag "p", "No chart to display - click on Draw"
%>
<% end %>
+<% end %>