<xf:include template="base_custom_field_edit">
	<xf:set var="$extraOptions">
		<xf:macro id="base_custom_field_macros::common_options"
			arg-field="{$field}"
			arg-supportsGroupEditable="{{ true }}"/>
	</xf:set>
	<xf:set var="$displayOptions">
		<xf:selectrow name="node_ids[]" value="{$nodeIds}" multiple="multiple" size="7"
			label="{{ phrase('applicable_forums') }}">

			<xf:option value="" selected="!{$nodeIds}">{{ phrase('(none)') }}</xf:option>
			<xf:foreach loop="$nodeTree.getFlattened(0)" value="$treeEntry">
				<xf:option value="{$treeEntry.record.node_id}" disabled="{{ $treeEntry.record.node_type_id != 'Forum' }}">{{ repeat('&nbsp;&nbsp;', $treeEntry.depth)|raw }} {$treeEntry.record.title}</xf:option>
			</xf:foreach>
		</xf:selectrow>
	</xf:set>
</xf:include>