1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-26 18:10:27 +00:00
TiddlyWiki5/editions/resumebuilder/tiddlers/options/Layout Options.tid
inmysocks 756ebae1f6 Added a section creation tool and some minor fixes
The section creation tool is a semi-automated tool for adding new resume sections.
It still requires knowledge of wikitext but it requires far less knowledge of the inner workings of the resume builder
than just creating a section on your own would.
2015-07-19 17:54:46 -06:00

61 lines
1.6 KiB
Plaintext

created: 20150719190741300
modified: 20150719191131503
tags: Options
title: Layout Options
\define thisMakeCheckbox()
<$reveal type='nomatch' state='$:/settings/$(ThisResumeName)$/$(currentTiddler)$!!show' text=true>
<$button class='tc-btn-invisible'>
<$action-setfield $tiddler='$:/settings/$(ThisResumeName)$/$(currentTiddler)$' $field=show $value=true/>
<input type="checkbox">
</$button>
</$reveal>
<$reveal type='match' state='$:/settings/$(ThisResumeName)$/$(currentTiddler)$!!show' text=true>
<$button class='tc-btn-invisible'>
<$action-setfield $tiddler='$:/settings/$(ThisResumeName)$/$(currentTiddler)$' $field=show $value=false/>
<input type="checkbox" checked="true">
</$button>
</$reveal>
\end
\define thisSelectTemplate()
<$select tiddler="""$:/settings/$(ThisResumeName)$/$(currentTiddler)$""" field=template>
<option value=''>--</option>
<$list filter='[tag[DisplayTemplate]section_name{$:/display/$(currentTiddler)$!!section}]'>
<option value={{!!title}}><$view field='template_name'><$view field='title'/></$view></option>
</$list>
</$select>
\end
\define thisSetOrder()
<$edit-text tiddler='$:/settings/$(ThisResumeName)$/$(currentTiddler)$' field='order' size=2/>
\end
<$set name=ThisResumeName value={{$:/settings/Global!!selected_resume}}>
<table>
<tr>
<th>Show section?</th>
<th>Section Name</th>
<th>Template</th>
<th>Display Order</th>
</tr>
<$list filter='[tag[Section Display]sort[order]removeprefix[$:/display/]]'>
<tr>
<td>
<<thisMakeCheckbox>>
</td>
<td>
<$list filter='[<currentTiddler>addprefix[$:/display/]]'>
<$view field='section'/>
</$list>
</td>
<td>
<<thisSelectTemplate>>
</td>
<td>
<<thisSetOrder>>
</td>
</tr>
</$list>
</table>
</$set>