Changeset c60e4da in indico
- Timestamp:
- 04/23/12 14:39:56 (13 months ago)
- Branches:
- master, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, d9941f8582b36b24821a11ea5ba16fda6a457fb1
- Children:
- 61ed1b
- Parents:
- 9ca792
- git-author:
- Claude Bossy <claude.bossy@…> (02/21/12 17:04:08)
- git-committer:
- Pedro Ferreira <jose.pedro.ferreira@…> (04/23/12 14:39:56)
- Location:
- indico
- Files:
-
- 5 edited
-
MaKaC/webinterface/pages/search.py (modified) (1 diff)
-
MaKaC/webinterface/tpls/Search.tpl (modified) (4 diffs)
-
MaKaC/webinterface/tpls/SearchBox.tpl (modified) (3 diffs)
-
MaKaC/webinterface/wcomponents.py (modified) (3 diffs)
-
htdocs/css/Default.css (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
indico/MaKaC/webinterface/pages/search.py
r2e1528 rc60e4da 27 27 params['confId'] = None 28 28 params['categId'] = self._target.getId() 29 params['categName'] = self._target.getTitle() 29 30 30 31 def _getNavigationDrawer(self): -
indico/MaKaC/webinterface/tpls/Search.tpl
r8d9874d rc60e4da 33 33 34 34 % if categId: 35 <input type="hidden" name="categId" value="${ categId }"/>35 <input type="hidden" id="categId" name="categId" value="${ categId }"/> 36 36 % endif 37 37 % if confId: … … 40 40 41 41 42 43 <div> 44 <input style="width: 300px; height:20px; font-size:17px; vertical-align: middle;" type="text" name="p" value="${ p }" /> 45 <input type="submit" value="${ _('Search')}" style="vertical-align: middle;"/> 46 </div> 42 <div id="UISearch"> 43 <div id="searchControls"> 44 <div class="yellowButton searchButton" id="searchButton2"> 45 <input style="background-color: transparent;" class="button" type="submit" value="${ _('Search')}" onclick="javascript: return verifyForm();" id="searchSubmit"/> 46 </div> 47 <div style="background: white; padding: 2px;"> 48 <input style="background-color: transparent; margin-top: -1px;" type="text" id="searchText2" name="p" value="${ p }"/> 49 </div> 50 </div> 51 </div> 52 47 53 <div style="padding-top: 4px;"><span id="advancedOptionsText"><span class='fakeLink' onclick='toogleAdvancedOptions()'>${_("Show advanced options") }</span></span></div> 48 54 <div id="advancedOptions" style="overflow: hidden; visibility: hidden;"> … … 175 181 } 176 182 183 function hideCategory2() 184 { 185 $('#categId').attr('value', 0); 186 $('#cross2').fadeOut(); 187 $('#inCategory2').fadeOut(); 188 } 189 177 190 IndicoUI.executeOnLoad(function(){ 178 191 … … 200 213 startDate.set('${ startDate }'); 201 214 endDate.set('${ endDate }'); 215 216 var box = $('<div id="cross2" class="searchCategoryCross" onclick="hideCategory2()">x</div>'+ 217 '<div id="inCategory2" class="searchCategory">in ${categName}</div>'); 218 if ($('#categId').attr('value')!=0){ 219 $('#searchText2').before(box); 220 } 221 202 222 }); 203 223 -
indico/MaKaC/webinterface/tpls/SearchBox.tpl
rc0de5a rc60e4da 6 6 <input style="background-color: transparent;" class="button" type="submit" value="${ _('Search')}" onclick="javascript: return verifyForm();" id="searchSubmit"/> 7 7 </div> 8 <div style="background: white; padding: 2px;"> 9 <div id="yoo" class="${ moreOptionsClass }" onclick="javascript:return expandMenu(this);"></div> 10 <input style="background-color: transparent; margin-top: -1px;" type="text" id="searchText" name="p" /> 11 </div> 8 <div style="background: white; padding: 2px;"> 9 <div id="yoo" class="${ moreOptionsClass }" onclick="javascript:return expandMenu(this);"></div> 10 <input style="background-color: transparent; margin-top: -1px;" type="text" id="searchText" name="p" /> 12 11 </div> 12 </div> 13 13 14 14 <div id="extraOptions"> … … 82 82 } 83 83 84 function hideCategory() 85 { 86 $('#searchCategId').attr('value', 0); 87 $('#cross1').fadeOut(); 88 $("#inCategory1").fadeOut(); 89 } 90 84 91 function resetForm() 85 92 { … … 118 125 intelligentSearchBox.draw() 119 126 ); 127 128 var box = $('<div id="cross1" class="searchCategoryCross" onclick="hideCategory()">x</div>'+ 129 '<div id="inCategory1" class="searchCategory">in ${categName}</div>'); 130 if ($('#searchCategId').attr('value')!=0){ 131 $('#yoo').after(box); 132 } 133 120 134 }); 135 121 136 </script> -
indico/MaKaC/webinterface/wcomponents.py
r1d80ec rc60e4da 32 32 from MaKaC.common.db import DBMgr 33 33 import MaKaC.conference as conference 34 from MaKaC.conference import CategoryManager 34 35 import MaKaC.user as user 35 36 import MaKaC.schedule as schedule … … 6588 6589 return vars 6589 6590 6590 def getHTML(self, params=None):6591 minfo = info.HelperMaKaCInfo.getMaKaCInfoInstance()6592 if minfo.getRoomBookingModuleActive():6593 return WTemplated.getHTML(self, params)6594 else:6595 return _("The Room Booking module is disabled")6596 6597 6598 6591 6599 6592 class WRoomBookingAdminLocation( WTemplated ): … … 6716 6709 vars = WBaseSearchBox.getVars( self ) 6717 6710 vars["categId"] = self._categId 6711 vars["categName"] = CategoryManager().getById(self._categId).getTitle() 6718 6712 vars['moreOptionsClass'] = self._moreOptionsClass 6719 6713 return vars -
indico/htdocs/css/Default.css
rbd98e1 rc60e4da 2247 2247 div#UISearchBox #searchControls 2248 2248 { 2249 width: 250px;2249 width: 350px; 2250 2250 border: 1px solid #888; 2251 2251 height: 21px; … … 2263 2263 div#UISearchBox #searchText 2264 2264 { 2265 width: 1 30px;2265 width: 160px; 2266 2266 } 2267 2267 … … 2308 2308 } 2309 2309 2310 div#UISearch 2311 { 2312 position:relative; 2313 border: none; 2314 font-size: 13px; 2315 z-index: 1; 2316 } 2317 2318 div#UISearch .searchButton 2319 { 2320 float:right; 2321 border-left: 1px solid #888; 2322 width: auto; 2323 } 2324 2325 div#UISearch #searchText 2326 { 2327 width: 130px; 2328 } 2329 2330 div#UISearch #searchControls 2331 { 2332 width: 350px; 2333 border: 1px solid #888; 2334 height: 21px; 2335 overflow: hidden; 2336 background-color: white; 2337 } 2338 2339 div#UISearch #searchControls input 2340 { 2341 border: 0; 2342 color: black; 2343 font-weight: normal; 2344 } 2345 2346 .searchCategory 2347 { 2348 background-color: #9AA0FE; 2349 border-radius: 2px; 2350 font-weight:normal; 2351 color: #FFFFFF; 2352 vertical-align: middle; 2353 margin-right: -2px; 2354 padding-right: 5px; 2355 padding-left:5px; 2356 height: 17px; 2357 float: right; 2358 cursor: pointer; 2359 max-width: 75px; 2360 overflow: hidden; 2361 white-space: nowrap; 2362 text-overflow: ellipsis; 2363 } 2364 2365 .searchCategoryCross 2366 { 2367 background-color: #9AA0FE; 2368 font-weight: bold; 2369 border-radius: 2px; 2370 color: #FFFFFF; 2371 vertical-align: middle; 2372 margin-right: 2px; 2373 padding-left: 5px; 2374 padding-right: 5px; 2375 height: 17px; 2376 float: right; 2377 cursor: pointer; 2378 } 2310 2379 2311 2380 .arrowExpandIcon
Note: See TracChangeset
for help on using the changeset viewer.
