* Project add type selection.
This commit is contained in:
@@ -36,13 +36,14 @@
|
||||
</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));
|
||||
$('#guideBtn').removeClass('disabled').attr('href', createLink('program', 'PRJCreate', 'type=' + $this.data('type') + '&programID=' + programID + '&from=' + from));
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
</div>
|
||||
<div class='pull-right'>
|
||||
<?php if(isset($lang->pageActions)) echo $lang->pageActions;?>
|
||||
<?php if(common::hasPriv('program', 'createguide')) echo html::a($this->createLink('program', 'createguide'), "<i class='icon icon-sm icon-plus'></i> " . $this->lang->program->PRJCreate, '', "class='btn btn-primary' data-toggle='modal'");?>
|
||||
<?php if(common::hasPriv('program', 'createguide')) echo html::a($this->createLink('program', 'createguide', 'program=0&from=PGM'), "<i class='icon icon-sm icon-plus'></i> " . $this->lang->program->PRJCreate, '', "class='btn btn-primary' data-toggle='modal'");?>
|
||||
</div>
|
||||
</div>
|
||||
<div id='mainContent' class='main-row'>
|
||||
|
||||
@@ -32,7 +32,7 @@ js::set('browseType', $browseType);
|
||||
<?php echo html::checkbox('PRJMine', array('1' => $lang->program->mine), '', $this->cookie->PRJMine ? 'checked=checked' : '');?>
|
||||
</div>
|
||||
<div class="btn-toolbar pull-right">
|
||||
<?php common::printLink('program', 'createGuide', '', '<i class="icon icon-plus"></i>' . $lang->program->PRJCreate, '', 'class="btn btn-primary" data-toggle="modal" data-target="#guideDialog"');?>
|
||||
<?php common::printLink('program', 'createGuide', "programID=$programID", '<i class="icon icon-plus"></i>' . $lang->program->PRJCreate, '', 'class="btn btn-primary" data-toggle="modal" data-target="#guideDialog"');?>
|
||||
</div>
|
||||
</div>
|
||||
<div id='mainContent' class="main-row">
|
||||
|
||||
Reference in New Issue
Block a user