Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/site/app/views/editors/queue.thtml
diff options
context:
space:
mode:
Diffstat (limited to 'site/app/views/editors/queue.thtml')
-rw-r--r--site/app/views/editors/queue.thtml142
1 files changed, 33 insertions, 109 deletions
diff --git a/site/app/views/editors/queue.thtml b/site/app/views/editors/queue.thtml
index 945ebde..49d2e27 100644
--- a/site/app/views/editors/queue.thtml
+++ b/site/app/views/editors/queue.thtml
@@ -38,116 +38,47 @@
* ***** END LICENSE BLOCK ***** */
?>
<div id="content">
-<?=$this->renderElement('developers/editorsmenu');?>
-<?=$this->renderElement('developers/editorsqueue');?>
+ <?=$this->renderElement('developers/editorsmenu');?>
+ <?=$this->renderElement('developers/editorsqueue');?>
<div id="filterBox">
-<?=$html->formTag("/editors/queue/{$mode}", 'post');?>
- <div id="filterHeader">&darr;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?=_('editors_filter_queue')?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&darr;</div>
- <?php if ($filtered == true) { ?><div id="sessionNotice"><?=_('editors_notice_filter_session')?></div><?php } ?>
- <div id="filterTable" <?=($filterChanged == false ? ' style="display: none;"' : '')?>>
- <div class="group left">
- <div>
- <label for="FilterAddonOrAuthor"><?=___('editors_queue_filter_label_addon', 'Add-on or Author Email')?></label>
- <?=$html->input('Filter/AddonOrAuthor', array('value'=>$addonOrAuthor))?>
- </div>
-
- <div>
- <label for="FilterApplication"><?=___('editors_queue_filter_label_application', 'Application')?></label>
- <?=$html->selectTag('Filter/Application', $applications, $selected['Application'], null, null, true)?>
- </div>
-
- <div>
- <label for="FilterMaxVersion"><?=___('editors_queue_filter_label_maxversion', 'Max. Version')?></label>
- <?=$html->selectTag('Filter/MaxVersion', $maxVersions, $selected['MaxVersion'], null, null, true)?>
- </div>
-
- <div>
- <label for="FilterSubmissionAge"><?=___('editors_queue_filter_label_submissionage', 'Age of Submission (days)')?></label>
- <?=$html->selectTag('Filter/SubmissionAge', $submissionAges, $selected['SubmissionAge'], null, null, true)?>
- </div>
- </div>
- <div class="group">
- <div>
- <label for="FilterAddontype"><?=___('editors_queue_filter_label_addontypes', 'Add-on Types')?></label><br/>
- <?=$html->selectTag('Filter/Addontype', $addontypes, $selected['Addontype'], array('multiple' => 'multiple', 'size' => 5), null, false)?>
- </div>
- </div>
- <div class="group">
- <div>
- <label for="FilterPlatform"><?=___('editors_queue_filter_label_platforms', 'Platforms')?></label><br/>
- <?=$html->selectTag('Filter/Platform', $platforms, $selected['Platform'], array('multiple' => 'multiple', 'size' => 5), null, false)?>
- </div>
- </div>
- <div class="buttons">
- <?=$html->submit(_('editors_queue_submit_filter'), array('name' => 'filter'));?>
- <?=$html->submit(_('editors_queue_submit_clean'), array('name' => 'clear'))?>
- </div>
- </div>
-</form>
-<?php if ($filtered): ?>
- <div>
- <?=sprintf(n___('editors_queue_filter_result_count','editors_queue_filter_result_count', $filteredCount, 'Results of Your Filtered Search: <strong>%d</strong> Add-ons'), $filteredCount)?>
- </div>
-<?php endif; ?>
+<?php
+ echo $html->formTag('/editors/queue', 'post');
+ echo '<div id="filterHeader" onClick="toggleFilters();">&darr;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'._('editors_filter_queue').'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&darr;</div>';
+ if ($filtered == true) {
+ echo '<div id="sessionNotice">'._('editors_notice_filter_session').'</div>';
+ }
+ echo '<table id="filterTable"'.($filtered == false ? ' style="display: none;"' : '').'>';
+ echo '<tr><td colspan=5><b>Filters are not yet functional!</b></td></tr>';
+ echo '<tr id="headerRow">';
+ echo '<td>'._('editors_th_addontypes').'</td>';
+ echo '<td>'._('editors_th_platforms').'</td>';
+ echo '<td>'._('editors_th_applications').'</td>';
+ echo '<td>'._('editors_th_submissiontypes').'</td>';
+ echo '<td>&nbsp;</td>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<td>'.$html->selectTag('Approval/Addontype', $addontypes, $selected['Addontype'], array('multiple' => 'multiple', 'size' => 5), null, false).'</td>';
+ echo '<td>'.$html->selectTag('Approval/Platform', $platforms, $selected['Platform'], array('multiple' => 'multiple', 'size' => 5), null, false).'</td>';
+ echo '<td>'.$html->selectTag('Approval/Application', $applications, $selected['Application'], array('multiple' => 'multiple', 'size' => 5), null, false).'</td>';
+ echo '<td>'.$html->selectTag('Approval/SubmissionType', $submissionTypes, $selected['SubmissionType'], array('multiple' => 'multiple', 'size' => 5), null, false).'</td>';
+ echo '<td>'.$html->submit(_('editors_queue_submit_filter'), array('name' => 'filter')).'<br><br>'.$html->submit(_('editors_queue_submit_clean'), array('name' => 'clear')).'</td>';
+ echo '</tr>';
+ echo '</table>';
+ echo '</form>';
+?>
</div>
<table width="100%">
<tr class="queueHeader">
- <td><?php
- $sorturl = "/editors/queue/{$mode}?sort=name";
- $sortimg = '';
- if ($sortBy == 'name') {
- if ($sortDir == 'ASC') {
- $sortimg = $html->image('developers/arrow_up.png', array('title' => ___('editors_th_sort_ascending', 'ascending sort')));
- $sorturl .= '&dir=desc';
-
- } else {
- $sortimg = $html->image('developers/arrow_down.png', array('title' => ___('editors_th_sort_descending', 'descending sort')));
- $sorturl .= '&dir=asc';
- }
- }
- echo $html->link(___('editors_th_addon'), $sorturl);
- echo $sortimg;
- ?></td>
- <td><?php
- $sorturl = "/editors/queue/{$mode}?sort=type";
- $sortimg = '';
- if ($sortBy == 'type') {
- if ($sortDir == 'ASC') {
- $sortimg = $html->image('developers/arrow_up.png', array('title' => ___('editors_th_sort_ascending', 'ascending sort')));
- $sorturl .= '&dir=desc';
-
- } else {
- $sortimg = $html->image('developers/arrow_down.png', array('title' => ___('editors_th_sort_descending', 'descending sort')));
- $sorturl .= '&dir=asc';
- }
- }
- echo $html->link(___('editors_th_addontype'), $sorturl);
- echo $sortimg;
- ?></td>
+ <td><?=_('editors_th_addon')?></td>
+ <td><?=_('editors_th_addontype')?></td>
<?php
- $apps = array();
+ $apps = array('Sugar');
foreach ($apps as $app) {
echo '<td>'.$html->image('developers/'.strtolower($app).'.png', array('title' => sprintf(_('editors_queue_app_compatibility'), $app))).'</td>';
}
?>
- <td><?php
- $sorturl = "/editors/queue/{$mode}?sort=age";
- $sortimg = '';
- if ($sortBy == 'age') {
- if ($sortDir == 'ASC') {
- // age sort is actually on a timestamp, so age direction is opposite
- $sortimg = $html->image('developers/arrow_down.png', array('title' => ___('editors_th_sort_descending', 'descending sort')));
- $sorturl .= '&dir=desc';
-
- } else {
- $sortimg = $html->image('developers/arrow_up.png', array('title' => ___('editors_th_sort_ascending', 'ascending sort')));
- $sorturl .= '&dir=asc';
- }
- }
- echo $html->link(___('editors_th_nomination_age'), $sorturl);
- echo $sortimg;
- ?></td>
+ <td><?=_('editors_th_age')?></td>
<td><?=_('editors_th_additional_info')?></td>
</tr>
<?php
@@ -165,7 +96,7 @@
echo '<td>&nbsp;</td>';
}
}
- echo '<td>'.(($mode == 'nominated') ? $addon['nominationage'] : $addon['age']).'</td>';
+ echo '<td>'.$addon['age'].'</td>';
echo '<td>'.(!empty($addon['notes']) ? implode('; ', $addon['notes']) : '').'</td>';
echo '</tr>';
$num++;
@@ -179,13 +110,6 @@
}
?>
<div id="helpfulLinks">
-<?=_('editors_helpful_links').': '.$html->link(_('editors_link_policy'), '/pages/policy').' | '.$html->link(_('editors_link_guide'), SITE_EDITOR_WIKI)?>
+<?=_('editors_helpful_links').': '.$html->link(_('editors_link_policy'), '/pages/policy').' | '.$html->link(_('editors_link_guide'), SITE_EDITOR_WIKI')?>
</div>
</div>
-<script type="text/javascript">
-// <![CDATA[
- var addonAutocompleteUrl = '<?=$html->url("/editors/addonAndAuthorLookup/{$mode}")?>';
- var appversionLookupUrl = '<?=$html->url('/editors/appversionLookup/')?>';
- $(document).ready(function() { editors_queue.init(); });
-// ]]>
-</script>