* Finish task#8731.

This commit is contained in:
qiyu-xie
2020-12-25 09:07:44 +08:00
parent 2d1b596097
commit 7e87e5cfd3
7 changed files with 20 additions and 34 deletions
+14 -28
View File
@@ -12,38 +12,24 @@
</style>
<div class='modal-content'>
<div class='modal-body'>
<button class="close" data-dismiss="modal">X</button>
<h2 class='text-center'><?php echo $lang->program->chooseProgramType; ?></h2>
<div class='row'>
<div class='col-xs-6'>
<div class='program-type text-center'>
<img class='program-type-img' data-type='scrum' src='<?php echo $config->webRoot . 'theme/default/images/main/scrum.png'?>'>
<h3><?php echo $lang->program->scrum; ?></h3>
<p><?php echo $lang->program->scrumTitle; ?></p>
<div class='col-xs-6'>
<div class='program-type text-center'>
<?php echo html::a($this->createLink("program", "PRJCreate", "model=scrum&programID=$programID&from=$from"), "<img class='program-type-img' data-type='scrum' src='{$config->webRoot}theme/default/images/main/scrum.png'>")?>
<h3><?php echo $lang->program->scrum; ?></h3>
<p><?php echo $lang->program->scrumTitle; ?></p>
</div>
</div>
<div class='col-xs-6'>
<div class='program-type text-center'>
<?php echo html::a($this->createLink("program", "PRJCreate", "model=waterfall&programID=$programID&from=$from"), "<img class='program-type-img' data-type='waterfall' src='{$config->webRoot}theme/default/images/main/waterfall.png'>")?>
<h3><?php echo $lang->program->waterfall; ?></h3>
<p><?php echo $lang->program->waterfallTitle; ?></p>
</div>
</div>
</div>
<div class='col-xs-6'>
<div class='program-type text-center'>
<img class='program-type-img' data-type='waterfall' src='<?php echo $config->webRoot . 'theme/default/images/main/waterfall.png'?>'>
<h3><?php echo $lang->program->waterfall; ?></h3>
<p><?php echo $lang->program->waterfallTitle; ?></p>
</div>
</div>
</div>
</div>
<div class='modal-footer text-center'>
<a class='btn btn-primary btn-wide disabled' id='guideBtn'><?php echo $lang->program->nextStep; ?></a>
<button type='button' class='btn btn-default btn-wide' data-dismiss='modal'><?php echo $lang->cancel; ?></button>
</div>
</div>
<?php echo js::set('programID', $programID)?>
<?php echo js::set('from', $from)?>
<script>
$('#guideDialog').on('click', '.program-type-img', function()
{
var $this = $(this);
$('#guideDialog .program-type.active').removeClass('active');
$this.parent().addClass('active');
$('#guideBtn').removeClass('disabled').attr('href', createLink('program', 'PRJCreate', 'type=' + $this.data('type') + '&programID=' + programID + '&from=' + from));
});
</script>
</div>