mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Refactor package submission form
* Adjust style to match the overall layout. * Use proper HTML tags and double quotes. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: canyonknight <canyonknight@gmail.com>
This commit is contained in:
parent
ba120ca304
commit
0d05a26a5a
1 changed files with 24 additions and 28 deletions
|
@ -433,9 +433,8 @@ html_header("Submit");
|
||||||
<p class="pkgoutput"><?php print $error ?></p>
|
<p class="pkgoutput"><?php print $error ?></p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<div class="pgbox">
|
<div class="box">
|
||||||
<h2><?php print __("Submit"); ?></h2>
|
<h2><?php echo __("Submit"); ?></h2>
|
||||||
<div class="pgboxbody">
|
|
||||||
<p><?php echo __("Upload your source packages here. Create source packages with `makepkg --source`.") ?></p>
|
<p><?php echo __("Upload your source packages here. Create source packages with `makepkg --source`.") ?></p>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
@ -447,38 +446,35 @@ html_header("Submit");
|
||||||
$pkg_categories = pkgCategories();
|
$pkg_categories = pkgCategories();
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<form action='pkgsubmit.php' method='post' enctype='multipart/form-data'>
|
<form action="pkgsubmit.php" method="post" enctype="multipart/form-data">
|
||||||
<div> <input type='hidden' name='pkgsubmit' value='1' /> </div>
|
<fieldset>
|
||||||
<table>
|
<div>
|
||||||
<tr>
|
<input type="hidden" name="pkgsubmit" value="1" />
|
||||||
<td class='f4' align='right'><?php print __("Package Category"); ?>:</td>
|
</div>
|
||||||
<td class='f4' align='left'>
|
<p>
|
||||||
<select name='category'>
|
<label for="id_category"><?php print __("Package Category"); ?>:</label>
|
||||||
<option value='1'><?php print __("Select Category"); ?></option>
|
<select id="id_category" name="category">
|
||||||
|
<option value="1"><?php print __("Select Category"); ?></option>
|
||||||
<?php
|
<?php
|
||||||
foreach ($pkg_categories as $num => $cat):
|
foreach ($pkg_categories as $num => $cat):
|
||||||
print "<option value='" . $num . "'";
|
print '<option value="' . $num . '"';
|
||||||
if (isset($_POST['category']) && $_POST['category'] == $cat):
|
if (isset($_POST['category']) && $_POST['category'] == $cat):
|
||||||
print " selected='selected'";
|
print ' selected="selected"';
|
||||||
endif;
|
endif;
|
||||||
print ">" . $cat . "</option>";
|
print '>' . $cat . '</option>';
|
||||||
endforeach;
|
endforeach;
|
||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</p>
|
||||||
</tr>
|
<p>
|
||||||
<tr>
|
<label for="id_file"><?php print __("Upload package file"); ?>:</label>
|
||||||
<td class='f4' align='right'><?php print __("Upload package file"); ?>:</td>
|
<input id="id_file" type="file" name="pfile" size='30' />
|
||||||
<td class='f4' align='left'>
|
</p>
|
||||||
<input type='file' name='pfile' size='30' />
|
<p>
|
||||||
</td>
|
<label></label>
|
||||||
</tr>
|
<input class="button" type="submit" value="<?php print __("Upload"); ?>" />
|
||||||
<tr>
|
</p>
|
||||||
<td align='left'>
|
</fieldset>
|
||||||
<input class='button' type='submit' value='<?php print __("Upload"); ?>' />
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
Loading…
Add table
Reference in a new issue