Could you do it totally on the client? That is, draw a form and then have a Javascript fill out the template values (say <span class="field_name" />)
It wouldn't he hard to make up Sphinx directives to drawn the form and put in the target spans.
It wouldn't he hard to make up Sphinx directives to drawn the form and put in the target spans.