]> WPIA git - gigi.git/commitdiff
ADD: Stub for ticket handling form
authorJanis Streib <janis@dogcraft.de>
Tue, 27 Jan 2015 21:31:17 +0000 (22:31 +0100)
committerJanis Streib <janis@dogcraft.de>
Tue, 27 Jan 2015 21:31:17 +0000 (22:31 +0100)
src/org/cacert/gigi/pages/admin/support/SupportEnterTicketForm.java [new file with mode: 0644]
src/org/cacert/gigi/pages/admin/support/SupportEnterTicketForm.templ [new file with mode: 0644]
src/org/cacert/gigi/pages/admin/support/SupportUserDetailsForm.templ
src/org/cacert/gigi/pages/admin/support/SupportUserDetailsPage.java

diff --git a/src/org/cacert/gigi/pages/admin/support/SupportEnterTicketForm.java b/src/org/cacert/gigi/pages/admin/support/SupportEnterTicketForm.java
new file mode 100644 (file)
index 0000000..6357977
--- /dev/null
@@ -0,0 +1,34 @@
+package org.cacert.gigi.pages.admin.support;
+
+import java.io.PrintWriter;
+import java.util.Map;
+
+import javax.servlet.http.HttpServletRequest;
+
+import org.cacert.gigi.GigiApiException;
+import org.cacert.gigi.localisation.Language;
+import org.cacert.gigi.output.template.Form;
+import org.cacert.gigi.output.template.Template;
+
+public class SupportEnterTicketForm extends Form {
+
+    private static Template t;
+    static {
+        t = new Template(SupportEnterTicketForm.class.getResource("SupportEnterTicketForm.templ"));
+    }
+
+    public SupportEnterTicketForm(HttpServletRequest hsr) {
+        super(hsr);
+    }
+
+    @Override
+    public boolean submit(PrintWriter out, HttpServletRequest req) throws GigiApiException {
+        return false;
+    }
+
+    @Override
+    protected void outputContent(PrintWriter out, Language l, Map<String, Object> vars) {
+        t.output(out, l, vars);
+    }
+
+}
diff --git a/src/org/cacert/gigi/pages/admin/support/SupportEnterTicketForm.templ b/src/org/cacert/gigi/pages/admin/support/SupportEnterTicketForm.templ
new file mode 100644 (file)
index 0000000..5a268dc
--- /dev/null
@@ -0,0 +1,12 @@
+<table class="wrapper dataTable centertext">
+<tr>
+            <th colspan="2"><?=_Ticket handling?></th>
+        </tr>
+        <tr>
+            <td><?=_Ticket no?>:</td>
+            <td><input type="text" name="ticketno"></td>
+        </tr>
+        <tr>
+            <td colspan="2"><input type="submit" value="<?=_Set ticket number?>"></td>
+        </tr>
+</table>
\ No newline at end of file
index 2e9cfdf91ca3a78b7b4320c54d6545a1124fddb1..48e276ddf5d30601a0ef0ea0fded83630289328a 100644 (file)
@@ -1,3 +1,5 @@
+<?=$tickethandling?>
+<br/>
 <table class="wrapper dataTable centertext">
         <tbody><tr>
             <th colspan="2"><?=$mail?>'s Account Details</th>
 <table class="wrapper dataTable centertext">
         <tbody><tr>
             <th colspan="2"><?=$mail?>'s Account Details</th>
index a16ff0760651223b32cc8e4f6549f0db169fdca5..ee807253da0efbe0466428cb8cf4d4292009eb46 100644 (file)
@@ -50,6 +50,7 @@ public class SupportUserDetailsPage extends Page {
             }
         });
         vars.put("certifrevoke", new SupportRevokeCertificatesForm(req, user));
             }
         });
         vars.put("certifrevoke", new SupportRevokeCertificatesForm(req, user));
+        vars.put("tickethandling", new SupportEnterTicketForm(req));
         getDefaultTemplate().output(resp.getWriter(), getLanguage(req), vars);
     }
 
         getDefaultTemplate().output(resp.getWriter(), getLanguage(req), vars);
     }