<!-- prettier-ignore -->
{% extends "base.html" %}

{% block content %}
<h2>Admin</h2>
<form action="/logout" method="post">
    <input type="submit" value="Logout">
</form>
<h3>New Link</h3>
<form action="/admin/new_link" method="post">
    <p>
        <label for="title">Title:</label>
        <input type="text" name="title" id="title" required>
    </p>
    <p>
        <label for="author">Author:</label>
        <input type="text" name="author" id="author" required>
    </p>
    <p>
        <label for="url">URL:</label>
        <input type="text" name="url" id="url" required>
    </p>
    <p>
        <label for="link_type">Type:</label>
        <select name="link_type" id="link_type"> 
            <option value="blog">Blog</option> 
            <option value="article">Article</option> 
        </select>
    </p>
    <p>
        <label for="description">Description:</label>
        <br>
        <textarea name="description" id="description" rows="5" columns="50">
        </textarea>
    </p>
    <input type="submit" value="Submit">
</form>
{% endblock %}
