{% extends "base.html" %}
{% block title %}Tambah Vendor{% endblock %}
{% block breadcrumb %}<a href="{{ url_for('procurement.vendor_list') }}" style="color:var(--text-muted)">Vendor</a> / Tambah Baru{% endblock %}
{% block page_title %}Tambah Vendor{% endblock %}
{% block content %}
<div class="card">
<form method="POST">
    <div class="form-grid">
        <div class="form-group"><label>Nama Vendor *</label><input type="text" name="vendor_name" required></div>
        <div class="form-group"><label>NPWP</label><input type="text" name="npwp" placeholder="xx.xxx.xxx.x-xxx.xxx"></div>
        <div class="form-group"><label>Nama Kontak</label><input type="text" name="contact_person"></div>
        <div class="form-group"><label>No. Telepon</label><input type="text" name="phone"></div>
        <div class="form-group"><label>Email</label><input type="email" name="email"></div>
        <div class="form-group full"><label>Alamat</label><textarea name="address" rows="2"></textarea></div>
        <div class="form-group"><label>Nama Bank</label><input type="text" name="bank_name"></div>
        <div class="form-group"><label>No. Rekening</label><input type="text" name="bank_account"></div>
    </div>
    <div style="display:flex;gap:12px;justify-content:flex-end;margin-top:20px">
        <a href="{{ url_for('procurement.vendor_list') }}" class="btn btn-secondary">Batal</a>
        <button type="submit" class="btn btn-primary">Simpan Vendor</button>
    </div>
</form>
</div>
{% endblock %}
