diff options
Diffstat (limited to 'sonar-server/src/main/webapp/WEB-INF')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/views/settings/_type_PROPERTY_SET.html.erb | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/settings/_type_PROPERTY_SET.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/settings/_type_PROPERTY_SET.html.erb index d7ce63aa0e6..20f34618e46 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/settings/_type_PROPERTY_SET.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/settings/_type_PROPERTY_SET.html.erb @@ -1,7 +1,14 @@ -<select name="<%= name -%>" id="<%= id -%>"> - <option value=""><%= message('default') -%></option> +<% choices = Property.values(property.propertySetKey).reject(&:blank?) -%> +<% prompt = [[message('default'), '']] -%> - <% Property.values(property.propertySetKey).reject(&:blank?).each do |set_key| -%> - <option value="<%= set_key -%>"><%= set_key -%></option> - <% end -%> -</select>
\ No newline at end of file +<% if choices.exclude? value -%> + <% missing = [[h(value + ' <' + message('deleted') + '>'), value]] -%> +<% else -%> + <% missing = [] -%> +<% end -%> + +<%= select_tag name, options_for_select(prompt + choices + missing, value), :id => id -%> + +<% if choices.exclude? value -%> + <%= image_tag 'exclamation.png' -%> +<% end -%> |