add.html.php 1.6 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php if (empty($anime)): ?>
  2. <p> Anime not found </p>
  3. <?php else: ?>
  4. <h1><?= $anime->series_title ?></h1>
  5. <?php
  6. echo $this->form->create($entry);
  7. echo $this->form->hidden('series_animedb_id', array('value' => $anime->special_id));
  8. /*
  9. <series_title><![CDATA[.hack//Sign]]></series_title>
  10. <series_type>TV</series_type>
  11. <series_episodes>26</series_episodes>
  12. */
  13. echo $this->form->field('my_watched_episodes', array('label' => 'Watched Episodes'));
  14. echo $this->form->field('my_start_date', array('label' => 'Start Date'));
  15. echo $this->form->field('my_finish_date', array('label' => 'Finish Date'));
  16. //Make this Ajax in the future, but it will have to be removed
  17. //If we partner with CR or otherwise
  18. //echo $this->form->field('my_fansub_group', );
  19. echo $this->form->field('my_score', array('label' => 'Score'));
  20. //echo $this->form->field() // <my_dvd></my_dvd>
  21. //<my_storage></my_storage>
  22. echo $this->form->label('my_status', 'Status');
  23. echo $this->form->select('my_status', array('Plan to Watch', 'On-Hold', 'Completed', 'Watching'), array('value' => 0)); //<my_status>Plan to Watch</my_status>
  24. echo $this->form->field('my_comments', array('label' => 'Comments'));
  25. echo $this->form->field('my_times_watched', array('label' => 'Times Watched'));
  26. echo $this->form->label('rewatch_value', 'Rewatch Value');
  27. echo $this->form->select('rewatch_value', array('High', 'Medium', 'Low', 'None'), array('value' => 0));
  28. echo $this->form->field('tags', array('type' => 'textarea'));
  29. echo $this->form->field('rewatching', array('value' => false));
  30. echo $this->form->submit('Save!');
  31. ?>
  32. <?php endif; ?>