]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4759 Use modal windows in Groups pages
authorstephenbroyer <stephen.broyer@sonarsource.com>
Fri, 18 Oct 2013 07:40:34 +0000 (09:40 +0200)
committerstephenbroyer <stephen.broyer@sonarsource.com>
Fri, 18 Oct 2013 07:57:35 +0000 (09:57 +0200)
(modifications needed to do IT)

sonar-server/src/main/webapp/WEB-INF/app/views/groups/index.html.erb

index db3d338d005773694ae916486436f75008d2e727..76f3f086fa49390fdbdcb20b2fdb37fe5a6eac3e 100644 (file)
@@ -2,7 +2,7 @@
     <% if profiles_administrator? %>
       <ul style="float: right" class="horizontal">
           <li class="marginleft10 add">
-              <a href="<%=ApplicationController.root_context-%>/groups/create_form" class="open-modal link-action">Add new group</a>
+              <a id="link-create-group" href="<%=ApplicationController.root_context-%>/groups/create_form" class="open-modal link-action">Add new group</a>
           </li>
       </ul>
     <% end %>
@@ -37,7 +37,7 @@
             <td>
                 <%= link_to_action message('delete'), "#{ApplicationController.root_context}/groups/delete/#{group.id}",
                                    :class => 'link-action link-red',
-                                   :id => "delete_#{group.id}",
+                                   :id => "delete-#{group.name}",
                                    :confirm_button => message('delete'),
                                    :confirm_title => 'Delete group '+group.name,
                                    :confirm_msg => 'Are you sure that you want to delete this group? Members will not be deleted.?',