Guest User

Untitled

a guest
Jan 16th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.76 KB | None | 0 0
  1. <?php
  2. $this->plugin('translate')->setTranslatorTextDomain('courses');
  3.  
  4. $title = $this->translate('Add new language');
  5. $this->headTitle($title);
  6.  
  7. ?>
  8.  
  9. <h1><?php echo $this->escapeHtml($title); ?></h1>
  10. <?php
  11. $form = $this->form;
  12. $form->setAttribute('action', $this->url('sprachen', array('action' => 'add')));
  13. $form->get('submit')->setValue($this->translate('Add'));
  14. $form->prepare();
  15.  
  16. echo $this->form()->openTag($form);
  17. echo $this->formHidden($form->get('id'));
  18. echo $this->formRow($form->get('name'));
  19. echo $this->formRow($form->get('description'));
  20. echo $this->formRow($form->get('localeString'));
  21. echo $this->formRow($form->get('active'));
  22. echo $this->formRow($form->get('csrf'));
  23. echo $this->formSubmit($form->get('submit'));
  24. echo $this->form()->closeTag();
Add Comment
Please, Sign In to add comment