* finish task #4596.

This commit is contained in:
wangyidong
2018-07-09 16:22:09 +08:00
parent 8e33b05bb5
commit abc7375b2e
3 changed files with 37 additions and 3 deletions
+15 -1
View File
@@ -126,7 +126,21 @@
<?php if($story->status != 'draft'):?>
<tr>
<th><?php echo $lang->story->stage;?></th>
<td><?php echo html::select('stage', $lang->story->stageList, $story->stage, "class='form-control chosen'");?></td>
<td>
<?php
if($story->stages and $branches)
{
foreach($story->stages as $branch => $stage)
{
if(isset($branches[$branch])) echo '<p>' . $branches[$branch] . html::select("stages[$branch]", $lang->story->stageList, $stage, "class='form-control chosen'") . '</p>';
}
}
else
{
echo html::select('stage', $lang->story->stageList, $story->stage, "class='form-control chosen'");
}
?>
</td>
</tr>
<?php endif;?>
<tr>