Changeset 7bd661 in indico


Ignore:
Timestamp:
04/12/10 15:54:11 (3 years ago)
Author:
Jose Benito <jose.benito.gonzalez@…>
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, 4c7d4152dff271ba5df5a8606605969cab454080
Children:
bebabe
Parents:
ccf519
git-author:
Jose Benito <jose.benito.gonzalez@…> (04/12/10 15:01:07)
git-committer:
Jose Benito <jose.benito.gonzalez@…> (04/12/10 15:54:11)
Message:

[IMP] Improving fix#237

  • layout/functionality improvements
  • fixing flat calendar library
Location:
indico
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/po/locale/fr_FR/LC_MESSAGES/messages.po

    r962f8e r7bd661  
    321321 
    322322#: /home/pferreir/indico/cds-indico/indico/MaKaC/webinterface/tpls/CategoryOverview.tpl:26 
    323 msgid "Details level" 
     323msgid "Detail level" 
    324324msgstr "Niveau de détails" 
    325325 
  • indico/MaKaC/webinterface/pages/category.py

    r2e1528 r7bd661  
    801801                categ=cm.getById(str(icon)) 
    802802                otherOW = self._ow.getOverviewOtherCateg(categ) 
    803                 a=(""" <a href="%s" style="font-size: 1.0em;"><img src="%s" width="16" height="16" border="0" alt="category">&nbsp;%s</a>  <BR>""" %(\ 
     803                a=(""" <a href="%s" style="font-size: 1.0em;"><img src="%s" width="16" height="16" border="0">&nbsp;%s</a>  <br/>""" %(\ 
    804804                                        vars["categOverviewURLGen"]( otherOW ),\ 
    805805                                        urlHandlers.UHCategoryIcon.getURL(categ),\ 
  • indico/MaKaC/webinterface/tpls/CategoryOverview.tpl

    rccf519 r7bd661  
    1 <div class="container"> 
     1<div class="container" style="overflow: visible; margin:15px;"> 
    22    <div class="categoryHeader"> 
    33        <ul> 
    44            <li><a href="<%= categDisplayURL %>"><%= _("Go back to category page") %></a></li> 
    55        </ul> 
    6         <h1 class="categoryTitle" style="margin-bottom: 0; border: none;"> 
     6        <h1 class="categoryTitle"> 
    77            <%= categoryTitle %>&nbsp; 
    88            <span style="font-style: italic; font-size: 0.8em;">(<%= _("events overview") %>)</span> 
    99        </h1> 
    1010    </div> 
    11  
    12 <!--  old version of an overeview with vertical options bar 
    13     <div class="topBar"> 
    14         <div class="content""> 
    15  
    16             <form action="%(postURL)s" id="optionsForm" method="GET"> 
    17             <h1 style="display: inline; padding-right: 50px;"><%= _("Display options") %></h1> 
    18  
    19             %(locator)s 
    20  
    21             <%= _("Period")%>:&nbsp; 
    22                         <select name="period" style="margin-right: 30px; font-size: 10pt; min-width: 70px;"> 
    23                             <option value="day" %(selDay)s> <%= _("day")%></option> 
    24                             <option value="week" %(selWeek)s> <%= _("week")%></option> 
    25                             <option value="month" %(selMonth)s> <%= _("month")%></option> 
    26                         </select> 
    27             <%= _("Details level")%>:&nbsp; <span><select name="detail" style="margin-right: 30px; font-size: 10pt;  min-width: 70px;"> 
    28                             %(detailLevelOpts)s 
    29                         </select></span> 
    30             <%= _("Date")%>:&nbsp; 
    31                         <span id="datePlace" style="margin-right: 30px; font-size: 10pt;"></span> 
    32                         <input type="hidden" id="day" name="day" value="<%= day %>" /> 
    33                         <input type="hidden" id="month" name="month" value="<%= month %>" /> 
    34                         <input type="hidden" id="year" name="year" value="<%= year %>" /> 
    35  
    36                 <input type="submit" class="btn" value="<%= _("apply")%>" > 
    37  
    38             </form> 
    39             <% if key: %> 
    40                 <div style="display: none;"> 
    41                 <h1><%= _("Legend") %></h1> 
    42                 <div style="margin: 10px 0 30px 10px;">%(key)s</div> 
    43                 </div> 
    44             <% end %> 
    45         </div> 
    46     </div> 
    47  
    48     <div> 
    49  
    50         <div class="categoryOverview"> 
    51             %(overview)s 
    52         </div> 
    53     </div> 
    54  
    55 </div> 
    56 --> 
    5711    <table width = "100%%" cellSpacing = 3 cellPadding = 2> 
    5812        <tbody> 
    5913            <tr> 
    6014                <td valign="top"> 
    61                     <table width = "100%%"> 
     15                    <table> 
    6216                        <tr><td height = 15></td></tr> 
    6317                        <tr><td width = "100%%" valign = "top"> 
    64                             <div style="margin-top: 30px; float: none; width: 100%%" class="sideBar clearfix"> 
     18                            <div style="margin-top: 10px; float: none; width: 100%%" class="sideBar clearfix"> 
    6519                                <div class="leftCorner"></div> 
    6620                                <div class="rightCorner"></div> 
    67                                 <div class="content""> 
     21                                <div class="content" style="padding-right:10px;padding-left:10px;"> 
    6822 
    6923                                    <form action="%(postURL)s" id="optionsForm" name="optionsForm" method="GET"> 
    70                                     <h1 style="display: inline; padding-right: 50px;"><%= _("Display options") %></h1><br> 
     24                                        %(locator)s 
    7125 
    72                                     %(locator)s<br> 
     26                                        <span id="calendar-container" style="width:0px"></span> 
     27                                        <input type="hidden" id="dateContainer" name="dateContainer" value="<%= "%s/%s/%s"%(day, month, year)%>"/> 
     28                                        <input type="hidden" id="day" name="day" value="<%= day %>" /> 
     29                                        <input type="hidden" id="month" name="month" value="<%= month %>" /> 
     30                                        <input type="hidden" id="year" name="year" value="<%= year %>" /><br /> 
    7331 
    74                                     <%= _("Period")%>:<br> 
    75                                                 <select name="period" onchange="javascript:submitForm()" style="margin-right: 30px; font-size: 10pt; min-width: 100%%; margin-bottom: 10px"> 
     32                                        <h1 style="padding-bottom:5px;"><%= _("Display options") %>:</h1> 
     33                                        <table cellpadding="0" cellspacing="0" style="width:100%%"> 
     34                                            <tr> 
     35                                                <td><%= _("Period")%>:</td> 
     36                                                <td><select name="period"> 
    7637                                                    <option value="day" %(selDay)s> <%= _("day")%></option> 
    7738                                                    <option value="week" %(selWeek)s> <%= _("week")%></option> 
    7839                                                    <option value="month" %(selMonth)s> <%= _("month")%></option> 
    79                                                 </select><br> 
    80                                     <%= _("Details level")%>:<br> <span><select name="detail" onchange="javascript:submitForm()" style="margin-right: 30px; font-size: 10pt;  min-width: 100%%; margin-bottom: 10px"> 
    81                                                     %(detailLevelOpts)s 
    82                                                 </select></span><br> 
    83                                     <%= _("Date")%>:<br> 
    84                                                 <span id="calendar-container"></span> 
    85                                                 <input type="hidden" id="dateContainer" name="dateContainer" /> 
    86                                                 <input type="hidden" id="day" name="day" value="<%= day %>" /> 
    87                                                 <input type="hidden" id="month" name="month" value="<%= month %>" /> 
    88                                                 <input type="hidden" id="year" name="year" value="<%= year %>" /> 
     40                                                </select></td> 
     41                                            </tr> 
     42                                            <tr> 
     43                                                <td><%= _("Detail level")%>:</td> 
     44                                                <td><select name="detail"> 
     45                                                    <%= detailLevelOpts %> 
     46                                                </select></td> 
     47                                           </tr> 
     48                                        </table> 
     49                                    <span id="applyButtonWrapper"><input type="button" value="<%= _("Apply") %>" onclick="javascript:buttonSubmitForm();" /></span> 
    8950 
    9051                                    </form> 
    9152                                    <% if key: %> 
    9253                                        <br><h1><%= _("Legend") %>:</h1> 
    93                                         <div style="margin: 10px 0 30px 10px;">%(key)s</div> 
     54                                        <div style="margin: 10px 0 30px 10px;width:180px;">%(key)s</div> 
    9455                                    <% end %> 
    9556                                </div> 
     
    9960                </td> 
    10061                <td valign = "top"> 
    101                     <div> 
    102  
    103                         <div class="categoryOverview"> 
    104                             %(overview)s 
    105                         </div> 
     62                    <div class="categoryOverview"> 
     63                        %(overview)s 
    10664                    </div> 
    10765                </td> 
     
    11270 
    11371<script type="text/javascript"> 
     72 
     73    function buttonSubmitForm() { 
     74        var applyButtonWrapper = $E("applyButtonWrapper"); 
     75        applyButtonWrapper.set(progressIndicator(true, false)); 
     76        setTimeout(function(){ 
     77            submitForm(); 
     78        }, 30); 
     79 
     80    } 
    11481 
    11582    function submitForm() 
     
    12996 
    13097    Calendar.setup({ 
     98        inputField: $E("dateContainer").dom, 
     99        ifFormat: IndicoDateTimeFormats.DefaultHourless, 
    131100        flat : "calendar-container", 
    132101        flatCallback :  dateChanged 
  • indico/htdocs/css/Default.css

    r5997aa r7bd661  
    281281 
    282282.categoryOverview { 
    283     margin-top: 20px; 
     283    margin-top: 0px; 
    284284} 
    285285 
  • indico/htdocs/css/calendar-blue.css

    rccf519 r7bd661  
    3535    border: 1px solid #888888; 
    3636    padding: 1px; 
     37    width: 183px; 
    3738} 
    3839 
     
    8384.calendar thead .name { /* Cells <TD> containing the day names */ 
    8485  border-bottom: 1px solid #AAA; 
    85   padding: 4px; 
     86  padding: 4px 2px; 
    8687  text-align: center; 
    8788  color: #000; 
     
    9798  border: 1px solid #AAA; 
    9899  border-top: none; 
    99   padding: 3px; 
     100  padding: 1px; 
    100101} 
    101102 
     
    111112  color: black; 
    112113  text-align: right; 
    113   padding: 3px 4px; 
     114  padding: 3px 2px; 
    114115} 
    115116.calendar tbody .day.othermonth { 
     
    138139.calendar tbody td.hilite { /* Hovered cells <TD> */ 
    139140  background: #EED79A; 
    140   padding: 1px 3px 1px 1px; 
     141  padding: 1px 1px 1px 1px; 
    141142  border: 1px solid #AAA; 
    142143} 
     
    149150.calendar tbody td.selected { /* Cell showing today date */ 
    150151  font-weight: bold; 
    151   padding: 1px 3px 1px 1px; 
     152  padding: 1px 1px 1px 1px; 
    152153  background: #fff; 
    153154  color: #000; 
     
    262263  padding: 0px 2px 0px 3px; 
    263264  font-weight: bold; 
     265  display: None; 
    264266} 
    265267 
  • indico/htdocs/js/calendar/calendar-setup.js

    r9033fd r7bd661  
    6060 *  saying "nothing to setup". 
    6161 */ 
    62   
     62 
    6363// ** I18N 
    6464 
     
    188188Calendar._TT["WK"] = $T("wk"); 
    189189Calendar._TT["TIME"] = $T("Time:"); 
    190   
     190 
    191191Calendar.setup = function (params) { 
    192192        function param_default(pname, def) { if (typeof params[pname] == "undefined") { params[pname] = def; } }; 
     
    275275                        cal.setDateFormat(params.ifFormat); 
    276276                } 
     277                cal.create(params.flat); 
    277278                if (params.inputField && typeof params.inputField.value == "string") { 
    278279                        cal.parseDate(params.inputField.value); 
    279280                } 
    280                 cal.create(params.flat); 
    281281                cal.show(); 
    282282                return false; 
Note: See TracChangeset for help on using the changeset viewer.