From 879cabc0b2f3e4372386b9e67445881aff6192f5 Mon Sep 17 00:00:00 2001 From: xzilla Date: Wed, 9 Aug 2006 19:09:13 +0000 Subject: [PATCH] Add an alter link to the sequence listing where applicable. Patch from John Jawed for SoC. --- sequences.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sequences.php b/sequences.php index 4785d557..a63a885e 100644 --- a/sequences.php +++ b/sequences.php @@ -3,7 +3,7 @@ /** * Manage sequences in a database * - * $Id: sequences.php,v 1.34 2006/07/03 01:20:28 xzilla Exp $ + * $Id: sequences.php,v 1.35 2006/08/09 19:09:13 xzilla Exp $ */ // Include application functions @@ -51,6 +51,11 @@ 'url' => "{$PHP_SELF}?action=properties&{$misc->href}&", 'vars' => array('sequence' => 'seqname'), ), + 'alter' => array( + 'title' => $lang['stralter'], + 'url' => "sequences.php?action=confirm_alter&{$misc->href}&subject=sequence&", + 'vars' => array('sequence' => 'seqname'), + ), 'drop' => array( 'title' => $lang['strdrop'], 'url' => "{$PHP_SELF}?action=confirm_drop&{$misc->href}&", @@ -63,6 +68,7 @@ ), ); + if (!$data->hasAlterSequence()) unset($actions['alter']); $misc->printTable($sequences, $columns, $actions, $lang['strnosequences']); echo "

href}\">{$lang['strcreatesequence']}

\n"; -- 2.39.5