Commit 0d05a26a authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

Refactor package submission form

* Adjust style to match the overall layout.
* Use proper HTML tags and double quotes.
Signed-off-by: default avatarLukas Fleischer <>
Signed-off-by: default avatarcanyonknight <>
parent ba120ca3
......@@ -433,9 +433,8 @@ html_header("Submit");
<p class="pkgoutput"><?php print $error ?></p>
<?php endif; ?>
<div class="pgbox">
<h2><?php print __("Submit"); ?></h2>
<div class="pgboxbody">
<div class="box">
<h2><?php echo __("Submit"); ?></h2>
<p><?php echo __("Upload your source packages here. Create source packages with `makepkg --source`.") ?></p>
......@@ -447,38 +446,35 @@ html_header("Submit");
$pkg_categories = pkgCategories();
<form action='pkgsubmit.php' method='post' enctype='multipart/form-data'>
<div> <input type='hidden' name='pkgsubmit' value='1' /> </div>
<td class='f4' align='right'><?php print __("Package Category"); ?>:</td>
<td class='f4' align='left'>
<select name='category'>
<option value='1'><?php print __("Select Category"); ?></option>
<form action="pkgsubmit.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="pkgsubmit" value="1" />
<label for="id_category"><?php print __("Package Category"); ?>:</label>
<select id="id_category" name="category">
<option value="1"><?php print __("Select Category"); ?></option>
foreach ($pkg_categories as $num => $cat):
print "<option value='" . $num . "'";
print '<option value="' . $num . '"';
if (isset($_POST['category']) && $_POST['category'] == $cat):
print " selected='selected'";
print ' selected="selected"';
print ">" . $cat . "</option>";
print '>' . $cat . '</option>';
<td class='f4' align='right'><?php print __("Upload package file"); ?>:</td>
<td class='f4' align='left'>
<input type='file' name='pfile' size='30' />
<td align='left'>
<input class='button' type='submit' value='<?php print __("Upload"); ?>' />
<label for="id_file"><?php print __("Upload package file"); ?>:</label>
<input id="id_file" type="file" name="pfile" size='30' />
<input class="button" type="submit" value="<?php print __("Upload"); ?>" />
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment