skill-assessment-app/app/views/candidate/live_coder.html.erb

21 lines
795 B
Plaintext
Raw Normal View History

2016-07-29 11:00:04 -05:00
<div class="code-input">
<label for="code-html">HTML</label>
2016-07-29 14:51:20 -05:00
<textarea data-id="code-html" name="code-html" class="code-answer code-html"><%= @answer['html'] unless @answer.nil? %></textarea>
2016-07-29 11:00:04 -05:00
</div>
<div class="code-input">
<label for="code-css">CSS</label>
2016-07-29 14:51:20 -05:00
<textarea data-id="code-css" name="code-css" class="code-answer code-css"><%= @answer['css'] unless @answer.nil? %></textarea>
2016-07-29 11:00:04 -05:00
</div>
<div class="code-input">
<label for="code-js">JS</label>
2016-07-29 14:51:20 -05:00
<textarea data-id="code-js" name="code-js" class="code-answer code-js"><%= @answer['js'] unless @answer.nil? %></textarea>
2016-07-29 11:00:04 -05:00
</div>
2016-07-30 16:25:09 -05:00
<% 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 %>
2016-07-29 11:00:04 -05:00
<div class="results" data-id="results"></div>