skill-assessment-app/app/views/candidate/live_code.html.erb
2016-07-31 18:54:12 -05:00

21 lines
795 B
Plaintext

<div class="code-input">
<label for="code-html">HTML</label>
<textarea data-id="code-html" name="code-html" class="code-answer code-html"><%= @answer['html'] unless @answer.nil? %></textarea>
</div>
<div class="code-input">
<label for="code-css">CSS</label>
<textarea data-id="code-css" name="code-css" class="code-answer code-css"><%= @answer['css'] unless @answer.nil? %></textarea>
</div>
<div class="code-input">
<label for="code-js">JS</label>
<textarea data-id="code-js" name="code-js" class="code-answer code-js"><%= @answer['js'] unless @answer.nil? %></textarea>
</div>
<% if flash[:error].try(:include?, @question.to_i) %>
<div class="error">You must write code in one of the above textareas to progress.</div>
<% end %>
<div class="results" data-id="results"></div>