|
@@ -1,3 +1,5 @@
|
|
|
|
|
+<?php $this->form->config(array('templates' => array(
|
|
|
|
|
+ 'error' => '<div class="notification error">{:content}</div>'))); ?>
|
|
|
<?php if (empty($anime)): ?>
|
|
<?php if (empty($anime)): ?>
|
|
|
<h2 class="ribbon full">Find an Anime:</h2>
|
|
<h2 class="ribbon full">Find an Anime:</h2>
|
|
|
<div class="triangle-ribbon"></div>
|
|
<div class="triangle-ribbon"></div>
|
|
@@ -7,6 +9,21 @@
|
|
|
<div class="triangle-ribbon"></div>
|
|
<div class="triangle-ribbon"></div>
|
|
|
<br class="clear" />
|
|
<br class="clear" />
|
|
|
<?php endif; ?>
|
|
<?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
|
|
<?php
|
|
|
echo $this->form->create($entry);
|
|
echo $this->form->create($entry);
|
|
|
|
|
|
|
@@ -34,7 +51,7 @@
|
|
|
echo $this->form->field('my_times_watched', array('label' => 'Times Watched'));
|
|
echo $this->form->field('my_times_watched', array('label' => 'Times Watched'));
|
|
|
echo $this->form->label('rewatch_value', 'Rewatch Value');
|
|
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->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->checkbox('rewatching', array('label' =>'Rewatching?', 'value' => false));
|
|
|
echo $this->form->submit('Save!');
|
|
echo $this->form->submit('Save!');
|
|
|
?>
|
|
?>
|