{% extends "layouts/app.blade.rs" %}
{% block content %}
<div class="max-w-7xl mx-auto px-4 py-6 text-xs sm:text-sm">
<div class="mb-4">
<a href="/{{ snake_name }}s" class="text-[10px] text-primary hover:underline flex items-center gap-1 mb-2">
<svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>
Back to List
</a>
<h1 class="text-base font-bold text-white tracking-tight code-font">Add {{ name }}</h1>
</div>
<div class="bg-cardBg border border-borderBg rounded-lg p-5 max-w-lg shadow-md text-xs">
<form action="/{{ snake_name }}s" method="POST" class="space-y-3" hx-boost="true">
<input type="hidden" name="csrf_token" value="{{ csrf_token }}">
{{form_fields}}
<div class="pt-2 flex gap-2">
<button type="submit" class="bg-primary hover:bg-blue-600 text-white font-bold py-1.5 px-3 rounded transition">
Save Record
</button>
<a href="/{{ snake_name }}s" class="bg-slate-800 hover:bg-slate-700 text-slate-300 font-bold py-1.5 px-3 rounded transition">
Cancel
</a>
</div>
</form>
</div>
</div>
{% endblock %}