Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
fix(templates/tasks): refactor form layout
Browse files Browse the repository at this point in the history
  • Loading branch information
bitterteriyaki committed Dec 6, 2023
1 parent c798162 commit 1dd1817
Showing 1 changed file with 16 additions and 27 deletions.
43 changes: 16 additions & 27 deletions templates/tasks/detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,30 +71,24 @@ <h4>Constraints</h4>
<form method="post">
{% csrf_token %}

<div class="row justify-content-center">
<br>
<h4>Submit</h4>

<div class="form-group">
<label for="id_theme">Select Theme:</label>
<select id="id_theme" name="theme" class="form-control" style="margin-bottom:10px;">
<option value="dracula">Dracula</option>
<option value="monokai">Monokai</option>
<option value="3024-day">3024 Day</option>
<option value="3024-night">3024 Night</option>
<option value="cobalt">Cobalt</option>
<option value="eclipse">Eclipse</option>
<option value="rubyblue">Rubyblue</option>
</select>
<h4>Submit</h4>

<div style="display: flex; flex-direction: column; gap: 20px; justify-content: center;">
<div style="display: flex; flex-direction: column; gap: 25px; font-size: 0.8rem;">
<textarea
id="id_code"
name="code"
class="form-control"
></textarea>
</div>

<textarea id="id_code" name="code" class="form-control" style="margin-left:10px;"></textarea>
<input
type="submit"
class="btn btn-primary"
style="width: 40%; margin-top: 25px;"
value="Submit"
>
<input
type="submit"
class="btn btn-primary"
style="width: 100px;"
value="Submit"
>
</div>
</div>
</form>

Expand All @@ -109,11 +103,6 @@ <h4>Submit</h4>
matchBrackets: true,
}
);

document.getElementById("id_theme").addEventListener("change", function () {
var selectedTheme = this.value;
codemirror.setOption("theme", selectedTheme);
});
</script>

{% endblock content %}

0 comments on commit 1dd1817

Please sign in to comment.