$def with (form, post, edit, id) $if edit:

Editing a licence

$else:

Add new licence

$if post and edit:

Licence was updated. You can look at it $:link_to_licence(getbase(), id, 'here').

$elif post:

Licence was added. You can look at it $:link_to_licence(getbase(), id, 'here').

$else:

$:form.render()