37 lines
1.6 KiB
HTML
37 lines
1.6 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}
|
|
Create note
|
|
{% endblock title %}
|
|
|
|
{% block page_title %}
|
|
Create new note
|
|
{% endblock page_title %}
|
|
|
|
{% block content %}
|
|
<div class="mb-10">
|
|
<div id="error-message" class="mt-4 text-sm text-red-600"></div>
|
|
<form hx-post="/notes" hx-ext="submitjson" class="flex-1 lg:max-w-2xl">
|
|
<div class="space-y-2">
|
|
<label class="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" for=":r2l:-form-item">user_id</label>
|
|
<input class="flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm md:text-sm" min="-2147483648" max="2147483647" id="user_id" name="user_id" type="number" value="" step="1" />
|
|
</div>
|
|
<div class="space-y-2">
|
|
<label class="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" for=":r2l:-form-item">title</label>
|
|
<input class="flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm md:text-sm" id="title" name="title" type="text" value="" />
|
|
</div>
|
|
<div class="space-y-2">
|
|
<label class="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" for=":r2l:-form-item">content</label>
|
|
<input class="flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm md:text-sm" id="content" name="content" type="text" value="" />
|
|
</div>
|
|
<div class="mt-5">
|
|
<button class=" text-xs py-3 px-6 rounded-lg bg-gray-900 text-white" type="submit">Submit</button>
|
|
</div>
|
|
|
|
</form>
|
|
</div>
|
|
{% endblock content %}
|
|
|
|
{% block js %}
|
|
|
|
{% endblock js %} |