manage-label.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
  2. <h1 class="page-header">Label verwalten</h1>
  3. <div class="row">
  4. <form action="" method="POST">
  5. <input type="hidden" name="labelId" value="<?php echo $this->_['label'][0]->getId(); ?>">
  6. <div class="form-group">
  7. <label for="labelName">Name</label>
  8. <input type="text" class="form-control" id="labelName" name="labelName" value="<?php echo $this->_['label'][0]->getName(); ?>">
  9. </div>
  10. <div class="form-group">
  11. <label>Zugewiesene Mailaccounts</label>
  12. <table class="table table-striped">
  13. <thead>
  14. <tr>
  15. <th>#</th>
  16. <th>Name</th>
  17. <th>Manage</th>
  18. <th>Remove</th>
  19. </tr>
  20. <?php
  21. foreach($this->_['mailboxFolders'] as $mailboxFolder) {
  22. echo '<tr>';
  23. echo '<td>' . $mailboxFolder->getMailboxId() . '</td>';
  24. echo '<td>' . $mailboxFolder->getFolderName() . '</td>';
  25. echo '<td><a href="" role="button" class="btn btn-primary">Manage</a></td>';
  26. echo '<td><a href="" role="button" class="btn btn-danger">Remove</a></td>';
  27. echo '</tr>';
  28. }
  29. ?>
  30. </thead>
  31. <a href="" role="button" class="btn btn-primary pull-right">Add</a> <!-- TODO: Add this, manage and remove (fancybox!) -->
  32. </table>
  33. </div>
  34. <button type="submit" class="btn btn-default">Submit</button>
  35. </form>
  36. </div>
  37. </div>