Skip to content
Browse files

Cleanup and enhancements to issues listing page per issue #17

  • Loading branch information...
1 parent d763976 commit bd2749a2a7faf7d25fef5b0e31e47413e8b47e29 @mikeho mikeho committed
Showing with 22 additions and 11 deletions.
  1. +3 −1 includes/qcodo/_core/qform/QDataGridBase.class.php
  2. +9 −0 www/assets/css/qcodo.css
  3. +10 −10 www/issues/index.php
View
4 includes/qcodo/_core/qform/QDataGridBase.class.php
@@ -521,7 +521,9 @@ protected function GetHeaderRowHtml() {
$this->strActionParameter = $intColumnIndex;
- $strToReturn .= sprintf(" <th %s><a href=\"\" %s%s>%s</a></th>\r\n",
+ $strToReturn .= sprintf(" <th id=\"%s_rowh_%s\" %s><a href=\"\" %s%s>%s</a></th>\r\n",
+ $this->strControlId,
+ $intColumnIndex,
$this->objHeaderRowStyle->GetAttributes(),
$this->GetActionAttributes(),
$this->objHeaderLinkStyle->GetAttributes(),
View
9 www/assets/css/qcodo.css
@@ -264,6 +264,15 @@
table.datagrid td.small { font-size: 10px; }
table.datagrid td.reverseLink a { text-decoration: none; }
table.datagrid td.reverseLink a:hover { text-decoration: underline; }
+ th#issues_rowh_0 { width: 60px; }
+ th#issues_rowh_1 { width: 240px; }
+ th#issues_rowh_2 { width: 68px; }
+ th#issues_rowh_3 { width: 85px; }
+ th#issues_rowh_4 { width: 115px; }
+ th#issues_rowh_5 { width: 65px; }
+ th#issues_rowh_6 { width: 100px; }
+ th#issues_rowh_7 { width: 65px; }
+ th#issues_rowh_8 { width: 100px; }
/* QCalendar */
div.calendar { width: 200px; border: 1px solid #337; background-color: #ccf; }
View
20 www/issues/index.php
@@ -26,7 +26,7 @@ class QcodoForm extends QcodoWebsiteForm {
protected function Form_Create() {
parent::Form_Create();
- $this->dtgIssues = new IssueDataGrid($this);
+ $this->dtgIssues = new IssueDataGrid($this, 'issues');
$this->dtgIssues->CssClass = 'datagrid issuesDataGrid';
$this->dtgIssues->Paginator = new QPaginator($this->dtgIssues);
$this->dtgIssues->AlternateRowStyle->CssClass = 'alternate';
@@ -34,15 +34,15 @@ protected function Form_Create() {
$this->dtgIssues->NounPlural = 'issues';
$this->dtgIssues->SetDataBinder('dtgIssues_Bind');
- $this->dtgIssues->MetaAddColumn('Id', 'Html=<?= $_FORM->RenderId($_ITEM); ?>', 'Name=Issue ID', 'HtmlEntities=false', 'Width=60px');
- $this->dtgIssues->MetaAddColumn('Title', 'Html=<?= $_FORM->RenderTitle($_ITEM); ?>', 'Name=Summary', 'HtmlEntities=false', 'Width=240px');
- $this->dtgIssues->MetaAddTypeColumn('IssuePriorityTypeId', 'IssuePriorityType', 'Name=Priority', 'Width=68px');
- $this->dtgIssues->MetaAddTypeColumn('IssueStatusTypeId', 'IssueStatusType', 'Html=<?= $_FORM->RenderStatus($_ITEM); ?>', 'HtmlEntities=false', 'Name=Status', 'Width=85px');
- $this->dtgIssues->AddColumn(new QDataGridColumn('Category', '<?= $_FORM->RenderCategory($_ITEM); ?>', 'Width=115px', 'CssClass=small'));
- $this->dtgIssues->MetaAddColumn('PostDate', 'Name=Posted', 'CssClass=small', 'Width=65px');
- $this->dtgIssues->MetaAddColumn(QQN::Issue()->PostedByPerson->DisplayName, 'Name=By', 'Html=<?= $_FORM->RenderPostedBy($_ITEM); ?>', 'HtmlEntities=false', 'Width=100px', 'CssClass=small reverseLink');
- $this->dtgIssues->MetaAddColumn(QQN::Issue()->TopicLink->LastPostDate, 'Name=Last Updated', 'CssClass=small', 'Width=65px');
- $this->dtgIssues->MetaAddColumn(QQN::Issue()->AssignedToPerson->DisplayName, 'Name=Assigned To', 'Html=<?= $_FORM->RenderAssignedTo($_ITEM); ?>', 'HtmlEntities=false', 'Width=100px', 'CssClass=small reverseLink');
+ $this->dtgIssues->MetaAddColumn('Id', 'Html=<?= $_FORM->RenderId($_ITEM); ?>', 'Name=Issue ID', 'HtmlEntities=false');
+ $this->dtgIssues->MetaAddColumn('Title', 'Html=<?= $_FORM->RenderTitle($_ITEM); ?>', 'Name=Summary', 'HtmlEntities=false');
+ $this->dtgIssues->MetaAddTypeColumn('IssuePriorityTypeId', 'IssuePriorityType', 'Name=Priority');
+ $this->dtgIssues->MetaAddTypeColumn('IssueStatusTypeId', 'IssueStatusType', 'Html=<?= $_FORM->RenderStatus($_ITEM); ?>', 'HtmlEntities=false', 'Name=Status');
+ $this->dtgIssues->AddColumn(new QDataGridColumn('Category', '<?= $_FORM->RenderCategory($_ITEM); ?>', 'CssClass=small'));
+ $this->dtgIssues->MetaAddColumn('PostDate', 'Name=Posted', 'CssClass=small');
+ $this->dtgIssues->MetaAddColumn(QQN::Issue()->PostedByPerson->DisplayName, 'Name=By', 'Html=<?= $_FORM->RenderPostedBy($_ITEM); ?>', 'HtmlEntities=false', 'CssClass=small reverseLink');
+ $this->dtgIssues->MetaAddColumn(QQN::Issue()->TopicLink->LastPostDate, 'Name=Last Updated', 'CssClass=small');
+ $this->dtgIssues->MetaAddColumn(QQN::Issue()->AssignedToPerson->DisplayName, 'Name=Assigned To', 'Html=<?= $_FORM->RenderAssignedTo($_ITEM); ?>', 'HtmlEntities=false', 'CssClass=small reverseLink');
$this->dtgIssues->GetColumnByName('Status')->OrderByClause = QQ::OrderBy(QQN::Issue()->IssueStatusTypeId, QQN::Issue()->IssueResolutionTypeId);
$this->dtgIssues->GetColumnByName('Status')->ReverseOrderByClause = QQ::OrderBy(QQN::Issue()->IssueStatusTypeId, false, QQN::Issue()->IssueResolutionTypeId, false);

0 comments on commit bd2749a

Please sign in to comment.
Something went wrong with that request. Please try again.