aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2012-09-23 23:50:48 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2012-09-23 23:50:48 +0200
commitb50b0868831fbbc2cbb2800c53764bf20724cefc (patch)
tree8898ad4afcf73dd8cf8af37da5fc37ff0886eab4
parent53ca5c30fcf2e6a3592c529df8007eb965d929d4 (diff)
downloadsonarqube-b50b0868831fbbc2cbb2800c53764bf20724cefc.tar.gz
sonarqube-b50b0868831fbbc2cbb2800c53764bf20724cefc.zip
SONAR-3263 add HTML ids for integration tests
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/profiles/_copy_form.html.erb12
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/profiles/_rename_form.html.erb8
2 files changed, 10 insertions, 10 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/profiles/_copy_form.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/profiles/_copy_form.html.erb
index 58f4a342bf0..bff1d8c7bfc 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/profiles/_copy_form.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/profiles/_copy_form.html.erb
@@ -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">
@@ -10,16 +10,16 @@
<% 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
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/profiles/_rename_form.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/profiles/_rename_form.html.erb
index 47d7b61f919..4da833e138d 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/profiles/_rename_form.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/profiles/_rename_form.html.erb
@@ -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>
@@ -17,12 +17,12 @@
</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