<div class = "display full-border">
	<div class="container-fluid">
		<h1>
			<span><?php echo sprintf(_('%s Local Calendar'),ucfirst((string) $action)) ?></span>
		</h1>
	</div>
	<div class="row">
		<div class="col-sm-12">
			<div class="fpbx-container">
				<div class="display full-border">
					<form class="fpbx-submit calform" name="localcalform" id="localcalform" method="post" action="?display=calendar" data-fpbx-delete="config.php?display=calendar&amp;id=<?php echo !empty($data['id']) ? $data['id'] : ''?>&amp;action=delete">
						<input type="hidden" name="action" value="<?php echo $action?>">
						<input type="hidden" name="type" value="local">
						<input type="hidden" name="id" value="<?php echo !empty($data['id']) ? $data['id'] : ''?>">
						<!--Name-->
						<div class="element-container">
							<div class="row">
								<div class="col-md-12">
									<div class="">
										<div class="row form-group">
											<div class="col-md-3">
												<label class="control-label" for="name"><?php echo _("Name") ?></label>
												<i class="fa fa-question-circle fpbx-help-icon" data-for="name"></i>
											</div>
											<div class="col-md-9">
												<input type="text" onblur=checkduplicate(this.value,"<?php echo (isset($data)) ? $data['id'] : '';?>") class="form-control" id="name" name="name" value="<?php echo isset($data) && isset($data['name']) ? $data['name'] : ''?>">
											</div>
										</div>
									</div>
								</div>
							</div>
							<div class="row">
								<div class="col-md-12">
									<span id="name-help" class="help-block fpbx-help-block"><?php echo _("The name of this calendar")?></span>
								</div>
							</div>
						</div>
						<div class="element-container">
							<div class="row">
								<div class="col-md-12">
									<div class="">
										<div class="row form-group">
											<div class="col-md-3">
												<label class="control-label" for="description"><?php echo _("Description") ?></label>
												<i class="fa fa-question-circle fpbx-help-icon" data-for="description"></i>
											</div>
											<div class="col-md-9">
												<input type="text" class="form-control" id="description" name="description" value="<?php echo !empty($data['description']) ? $data['description'] : ''?>">
											</div>
										</div>
									</div>
								</div>
							</div>
							<div class="row">
								<div class="col-md-12">
									<span id="description-help" class="help-block fpbx-help-block"><?php echo _("The description of this calendar")?></span>
								</div>
							</div>
						</div>
						<!--Timezone-->
						<div class="element-container">
							<div class="row">
								<div class="col-md-12">
									<div class="">
										<div class="row form-group">
											<div class="col-md-3">
												<label class="control-label" for="timezone"><?php echo _("Timezone") ?></label>
												<i class="fa fa-question-circle fpbx-help-icon" data-for="timezone"></i>
											</div>
											<div class="col-md-9">
												<?php echo FreePBX::View()->timezoneDrawSelect('timezone',$timezone); ?>
											</div>
										</div>
									</div>
								</div>
							</div>
							<div class="row">
								<div class="col-md-12">
									<span id="timezone-help" class="help-block fpbx-help-block"><?php echo _("Timezone for this Calendar")?></span>
								</div>
							</div>
						</div>
						<!--END Timezone-->
					</form>
				</div>
			</div>
		</div>
	</div>
</div>
