diff options
Diffstat (limited to 'views/Anime_list')
-rw-r--r-- | views/Anime_list/add.html.php | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/views/Anime_list/add.html.php b/views/Anime_list/add.html.php index c5e2fea..913c333 100644 --- a/views/Anime_list/add.html.php +++ b/views/Anime_list/add.html.php @@ -1,3 +1,5 @@ +<?php $this->form->config(array('templates' => array( + 'error' => '<div class="notification error">{:content}</div>'))); ?> <?php if (empty($anime)): ?> <h2 class="ribbon full">Find an Anime:</h2> <div class="triangle-ribbon"></div> @@ -7,6 +9,21 @@ <div class="triangle-ribbon"></div> <br class="clear" /> <?php endif; ?> + +<script type="text/javascript"> + + function onAddTag(tag) { + alert("Added a tag: " + tag); + } + function onRemoveTag(tag) { + alert("Removed a tag: " + tag); + } + + $(function() { + $('#tags').tagsInput(); + }); +</script> + <?php echo $this->form->create($entry); @@ -34,7 +51,7 @@ echo $this->form->field('my_times_watched', array('label' => 'Times Watched')); echo $this->form->label('rewatch_value', 'Rewatch Value'); echo $this->form->select('rewatch_value', array('High', 'Medium', 'Low', 'None'), array('value' => 0)); - echo $this->form->field('tags', array('type' => 'textarea')); + echo $this->form->field('tags', array('type' => 'textarea', 'id' => 'tags')); echo $this->form->checkbox('rewatching', array('label' =>'Rewatching?', 'value' => false)); echo $this->form->submit('Save!'); ?>
\ No newline at end of file |