emails.phtml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <nav class="navbar navbar-filter">
  2. <!-- TODO: (optional) add option to create a language file directly from this page -->
  3. <form class="navbar-form navbar-right"
  4. action=""
  5. method="post">
  6. <div class="form-group">
  7. <label class="control-label">
  8. <?php echo $this->_('Select Email File'); ?>
  9. </label>
  10. <?php echo $this->formElement('select', 'email', $this->email)
  11. ->setMultiOptions(\Ppb\Utility::getSystemEmails())
  12. ->setAttributes(array(
  13. 'class' => 'form-control input-large'))
  14. ->render();
  15. ?>
  16. </div>
  17. <?php echo $this->formElement('submit', 'submit', $this->_('Proceed'))
  18. ->setAttributes(array('class' => 'btn btn-default'))
  19. ->render();
  20. ?>
  21. </form>
  22. </nav>
  23. <?php if ($this->email) { ?>
  24. <form action="" method="post">
  25. <input type="hidden" name="email" value="<?php echo $this->email; ?>">
  26. <div class="form-group">
  27. <?php echo $this->formElement('textarea', 'text')
  28. ->setAttributes(array(
  29. 'rows' => '24',
  30. 'class' => 'form-control textarea-code',
  31. ))
  32. ->setValue($this->text)
  33. ->render(); ?>
  34. <span class="help-block">
  35. <?php echo $this->_('Recommended: you should edit this file using a dedicated editor, preferably one that recognizes php syntax. <br>'
  36. . 'Important: adding invalid code to this file might render your site unusable.'); ?>
  37. </span>
  38. </div>
  39. <div class="form-group">
  40. <?php echo $this->formElement('submit', 'save', $this->_('Save'))
  41. ->setAttributes(array('class' => 'btn btn-primary'))
  42. ->render();
  43. ?>
  44. </div>
  45. </form>
  46. <?php } ?>