From: Fabrice Bellingard Date: Wed, 4 Jul 2012 10:12:29 +0000 (+0200) Subject: SONAR-1608 Improve input fields (size and example) X-Git-Tag: 3.2~259 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=df87d3af318a83f788e329b32a040f8b5d34f4a9;p=sonarqube.git SONAR-1608 Improve input fields (size and example) --- diff --git a/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/core.properties b/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/core.properties index e869ba2ecb7..089ea73a2ac 100644 --- a/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/core.properties +++ b/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/core.properties @@ -974,6 +974,10 @@ update_key.bulk_change_description=The bulk update allows to replace the beginni update_key.current_key_for_project_x_is_x=The key of the "{0}" project is currently "{1}". update_key.are_you_sure_to_rename_x=Are you sure you want to rename "{0}", as well as all its modules and resources ? update_key.are_you_sure_to_bulk_rename_x_into_x=Are you sure you want to rename "{0}{1}" into "{2}{1}", as well as all its modules and resources ? +update_key.replace=Replace +update_key.by=By +update_key.replace_example=Ex.: "org.myCompany" +update_key.by_example=Ex.: "com.myNewCompany" #------------------------------------------------------------------------------ diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/project/_key_modules.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/project/_key_modules.html.erb index cbd8bb3009a..11eeb27ecc4 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/project/_key_modules.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/project/_key_modules.html.erb @@ -4,7 +4,7 @@ <% form_tag( {:action => 'update_key', :id => current_module.id }, :onsubmit => "update_launched();$('loading_#{id_prefix}').show();") do -%> - + <%= submit_tag message('update_key.rename'), :id => 'update_key_' + id_prefix, :class => 'action', :confirm => message('update_key.are_you_sure_to_rename_x', :params => current_module.key) %> <%= message('update_key.reset') -%> diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/project/key.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/project/key.html.erb index e827469bece..e28d9f59481 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/project/key.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/project/key.html.erb @@ -51,12 +51,14 @@ <% form_tag( {:action => 'prepare_key_bulk_update', :id => @project.id }) do -%> - + + - + + @@ -65,6 +67,7 @@ :onclick => "update_launched();$('loading_bulk_update').show();" %> +
Replace:<%= message('update_key.replace') -%>: <%= message('update_key.replace_example') -%>
By:<%= message('update_key.by') -%>: <%= message('update_key.by_example') -%>
<% end %>