<?php
namespace platyFramework;

/** @var ptyFormModel $form */
?>
<section class="content-header">
	<h1>
        <?= $title ?>
		<small><?= $title_desc ?></small>
	</h1>
	<ol class="breadcrumb">
		<li><a href="<?= $this->request->appUrl ?>"><i class="fa fa-dashboard"></i> Home</a>
		</li>
	</ol>
</section>
<section class="content">
	<div class="row">
		<div class="col-md-12">
			<!-- Horizontal Form -->
			<div class="box box-info">
				<form class="form-horizontal" method="post" action="<?= $postUrl ?>" enctype="multipart/form-data">
					<input type="hidden" name="id" value="<?= $item->id ?>">
					<div class="box-body">
						<div class='col-md-12'>
                            <? // , $this->request->req->sec_board
                            ?>
                            <?= $form->getDateTime("등록일", "regDateTime", "required placeholder='2018-01-01 00:00:00' readonly"); ?>
                            <?= $form->getInput("분류", "category", "readonly"); ?>
                            <?= $form->getInput("이메일", "guestEmail", "readonly"); ?>
                            <?= $form->getTextEdit("내용", "content", "readonly"); ?>
						</div>
					</div>
					<div class="box-body">
						<div class='col-md-12'>
                            <? if ($item->_replyDateTime) { ?>
                                <?= $form->getInput("답변 일시", "_replyDateTime", "readonly"); ?>
                            <? } ?>
                            <?= $form->getTextEdit("답변 내용", "_replyContent", "required"); ?>
						</div>
					</div>
					<div class="box-footer">
						<button type="submit" class="btn btn-primary">답변 등록</button>
						<button type="button" class="btn btn-default ptyGoBack pull-right">취소</button>
					</div>
				</form>
			</div>
		</div>
	</div>

</section>
<script src="<?= $this->request->moduleUrl ?>/ptyadmin/resources/AdminLTE-2.4.5/bower_components/ckeditor/ckeditor.js"></script>
