index.view 714 B

123456789101112131415161718192021222324
  1. @Title{Settings Editor}@
  2. @CSS{
  3. td:first-child{
  4. text-align:right;
  5. }
  6. }@
  7. @ButtonsRight{
  8. <button type="submit" form="settingsForm">
  9. <img src="/images/save.svg" alt="Save" />
  10. </button>
  11. }@
  12. @Body{
  13. <form action="/settingseditor/save" method="post" id="settingsForm">
  14. <input type="hidden" value="asdasd" name="werwert" />
  15. <?php foreach ($data as $sectionName=>$section){
  16. echo '<h3>',$sectionName,'</h3><table>';
  17. foreach ($section as $key=>$value){
  18. $id=$sectionName.SettingsEditor::KEY_SPLITTER.$key;
  19. echo '<tr><td><label for="',$id,'">',$key,':</label></td><td><input type="text" id="',$id,'" name="',$id,'" value="',$value,'" /></td></tr>';
  20. }
  21. echo '</table>';
  22. }?>
  23. </form>
  24. }@