| 123456789101112131415161718192021222324252627282930313233 |
- <?php
- $this->form->config(array('templates' => array(
- 'error' => '<div class="notification error">{:content}</div>')));
- $this->styles($this->html->style('jquery.tagsinput.css'));
- $this->scripts($this->html->script('jquery.tagsinput.min.js'));
- ?>
- <h2 class="ribbon"><?= $anime->title ?></h2>
- <div class="triangle-ribbon"></div>
- <br class="cl" />
- <?php ob_start(); ?>
- <script>
- $(function() {
- $('#tags').tagsInput();
- });
- </script>
- <?php $this->scripts(ob_get_clean()); ?>
- <?php
- echo $this->form->create($entry);
- echo $this->form->hidden('series_animedb_id', array('value' => $anime->special_id));
- echo $this->form->field('episodes', array('label' => 'Watched Episodes'));
- echo $this->form->field('score', array('label' => 'Score'));
- echo $this->form->label('status', 'Status');
- echo $this->form->select('status', array('Plan to Watch' => 'Plan to Watch',
- 'On-Hold' => 'On-Hold',
- 'Completed' => 'Completed',
- 'Watching' => 'Watching',
- 'Dropped' => 'Dropped'));
- echo $this->form->field('tags', array('type' => 'textarea', 'id' => 'tags'));
- echo $this->form->submit('Save!');
- echo $this->form->end();
- ?>
|