]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3263 add HTML ids for integration tests
authorSimon Brandhof <simon.brandhof@gmail.com>
Sun, 23 Sep 2012 21:50:48 +0000 (23:50 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Sun, 23 Sep 2012 21:50:48 +0000 (23:50 +0200)
sonar-server/src/main/webapp/WEB-INF/app/views/profiles/_copy_form.html.erb
sonar-server/src/main/webapp/WEB-INF/app/views/profiles/_rename_form.html.erb

index 58f4a342bf0b4f8721cf54a2e1c2c9c1b496dd59..bff1d8c7bfc22529a325ad49eaa685b29e923d7b 100644 (file)
@@ -1,4 +1,4 @@
-<form id="form-copy-profile" method="post" action="profiles/copy">
+<form id="copy-profile-form" method="post" action="profiles/copy">
   <input type="hidden" name="id" value="<%= @profile.id -%>"/>
   <fieldset>
     <div class="form-head">
       <% end %>
       <div class="form-field">
         <label for="name">New name <em>*</em></label>
-        <input id="new-name" name="name" type="text" size="50" maxlength="100"/>
+        <input id="copy-name" name="name" type="text" size="50" maxlength="100"/>
       </div>
     </div>
     <div class="form-foot">
-      <input type="submit" value="Copy"/>
-      <a href="#" onclick="return closeModalWindow()"><%= message('cancel') -%></a>
+      <input type="submit" value="<%= h message('copy') -%>" id="copy-submit"/>
+      <a href="#" onclick="return closeModalWindow()" id="copy-cancel"><%= h message('cancel') -%></a>
     </div>
   </fieldset>
 </form>
 <script>
-  $j("#form-copy-profile").modalForm();
-  $j('#new-name').focus();
+  $j("#copy-profile-form").modalForm();
+  $j('#copy-name').focus();
 </script>
\ No newline at end of file
index 47d7b61f919c4c07f74a7ab051bb51bf54f23299..4da833e138daf5f0859516c8368a16505b459b5f 100644 (file)
@@ -1,4 +1,4 @@
-<form id="form-rename-profile" method="post" action="profiles/rename">
+<form id="rename-profile-form" method="post" action="profiles/rename">
   <input type="hidden" name="id" value="<%= @profile.id -%>"/>
   <fieldset>
 
       </div>
     </div>
     <div class="form-foot">
-      <input type="submit" value="Rename"/>
-      <a href="#" onclick="return closeModalWindow()"><%= message('cancel') -%></a>
+      <input type="submit" value="<%= h message('rename') -%>" id="rename-submit"/>
+      <a href="#" onclick="return closeModalWindow()" id="rename-cancel"><%= h message('cancel') -%></a>
     </div>
   </fieldset>
 </form>
 <script>
-  $j("#form-rename-profile").modalForm();
+  $j("#rename-profile-form").modalForm();
   $j('#new-name').focus();
 </script>
\ No newline at end of file