From 820be11446a5f59bc74f71202437aad61498f0ca Mon Sep 17 00:00:00 2001 From: Alessandro Palmeira Date: Thu, 13 Sep 2012 17:40:29 -0300 Subject: [PATCH] [Mezuro] Warning user that changing project configuration may lose data. --- plugins/mezuro/views/cms/mezuro_plugin/_project_content.html.erb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/plugins/mezuro/views/cms/mezuro_plugin/_project_content.html.erb b/plugins/mezuro/views/cms/mezuro_plugin/_project_content.html.erb index 37fa1e4..bc763c5 100644 --- a/plugins/mezuro/views/cms/mezuro_plugin/_project_content.html.erb +++ b/plugins/mezuro/views/cms/mezuro_plugin/_project_content.html.erb @@ -38,8 +38,13 @@ <% @selected = (@project.nil? ? @configuration_names[0] : @project.configuration_name) %> -<%= required labelled_form_field _('Configuration'), - f.select(:configuration_name, @configuration_names, {:selected => @selected}) %>
+<% if !@project.nil? && !@article.id.nil? %> + <%= required labelled_form_field _('Configuration') + " (Changing the configuration will erase your saved periodic avaliations)", + f.select(:configuration_name, @configuration_names, {:selected => @selected}) %> +<% else %> + <%= required labelled_form_field _('Configuration'), + f.select(:configuration_name, @configuration_names, {:selected => @selected}) %>
+<% end %> <% selected = (@project.nil? ? 0 : @project.process_period.to_i) %> <%= required labelled_form_field _('Periodic Avaliation'), -- libgit2 0.21.2