Skip to content

Commit

Permalink
Separated the //label// text and //hint// text, as //I think// this w…
Browse files Browse the repository at this point in the history
…ill allow theme authors to locate the //hint// independent from the placement of the //label//, without breaking translations.
  • Loading branch information
rjollos committed Mar 14, 2013
1 parent bef1f02 commit 7b72499
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions trac/ticket/templates/report_edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ <h1>${_('New Report') if action == 'new' else report.title}</h1>
<input type="text" id="title" name="title" value="$report.title" size="50"/><br />
</div>
<div class="field">
<label for="description" i18n:msg="">
Description: <span class="hint">(you may use <a tabindex="42" href="${href.wiki('WikiFormatting')}">WikiFormatting</a> here)</span>
</label>
<label for="description" i18n:msg="">Description:</label>
<span class="hint" i18n:msg="">(you may use <a tabindex="42" href="${href.wiki('WikiFormatting')}">
WikiFormatting</a> here)</span>
<br />
<textarea id="description" name="description" class="wikitext trac-resizable" rows="10" cols="78">
$report.description</textarea>
Expand All @@ -33,9 +33,10 @@ <h1>${_('New Report') if action == 'new' else report.title}</h1>
<div class="system-message" py:if="error">
<strong>Error:</strong> $error
</div>
<label for="query" i18n:msg="">Query for Report: <span class="hint">(can be either SQL or, if starting with <tt>query:</tt>,
<label for="query" i18n:msg="">Query for Report:</label>
<span class="hint" i18n:msg="">(can be either SQL or, if starting with <tt>query:</tt>,
a <a tabindex="42" href="${href.wiki('TracQuery') + '#QueryLanguage'}">TracQuery</a> expression)</span>
</label><br />
<br />
<textarea id="query" name="query" class="trac-resizable" cols="85" rows="20">
$report.sql</textarea>
</div>
Expand Down

0 comments on commit 7b72499

Please sign in to comment.