aboutsummaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-07-07 19:09:53 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-07-10 22:03:18 +0300
commit21033565488f6c63b4c40962cccfdc8b6ca32b2a (patch)
tree44732ab7e1c7a7b25e64b82bf61d293f6cff2f86 /www
parent026377d0c145277b24b3af5fdcf707222e854bd3 (diff)
Add support for package submission
Diffstat (limited to 'www')
-rw-r--r--www/buildfile6
-rw-r--r--www/submit-body.css22
-rw-r--r--www/submit.css3
-rw-r--r--www/submit.scss3
-rw-r--r--www/submit.xhtml25
5 files changed, 58 insertions, 1 deletions
diff --git a/www/buildfile b/www/buildfile
index eebac99..964851a 100644
--- a/www/buildfile
+++ b/www/buildfile
@@ -10,4 +10,8 @@ define scss: file
scss{*}: extension = scss
scss{*}: install = data/www/
-./: css{*} scss{*}
+define xhtml: file
+xhtml{*}: extension = xhtml
+xhtml{*}: install = data/www/
+
+./: css{*} scss{*} xhtml{*}
diff --git a/www/submit-body.css b/www/submit-body.css
new file mode 100644
index 0000000..0cb86d1
--- /dev/null
+++ b/www/submit-body.css
@@ -0,0 +1,22 @@
+/*
+ * Package archive submission form (based on proplist and form-table)
+ */
+#submit
+{
+ margin-top: .8em;
+ margin-bottom: .8em;
+
+ padding-top: .4em;
+ padding-bottom: .4em;
+}
+
+#submit th
+{
+ width: 5.7em;
+}
+
+#submit input
+{
+ width: 100%;
+ margin:0;
+}
diff --git a/www/submit.css b/www/submit.css
new file mode 100644
index 0000000..6bab4a4
--- /dev/null
+++ b/www/submit.css
@@ -0,0 +1,3 @@
+@import url(common.css);
+@import url(brep-common.css);
+@import url(submit-body.css);
diff --git a/www/submit.scss b/www/submit.scss
new file mode 100644
index 0000000..3a42ad6
--- /dev/null
+++ b/www/submit.scss
@@ -0,0 +1,3 @@
+@import "common";
+@import "brep-common";
+@import "submit-body";
diff --git a/www/submit.xhtml b/www/submit.xhtml
new file mode 100644
index 0000000..f222b1f
--- /dev/null
+++ b/www/submit.xhtml
@@ -0,0 +1,25 @@
+<!-- Note that in HTML5 the boolean attribute absence represents false value,
+ true otherwise. If it is present then the value must be empty or
+ case-insensitively match the attribute's name. -->
+
+<form method="post" enctype="multipart/form-data">
+ <table id="submit" class="proplist">
+ <tbody>
+ <tr>
+ <th>archive</th>
+ <td>
+ <input type="file"
+ name="archive"
+ accept=".tar.gz"
+ required=""
+ autofocus=""/>
+ </td>
+ </tr>
+ <tr>
+ <th>sha256</th>
+ <td><input type="text" name="sha256sum" required=""/></td>
+ </tr>
+ </tbody>
+ </table>
+ <div><input type="submit" value="Submit"/></div>
+</form>