fix: disabled statement

This commit is contained in:
Saahil dutta 2024-10-13 00:43:01 -04:00 committed by GitHub
parent 16b91340e8
commit cefad57bb7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -23,11 +23,11 @@
<div class="card container" style="max-width: 550px;"> <div class="card container" style="max-width: 550px;">
<h2 class="headline">Submit Song</h2> <h2 class="headline">Submit Song</h2>
<!-- <p> --> <!-- <p> -->
<form action="/spotify/submitsong?token=<%=onetimetoken%>" method="POST" disabled="<%=s%>"> <form action="/spotify/submitsong?token=<%=onetimetoken%>" method="POST" >
<div class="interactive"> <div class="interactive">
<label>Song URL</label> <label>Song URL</label>
<input type="url" name="songurl" disabled="<%=s%>" placeholder="https://open.spotify.com/track/6aWOvqmjb3343D5sq7zMgl?si=b72b81a97e564dc3" /> <input type="url" name="songurl" <%=s ? "disabled='true'" : '' %>placeholder="https://open.spotify.com/track/6aWOvqmjb3343D5sq7zMgl?si=b72b81a97e564dc3" />
<br> <br>
</div> </div>
<!-- </p> --> <!-- </p> -->
@ -49,7 +49,7 @@
<% } %> <% } %>
<br> <br>
<button type="submit" disabled="<%=s%>">Submit</button> <button type="submit" <%=s ? "disabled='true'" : '' %> >Submit</button>
</form> </form>
</div> </div>
@ -68,4 +68,4 @@
</div> </div>
</center> </center>
</body> </body>
</html> </html>