mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-10-31 21:33:00 +00:00
Uncheck optional modules by default
This commit is contained in:
parent
8d7cdb3ce8
commit
8ebc66b1e8
1 changed files with 3 additions and 2 deletions
|
@ -29,8 +29,9 @@
|
||||||
$module_index = json_decode(file_get_contents("module_index.json"));
|
$module_index = json_decode(file_get_contents("module_index.json"));
|
||||||
foreach($module_index as $module)
|
foreach($module_index as $module)
|
||||||
{
|
{
|
||||||
|
$checkedText = (isset($module->optional) && $module->optional === true) ? "" : " checked";
|
||||||
echo("<tr>
|
echo("<tr>
|
||||||
<td><input type='checkbox' id='$module->id' checked /></td>
|
<td><input type='checkbox' id='$module->id'$checkedText /></td>
|
||||||
<td><label for='$module->id'>$module->name</label></td>
|
<td><label for='$module->id'>$module->name</label></td>
|
||||||
<td>$module->description</td>
|
<td>$module->description</td>
|
||||||
<td>$module->author</td>
|
<td>$module->author</td>
|
||||||
|
|
Loading…
Reference in a new issue