'Displays the layout of the latest version of the form definition'

@web.expose
@web.require_admin
def view_latest_form_definition(self, trans, **kwd):

    form_definition_current_id = kwd.get('id', None)
    try:
        form_definition_current = trans.sa_session.query(trans.app.model.FormDefinitionCurrent).get(trans.security.decode_id(form_definition_current_id))
    except:
        return trans.response.send_redirect(web.url_for(controller='forms', action='browse_form_definitions', message='Invalid    form', status='error'))
    return trans.fill_template('/admin/forms/view_form_definition.mako', form_definition=form_definition_current.latest_form)
