[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gforge-commits] gforge/www/admin groupedit.php,1.10,1.11
From: |
gsmet |
Subject: |
[Gforge-commits] gforge/www/admin groupedit.php,1.10,1.11 |
Date: |
Mon, 01 Nov 2004 14:49:31 -0600 |
Update of /cvsroot/gforge/gforge/www/admin
In directory db.perdue.net:/tmp/cvs-serv25864
Modified Files:
groupedit.php
Log Message:
fixed some minor localization problems
cannot update the status of pending projects anymore
Index: groupedit.php
===================================================================
RCS file: /cvsroot/gforge/gforge/www/admin/groupedit.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- groupedit.php 27 Aug 2004 19:02:18 -0000 1.10
+++ groupedit.php 1 Nov 2004 20:49:29 -0000 1.11
@@ -94,31 +94,43 @@
<table>
-
<tr>
-<td colspan="3">
-
+<td>
<?php echo $Language->getText('admin_groupedit','status') ?>:
+</td>
+<td>
<?php // PLEASE DONT TRANSLATE THIS, THIS IS DATABASE INFO THAT CANT BE
DIFFERENT AMONG LANGUAGES
+$status = $group->getStatus();
+if($status == 'P') {
+ // we cannot update the status of a pending project
+ echo '<input type="hidden" name="form_status" value="P" />';
+ echo $Language->getText('admin_groupedit','pending').' ';
+} else {
echo html_build_select_box_from_arrays(
- array(
- 'I',
- 'A',
- 'P',
- 'H',
- 'D'
- ),
- array(
- $Language->getText('admin_groupedit','incomplete'),
- $Language->getText('admin_groupedit','active'),
- $Language->getText('admin_groupedit','pending'),
- $Language->getText('admin_groupedit','holding'),
- $Language->getText('admin_groupedit','deleted')
- ),
- 'form_status', $group->getStatus(), false
-); ?>
-
+ array(
+ 'I',
+ 'A',
+ 'P',
+ 'H',
+ 'D'
+ ),
+ array(
+ $Language->getText('admin_groupedit','incomplete'),
+ $Language->getText('admin_groupedit','active'),
+ $Language->getText('admin_groupedit','pending'),
+ $Language->getText('admin_groupedit','holding'),
+ $Language->getText('admin_groupedit','deleted')
+ ),
+ 'form_status', $status, false
+ );
+} ?>
+</td>
+</tr>
+<tr>
+<td>
<?php echo $Language->getText('admin_groupedit','public') ?>:
+</td>
+<td>
<?php // PLEASE DONT TRANSLATE THIS, THIS IS DATABASE INFO THAT CANT BE
DIFFERENT AMONG LANGUAGES
echo html_build_select_box_from_arrays(
array(
@@ -154,10 +166,20 @@
?>
</td>
</tr>
-
+<?php
+if ($group->getLicense() == 'other') {
+?>
<tr>
+<td><?php echo $Language->getText('admin','license_other'); ?>
+</td>
<td>
-Home Box:
+<?php echo $group->getLicenseOther(); ?>
+</td>
+</tr>
+<?php } ?>
+<tr>
+<td>
+<?php echo $Language->getText('admin','home_box'); ?>
</td>
<td>
<input type="text" name="form_box" value="<?php echo $group->getUnixBox(); ?>"
/>
@@ -181,25 +203,13 @@
<?php echo $group->getRegistrationPurpose(); ?>
</td>
</tr>
-
-<?php
-if ($group->getLicense() == 'other') {
-?>
- <tr>
- <td><?php echo $Language->getText('admin','license_other'); ?>
- </td>
- <td>
- <?php echo $group->getLicenseOther(); ?>
- </td>
- </tr>
<?php
-}
if ($group->usesSCM() && $GLOBALS['sys_scm_single_host'] != '1' ) {
-?> <tr>
- <td><?php echo $Language->getText('admin','scm_box'); ?>
- </td>
- <td>
- <input size="40" type="text" name="form_scm_box" value="<?php echo
$group->getSCMBox(); ?>"/></td></tr>
+?>
+<tr>
+ <td><?php echo $Language->getText('admin','scm_box'); ?></td>
+ <td><input size="40" type="text" name="form_scm_box" value="<?php echo
$group->getSCMBox(); ?>"/></td>
+</tr>
<?php
}
?>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gforge-commits] gforge/www/admin groupedit.php,1.10,1.11,
gsmet <=
- Prev by Date:
[Gforge-commits] gforge/www/include/languages Base.tab, 1.193, 1.194 French.tab, 1.128, 1.129
- Next by Date:
[Gforge-commits] gforge gforge.spec,1.8,1.9
- Previous by thread:
[Gforge-commits] gforge/www/include/languages Base.tab, 1.193, 1.194 French.tab, 1.128, 1.129
- Next by thread:
[Gforge-commits] gforge gforge.spec,1.8,1.9
- Index(es):