Changeset 002f2a in indico
- Timestamp:
- 04/12/10 17:27:19 (3 years ago)
- Branches:
- master, burotel, hello-world-walkthrough, ipv6, new-webex, v0.97-series, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, d9941f8582b36b24821a11ea5ba16fda6a457fb1
- Children:
- becf92
- Parents:
- 9e3b7ff
- git-author:
- David Martín Clavo <david.martin.clavo@…> (03/25/10 13:49:53)
- git-committer:
- Jose Benito <jose.benito.gonzalez@…> (04/12/10 17:27:19)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
indico/MaKaC/webinterface/tpls/AdminCollaboration.tpl
r65a5a26 r002f2a 15 15 <% additionalStyle = '' %> 16 16 <% end %> 17 17 18 18 <a id="index_<%=indexName%>" onclick="indexSelectedObs('<%=indexName%>', false)" class="CAIndexUnselected" <%=additionalStyle%> > 19 19 <%= indexName[0].upper() + indexName[1:] %> … … 47 47 </div> 48 48 </div> 49 49 50 50 <div id="dateFilter" style="padding-top: 10px"> 51 51 <div> … … 61 61 <%= _("Since")%> <input type="text" size="16" id="sinceDate" onkeypress="updateFilterButton()" value="<%= InitialSinceDate %>"/> 62 62 <%= _("to")%> <input type="text" size="16" id="toDate" onkeypress="updateFilterButton()" value="<%= InitialToDate %>"/> 63 <span class="CAMinMaxKeySuggestion"> Please input dates</span>63 <span class="CAMinMaxKeySuggestion"><%= _("Please input dates") %></span> 64 64 </div> 65 65 <div style="padding-top: 5px"> … … 68 68 <%= _("days ago to")%> <input type="text" size="3" id="toDays" onkeypress="updateFilterButton()" value="<%= InitialToDays %>"/> 69 69 <%= _("days in the future") %> 70 <span class="CAMinMaxKeySuggestion"> Please input integers</span>70 <span class="CAMinMaxKeySuggestion"><%= _("Please input integers") %></span> 71 71 </div> 72 72 </div> … … 75 75 <%= _("From")%> <input type="text" size="16" id="fromTitle" onkeypress="updateFilterButton()" value="<%= InitialFromTitle %>"/> 76 76 <%= _("to")%> <input type="text" size="16" id="toTitle" onkeypress="updateFilterButton()" value="<%= InitialToTitle %>"/> 77 <span class="CAMinMaxKeySuggestion"> Please input a conference title or the beginning of it</span>78 </div> 79 </div> 80 77 <span class="CAMinMaxKeySuggestion"><%= _("Please input a conference title or the beginning of it") %></span> 78 </div> 79 </div> 80 81 81 <div style="padding-top: 10px"> 82 82 <input type="button" id="filterButton" value="<%= _("Refresh")%>" onclick="refresh()"/> … … 88 88 <span class="CAViewBySpan"><%= _("Order:")%> </span> 89 89 <a class="CAViewByLink" id="ascendingViewBy" onclick="orderByObs('ascending')"><%= _("Ascending")%></a> 90 <a class="CAViewByLink" id="descendingViewBy" onclick="orderByObs('descending')" ><%= _("Descending")%></a> 90 <a class="CAViewByLink" id="descendingViewBy" onclick="orderByObs('descending')" ><%= _("Descending")%></a> 91 91 </div> 92 92 <div class="CAViewByDiv"> … … 98 98 <a class="CAViewByLink" id="startDateViewBy" onclick="viewByObs('startDate')"><%= _("Start Date")%></a> 99 99 </div> 100 100 101 101 <div class="CAInfoDiv"> 102 102 <div class="CATypesDiv"> 103 <%= _("This list can have bookings of the following type(s):")%> <span class="pluginNames" id="indexPluginTypes"></span> 104 </div> 105 103 <%= _("This list can have bookings of the following type(s):")%> <span class="pluginNames" id="indexPluginTypes"></span> 104 </div> 105 106 106 <div class="CAStaticURLDiv"> 107 107 <a class="CAStaticURLSwitch" onclick="staticURLSwitch()"><%= _("Static URL for this result")%></a> <%= _("(Use it for bookmarks)")%><br /> … … 117 117 <div id="resultsInfo" style="display:none;"> 118 118 <div class="CATotalInIndexDiv"> 119 <span id="totalInIndex"></span><span> bookings in this index.</span>119 <span id="totalInIndex"></span><span> <%= _("bookings in this index.") %></span> 120 120 </div> 121 121 <div class="CANResultsDiv"> 122 <span>Query returned </span><span id="nBookings"></span><span> bookings.</span>122 <span>Query returned </span><span id="nBookings"></span><span> <%= _("bookings.") %></span> 123 123 </div> 124 124 </div> … … 168 168 for (var i=0; i<indexNames.length; i++) { 169 169 $E('index_' + indexNames[i]).dom.onmouseover = function(event) { 170 IndicoUI.Widgets.Generic.tooltip(this, event, '<div style="padding:5px"> Plugins in this index:<br \/>' +170 IndicoUI.Widgets.Generic.tooltip(this, event, '<div style="padding:5px">' + $T("Plugins in this index:") + '<br \/>' + 171 171 indexInformation[this.id.substring(6)].plugins.join(", ") + 172 172 '<\/div>'); 173 173 } 174 } 174 } 175 175 } 176 176 177 177 var alertNoIndexSelected = function() { 178 var popup = new AlertPopup( "No index selected", Html.span('',"Please select an index name"), Html.br(),178 var popup = new AlertPopup($T("No index selected"), Html.span({},$T("Please select an index name")), Html.br(), 179 179 Html.span(indexNames.join(', '))); 180 180 popup.open(); … … 182 182 183 183 var indexSelectedObs = function(selectedIndexName, firstTime) { 184 184 185 185 for (var i=0; i<indexNames.length; i++) { 186 186 var name = indexNames[i]; … … 197 197 var hasViewByStartDate = indexInformation[selectedIndexName].hasViewByStartDate; 198 198 var hasShowOnlyPending = indexInformation[selectedIndexName].hasShowOnlyPending; 199 199 200 200 if (hasViewByStartDate) { 201 201 IndicoUI.Effect.appear($E('startDateViewBy')); … … 229 229 } 230 230 } 231 231 232 232 if ((endsWith(queryParams.viewBy, 'Date') || firstTime) && viewBySelected == 'conferenceTitle') { 233 233 if (!(firstTime && bookings)) { … … 250 250 orderByObs('descending', true); // we put true because we don't want to trigger another request 251 251 } 252 252 253 253 queryParams.viewBy = viewBySelected; 254 254 … … 291 291 292 292 var confIdObs = function() { 293 $E('categoryId').dom.disabled = ($E('conferenceId').get() != '') 293 $E('categoryId').dom.disabled = ($E('conferenceId').get() != '') 294 294 } 295 295 296 296 var updateFilterButton = function() { 297 $E('filterButton').dom.value = '<%= _("Apply Filter")%>';297 $E('filterButton').dom.value = $T("Apply Filter"); 298 298 } 299 299 … … 308 308 309 309 var applyFilter = function(){ 310 310 311 311 queryParams.showOnlyPending = $E('pendingCB').dom.checked; 312 312 queryParams.conferenceId = $E('conferenceId').get(); … … 336 336 queryParams.resultsPerPage = $E('resultsPerPage').get(); 337 337 queryParams.page = 1; 338 $E('filterButton').dom.value = '<%= _("Refresh")%>';339 338 $E('filterButton').dom.value = $T('Refresh'); 339 340 340 } 341 341 … … 349 349 } 350 350 351 var killProgress = IndicoUI.Dialogs.Util.progress( "<%= _("Retrieving the data...")%>");351 var killProgress = IndicoUI.Dialogs.Util.progress($T("Retrieving the data...")); 352 352 updateStaticURL(); 353 353 … … 384 384 } 385 385 ); 386 386 387 387 } 388 388 389 389 var updateStaticURL = function() { 390 var url = '<%= BaseURL %>' + 391 '?queryOnLoad=true' + 390 var url = '<%= BaseURL %>' + 391 '?queryOnLoad=true' + 392 392 '&page=' + queryParams.page + 393 393 '&resultsPerPage=' + queryParams.resultsPerPage + … … 428 428 429 429 var result = Html.tbody({}, 430 Html.tr({}, Html.td({className : 'ACBookingGroupTitle', colspan: 10, colSpan: 10}, 430 Html.tr({}, Html.td({className : 'ACBookingGroupTitle', colspan: 10, colSpan: 10}, 431 431 Html.a({className : 'ACConfLink', href : conference.videoServicesDisplayURL}, 432 432 Html.span('ACConfTitle', conference.title), … … 450 450 row.append(cell); 451 451 452 var cell = Html.td('ACBookingCellNoWrap', '<%= _("Last modification:")%> '+ formatDateTimeCS(booking.modificationDate) );452 var cell = Html.td('ACBookingCellNoWrap', $T("Last modification:") + formatDateTimeCS(booking.modificationDate) ); 453 453 row.append(cell); 454 454 … … 475 475 var time = booking[viewBy].time.substring(0,5) // we can do this because viewBy will be creationDate, etc. which are the same 476 476 // names of the fields of the booking 477 477 478 478 var cell = Html.td('ACBookingFirstCell ACBookingTime', time); 479 479 row.append(cell); 480 480 481 var cell = Html.td('ACBookingCellNoWrap', Html.span( '', booking.type));481 var cell = Html.td('ACBookingCellNoWrap', Html.span({}, booking.type)); 482 482 row.append(cell); 483 483 … … 485 485 row.append(cell); 486 486 487 var cell = Html.td('ACBookingCell', Html.span( '', '<%= _("In event:")%> '), Html.span('', booking.conference.title));487 var cell = Html.td('ACBookingCell', Html.span({}, $T("In event: ")), Html.span({}, booking.conference.title)); 488 488 row.append(cell); 489 489 … … 495 495 } 496 496 497 var cell = Html.td('ACBookingCellNoWrap', Html.a({href: booking.modificationURL}, 'Change'),497 var cell = Html.td('ACBookingCellNoWrap', Html.a({href: booking.modificationURL}, $T('Change')), 498 498 Html.span('horizontalSeparator', '|'), 499 Html.a({href: booking.conference.videoServicesDisplayURL}, 'Event Display'));499 Html.a({href: booking.conference.videoServicesDisplayURL}, $T('Event Display'))); 500 500 row.append(cell); 501 501 502 502 IndicoUI.Effect.mouseOver(row.dom); 503 503 504 504 return row; 505 505 } … … 510 510 511 511 var result = Html.tbody({}, 512 Html.tr({}, Html.td({className : 'ACBookingGroupTitle', colspan: 10, colSpan: 10}, 512 Html.tr({}, Html.td({className : 'ACBookingGroupTitle', colspan: 10, colSpan: 10}, 513 513 Html.span({}, date) 514 514 ))); … … 526 526 527 527 var updateResults = function() { 528 528 529 529 $E('results').clear(); 530 530 531 531 if (nBookings < 1) { 532 $E('resultsMessage').set( '<%= _("No results found")%>');532 $E('resultsMessage').set($T("No results found")); 533 533 IndicoUI.Effect.appear($E('resultsMessage')); 534 534 IndicoUI.Effect.disappear($E('resultsInfo')); … … 573 573 <% end %> 574 574 updateStaticURL(); 575 575 576 576 $E('pageNumberList').set(pf.draw()); 577 577 … … 583 583 resultsPerPageParameterManager.add($E('resultsPerPage'), 'int', false, function(value) { 584 584 if (value < 1) { 585 return "<%= _("Please input number higher than 0")%>";585 return $T("Please input number higher than 0"); 586 586 } 587 587 }) 588 588 589 589 if (bookings) { 590 590 updateResults();
Note: See TracChangeset
for help on using the changeset viewer.
