plugin
upstream
Templates in the website are disabled now. Editing them will not have any effect on the live website.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
$def with (type, usetable=0) $ _ = i18n.get_namespace('/mode/edit') <script> function changeTemplate() { var t = document.edit['type.key'].value; document.location.href += '&t=' + t; } </script> $if usetable: <tr> <td>$_.page_type</td> <td> $:thinginput(type, name="type.key", expected_type="/type/type", kind="regular") <input type="button" onclick="changeTemplate()" value="$_.change"/> </td> </tr> $else: <strong>$_.page_type</strong> $:thinginput(type, name="type.key", expected_type="/type/type", kind="regular") <input type="button" onclick="changeTemplate()" value="$_.change"/><br /><br /> |