19 lines
825 B
Plaintext
19 lines
825 B
Plaintext
<div class="code-input">
|
|
<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' } %>
|
|
</div>
|
|
|
|
<div class="code-input">
|
|
<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' } %>
|
|
</div>
|
|
|
|
<div class="code-input">
|
|
<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' } %>
|
|
</div>
|
|
|
|
<%= render partial: "candidate/answer_errors", locals: {question: @question, answer: @answer} %>
|
|
|
|
<div class="results" data-id="results"></div>
|