<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="Created" content="2025-12-10">
    <meta name="Author" content="Kārlis Grīnvalds">
    <meta name="Last edited" content="2026-05-13">
    <meta name="Edited by" content="Kārlis Grīnvalds">
    <meta name="csrf-token" content="<?= csrf_hash() ?>">
    <meta name="csrf-name" content="<?= csrf_token() ?>">
    <title><?php echo $Title ?></title>
    <script src="../js/jquery/jquery-3.7.1.min.js"></script>
    <script src="../js/create_entry.js"></script>
    <script src="../js/script.js"></script>
    <link rel="stylesheet" href="../css/style.css">
    <link rel="stylesheet" href="../css/elements.css">
    <link rel="stylesheet" href="../css/entry_forms.css">
</head>
<body>
    <?php echo $BodyParts ?>
    <!-- Shows create account and log in links or log out link and welcome message for the user -->
    <div id="UserProfile" class="user-profile"></div>
    <!-- Page layout -->
    <div class="container">
        <header>
            <!-- Search bar -->
            <div id="SearchBarDiv" class="search-bar">
                <input type="text" id="SearchField" placeholder="Search through the wiki">
                <button id="SearchBtn">Search</button>
            </div>
            <!-- Displays all the action that the user can do -->
            <div id="UserActionBar" class="action-bar"></div>
        </header>
        <div class="main">
            <!-- Main body -->
            <div class="form">
                <h1>Entry form</h1>
                <input id="EntryTitle" placeholder="Title"><br>
                <textarea id="EntryContent" placeholder="Content"></textarea>
            </div>
            <div class="form-btns">
                <button id="SaveChanges">Create</button> <button id="CancelChanges">Cancel</button>
            </div>
            <p id="ErrorText" class="error-text"></p>
        </div>
        <footer>Page: entry<br></footer>
    </div>
</body>
</html>