Difference between revisions of "Widget:ApprovedMaterials"

From LNF Wiki
Jump to navigation Jump to search
Line 90: Line 90:
 
          
 
          
 
         document.getElementById("approved_materials_<!--{$toolid|default:10020}-->").innerHTML = someString;
 
         document.getElementById("approved_materials_<!--{$toolid|default:10020}-->").innerHTML = someString;
         document.getElementById("non_approved_materials_<!--{$toolid|default:10020}-->").innerHTML = someString2;
+
         //document.getElementById("non_approved_materials_<!--{$toolid|default:10020}-->").innerHTML = someString2;
  
 
     }
 
     }
Line 168: Line 168:
 
<div id="tool_name_<!--{$toolid|default:10020}-->"></div>
 
<div id="tool_name_<!--{$toolid|default:10020}-->"></div>
 
<div id="approved_materials_<!--{$toolid|default:10020}-->"></div>
 
<div id="approved_materials_<!--{$toolid|default:10020}-->"></div>
<div id="non_approved_materials_<!--{$toolid|default:10020}-->"></div>
+
//<div id="non_approved_materials_<!--{$toolid|default:10020}-->"></div>
  
 
</includeonly>
 
</includeonly>

Revision as of 11:03, 12 May 2016

This widget will display the approved and restricted materials for a tool based on its toolid. Use the following code:

{{#widget:ApprovedMaterials|toolid=#####|header=Y/N}}