Skip to content

Commit

Permalink
fix dead file and remove name field
Browse files Browse the repository at this point in the history
  • Loading branch information
evinjaff committed Mar 3, 2025
1 parent 3a8dbcb commit f3d0c6d
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 74 deletions.
63 changes: 63 additions & 0 deletions server/pokepoll/static/pokepoll/styles/submit-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,66 @@ textarea.showdown-input {
width: 90%;
height: auto;
}

* {
box-sizing: border-box;
}

/*the container must be positioned relative:*/
.autocomplete {
position: relative;
display: inline-block;
}

input {
border: 1px solid transparent;
background-color: #f1f1f1;
padding: 10px;
font-size: 16px;
}

input[type=text] {
background-color: #f1f1f1;
width: 100%;
}

input[type=submit] {
background-color: DodgerBlue;
color: #fff;
cursor: pointer;
}

.autocomplete-items {
position: absolute;
border: 1px solid #d4d4d4;
border-bottom: none;
border-top: none;
z-index: 99;
/*position the autocomplete items to be the same width as the container:*/
top: 100%;
left: 0;
right: 0;
}

.autocomplete-items div {
padding: 10px;
cursor: pointer;
background-color: #333;
border-bottom: 1px solid #d4d4d4;
color: gray;
}

/*when hovering an item:*/
.autocomplete-items div:hover {
background-color: #e9e9e9;
}

/*when navigating through the items using the arrow keys:*/
.autocomplete-active {
background-color: DodgerBlue !important;
color: #ffffff;
}

#pokemon_preview {
width: 30%;
}
Empty file.
74 changes: 0 additions & 74 deletions server/pokepoll/templates/pokepoll/master_submit.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,72 +15,6 @@
<link rel="stylesheet" href="{% static 'pokepoll/styles/submit-style.css' %}">
</head>

<style>
* {
box-sizing: border-box;
}

/*the container must be positioned relative:*/
.autocomplete {
position: relative;
display: inline-block;
}

input {
border: 1px solid transparent;
background-color: #f1f1f1;
padding: 10px;
font-size: 16px;
}

input[type=text] {
background-color: #f1f1f1;
width: 100%;
}

input[type=submit] {
background-color: DodgerBlue;
color: #fff;
cursor: pointer;
}

.autocomplete-items {
position: absolute;
border: 1px solid #d4d4d4;
border-bottom: none;
border-top: none;
z-index: 99;
/*position the autocomplete items to be the same width as the container:*/
top: 100%;
left: 0;
right: 0;
}

.autocomplete-items div {
padding: 10px;
cursor: pointer;
background-color: #fff;
border-bottom: 1px solid #d4d4d4;
}

/*when hovering an item:*/
.autocomplete-items div:hover {
background-color: #e9e9e9;
}

/*when navigating through the items using the arrow keys:*/
.autocomplete-active {
background-color: DodgerBlue !important;
color: #ffffff;
}

#pokemon_preview {
width: 30%;
}

</style>


<nav class="navbar navbar-expand-lg navbar-dark">
<div class="container-fluid">
<a class="navbar-brand" href="{% url 'pokepoll:home' %}">Evii's Egglocke Maker :3</a>
Expand Down Expand Up @@ -294,14 +228,6 @@ <h3>Nature:</h3>
</div>
<br>
<br>

<input type="text"
name="{{ submitter_form.name.name }}"
id="{{ submitter_form.name.id_for_label }}"
class="{{ submitter_form.name.field.widget.attrs.class }}"
style="{{ submitter_form.name.field.widget.attrs.style }}"
placeholder="{{ submitter_form.name.field.widget.attrs.placeholder }}"
value="{{ submitter_form.name.value|default_if_none:'' }}">
</div>

</div>
Expand Down

0 comments on commit f3d0c6d

Please sign in to comment.