Edit the item

Edit the item

Date
${h.form.date_field('date', item.date.strftime('%d/%m/%Y'), e, id='date')}
Title
${h.form.text_field('title', item.title, e, id='title')}
Amount
${h.form.number_field('amount', item.amount, e, id='amount', step='any')}
Category
${h.form.text_field('category', item.category, e, id='category')}
Tags
${h.form.text_field('tags', ', '.join([t.tag for t in item.tags]), e, id='tags')}
Direction
${h.form.radio('direction', 'in', e, label='In', checked=(item.direction=='in'))}${h.form.radio('direction', 'out', e, label='Out', checked=(item.direction=='out'))}${h.form.radio('direction', 'internal', e, label='Internal transfer', checked=(item.direction=='internal'))}