Hello TiddlyWiki Community,
As a newcomer to the TiddlyWiki platform, I am developing an educational dashboard and am seeking assistance to enhance user interaction with the following features:
- Multiple Selections via Checkboxes: Currently, the dashboard uses dropdown lists for selecting “Person” and “Note Type.” I wish to transition these to checkboxes to allow for multiple selections, ensuring that the final note includes all the choices previously marked.
- Text Formatting Toolbar: I want to integrate a formatting toolbar in the text area, giving users the capability to format their notes conveniently with options like bold, italic, lists, etc.
- Person Management Options: While the current setup allows for adding “Persons,” I also need to implement a “Delete” option to manage these entries more effectively.
I’m encountering difficulties in storing and retrieving selections from multiple checkboxes in the final note tiddler. Additionally, I’m unsure how to integrate a formatting toolbar and the delete functionality for “Persons.”
Could you please provide guidance, code snippets, or point me toward plugins that could help achieve these functionalities? Any advice or direction would be greatly appreciated.
Below is the current code I am working with:
<$view tiddler="TABLEAU DE BORD EDUCATEURS" field="title"/>
</h1>
<!-- Add a person tiddler -->
<$edit-text field="newname" placeholder="Ajouter Une Personne"/>
<$button>{{$:/core/images/done-button}}
<$action-setfield $tiddler={{!!newname}} tags="person"/>
<$action-deletefield $field="newname"/>
</$button>
<$button>{{$:/core/images/close-button}}
<$action-deletefield $field="newname"/>
</$button>
<hr style="border: 0; height: 2px; background-color: #4A90E2;">
<details open><summary style="color: #4A90E2; font-weight: bold;">''Nouvelle note saisie par : {{$:/status/UserName}}'' (Modifier l'utilisateur : <$edit-text tiddler="$:/status/UserName" tag="input" default=""/>)</summary>
<div style="background-color: #f9f9f9; padding: 1em; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); margin-top: 1em;">
<label style="display: block; margin-top: 1em; font-weight: bold;">Personne :</label>
<$select tiddler="$:/temp/notes" field="person" style="width: 100%; padding: 0.5em; border: 1px solid #ccc; border-radius: 4px;">
<$list filter="[tag[person]]">
<option value=<<currentTiddler>>>
<$view field='title'/>
</option>
</$list>
</$select>
<label style="display: block; margin-top: 1em; font-weight: bold;">Type de note :</label>
<$select tiddler="$:/temp/notes" field="note-type" style="width: 100%; padding: 0.5em; border: 1px solid #ccc; border-radius: 4px;">
<$list filter=""" [[incident]] [[sanction]] [[médical]]""">
<option value=<<currentTiddler>>>
<$view field='title'/>
</option>
</$list>
</$select>
<div style="margin-top: 1em;">
<$checkbox tiddler="$:/temp/notes" listField="tags" checked="followup" unchecked="" default="" style="margin-right: 1em;"/>
Besoin de suivi
<$checkbox tiddler="$:/temp/notes" listField="tags" checked="urgent" unchecked="" default="" style="margin-right: 1em;"/>
Urgent
<$checkbox tiddler="$:/temp/notes" listField="tags" checked="fieldnotes" unchecked="fieldnotes" default="fieldnotes" disabled style="margin-right: 1em;"/>
Validez les Saisies [Ne doit pas être désélectionné]
</div>
<label style="display: block; margin-top: 1em; font-weight: bold;">Notes :</label>
<$edit-text
tiddler="$:/temp/notes" field="text"
auto-height="yes" focus="yes" size="100%" tag="textarea"
placeholder="Entrez le texte ici"
style="width: 100%; padding: 0.5em; border: 1px solid #ccc; border-radius: 4px;"
/>
</div>
</details>
<$button style="background-color: #4A90E2; color: white; padding: 0.5em 1em; border: none; border-radius: 4px; margin-top: 1em; cursor: pointer;">
<$action-createtiddler
$basetitle={{{ [{$:/status/UserName}addsuffix[_]addsuffix<now>] }}}
text={{$:/temp/notes}}
person={{$:/temp/notes!!person}}
note-type={{$:/temp/note-type}}
tags={{{ [{$:/temp/notes!!tags}] }}}
/>
Créer la note
</$button>
Thank you all in advance for your support and valuable advice!
Best regards,
Auguste