<hr class="formRowSep" />

<xf:numberboxrow name="options[limit]" value="{$options.limit}" min="1"
	label="{{ phrase('maximum_entries') }}" />

<xf:radiorow name="options[style]" value="{{ $options.style ?: 'simple' }}"
	label="{{ phrase('display_style') }}">

	<xf:option value="simple"
		label="{{ phrase('simple') }}"
		hint="{{ phrase('widget_display_simple_explain') }}" />
	<xf:option value="full"
		label="{{ phrase('standard') }}"
		hint="{{ phrase('new_threads_display_style_full_explain') }}" />
	<xf:option value="expanded"
		label="{{ phrase('expanded') }}"
		hint="{{ phrase('new_threads_display_style_expanded_explain') }}">

		<xf:checkbox>
			<xf:option name="options[show_expanded_title]" selected="$options.show_expanded_title">
				{{ phrase('display_widget_title_above_list_of_threads') }}
			</xf:option>
		</xf:checkbox>
	</xf:option>
</xf:radiorow>

<xf:selectrow name="options[node_ids][]" value="{{ $options.node_ids ?: '' }}" multiple="multiple" size="7"
	label="{{ phrase('forum_limit') }}"
	explain="{{ phrase('only_include_threads_in_selected_forums') }}">

	<xf:option value="">{{ phrase('all_forums') }}</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:selectrow name="options[date_limit_days]" value="{$options.date_limit_days}"
	label="{{ phrase('date_limit') }}"
	explain="{{ phrase('date_limit_explain') }}">

	<xf:option value="0">{{ phrase('none') }}</xf:option>
	<xf:option value="7">{{ phrase('x_days', {'days': '7'}) }}</xf:option>
	<xf:option value="14">{{ phrase('x_days', {'days': '14'}) }}</xf:option>
	<xf:option value="30">{{ phrase('x_days', {'days': '30'}) }}</xf:option>
	<xf:option value="60">{{ phrase('x_months', {'months': '2'}) }}</xf:option>
	<xf:option value="90">{{ phrase('x_months', {'months': '3'}) }}</xf:option>
	<xf:option value="182">{{ phrase('x_months', {'months': '6'}) }}</xf:option>
	<xf:option value="365">{{ phrase('1_year') }}</xf:option>
</xf:selectrow>