[SSE] Add status field for external links

This commit is contained in:
Julia Radzhabova 2022-11-09 12:01:47 +03:00
parent bf744432ac
commit cafc0a5e72

View file

@ -75,7 +75,8 @@ define([
'</tr>', '</tr>',
'<tr>', '<tr>',
'<td class="padding-small">', '<td class="padding-small">',
'<label class="header">', me.textSource,'</label>', '<label class="header" style="display: inline-block; width: 245px;">', me.textSource,'</label>',
'<label class="header" style="display: inline-block;">', me.textStatus,'</label>',
'<div id="external-links-list" class="range-tableview" style="width:100%; height: 148px;"></div>', '<div id="external-links-list" class="range-tableview" style="width:100%; height: 148px;"></div>',
'</td>', '</td>',
'</tr>', '</tr>',
@ -102,6 +103,12 @@ define([
el: $('#external-links-list', this.$window), el: $('#external-links-list', this.$window),
store: new Common.UI.DataViewStore(), store: new Common.UI.DataViewStore(),
simpleAddMode: true, simpleAddMode: true,
itemTemplate: _.template([
'<div id="<%= id %>" class="list-item" style="width: 100%;display:inline-block;">',
'<div style="width:240px;padding-right: 5px;"><%= value %></div>',
'<div style="width:175px;"><%= status %></div>',
'</div>'
].join('')),
tabindex: 1 tabindex: 1
}); });
@ -186,7 +193,8 @@ define([
arr.push({ arr.push({
value: (links[i].asc_getSource() || '').replace(new RegExp("%20",'g')," "), value: (links[i].asc_getSource() || '').replace(new RegExp("%20",'g')," "),
idx: i, idx: i,
externalRef: links[i] externalRef: links[i],
status: ''
}); });
} }
} }
@ -248,7 +256,8 @@ define([
textDelete: 'Break Links', textDelete: 'Break Links',
textDeleteAll: 'Break All Links', textDeleteAll: 'Break All Links',
textOpen: 'Open Source', textOpen: 'Open Source',
textChange: 'Change Source' textChange: 'Change Source',
textStatus: 'Status'
}, SSE.Views.ExternalLinksDlg || {})); }, SSE.Views.ExternalLinksDlg || {}));
}); });