Ticket #313 (closed todo: done)
Asciidoc infrastructure to generate html forms
| Reported by: | ct | Owned by: | |
|---|---|---|---|
| Priority: | urgent | Milestone: | |
| Component: | uwiki | Keywords: | asciidoc uwiki |
| Cc: | Blocked By: | #434 | |
| Blocking: | #314, #315, #317, #358 |
Description
provide an asciidoc .conf file which defines the necessary macros to generate various kinds of web forms.
This needs:
- some way for opening/closing <form> tags, maybe implicit in the header/footer of the conf file, or with some explicit macro or block
- macros for various form elements (checkbox, radio, dropdown list, text, editarea, hidden)
This does not yet care how to template/substitute parameters in the form, this will be solved independently.
Change History
comment:5 Changed 3 years ago by nasa
- Owner set to nasa
- Status changed from new to assigned
I'm taking this one. Initial support for forms, textbox, textarea, checkbox, radio, etc in lumiera.org/gitweb/uwiki-nasa.
comment:6 Changed 3 years ago by ct
I merged the first try in to have a look now, looks great.
Note that my form example was really only meant as example, the syntay Login name: _____ was not meant to be final. Rather we may consider some syntax which is more similar (and more versatile) to the normal asciidoc macros.
I's propose macros/syntax (still example) like:
# for normal one-line text input text:identifier[Blurb; attributes] text:comment[Please add a brief summary describing the document:; value="" maxlen="1024" size="80"] gives Please add a brief summary describing the document: <input name="comment" type="text" value="" maxlen="1024" size="80" /> or (see below) textarea:blob[Put your text here.;wrap="off" style="width:100%;height:10em"] gives <textarea id="blob" name="blob" wrap="off" style="width:100%;height:10em">Put your text here.</textarea>
Moreover we should not only do a 1:1 mapping of the various html form elements but name them on purpose. for example
instead textarea:..[] we want editarea:..[] (for the big text edit box, using the editarea javascript editor optionally), aclarea:..[] for a small textbox where one edits acl's and so on.
Of course this are just immature ideas which need to be finally worked out.
comment:7 Changed 3 years ago by ct
- Priority changed from normal to urgent
Changed to 'urgend' because this ticket blocks so much else. Nicholas do you have time to work on it next days?
Otherwise someone else may take it over if anyone finds time.
comment:8 Changed 2 years ago by ct
Please take a look at:
http://git.pipapo.org/?p=uwiki/cehteh;a=commit;h=9317404e9795fcd3e50fd8e8913bb0f476d788ce
This now brings the form generation into a more regular form using a block around the form and defines widgts as inlinemacros.
Anyone out there want to improve this further?
comment:9 Changed 2 years ago by ct
- Owner nasa deleted
basically works now, still lacks a lot work as described in the previous comment. I add some widgets on demand. For a better user experience still much more work is required. This will be factored out into new tickets.
comment:11 Changed 2 years ago by ct
- Blocked By 434 removed
comment:12 Changed 2 years ago by ct
- Status changed from assigned to closed
- Resolution set to done
- Blocked By 434 added
