]> iEval git - plack-app-gruntmaster.git/blobdiff - lib/Gruntmaster/Page/Pb/Entry.pm
Move templates to tmpl/
[plack-app-gruntmaster.git] / lib / Gruntmaster / Page / Pb / Entry.pm
index 2672769a5a167d7423b313cb9cc831d7e3301edb..f178b5058232a6d049396352688c666405a517c0 100644 (file)
@@ -7,38 +7,6 @@ use Gruntmaster::Page::Base pb_entry => '<tmpl_var name>';
 our @ISA = qw/Gruntmaster::Page::Base/;
 our $VERSION = '0.001';
 
-use constant TEMPLATES => {
-       en => <<'HTML',
-<div class="row">
-<div class="col-md-9">
-<tmpl_var ESCAPE=0 statement>
-</div>
-
-<div class="col-md-3">
-<dl>
-<dt>Author</dt> <dd><tmpl_var author></dd>
-<dt>Owner</dt> <dd><tmpl_var owner></dd>
-</dl>
-
-<tmpl_if cansubmit>
-<h1>Submit solution</h1>
-<form action="<tmpl_var id>/submit" method="POST" enctype="multipart/form-data" role="form">
-<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>
-
-<div class="form-group"><label for="prog">File:</label><input id="prog" name="prog" type="file"></div>
-<div class="form-group"><label for="source_code">Source code:</label> <textarea class="form-control" id="source_code" name="source_code"></textarea></div>
-<div class="form-group"><label for="prog_format">File format:</label><select id="prog_format" name="prog_format" class="form-control" required>
-<tmpl_loop formats><option value="<tmpl_var _>"><tmpl_var _></option>
-</tmpl_loop></select></div>
-
-<input type="submit" value="Submit job" class="btn btn-primary">
-</form>
-</tmpl_if>
-</div>
-HTML
-};
-
 use constant FORMATS => [qw/C CPP MONO JAVA PASCAL PERL PYTHON/];
 
 sub _generate{
This page took 0.023546 seconds and 4 git commands to generate.