zsanzharko / activity-monitoring-sdu

Monitoring tasks for developers
2 stars 0 forks source link

Have problem with filling the form in html #11

Closed zsanzharko closed 2 years ago

zsanzharko commented 2 years ago
<section>
    <div class="box">
        <div id="box_head">
            <div id="new_project_button">
                New project
            </div>
        </div>
        <form th:action="@{/project/create}" th:object="${project}" method="post">
            <div id="project_name_box">
                <p id="pr_name">Project name</p>
                <label for="name_input">
                    <input type="text" id="name_input"
                           th:value="*{title}"
                           placeholder="Like 'Android App'"></label>

            </div>
            <div id="project_id_box">
                <p id="pr_number">Project number</p>
                <label for="number_input">
                    <input type="text" id="number_input"
                           th:value="*{projectId}"
                           placeholder="Like '9511DXP'"></label>

            </div>
            <div id="version_box">
                <p id="pr_version">Version:</p>
                <label for="version_input">
                    <input type="text" th:value="*{projectVersion}" id="version_input"
                           placeholder="Like 'B'"></label>

            </div>

            <div id="version_box">
                <p id="pr_version">Date to start:</p>
                <label for="start_date">
                    <input type="date" th:value="*{startDate}" id="start_date"></label>

            </div>
            <div id="box_footer">
                <button id="create_button" type="submit" value="Submit" role="button">Create</button>
            </div>
        </form>
    </div>

</section>

Creation has working

zsanzharko commented 2 years ago

Form is work