<?php
	$this->load->view(
		'templates/FHC-Header',
		array(
			'title' => 'Write a new message',
			'jquery' => true,
			'jqueryui' => true,
			'bootstrap' => true,
			'fontawesome' => true,
			'sbadmintemplate' => true,
			'ajaxlib' => true,
			'dialoglib' => true,
			'tinymce' => true,
			'phrases' => array('global', 'ui'),
			'customCSSs' => array('public/css/sbadmin2/admintemplate_contentonly.css', 'public/css/messaging/message.css'),
			'customJSs' => array('public/js/bootstrapper.js', 'public/js/messaging/write.js')
		)
	);
?>
	<body>
		<div id="wrapper">
			<div id="page-wrapper">
				<div class="container-fluid">
					<div class="row">
						<div class="col-lg-12">
							<h3 class="page-header">

								<?php echo $this->p->t('ui', 'nachrichtSenden'); ?>

							</h3>
						</div>
					</div>
					<div class="row">
						<div class="form-group">
							<div class="col-lg-1 msgfieldcol-left">
								<label>

									<?php echo $this->p->t('global', 'empfaenger'); ?>:

								</label>
							</div>
							<div class="col-lg-11 msgfieldcol-right">
								<select id="organisationUnit">

									<?php echo $organisationUnitOptions; ?>

								</select>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="form-group">
							<div class="col-lg-1 msgfield msgfieldcol-left">
								<label>

									<?php echo $this->p->t('global', 'betreff'); ?>:

								</label>
							</div>
							&nbsp;
							<div class="col-lg-7">
								<input id="subject" class="form-control" type="text" value="">
							</div>
						</div>
					</div>
					<br>
					<div class="row">
						<div class="col-lg-12">
							<label>

								<?php echo $this->p->t('global', 'nachricht'); ?>:

							</label>
							<textarea id="body"></textarea>

							<br>

							<div>

								<?php echo $this->p->t('ui', 'altRecipientNote'); ?>

							</div>
						</div>
					</div>
					<br>
					<div class="row">
						<div class="col-lg-12 text-right">
							<button id="backButton" class="btn btn-default" type="button">

								<?php echo $this->p->t('ui', 'backToReadWriteMessage'); ?>

							</button>

							<button id="sendButton" class="btn btn-default" type="button">

								<?php echo $this->p->t('ui', 'senden'); ?>

							</button>
						</div>
					</div>
				</div>
			</div>
		</div>
	</body>

<?php $this->load->view("templates/FHC-Footer"); ?>
