<h1>bitweaver Settings</h1>

{form legend="Some Preliminary Settings"}
	<input type="hidden" name="step" value="{$next_step}" />

	<p>
		You can take advantage of setting some preliminary settings that will help you set up your site quickly and easily.
		Since bitweaver has so many settings and features, we thought it might
		be useful to collect some of the key settings to simplify the initial stages.
	</p>
	<p>
		These settings can all be found from the Administration panel.
	</p>

	{foreach from=$formInstallToggles key=feature item=output}
		<div class="row">
			{formlabel label=`$output.label` for=$feature}
			{forminput}
				{html_checkboxes name="$feature" values="y" checked=`$gBitSystemPrefs.$feature` labels=false id=$feature}
				{formhelp note=`$output.note` page=`$output.page`}
			{/forminput}
		</div>
	{/foreach}

	<div class="row">
		{formlabel label="Browser title" for="siteTitle"}
		{forminput}
			<input size="50" type="text" name="siteTitle" id="siteTitle" value="{$siteTitle|escape}" />
			{formhelp note="Enter the title that should appear in the title bar of the users browser when visiting your site."}
		{/forminput}
	</div>

	<div class="row">
		{formlabel label="Site slogan" for="site_slogan"}
		{forminput}
			<input size="50" type="text" name="site_slogan" id="site_slogan" value="{$gBitSystemPrefs.site_slogan|escape}" />
			{formhelp note="This slogan is (usually) shown below the site title."}
		{/forminput}
	</div>

	<div class="row">
		{formlabel label="Home page" for="bitIndex"}
		{forminput}
			<select name="bitIndex" id="bitIndex">
				<option value="my_home"{if $bitIndex eq 'my_home'} selected="selected"{/if}>{tr}My home{/tr}</option>
				<option value="group_home"{if $bitIndex eq 'group_home'} selected="selected"{/if}>{tr}Group home{/tr}</option>
				{foreach key=name item=package from=$schema }
					{if $package.homeable && $package.installed}
						<option {if $package.name=='wiki'}selected="selected"{/if} value="{$package.name}">{$package.name}</option>
					{/if}
				{/foreach}
				{if $gBitSystem->isFeatureActive( 'feature_custom_home' )}
					<option value="custom_home"{if $bitIndex eq $urlIndex} selected="selected"{/if}>{tr}Custom home{/tr}</option>
				{/if}
			</select>
			{formhelp note="Pick your site's homepage. This is where they will be redirected, when they access a link to your homepage.
				<dl>
					<dt>My Home</dt><dd>This page contains all links the user can access with his/her current permissions. It's like a personal administration screen.</dd>
					<dt>Group Home</dt><dd>You can define an individual home page for a group of users using this option. To define home pages, please access the <br /><strong>Administration --> Users --> Groups and Permissions</strong> page.</dd>
					<dt>Other Home Pages</dt><dd>Here you can set a particular package that will serve as your home page. If you want to select an individual home page from the exisiting ones, please access the <br /><strong>Administration --> 'Package' --> 'Package' Settings</strong> page.</dd>
				</dl>"}
		{/forminput}
	</div>

	<div class="row">
		{formlabel label="Language" for="language"}
		{forminput}
			<select name="bitlanguage" id="bitlanguage">
				{foreach from=$languages key=langCode item=lang}
						<option value="{$langCode}" {if $langCode eq "en"}selected="selected"{/if}>{$lang.full_name|escape}</option>
				{/foreach}
			</select>
			{formhelp note="Select the default language of your site."}
		{/forminput}
	</div>

	{if $choose_image_processor}
		<div class="row">
			{formlabel label="Image Processor"}
			{forminput}
				<label><input type="radio" name="image_processor" value="gd" /> gdLibrary</label>
				<br />
				<label><input type="radio" name="image_processor" value="imagick" checked="checked" /> ImageMagick</label>
			{/forminput}
		</div>
	{/if}

	<div class="row submit">
		<input type="submit" name="fSubmitBitSettings" value="{tr}Set Preferences{/tr}" />
	</div>
{/form}
