Feature: Form designer
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- javascript
- Ambito
- frontend
Direzione di ricerca
Non sono indicati file, test o punti di ingresso. Inizia trasformando l’area del modulo proposta, il comportamento di dragula, le etichette e le descrizioni contenteditable e l’esportazione di formArea.innerHTML in un ambito concreto; il lavoro completato deve includere un design concordato e un formato di persistenza definito.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Using this issue to jot down ideas about the form designer. We could try to reuse dobt's form designer ... but if we didn't....
We could use dragula and HTML5's contenteditable, and simply serialize the DOM.
So there'd be a form area, and a way to add fields to it. Adding an <input type="text"> would actually add a <div class="draggable"><label><input><p class="description"></div>. The <div> would have dragula enabled on it. Dragging it around simply rearranges it in the DOM. The <label> and description <p> would have contenteditable="true", letting the user directly edit their contents (which also just updates the DOM).
"Saving" the form would be a matter of exporting formArea.innerHTML. Sure, we could serialize it into JSON if we want to, but there may be an advantage to simply storing the HTML. For instance, you could very easily customize it to infinity. We'd just need a way to associate the fields with the data, but that shouldn't be too hard; just require that each field has a <label> and use an underscorified_version_of_the_label as the field name.
Sounds like fun!
- Lingua principale
- Python
- Stelle
- 22
- Fork
- 5
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di CodeForPhilly/stately
-
Related app: Docassemble Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
CodeForPhilly/stately#60 ·
-
Investigate using BPML Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
CodeForPhilly/stately#59 · 1 commento ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 28/100
CodeForPhilly/stately#58 · 1 commento ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
CodeForPhilly/stately#57 ·
-
Search case list Apertaapi ui
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
CodeForPhilly/stately#55 ·
Tutte le issue di CodeForPhilly/stately
Issue simili
-
bug priority:low
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
CyberAgent/psd2svg#436 ·
-
area/install-update comp/cli comp/desktop P3 sweeper:risk-compatibility type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
NousResearch/hermes-agent#122386 · 1 commento ·
-
ai-generated
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
vllm-project/production-stack#1105 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100