web/index.html | 33 ++++++++++++++++++++++++++++++++-
web/job_detail.html | 13 ++++++-------
web/jobs.html | 2 +-
web/media/css/cas-web.css | 9 +++++++++
4 files changed, 48 insertions(+), 9 deletions(-)
New commits:
commit f3ff380b8d356d316cd58200131df2ada79da01f
Author: Adam Stokes <adam.stokes(a)gmail.com>
Date: Thu Apr 30 22:08:19 2009 -0400
- job_detail properly reads workDirectory from config
and allows viewers to read logs via web-ui.
- laying groundwork for job submissions
diff --git a/web/index.html b/web/index.html
index 0922ad1..b9d5ad2 100644
--- a/web/index.html
+++ b/web/index.html
@@ -1,6 +1,37 @@
<& header.html &>
<div id="content">
<h3>Core submission<h3>
-
+<div id="form_submit">
+ <form method="POST" action="job_submit.html">
+ <table>
+ <tr>
+ <th> </th><th>Complete below form</th>
+ </tr>
+ <tr>
+ <td>Job Identifier</td>
+ <td><input type="text" size="25"
name="form_identifier" />
+ </tr>
+ <tr>
+ <td>Submitter</td>
+ <td><input type="text" size="25"
name="form_submitter" />
+ </tr>
+ <tr>
+ <td colspan="2" style="background-color: red; color:
white;">Please choose a method for providing the core file</td>
+ </tr>
+ <tr>
+ <td>Upload a File</td>
+ <td>File upload section</td>
+ </tr>
+ <tr>
+ <td>HTTP or FTP URL</td>
+ <td><input type="text" size="45"
name="form_url"/></td>
+ </tr>
+ <tr>
+ <td colspan="2"><input type="submit" value="Process
Job" /></td>
+ </tr>
+ </table>
+
+ </form>
+</div>
</div>
<& footer.html &>
diff --git a/web/job_detail.html b/web/job_detail.html
index e39ce8a..eac2961 100644
--- a/web/job_detail.html
+++ b/web/job_detail.html
@@ -1,9 +1,8 @@
<& header.html &>
<div id="content">
-<h3>Job Detail</h3>
-% open LOG_DATA, "<$work_dir/$view_log" or die $!;
-% while (<LOG_DATA>) {
-<% $_ %>
+<h3>Job Detail for <% $work_dir %>/<% $view_log %></h3>
+% while (<DATA>) {
+<% $_ %><br/>
% }
<& footer.html &>
@@ -11,13 +10,13 @@
use Data::Dumper;
my $work_dir;
-open CONFIG, "</etc/cas.conf" or die $!;
-while (<CONFIG>) {
+open DATA, "</etc/cas.conf" or die $!;
+while (<DATA>) {
if (/^workDirectory=(.*)/) {
$work_dir = $1;
}
}
-close CONFIG;
+open DATA, "<$work_dir/$view_log" or die $!;
</%init>
<%args>
diff --git a/web/jobs.html b/web/jobs.html
index a648b33..dd571f5 100644
--- a/web/jobs.html
+++ b/web/jobs.html
@@ -9,7 +9,7 @@
% foreach my $item (@{$data}) {
% my ($id, $identify, $timestamp, $email) = @{$item};
<tr>
-<td><a href="/job_detail.html?view_log=<% $identify %>/<%
$timestamp %>.log">view log</a></td>
+<td><a href="/job_detail.html?view_log=<% $identify %>/<%
$timestamp %>/<% $identify %>.log">view log</a></td>
<td><% $id %></td>
<td><% $identify %></td>
<td><% $timestamp %></td>
diff --git a/web/media/css/cas-web.css b/web/media/css/cas-web.css
index 61a3278..d6880f3 100644
--- a/web/media/css/cas-web.css
+++ b/web/media/css/cas-web.css
@@ -1,3 +1,4 @@
+/* GLOBAL ATTRIBUTES */
body {
font-family: sans-serif;
margin: 0;
@@ -19,6 +20,8 @@ img {
border: 0;
}
+/* CUSTOM */
+
#header {
font-size: small;
padding: 5px;
@@ -41,3 +44,9 @@ img {
margin-left: auto;
margin-right: auto;
}
+
+/* FORM ELEMENTS */
+#form_submit {
+ font-size: small;
+ font-style: normal;
+}
Show replies by date