Permalink
Browse files

cosmetic

  • Loading branch information...
1 parent 24989c7 commit 7d60bf3f44077e5f76edcb38344af7cf96500ee4 @lbayle lbayle committed Apr 9, 2012
Showing with 45 additions and 39 deletions.
  1. +1 −0 tools/check.php
  2. +44 −39 tpl/check.html
View
@@ -123,6 +123,7 @@ function getTeamConsistencyErrors($teamid) {
$consistencyErrors = getTeamConsistencyErrors($teamid);
+ $smartyHelper->assign('teamid', $teamid);
$smartyHelper->assign('count', count($consistencyErrors));
if(isset($consistencyErrors)) {
$smartyHelper->assign('consistencyErrors', $consistencyErrors);
View
@@ -17,45 +17,50 @@
<div id="content">
{if $teams}
- <div align="center">
- <!-- create form -->
- <form id='teamSelectForm' name='teamSelectForm' method='post' action='{$page}'>
- <fieldset>
- <label>{t}Team{/t}: </label>
- <select name='teamid'>
- <option value='0'></option>
- {foreach from=$teams key=id item=i}
- <option {if $i.selected}selected="selected"{/if} value="{$i.id}">{$i.name}</option>
- {/foreach}
- </select>
- <input type="button" value='{t}Update{/t}' onclick='javascript: submitTeam()' />
- <input type="hidden" name="action" value="displayPage" />
- </fieldset>
- </form>
- </div>
+ <div align="center">
+ <!-- create form -->
+ <form id='teamSelectForm' name='teamSelectForm' method='post' action='{$page}'>
+ <fieldset>
+ <label>{t}Team{/t}: </label>
+ <select name='teamid'>
+ <option value='0'></option>
+ {foreach from=$teams key=id item=i}
+ <option {if $i.selected}selected="selected"{/if} value="{$i.id}">{$i.name}</option>
+ {/foreach}
+ </select>
+ <input type="button" value='{t}Update{/t}' onclick='javascript: submitTeam()' />
+ <input type="hidden" name="action" value="displayPage" />
+ </fieldset>
+ </form>
+ </div>
- <table>
- <caption>{$count}{t} Error(s) in Mantis Tasks{/t}</caption>
- <tr>
- <th>{t}User{/t}</th>
- <th>{t}Task{/t}</th>
- <th title="{t}last modification date{/t}">Date</th>
- <th>{t}Level{/t}</th>
- <th>{t}Status{/t}</th>
- <th>{t}Project{/t}</th>
- <th>{t}Error Description{/t}</th>
- </tr>
- {foreach from=$consistencyErrors key=id item=i}
- <tr>
- <td>{$i.userName}</td>
- <td>{$i.mantisIssueURL}</td>
- <td>{$i.date}</td>
- <td>{$i.severity}</td>
- <td>{$i.status}</td>
- <td>{$i.project}</td>
- <td>{$i.desc}</td>
- </tr>
- {/foreach}
- </table>
+ {if $teamid}
+ <h2>{$count}{t} Error(s) in Mantis Tasks{/t}</h2>
+
+ {if $consistencyErrors}
+ <table>
+ <tr>
+ <th>{t}User{/t}</th>
+ <th>{t}Task{/t}</th>
+ <th title="{t}last modification date{/t}">Date</th>
+ <th>{t}Level{/t}</th>
+ <th>{t}Status{/t}</th>
+ <th>{t}Project{/t}</th>
+ <th>{t}Error Description{/t}</th>
+ </tr>
+ {foreach from=$consistencyErrors key=id item=i}
+ <tr>
+ <td>{$i.userName}</td>
+ <td>{$i.mantisIssueURL}</td>
+ <td>{$i.date}</td>
+ <td>{$i.severity}</td>
+ <td>{$i.status}</td>
+ <td>{$i.project}</td>
+ <td>{$i.desc}</td>
+ </tr>
+ {/foreach}
+ </table>
+ {/if}
+ {/if}
{/if}
</div>

0 comments on commit 7d60bf3

Please sign in to comment.