2016-07-29 11:00:04 -05:00
|
|
|
<div class="code-input">
|
2016-08-01 15:16:20 -05:00
|
|
|
<label for="answer_live_code_html">HTML</label>
|
|
|
|
<%= text_area_tag 'answer[live_code][html]', (@answer['html'] unless @answer.nil?), { 'data-id' => 'code-html', class: 'code-answer code-html' } %>
|
2016-07-29 11:00:04 -05:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="code-input">
|
2016-08-01 15:16:20 -05:00
|
|
|
<label for="answer_live_code_css">CSS</label>
|
|
|
|
<%= text_area_tag 'answer[live_code][css]', (@answer['css'] unless @answer.nil?), { 'data-id' => 'code-css', class: 'code-answer code-css' } %>
|
2016-07-29 11:00:04 -05:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="code-input">
|
2016-08-01 15:16:20 -05:00
|
|
|
<label for="answer_live_code_js">JS</label>
|
|
|
|
<%= text_area_tag 'answer[live_code][js]', (@answer['js'] unless @answer.nil?), { 'data-id' => 'code-js', class: 'code-answer code-js' } %>
|
2016-07-29 11:00:04 -05:00
|
|
|
</div>
|
|
|
|
|
2016-08-01 10:33:02 -05:00
|
|
|
<%= render partial: "candidate/answer_errors", locals: {question: @question, answer: @answer} %>
|
2016-07-29 11:00:04 -05:00
|
|
|
|
|
|
|
<div class="results" data-id="results"></div>
|