Changeset bda086 in indico


Ignore:
Timestamp:
06/17/10 17:32:31 (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, b8c30da8ebdbdcbd675a873997cc3e95f567de49, 4287315ec967a3da168d83963c14001db8487d53
Children:
8df9bb
Parents:
18ea58
git-author:
Leszek Syroka <leszek.marek.syroka@…> (05/28/10 14:53:15)
git-committer:
Jose Benito <jose.benito.gonzalez@…> (06/17/10 17:32:31)
Message:

[FIX] Remove chairperson text modification

  • if chairperson text is empty it's not displayed in event modification page
  • if chairperson text is not empty input field, containing it, is disabled and text can be removed by clicking at the red cross next to it
  • tooltip added
  • fix#408
Location:
indico/MaKaC
Files:
2 edited

Legend:

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

    r7a1c52 rbda086  
    1647516475msgstr "Texte du responsable" 
    1647616476 
     16477#: /home/pferreir/indico/cds-indico/indico/MaKaC/webinterface/tpls/ConferenceDataModification.tpl 
     16478msgid "Chairperson text is deprecated, use chairpersons list instead.<br>Click on the red cross to remove the text." 
     16479msgstr "Le texte du responsable est obsolÚte, veuillez utiliser la liste des responsables à la place.<br>Cliquez sur la croix rouge pour supprimer le texte." 
     16480 
    1647716481#: /home/pferreir/indico/cds-indico/indico/MaKaC/webinterface/tpls/RoomBookingManyRoomsCalendar.tpl:15 
    1647816482#: /home/pferreir/indico/cds-indico/indico/MaKaC/webinterface/tpls/RoomBookingRoomCalendar.tpl:41 
  • indico/MaKaC/webinterface/tpls/ConferenceDataModification.tpl

    r62a512 rbda086  
    7070        </tr> 
    7171        <!-- TO REMOVE CHAIRPERSON TEXT --> 
    72         <% if conference.getType() != "simple_event": %> 
     72        <% if conference.getType() != "simple_event" and chairText != '""': %> 
    7373        <tr> 
    7474            <td nowrap class="titleCellTD"><span class="titleCellFormat"> <%= _("Chairperson text")%></span></td> 
    7575            <td bgcolor="white" width="100%%"> 
    76                 <input type="text" name="chairText" value=%(chairText)s size="50"> 
     76                <input type="text" name="chairText" id="chairText" value=%(chairText)s size="50" disabled="disabled"> 
     77                <span id="removeChairpersonText"></span> 
     78                <% inlineContextHelp( _("Chairperson text is deprecated, use chairpersons list instead.<br>Click on the red cross to remove the text.") ) %> 
    7779            </td> 
    7880        </tr> 
     
    133135        IndicoUI.executeOnLoad(function() 
    134136        { 
    135  
    136137        var startDate = IndicoUI.Widgets.Generic.dateField(true,null,['sDay', 'sMonth', 'sYear','sHour', 'sMinute']); 
    137138        $E('sDatePlace').set(startDate); 
     
    139140        var endDate = IndicoUI.Widgets.Generic.dateField(true,null,['eDay', 'eMonth', 'eYear', 'eHour', 'eMinute']); 
    140141        $E('eDatePlace').set(endDate); 
     142 
     143        <% if conference.getType() != "simple_event" and chairText != '""': %> 
     144            var removeChairpersonTextButton = Html.img({src: imageSrc("remove.png")}); 
     145            removeChairpersonTextButton.observeClick( function(){ 
     146                $E('chairText').dom.value = ""; 
     147            }); 
     148 
     149            $E('removeChairpersonText').set(removeChairpersonTextButton); 
     150        <% end %> 
    141151 
    142152        <% if sDay != '': %> 
Note: See TracChangeset for help on using the changeset viewer.