<template name="register">
	<div class="livechat-form">
		<div class="error error-color error-background">
			<span>{{{error}}}</span>
		</div>

		<p class="welcome">
			{{{welcomeMessage}}}
		</p>
		<form id="livechat-registration">
			{{#if showNameFieldRegisterForm}}
				<input type="text" name="name" id="guestName" placeholder="{{_ "Name"}}" value={{getName}}>
			{{/if}}
			{{#if showEmailFieldRegisterForm}}
				<input type="email" name="email" id="guestEmail" placeholder="{{_ "Email"}}" value={{getEmail}}>
			{{/if}}
			{{#if showDepartments}}
				<select name="department">
					<option value="">{{_ "Select_a_department"}}</option>
					{{#each departments}}
						<option value="{{_id}}" selected="{{selectedDepartment}}">{{name}}</option>
					{{/each}}
				</select>
			{{/if}}
			<button type="submit" id="btnEntrar" class="button"> {{_ "Start_Chat"}} </button>

			{{#if videoCallEnabled}}
				<br>
				<button type="submit" class="button request-video"> {{_ "Request_video_chat"}} </button>
			{{/if}}
		</form>
	</div>
</template>
