File manager - Edit - /home/webapp69.cm.in.th/u69319090028/Shop/views/admin/policies/create.php
Back
<div class="cargoo-card"> <div class="cargoo-card-header d-flex justify-content-between align-items-center"> <div> <h5 class="mb-1 fw-bold">สร้างแบบร่างนโยบายเวอร์ชันใหม่ (New Policy Version)</h5> <p class="text-muted small mb-0">ระบบจะสร้างเป็นแบบร่าง (Draft) เพื่อให้ตรวจสอบก่อนเผยแพร่จริง</p> </div> <a href="<?= url('/admin/policies') ?>" class="btn btn-outline-secondary btn-sm px-3"> <i class="bi bi-arrow-left me-1"></i> กลับหน้ารายการ </a> </div> <div class="cargoo-card-body p-4"> <form action="<?= url('/admin/policies') ?>" method="POST"> <?= Security::csrfField() ?> <div class="row g-3 mb-3"> <div class="col-md-6"> <label for="policyType" class="form-label small fw-bold text-dark">ประเภทนโยบาย <span class="text-danger">*</span></label> <select name="type" id="policyType" class="form-select" required> <?php foreach ($policyTypes as $k => $label): ?> <option value="<?= e($k) ?>" <?= $defaultType === $k ? 'selected' : '' ?>><?= e($label) ?></option> <?php endforeach; ?> </select> </div> <div class="col-md-6"> <label for="policyVersion" class="form-label small fw-bold text-dark">เลขเวอร์ชัน (Version) <span class="text-danger">*</span></label> <input type="text" name="version" id="policyVersion" class="form-control" placeholder="เช่น 1.1.0 หรือ 2.0.0" required pattern="^[0-9]+(\.[0-9]+)*$"> <small class="text-muted" style="font-size: 0.75rem;">ระบุตามมาตรฐาน Semantic Versioning (เช่น 1.1.0)</small> </div> </div> <div class="mb-3"> <label for="policyTitle" class="form-label small fw-bold text-dark">ชื่อเอกสารนโยบาย <span class="text-danger">*</span></label> <input type="text" name="title" id="policyTitle" class="form-control" placeholder="เช่น ข้อกำหนดและเงื่อนไขการใช้งาน (Customer Terms & Conditions)" required minlength="3"> </div> <div class="mb-4"> <label for="policyContent" class="form-label small fw-bold text-dark">เนื้อหาข้อกำหนดทางกฎหมาย (Legal Content) <span class="text-danger">*</span></label> <textarea name="content" id="policyContent" class="form-control font-monospace" rows="12" placeholder="ระบุข้อความ หมวด และเงื่อนไขข้อบังคับทางกฎหมายอย่างครบถ้วน" required></textarea> </div> <div class="d-flex justify-content-end gap-2 pt-3 border-top"> <a href="<?= url('/admin/policies') ?>" class="btn btn-outline-secondary px-4">ยกเลิก</a> <button type="submit" class="btn btn-cargoo-primary px-5 py-2 fw-bold"> <i class="bi bi-file-earmark-plus me-1"></i> บันทึกเป็นแบบร่าง (Save Draft) </button> </div> </form> </div> </div>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.23 |
proxy
|
phpinfo
|
Settings