blob: 70c816dd1c218ca31b35be2cdd365d4ce5f85d76 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<div class="slide-up flex items-start justify-center pt-12">
<div class="glass rounded-xl glow-border w-full max-w-lg">
<div class="px-5 py-4 border-b border-white/[0.04]">
<h2 class="text-sm font-medium text-zinc-200">Edit TLD</h2>
</div>
<div class="p-5">
{% url "domains.tlds.update" id=tld.ID as update_path %}
<form hx-put="{{ update_path }}" hx-swap="none" class="space-y-4">
<div>
<label class="block text-xs font-medium text-zinc-400 mb-1.5 ml-1">TLD Name</label>
<input type="text" name="name" value="{{ tld.Name }}" required autocomplete="off" class="input-field">
</div>
<div class="flex items-center gap-3 pt-2">
<button type="submit" class="btn-primary">Save Changes</button>
{% url "domains.tlds" as tlds_path %}
<a href="{{ tlds_path }}" hx-get="{{ tlds_path }}" hx-target="#content" hx-swap="innerHTML" hx-push-url="true" class="text-xs text-zinc-500 hover:text-zinc-300 transition-colors duration-150">Cancel</a>
</div>
</form>
</div>
</div>
</div>
|