summaryrefslogtreecommitdiffstats
path: root/views/Anime_list
diff options
context:
space:
mode:
authorMichael Francis <edude03@gmail.com>2011-06-05 12:02:20 -0400
committerMichael Francis <edude03@gmail.com>2011-06-05 12:02:33 -0400
commit54e62827dfb7f01b0a6c240de1b8c7f2e2515163 (patch)
treedfb9c38b418005141262521c39fe1f7cf673e5f3 /views/Anime_list
parenta46960d2ed2d705999a5206d7e023c0e704c86d6 (diff)
downloadotakuhub-54e62827dfb7f01b0a6c240de1b8c7f2e2515163.tar.xz
Added tagging to animelist
Diffstat (limited to 'views/Anime_list')
-rw-r--r--views/Anime_list/add.html.php19
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