index.view 658 B

1234567891011121314151617181920212223
  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. <?php foreach ($data as $sectionName=>$section){
  15. echo '<h3>',$sectionName,'</h3><table>';
  16. foreach ($section as $key=>$value){
  17. $id=$sectionName.SettingsEditor::KEY_SPLITTER.$key;
  18. echo '<tr><td><label for="',$id,'">',$key,':</label></td><td><input type="text" id="',$id,'" name="',$id,'" value="',$value,'" /></td></tr>';
  19. }
  20. echo '</table>';
  21. }?>
  22. </form>
  23. }@