<commit_before>{include file="header.tpl"}

<section class="container">
	<div class="columns">

		<div class="column is-9">
			<div class="box content">

				<h1>{$translations.publish.step1}</h1>
				{if $filter_error}
					<div class="notification is-dark">
						<h1 class="has-text-white" role="alert">{$filter_error}</h1>
					</div>
				{/if}
				{if $errors}
					<div class="notification is-dark">
						<h1 class="has-text-white" role="alert">{$translations.publish.form_error}</h1>
					</div>
				{/if}
				<form id="publish_form" method="post" action="{$BASE_URL}post/">

					<div class="field is-grouped">
						<label for="type_id" class="label is-sr-only">Type</label>
						<div class="control">
							<div class="select">
								<select name="type_id" id="type_id">
									{section name=tmp2 loop=$types}
										<option value="{$types[tmp2].id}" {if !$job.type_id && !$smarty.post.type_id}
												{if $smarty.section.tmp2.first}selected="selected"
													{/if}{else}{if $types[tmp2].id == $job.type_id}selected="selected"
													{/if}{if $types[tmp2].id == $smarty.post.type_id}selected="selected" {/if}{/if}>
													{$types[tmp2].name}</option>
									{/section}
								</select>
							</div>
						</div>

						<label for="category_id" class="label is-sr-only">Category</label>
						<div class="control">
							<div class="select">
								<select name="category_id" id="category_id">
									{section name=tmp1 loop=$categories}
										<option value="{$categories[tmp1].id}"
											{if $default_categ_id != '' && $default_categ_id == $categories[tmp1].id}selected="selected"
												{else}
													{if $categories[tmp1].id == $job.category_id}selected="selected"
														{/if}{if $categories[tmp1].id == $smarty.post.category_id}selected="selected"
													{/if}
												{/if}>{$categories[tmp1].name}</option>
									{/section}
								</select>
							</div>
						</div>
					</div>

					<div class="field">
						<label for="title" class="label is-sr-only">Job Title</label>
						<div class="control">
							<input class="input" type="text" name="title" id="title"
								value="{if $job.company}{$job.title|escape}{else}{$smarty.post.title|escape}{/if}"
								placeholder="{$translations.publish.title_label}" autofocus />
							{if $errors.title}
								<div class="notification is-danger">&#9888; Please enter a job title.</div>
							{/if}
						</div>
					</div>

					<div class="field is-grouped">
						<div class="control">
							<label for="country_id" class="label is-sr-only">Country</label>
							<div class="select">
								<select name="country_id" id="country_id">
									<option value="0">{$translations.jobs.location_anywhere}</option>
									{section name="c" loop=$countries}
										<option value="{$countries[c].id}"
											{if $smarty.post.country_id == $countries[c].id || $job.country_id == $countries[c].id}selected="selected"
											{else}
												{if $user_country.id == $countries[c].id AND !$smarty.post.country_id AND !$job.country_id}selected="selected"
												{/if}
											{/if}>{$countries[c].name}</option>
									{/section}
								</select>
							</div>
						</div>
<commit_msg>fix overflow on mobile caused by select<commit_after>{include file="header.tpl"}

<section class="container">
	<div class="columns">

		<div class="column is-9">
			<div class="box content">

				<h1>{$translations.publish.step1}</h1>
				{if $filter_error}
					<div class="notification is-dark">
						<h1 class="has-text-white" role="alert">{$filter_error}</h1>
					</div>
				{/if}
				{if $errors}
					<div class="notification is-dark">
						<h1 class="has-text-white" role="alert">{$translations.publish.form_error}</h1>
					</div>
				{/if}
				<form id="publish_form" method="post" action="{$BASE_URL}post/">

					<div class="field is-grouped">
						<label for="type_id" class="label is-sr-only">Type</label>
						<div class="control">
							<div class="select">
								<select name="type_id" id="type_id">
									{section name=tmp2 loop=$types}
										<option value="{$types[tmp2].id}" {if !$job.type_id && !$smarty.post.type_id}
												{if $smarty.section.tmp2.first}selected="selected"
													{/if}{else}{if $types[tmp2].id == $job.type_id}selected="selected"
													{/if}{if $types[tmp2].id == $smarty.post.type_id}selected="selected" {/if}{/if}>
													{$types[tmp2].name}</option>
									{/section}
								</select>
							</div>
						</div>

						<label for="category_id" class="label is-sr-only">Category</label>
						<div class="control">
							<div class="select">
								<select name="category_id" id="category_id">
									{section name=tmp1 loop=$categories}
										<option value="{$categories[tmp1].id}"
											{if $default_categ_id != '' && $default_categ_id == $categories[tmp1].id}selected="selected"
												{else}
													{if $categories[tmp1].id == $job.category_id}selected="selected"
														{/if}{if $categories[tmp1].id == $smarty.post.category_id}selected="selected"
													{/if}
												{/if}>{$categories[tmp1].name}</option>
									{/section}
								</select>
							</div>
						</div>
					</div>

					<div class="field">
						<label for="title" class="label is-sr-only">Job Title</label>
						<div class="control">
							<input class="input" type="text" name="title" id="title"
								value="{if $job.company}{$job.title|escape}{else}{$smarty.post.title|escape}{/if}"
								placeholder="{$translations.publish.title_label}" autofocus />
							{if $errors.title}
								<div class="notification is-danger">&#9888; Please enter a job title.</div>
							{/if}
						</div>
					</div>

					<div class="field is-grouped is-grouped-multiline">
						<div class="control" style="max-width: 100%;">
							<label for="country_id" class="label is-sr-only">Country</label>
							<div class="select">
								<select name="country_id" id="country_id">
									<option value="0">{$translations.jobs.location_anywhere}</option>
									{section name="c" loop=$countries}
										<option value="{$countries[c].id}"
											{if $smarty.post.country_id == $countries[c].id || $job.country_id == $countries[c].id}selected="selected"
											{else}
												{if $user_country.id == $countries[c].id AND !$smarty.post.country_id AND !$job.country_id}selected="selected"
												{/if}
											{/if}>{$countries[c].name}</option>
									{/section}
								</select>
							</div>
						</div>

{'fraction_non_alphanumeric': 0.18915223336371922, 'fraction_numerical': 0.008052263749620175, 'mean_word_length': 2.7129159616469263, 'pattern_counts': {'":': 0, '<': 121, '<?xml version=': 0, '>': 121, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '964514', 'n_tokens_mistral': 3163, 'n_tokens_neox': 2176, 'n_words': 365}