Fix progress bugs in namespace

This commit is contained in:
Dennis Eichhorn 2017-09-26 16:35:24 +02:00
parent 7d9ee739b6
commit ba48929b89

View File

@ -34,13 +34,13 @@ echo $this->getData('nav')->render(); ?>
<tr><td colspan="2"><textarea id="iDescription" name="desc"><?= $this->printHtml($project->getDescription()); ?></textarea>
<tr><td colspan="2"><label for="iProgressType"><?= $this->getHtml('Progress') ?></label>
<tr><td><select id="iProgressType" name="progressType">
<option value="<?= \Modules\Project\Models\ProgressType::MANUAL; ?>"><?= $this->getHtml('Manual') ?>
<option value="<?= \Modules\Project\Models\ProgressType::LINEAR; ?>"><?= $this->getHtml('Linear') ?>
<option value="<?= \Modules\Project\Models\ProgressType::EXPONENTIAL; ?>"><?= $this->getHtml('Exponential') ?>
<option value="<?= \Modules\Project\Models\ProgressType::LOG; ?>"><?= $this->getHtml('Log') ?>
<option value="<?= \Modules\Project\Models\ProgressType::TASKS; ?>"><?= $this->getHtml('Tasks') ?>
<option value="<?= \Modules\ProjectManagement\Models\ProgressType::MANUAL; ?>"><?= $this->getHtml('Manual') ?>
<option value="<?= \Modules\ProjectManagement\Models\ProgressType::LINEAR; ?>"><?= $this->getHtml('Linear') ?>
<option value="<?= \Modules\ProjectManagement\Models\ProgressType::EXPONENTIAL; ?>"><?= $this->getHtml('Exponential') ?>
<option value="<?= \Modules\ProjectManagement\Models\ProgressType::LOG; ?>"><?= $this->getHtml('Log') ?>
<option value="<?= \Modules\ProjectManagement\Models\ProgressType::TASKS; ?>"><?= $this->getHtml('Tasks') ?>
</select>
<td><input type="text" id="iProgress" name="progress" value="<?= $project->getProgress(); ?>"<?= $project->getProgressType() !== \Modules\Project\Models\ProgressType::MANUAL ? ' disabled' : ''; ?>>
<td><input type="text" id="iProgress" name="progress" value="<?= $project->getProgress(); ?>"<?= $project->getProgressType() !== \Modules\ProjectManagement\Models\ProgressType::MANUAL ? ' disabled' : ''; ?>>
<tr><td><label for="iBudget"><?= $this->getHtml('Budget') ?></label><td><label for="iActual"><?= $this->getHtml('Actual') ?></label>
<tr><td><input type="text" id="iBudget" name="budget" placeholder=""><td><input type="text" id="iActual" name="actual">
<tr><td colspan="2"><input type="submit" value="<?= $this->getHtml('Save', 0, 0); ?>">