(list, phead)
| 940 | } |
| 941 | |
| 942 | function createHelpTable(list, phead){ |
| 943 | var table = document.createElement('div'); |
| 944 | table.className = "container"; |
| 945 | |
| 946 | list = sortProperties(list); |
| 947 | |
| 948 | phead = '<svg data-src="svg/help_table_icon.svg" fill="#FFE810" class="svg4hyperhdr"></svg>' +phead + ' '+$.i18n("conf_helptable_expl"); |
| 949 | |
| 950 | table.className = 'table table-hover borderless'; |
| 951 | |
| 952 | table.appendChild(createTableRow([$.i18n('conf_helptable_option'), $.i18n('conf_helptable_expl')], true, false)); |
| 953 | |
| 954 | for (var key in list) |
| 955 | { |
| 956 | if(list[key].access != 'system') |
| 957 | { |
| 958 | // break one iteration (in the loop), if the schema has the entry hidden=true |
| 959 | if ("options" in list[key] && "hidden" in list[key].options && (list[key].options.hidden)) |
| 960 | continue; |
| 961 | var text = list[key].title.replace('title', 'expl'); |
| 962 | table.appendChild(createTableRow([$.i18n(list[key].title), $.i18n(text)], false, false)); |
| 963 | |
| 964 | if(list[key].items && list[key].items.properties) |
| 965 | { |
| 966 | var ilist = sortProperties(list[key].items.properties); |
| 967 | for (var ikey in ilist) |
| 968 | { |
| 969 | // break one iteration (in the loop), if the schema has the entry hidden=true |
| 970 | if ("options" in ilist[ikey] && "hidden" in ilist[ikey].options && (ilist[ikey].options.hidden)) |
| 971 | continue; |
| 972 | var itext = ilist[ikey].title.replace('title', 'expl'); |
| 973 | table.appendChild(createTableRow([$.i18n(ilist[ikey].title), $.i18n(itext)], false, false)); |
| 974 | } |
| 975 | } |
| 976 | } |
| 977 | } |
| 978 | |
| 979 | var finalHelp = createPanel(phead, table); |
| 980 | finalHelp.classList.add('d-none'); |
| 981 | finalHelp.classList.add('help-column'); |
| 982 | return finalHelp; |
| 983 | } |
| 984 | |
| 985 | function createPanel(head, body, footer, type, bodyid){ |
| 986 | var cont = document.createElement('div'); |
no test coverage detected