<link rel="stylesheet" type="text/css" href="/static/css/manage.css" />

<div id="page-manage">
    <div class="title">分校設定</div>
    <?php if (isset($__alert_success_message)) : ?>
        <div class="alert alert-success" role="alert" style="text-align: left;">
            <?php echo $__alert_success_message; ?><button type="button" class="close" data-dismiss="alert" aria-label="Close"><a aria-hidden="true">×</a></button></div>
    <?php endif; ?>

    <div class="form-container">
        <form id="form" class="form-horizontal" role="form" method="post" action="/setting_center">
            <div class="form-group mas-col">
                <div class="col-sm-3 text-center mas-title">
                    <label for="tpl_center_name"> 發票/收據 分校顯示名稱 *</label>
                </div>
                <div class="col-sm-9 text-center mas-title mas-box ">
                    <input type="text" class="form-control mas-input" id="tpl_center_name" name="tpl_center_name" value="<?php echo $item['tpl_center_name']; ?>" style="background-color: rgb(253, 234, 236);">
                </div>
            </div>
            <div class="form-group mas-col">
                <div class="col-sm-3 text-center mas-title">
                    <label for="tpl_center_tel"> 發票/收據 分校電話 *</label>
                </div>
                <div class="col-sm-9 text-center mas-title mas-box ">
                    <input type="text" class="form-control mas-input" id="tpl_center_tel" name="tpl_center_tel" value="<?php echo $item['tpl_center_tel']; ?>" style="background-color: rgb(253, 234, 236);">
                </div>
            </div>
            <div class="form-group mas-col">
                <div class="col-sm-3 text-center mas-title"><label for="tpl_center_address">發票/收據 分校地址 *</label></div>
                <div class="col-sm-9 mas-box">
                    <textarea id="tpl_center_address" class="form-control mas-textarea" rows="3" name="tpl_center_address" placeholder="輸入發票/收據 分校地址" style="background-color: rgb(255, 255, 255);"><?php echo $item['tpl_center_address']; ?></textarea>
                </div>
            </div>
            <div class="form-group mas-col">
                <div class="col-sm-3 text-center mas-title">
                    <label for="leave_on_accumulative_days"> 加入一個調堂限額的所需堂數 *</label>
                </div>
                <div class="col-sm-9 text-center mas-title mas-box ">
                    <input type="number" class="form-control mas-input" id="leave_on_accumulative_days" name="leave_on_accumulative_days" value="<?php echo $item['leave_on_accumulative_days']; ?>" style="background-color: rgb(253, 234, 236);">
                </div>
            </div>
            <div class="form-group mas-col">
                <div class="col-sm-3 text-center mas-title">
                    <label for="default_event_end_date"> 課程終止日期 *</label>
                </div>

                <div class="col-sm-9 mas-box">
                    <div class="input-group clickable" datetimepicker format="YYYY-MM-DD">
                        <input class="form-control" type="text" id="default_event_end_date" name="default_event_end_date" value="<?php echo $item['default_event_end_date']; ?>">
                        <span class="input-group-addon">
                            <span class="glyphicon glyphicon-calendar"></span>
                        </span>
                    </div>
                </div>
            </div>
            <div class="form-footer">
                <a class="btn btn-footer reset" href="javascript:window.location.reload(true)">重設</a>
                <input class="btn btn-footer submit" type="submit" value="遞交">
            </div>
        </form>
    </div>
</div>