caption: Objective
tags: Section
title: $:/input/ObjectiveInput2

\define thisAddObjectiveButton()
<$button>Add Objective<$action-setfield $tiddler='$:/temp/Objective' title='$:/data/Objective/$(ObjectiveName)$'/><$action-setfield $tiddler='$:/temp/Objective' name='' text=''/></$button>
\end

\define thisSelectObjective()
<$radio tiddler='$:/settings/$(ThisResume)$/Objective'  value={{!!name}}/>
\end

Name:
<$edit-text tiddler='$:/temp/Objective' field=name class='tc-edit-texteditor' placeholder='Short Name'/>

Objective:
<$edit-text tiddler='$:/temp/Objective' class='tc-edit-texteditor' placeholder='Objective'/>

<$vars ThisResume={{$:/settings/Global!!selected_resume}} ObjectiveName={{$:/temp/Objective!!name}}>
<<thisAddObjectiveButton>>

<br>
Select objective to use:

<table>
<tr><th>Select</th><th>Objective Name</th><th>Objective</th></tr>
<$list filter='[prefix[$:/data/Objective/]]'>
<tr><td><<thisSelectObjective>></td><td><$view field='name'/></td><td><$view field='text'/></td></tr>
</$list>
</table>
</$vars>