* [task#149708,doing,0.2h] refactor weekly report menu.
This commit is contained in:
@@ -33,11 +33,6 @@ class weekly extends control
|
||||
*/
|
||||
public function commonAction($projectID = 0)
|
||||
{
|
||||
if(common::hasPriv('weekly', 'exportweeklyreport'))
|
||||
{
|
||||
$this->lang->TRActions = "<div class='btn-toolbar pull-right'>" . html::a($this->createLink('weekly', 'exportweeklyreport', 'module=' . $this->app->getModuleName() . '&projectID=' . $projectID), $this->lang->export, '', "class='btn btn-primary' data-width='30%' id='exportreport' data-group='project'") . '</div';
|
||||
}
|
||||
|
||||
$this->loadModel('project')->setMenu($projectID);
|
||||
}
|
||||
|
||||
@@ -63,8 +58,6 @@ class weekly extends control
|
||||
|
||||
$this->view->title = $this->lang->weekly->common;
|
||||
$this->view->date = $date;
|
||||
|
||||
$this->lang->modulePageNav = $this->weekly->getPageNav($this->view->project, $date);
|
||||
$this->display();
|
||||
}
|
||||
|
||||
|
||||
@@ -6,3 +6,4 @@
|
||||
#helpDropdown .dropdown-menu{width:600px; text-align:left; height:300px; overflow:auto; background: #fff; padding-left:8px;}
|
||||
#helpDropdown h2{font-size:14px; padding:0px; margin:0px; margin-top:10px;}
|
||||
#helpDropdown p{padding:0px; margin:0px; margin-top:10px;}
|
||||
#mainMenu .btn-toolbar {margin-bottom: 5px;}
|
||||
|
||||
@@ -17,6 +17,9 @@ $(function(){$('#exportreport').modalTrigger();});
|
||||
</script>
|
||||
<?php endif;?>
|
||||
<div id="mainMenu" class="clearfix text-center">
|
||||
<div class="btn-toolbar pull-right">
|
||||
<?php echo html::a($this->createLink('weekly', 'exportweeklyreport', "module=weekly&projectID={$project->id}"), $this->lang->export, '', "class='btn btn-primary' data-width='30%' id='exportreport' data-group='project'");?>
|
||||
</div>
|
||||
<div id='mainContent' >
|
||||
<div class='main-table'>
|
||||
<table class='table table-bordered'>
|
||||
|
||||
Reference in New Issue
Block a user