1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 23:51:09 +03:00

UI Automation Assistance

Added PK as the ID to all <tr> elements.
This commit is contained in:
Chris Houseknecht 2014-09-02 16:37:16 -04:00
parent b5d3472c30
commit c499515333
2 changed files with 3 additions and 1 deletions

View File

@ -1586,7 +1586,8 @@ angular.module('FormGenerator', ['GeneratorHelpers', 'Utilities', 'ListGenerator
html += "</thead>";
html += "<tbody>\n";
html += "<tr ng-repeat=\"" + collection.iterator + " in " + itm + "\" >\n";
html += "<tr ng-repeat=\"" + collection.iterator + " in " + itm + "\" ";
html += "id=\"{{ " + collection.iterator + ".id }}\">\n";
if (collection.index === undefined || collection.index !== false) {
html += "<td>{{ $index + ((" + collection.iterator + "_page - 1) * " +
collection.iterator + "_page_size) + 1 }}.</td>\n";

View File

@ -310,6 +310,7 @@ angular.module('ListGenerator', ['GeneratorHelpers'])
html += "<tr ng-class=\"" + list.iterator;
html += (options.mode === 'lookup' || options.mode === 'select') ? ".success_class" : ".active_class";
html += "\" ";
html += "id=\"{{ " + list.iterator + ".id }}\" ";
html += "class=\"" + list.iterator + "_class\" ";
html += "ng-repeat=\"" + list.iterator + " in " + list.name;
html += (list.orderBy) ? " | orderBy:'" + list.orderBy + "'" : "";