Exemple #1
0
"><?php 
echo Accepted::getStatusName(Accepted::STATUS_ACCEPTED);
?>
</option>
				<option value="<?php 
echo Accepted::STATUS_FEEDBACK;
?>
"><?php 
echo Accepted::getStatusName(Accepted::STATUS_FEEDBACK);
?>
</option>
				<option value="<?php 
echo Accepted::STATUS_COMPLETED;
?>
"><?php 
echo Accepted::getStatusName(Accepted::STATUS_COMPLETED);
?>
</option>
			</select>
		</div>
	</div>		

<div class="clear">
	<div class="input">
		<input id="btnEditStatus" type="button" value="Save" />
		<input id="btnCancelStatus" class="right" type="button" value="Cancel" />
	</div>
</div>
	
	
</div>
Exemple #2
0
<input type="hidden" name="action" value="edit-update" />
<div class="clear">
	<label for="txtTitle">Title<span class="required">*</span></label>
	<div class="input">
		<input type="text" id="txtTitle" name="txtTitle" maxlength="255" value="<?php 
    echo $update->getTitle();
    ?>
" />
		<p>Short title for the contribution</p>
	</div>
</div>
<div class="clear">
	<label for="txtMessage">Message<span class="required">*</span></label>
	<div class="input">
		<textarea id="txtMessage" name="txtMessage"><?php 
    echo $update->getMessage();
    ?>
</textarea>
		<p>Write your contribution here, <a class="help-link" href="<?php 
    echo Url::help();
    ?>
#help-html-allowed">some HTML allowed</a></p>
	</div>
</div>
<?php 
    if ($update->isLatestUpdate()) {
        ?>

<div class="clear">
	<label for="selStatus">Status<span class="required">*</span></label>
	<div class="input">
Exemple #3
0
            $numAccepted = $t->getNumAccepted();
            if (empty($numNeeded)) {
                $stillNeeded = '&#8734;';
            } elseif ($numNeeded > $numAccepted) {
                $stillNeeded = $numNeeded - $numAccepted;
            } else {
                $stillNeeded = 0;
            }
            echo '<td class="needed">' . $stillNeeded . '</td>';
            // role
            if (!is_null($user)) {
                // relationship to task
                if ($user->getID() == $t->getLeaderID()) {
                    echo '<td class="role">leader</td>';
                } else {
                    $accepted = Accepted::getByUserID($user->getID(), $t->getID());
                    if (!empty($accepted)) {
                        $role = Accepted::getStatusName($accepted->getStatus());
                        echo '<td class="role">' . $role . '</td>';
                    }
                }
            }
            echo '</tr>';
        }
        echo '</table>';
    }
} else {
    echo "<p>(none)</p>";
}
$fork->endBlockSet();
$fork->render('site/partial/panel');