blob: bf98b67a04a1c2cf80399f4197e26bb50904d2e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<?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();
?>
|