Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BugFix: Fixing creating new answer (html) #94

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions forunb/main/templates/main/question_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,14 @@ <h5 class="question-title">{{ question.title }}</h5>
<div class="response-area">
<input type="text" class="form-control" placeholder="Adicionar uma resposta" onclick="showResponseForm()" readonly>
<div class="response-form d-none">
<textarea class="form-control mt-2" placeholder="Escreva sua resposta..."></textarea>
<div class="mt-1">
<button class="btn btn-cancel" onclick="cancelResponse()">Cancelar</button>
<button class="btn btn-send">Enviar</button>
</div>
<form method="post" action="{% url 'new_answer' question.id %}">
{% csrf_token %}
<textarea name="text" class="form-control mt-2" placeholder="Escreva sua resposta..."></textarea>
<div class="mt-1">
<button type="button" class="btn btn-cancel" onclick="cancelResponse()">Cancelar</button>
<button type="submit" class="btn btn-send">Enviar</button>
</div>
</form>
</div>
</div>
</div>
Expand Down