]> iEval git - mindcoding-template-patches.git/commitdiff
Adds problem template
authorS7012MY <l3asketballplayer@yahoo.com>
Thu, 23 Jan 2014 18:03:25 +0000 (20:03 +0200)
committerS7012MY <l3asketballplayer@yahoo.com>
Thu, 23 Jan 2014 18:03:25 +0000 (20:03 +0200)
tmpl/pb_entry.en [new file with mode: 0644]

diff --git a/tmpl/pb_entry.en b/tmpl/pb_entry.en
new file mode 100644 (file)
index 0000000..5e8446e
--- /dev/null
@@ -0,0 +1,61 @@
+<div class="row clearfix">
+       <div class="col-md-12 column">
+               
+               <div id="spacer"> </div><div id="spacer"> </div>
+               <center><img src="img/logo-complet.png"></center>
+               <div id="spacer"> </div>
+               <div class="row clearfix">
+                       <div class="col-md-8 column">
+                               <div class="jumbotron">
+                               <small>
+                                       <tmpl_var ESCAPE=0 statement>
+                               </small>
+                               </div>
+                       </div>
+                       <div class="col-md-4 column">
+                               <table class="table">
+                                       <tr> <td> Time limit: </td> <td> 1.0 s</td> </tr>
+                                       <tr> <td> Memory limit: </td> <td> 1 MB</td> </tr>
+                                       <tr> <td> Source: </td> <td> Mindcoding Round 1</td> </tr>
+                                       <tr> <td> Author: </td> <td> Ionut</td></tr>
+                                       <tr> <td> Added by: </td> <td> Ionut</td></tr>
+                               </table>
+                               <h3><center>Time: 12:21</center></h3>
+                               <table class="table">
+                                       <thead><tr><th>#</th> <th>User</th><th>Score</th></tr></thead>
+                                       <tr class="active"> <td> 1 </td> <td> asd_asd</td> <td>1000</td> </tr>
+                                       <tr class="active"> <td> 2 </td> <td> asd_asd</td> <td>999.98</td> </tr>
+                                       <tr class="active"> <td> 3 </td> <td> asd_asd</td> <td>23</td> </tr>
+                               </table>
+                               <tmpl_if cansubmit>
+                                       <h3>Submit solution</h3>
+                                       <div class="input-group">
+                                               <form><textarea class="form-control" style="width: 25em; height: 25em;" placeholder="Source code"></textarea>
+                                               <div class="input-group-btn">
+                                               <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"><span class="caret"></span>Compiler</button>
+                                               <ul class="dropdown-menu">
+                                                       <li> fpc </li>
+                                                       <li> gcc </li>
+                                                       <li> g++ </li>
+                                               </ul>
+                                               <button class="btn btn-default" type="button">Submit!</button>
+                                               </div>
+                                               </form>
+                                               </div>
+                                               <form action="https://gm.ieval.ro/action/submit" method="POST" enctype="multipart/form-data">
+                                               <input type="hidden" name="problem" value="<tmpl_var id>">
+                                               <tmpl_if_defined contest><input type="hidden" name="contest" value="<tmpl_var contest>"></tmpl_if_defined>
+                                               <label>File: <input name="prog" required type="file"></label>
+
+                                               <label>File format: <select name="prog_format" required>
+                                               <tmpl_loop formats><option value="<tmpl_var _>"><tmpl_var _></option>
+                                               </tmpl_loop></select></label>
+
+                                               <input type="submit" value="Submit job">
+                                               </form>
+                                       </div>
+                               </tmpl_if>
+                       </div>
+               </div>
+       </div>
+</div>
This page took 0.028519 seconds and 4 git commands to generate.