<template
id="caPick"
name="Career Pick"
compset="Career"
marginhorz="3"
marginvert="2">
<portal
id="name"
style="lblNormal"
showinvalid="yes">
<label
field="name">
</label>
</portal>
<portal
id="lblmenuar1"
style="lblSecond">
<label
field="usrLblAr1">
</label>
</portal>
<portal
id="crSkPick1"
style="chsNormal">
<chooser_table
component="Skill"
choosetemplate="LargeItem"
candidatepick ="Career"
candidatefield="crSkills">
<chosen><![CDATA[
if (@ispick = 0) then
@text = "{text clrwarning}Select Skill"
else
@text = field[name].text
endif
]]></chosen>
<titlebar><![CDATA[
@text = "Choose the Skill for your career"
]]></titlebar>
</chooser_table>
</portal>
<portal
id="crSkPick2"
style="chsNormal">
<chooser_table
component="Skill"
choosetemplate="LargeItem">
<needtag container="CareerSkl2" thing="CareerSkl2" usehero="yes"></needtag>
<chosen><![CDATA[
if (@ispick = 0) then
@text = "{text clrwarning}Select Skill"
else
@text = field[name].text
endif
]]></chosen>
<titlebar><![CDATA[
@text = "Choose the Skill for your class"
]]></titlebar>
</chooser_table>
</portal>
<portal
id="lblmenuar2"
style="lblSecond">
<label
field="usrLblAr2">
</label>
</portal>
<portal
id="info"
style="actInfo">
<action
action="info">
</action>
<mouseinfo/>
</portal>
<portal
id="delete"
style="actDelete"
tiptext="Click to delete this item">
<action
action="delete">
</action>
</portal>
<position><![CDATA[
~set up our height based on our tallest portal
height = portal[info].height
~if this is a "sizing" calculation, we're done
doneif (issizing <> 0)
~position our tallest portal at the top
portal[info].top = 0
~center the other portals vertically
perform portal[name].centervert
perform portal[delete].centervert
perform portal[lblmenuar1].centervert
perform portal[lblmenuar2].centervert
~position the delete portal on the far right
perform portal[delete].alignedge[right,0]
~position the info portal to the left of the delete button
perform portal[info].alignrel[rtol,delete,-8]
~position the name on the left -and let it use all available space-
portal[name].left = 0
~portal[name].width = minimum(portal[name].width,portal[info].left - 5)
~positioning the optional menus
if (compare(field[usrLblAr1].text,"") = 0) then
portal[lblmenuar1].visible = 0
portal[crSkPick1].visible = 0
endif
if (compare(field[usrLblAr2].text,"") = 0) then
portal[crSkPick2].visible = 0
portal[lblmenuar2].visible = 0
endif
~position the menus
portal[lblmenuar1].left = portal[name].right + 10
portal[crSkPick1].left = portal[lblmenuar1].right + 5
portal[lblmenuar2].left = portal[crSkPick1].right + 10
portal[crSkPick2].left = portal[lblmenuar2].right + 5
]]></position>
</template>