Move adoption button to package actions box

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2012-07-17 21:32:12 +02:00
parent 4679e8ef5d
commit c87ae9d299
2 changed files with 13 additions and 7 deletions

View file

@ -25,13 +25,6 @@
<?php endif; ?> <?php endif; ?>
<?php endif; ?> <?php endif; ?>
<?php if ($row["MaintainerUID"] === NULL): ?>
<input type="submit" class="button" name="do_Adopt" value="<?php echo __("Adopt Packages") ?>" />
<?php elseif ($uid == $row["MaintainerUID"] ||
$atype == "Trusted User" || $atype == "Developer"): ?>
<input type="submit" class="button" name="do_Disown" value="<?php echo __("Disown Packages") ?>" />
<?php endif; ?>
<?php if ($atype == "Trusted User" || $atype == "Developer"): ?> <?php if ($atype == "Trusted User" || $atype == "Developer"): ?>
<input type="submit" class="button" name="do_Delete" value="<?php echo __("Delete Packages") ?>" /> <input type="submit" class="button" name="do_Delete" value="<?php echo __("Delete Packages") ?>" />
<label for="merge_Into" ><?php echo __("Merge into") ?></label> <label for="merge_Into" ><?php echo __("Merge into") ?></label>

View file

@ -55,6 +55,19 @@ $sources = package_sources($row["ID"]);
<?php endif; ?> <?php endif; ?>
<?php endif; ?> <?php endif; ?>
</ul> </ul>
<form action="<?php echo htmlspecialchars(get_pkg_uri($row['Name']), ENT_QUOTES); ?>" method="post">
<fieldset>
<input type="hidden" name="IDs[<?php echo $row['ID'] ?>]" value="1" />
<input type="hidden" name="ID" value="<?php echo $row['ID'] ?>" />
<input type="hidden" name="token" value="<?php echo htmlspecialchars($_COOKIE['AURSID']) ?>" />
<?php if ($row["MaintainerUID"] === NULL): ?>
<input type="submit" class="button" name="do_Adopt" value="<?php echo __("Adopt Packages") ?>" />
<?php elseif ($uid == $row["MaintainerUID"] ||
$atype == "Trusted User" || $atype == "Developer"): ?>
<input type="submit" class="button" name="do_Disown" value="<?php echo __("Disown Packages") ?>" />
<?php endif; ?>
</fieldset>
</form>
</div> </div>
</div> </div>