testappproj/templates/code.html~
changeset 2 654c583fd78e
parent 0 0b061d58aea3
equal deleted inserted replaced
1:0eda880b3d25 2:654c583fd78e
     1 {%extends "base.html"%}
     1 {# {%extends "base.html"%} #}
     2 {%block body%}
     2 {%block body%}
     3 <h2>{{ problem.name }}</h2>
     3 <h2>{{ problem.name }}</h2>
     4 
     4 
     5  
     5  
     6 {% comment %}
     6 {% comment %}
    21     <p><strong>Enter your solution here:</strong></p>
    21     <p><strong>Enter your solution here:</strong></p>
    22     <p><textarea id="code-area" name="user_code" rows="22" cols="80">
    22     <p><textarea id="code-area" name="user_code" rows="22" cols="80">
    23 {% ifequal pu.classname "ProblemUser" %}{{ pu.solution }}{% else %}{{ problem.skeleton }}{% endifequal %}
    23 {% ifequal pu.classname "ProblemUser" %}{{ pu.solution }}{% else %}{{ problem.skeleton }}{% endifequal %}
    24 
    24 
    25     </textarea></p>
    25     </textarea></p>
    26     <input type="hidden" name="problem_id" value="{{ problem.key.id }}" />
    26     <input type="hidden" name="problem_id" value="{{ problem.id }}" />
    27     <p><input type="submit" name="submit" value="Run" /></p>
    27     <p><a  class="comment"  href="#solve"  onclick="return loadrun({{ entry.problem_id }})">solve</a></p>
    28   </form>
    28   </form>
    29 
    29 
    30   <script language="javascript" type="text/javascript" src="/static/edit_area_full.js"></script>
    30   <script language="javascript" type="text/javascript" src="/static/edit_area_full.js"></script>
    31   <script language="javascript" type="text/javascript">
    31   <script language="javascript" type="text/javascript">
    32     editAreaLoader.init({
    32     editAreaLoader.init({