<?php
namespace platyFramework;

/**
 * View 파일 입니다
 *
 * @var ptyForms $form
 * @var ptyTableItemModel $item
 */
?>
<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>

<form class="form-horizontal" method="post" action="<?= $postUrl ?>" enctype="multipart/form-data">
    <section class="content">
        <div class="box box-primary">
            <div class="box-header with-border">
                <h3 class="box-title">Bit.ly 설정</h3>&nbsp;&nbsp;(<a target=_blank href="https://bit.ly/">Bit.ly 이동</a>)
                <div class="box-tools pull-right">
                    <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
                    </button>
                </div>
            </div>
            <div class="box-body pad">
                <input type="hidden" name="id" value="<?= $item->id ?>">
                <div class='col-md-12'>
                    <?= $form->getInput("Bit.ly 로그인 ID", "bitlyLoginId", "", ""); ?>
                </div>
                <div class='col-md-12'>
                    <?= $form->getInput("Bit.ly API Key", "bitlyApiKey", "", ""); ?>
                </div>
                <div class='form-group'>
                    <label class="col-sm-2 control-label">Bitly 참고 URL</label>
                    <div class="col-sm-10">
                        <p>https://app.bitly.com/Bh8b1RLJpYs/bitlinks/?actions=accountMain&actions=settings&actions=advancedSettings&actions=apiSupport</p>
                    </div>
                </div>
            </div>
            <div class="box-footer">
                <button type="button" class="btn btn-default ptyGoBack pull-right">취소</button>
                <button type="submit" class="btn btn-info pull-left">저장</button>
            </div>
        </div>
    </section>
</form>
<script src="<?= $this->request->moduleUrl ?>/ptyadmin/resources/AdminLTE-2.4.5/bower_components/ckeditor/ckeditor.js"></script>