1 [% PROCESS 'macro/form' %]
3 [% IF post.tags.name %]
4 [% tag_list = post.tags.name %]
6 [% FOREACH tag IN post.tags %]
7 [% tag_list = loop.first ? tag.name : tag_list _ ', ' _ tag.name %]
11 <div class="form" id="form">
14 [% form_text(name='title',label=c.loc('Title'),required=1
16 [% form_text(name='tag_names',label=c.loc('Tags')
18 [% form_textarea(name='annot',label=c.loc('Annotation'),required=1
20 [% form_textarea(name='content',label=c.loc('Content'),required=1
21 ,value=post.content) %]
23 [% form_submit(name="submit",value=c.loc('Save')) %]