{% extends "layout.html" %} {% set active_nav = model_name %} {% block extra_css %} .breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 24px; } .breadcrumb a { color: var(--primary); text-decoration: none; font-weight: 500; } .form-header { margin-bottom: 32px; } .back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); text-decoration: none; margin-bottom: 12px; } .form-container { max-width: 800px; margin-bottom: 32px; } .form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; } .form-group { margin-bottom: 24px; } .form-group.full-width { grid-column: span 2; } .form-label { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; letter-spacing: 0.05em; } .form-input { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px; outline: none; font-size: 0.95rem; transition: all 0.2s; } .form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0, 137, 167, 0.1); } .form-footer { display: flex; justify-content: flex-end; gap: 12px; padding: 20px 32px; background-color: #fafafa; border-top: 1px solid var(--border); border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; } /* Toggle Switch */ .toggle-group { display: flex; justify-content: space-between; align-items: center; padding: 16px; background-color: #f8fafc; border-radius: 8px; border: 1px solid var(--border); } .toggle-info .title { font-weight: 700; font-size: 0.9rem; display: block; } .toggle-info .desc { font-size: 0.75rem; color: var(--text-muted); } .switch { position: relative; display: inline-block; width: 44px; height: 24px; } .switch input { opacity: 0; width: 0; height: 0; } .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #cbd5e1; transition: .4s; border-radius: 24px; } .slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; } input:checked + .slider { background-color: var(--primary); } input:checked + .slider:before { transform: translateX(20px); } /* Metadata Cards */ .meta-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; } .meta-card { display: flex; align-items: center; gap: 16px; padding: 20px; } .meta-icon { width: 40px; height: 40px; border-radius: 8px; background-color: #f1f5f9; display: flex; align-items: center; justify-content: center; color: var(--primary); } .meta-label { font-size: 0.7rem; text-transform: uppercase; font-weight: 700; color: var(--text-muted); } .meta-value { font-size: 0.9rem; font-weight: 600; } {% endblock %} {% block content %}
Back to List{% if id %}Update the details and visibility of this record.{% else %}Define a new record for your database.{% endif %}