Changeset 25f3ad in indico


Ignore:
Timestamp:
05/10/11 15:54:28 (2 years ago)
Author:
Jose Benito <jose.benito.gonzalez@…>
Branches:
master, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, 0da0c1403bae8e51d8229f460181c71b9e6dda72
Children:
65a469
Parents:
5cf491
git-author:
Alexis Castilla Hernandez <alexis.castilla.hernandez@…> (03/25/11 17:03:59)
git-committer:
Jose Benito <jose.benito.gonzalez@…> (05/10/11 15:54:28)
Message:

[IMP] Styles in upload template table

  • Added "Actions" header in some tables in my conference part and in reviewing part
  • Changed the styles in upload templates table. Done like the others tables in the reviewing part
  • Ticket #572
Location:
indico
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/webinterface/tpls/ConfModificationReviewingSettings.tpl

    rc0de5a r25f3ad  
    173173 
    174174<table id="automaticNotification" style="padding-left: 20px; padding-bottom: 20px;"> 
    175     % if ConfReview.hasReviewing(): 
     175        % if ConfReview.hasReviewing(): 
    176176            <% display = 'table' %> 
    177177        % else: 
     
    349349        <td id="uploadTemplateHelp" class="subGroupTitle" style="width:500px;">${ _("Upload a template")}</td> 
    350350    </tr> 
    351     <tr><td> 
     351    <tr><td style="padding-top: 10px;"> 
    352352        % if ConfReview.hasTemplates(): 
    353353         <% display = 'table' %> 
     
    355355         <% display = 'none' %> 
    356356       % endif 
    357     <table id="templateListTableAll" width="90%" align="left" border="0" style="padding-left:3px; display:${display}"> 
     357    <table id="templateListTableAll" class="infoTable" cellspacing="0" width="100%" style="display:${display}"> 
    358358    <!-- here to put table for the uploaded templates info :) --> 
    359359     <thead> 
    360360        <tr> 
    361             <td nowrap width="50%" class="titleCellFormat" style="border-right:5px solid #FFFFFF;border-left:5px solid #FFFFFF;border-bottom: 1px solid #DDDDDD;"> 
    362                 ${ _("Name")} 
     361            <td nowrap width="20%" class="data"> 
     362                <span style="font-weight:bold;">${ _("Name")}</span> 
    363363            </td> 
    364             <td nowrap class="titleCellFormat" style="border-right:5px solid #FFFFFF;border-left:5px solid #FFFFFF;border-bottom: 1px solid #DDDDDD;"> 
    365                 ${ _("Format")} 
     364            <td nowrap class="data"> 
     365                <span style="font-weight:bold;">${ _("Format")}</span> 
    366366            </td> 
    367             <td nowrap class="titleCellFormat" style="border-right:5px solid #FFFFFF;border-left:5px solid #FFFFFF;border-bottom: 1px solid #DDDDDD;"> 
    368                 ${ _("Description")} 
     367            <td nowrap class="data"> 
     368                <span style="font-weight:bold;">${ _("Description")}</span> 
     369            </td> 
     370            <td nowrap width="27%" class="data" style="text-align:center;"> 
     371                <span style="font-weight:bold;">${ _("Actions")}</span> 
    369372            </td> 
    370373        </tr> 
     
    385388    </tr></td> 
    386389    <tr><a name="UploadTemplate" /> 
    387         <td style="padding-left: 7px;" ><input id='uploadTpl' type="button" value="${ _('Upload Template')}"></a> 
     390        <td style="padding-top: 5px;" ><input id='uploadTpl' type="button" value="${ _('Upload Template')}"></a> 
    388391        </td> 
    389392    </tr> 
     
    602605            % for k in keys: 
    603606                <% t = ConfReview.getTemplates()[k] %> 
    604                     var row = Html.tr({id:'TemplateRow_'+'${t.getId()}'}); 
    605                 var menu; 
    606                     menu = Html.span( 
    607                         {}, 
    608                         Widget.link(command( function(){ 
    609                             var params = {conference: ${ ConfReview.getConference().getId() },templateId: '${t.getId()}'} 
    610                             if (confirm("Are you sure you want to delete '"+ '${t.getName()}'+"'?")) { 
    611                                 var killProgress = IndicoUI.Dialogs.Util.progress($T('Removing...')); 
    612                                 jsonRpc(Indico.Urls.JsonRpcService, 
    613                                     'reviewing.conference.deleteTemplate', 
    614                                     params, 
    615                                     function(response,error) { 
    616                                             if (exists(error)) { 
    617                                                 killProgress(); 
    618                                                 IndicoUtil.errorReport(error); 
    619                                             } else { 
    620                                                 killProgress(); 
    621                                                 $E('templateListTable').remove($E('TemplateRow_'+'${t.getId()}')); 
    622                                                 tablerows = document.getElementById('templateListTableAll').rows.length; 
    623                                                 if(tablerows == '1'){ 
    624                                                     $E('NoTemplateTable').dom.style.display = ''; 
    625                                                     $E('templateListTableAll').dom.style.display = 'none';} 
    626                                             } 
     607                    var row = Html.tr({id:'TemplateRow_'+'${t.getId()}', className:'infoTR'}); 
     608 
     609                    var deleteTpl = function(selectedRow) { 
     610                        var params = {conference: ${ ConfReview.getConference().getId() }, 
     611                                      templateId: selectedRow.dom.id.split("TemplateRow_")[1]}; 
     612                        var name = $E('TemplateSpanName_' + selectedRow.dom.id.split("TemplateRow_")[1]).dom.innerHTML; 
     613                        if (confirm("Are you sure you want to delete '"+ name +"'?")) { 
     614                            var killProgress = IndicoUI.Dialogs.Util.progress($T('Removing...')); 
     615                            jsonRpc(Indico.Urls.JsonRpcService, 
     616                                'reviewing.conference.deleteTemplate', 
     617                                params, 
     618                                function(response,error) { 
     619                                        if (exists(error)) { 
     620                                            killProgress(); 
     621                                            IndicoUtil.errorReport(error); 
     622                                        } else { 
     623                                            killProgress(); 
     624                                            $E('templateListTable').remove(selectedRow); 
     625                                            tablerows = document.getElementById('templateListTableAll').rows.length; 
     626                                            if(tablerows == '1'){ 
     627                                                $E('NoTemplateTable').dom.style.display = ''; 
     628                                                $E('templateListTableAll').dom.style.display = 'none';} 
    627629                                        } 
    628                             );} 
    629                            }, 
    630                             IndicoUI.Buttons.removeButton() 
    631                         ))); 
    632                     var linkName = Html.a({href: "${ urlHandlers.UHDownloadContributionTemplate.getURL() }" + "?reviewingTemplateId=" + '${ t.getId()}' + "&confId=${ ConfReview.getConference().getId()}", style:{color:'#5FA5D4'}}, '${ t.getName()}'); 
    633                     var cellName = Html.td({id:'TemplateName_'+'${ t.getId()}', style:{borderRight: '5px solid #FFFFFF', borderLeft:'5px solid #FFFFFF'}}, linkName); 
    634                     cellName.append(linkName); 
    635                     % if CanDelete: 
    636                         cellName.append(menu); 
    637                     % endif 
    638                     var cellFormat = Html.td({id:'TemplateName_'+'${ t.getId()}', style:{borderRight: '5px solid #FFFFFF', borderLeft:'5px solid #FFFFFF'}}, '${ t.getFormat()}'); 
    639                     var cellDescription = Html.td({id:'TemplateName_'+'${ t.getId()}', style:{borderRight: '5px solid #FFFFFF', borderLeft:'5px solid #FFFFFF'}}, '${ t.getDescription()}'); 
     630                                    }); 
     631                        } 
     632                    }; 
     633 
     634                    var nameSpan = Html.span({id:'TemplateSpanName_'+'${ t.getId()}'}, '${ t.getName()}'); 
     635                    var cellName = Html.td({id:'TemplateName_'+'${ t.getId()}', className:'content'}, nameSpan); 
     636 
     637                    var cellFormat = Html.td({id:'TemplateName_'+'${ t.getId()}', className:'content'}, '${ t.getFormat()}'); 
     638                    var cellDescription = Html.td({id:'TemplateName_'+'${ t.getId()}', className:'content'}, '${ t.getDescription()}'); 
     639                    var downloadSpan = Html.span({className:'link'}, "Download"); 
     640                    var barSpan = Html.span({className:'horizontalSeparator'}, "|"); 
     641                    var removeSpan = Html.span({className:'link'}, "Remove"); 
     642                    var cellActions = Html.td({className:'content', style:{textAlign: 'right'}}); 
     643                    cellActions.append(downloadSpan); 
     644                    cellActions.append(barSpan); 
     645                    cellActions.append(removeSpan); 
    640646                    row.append(cellName); 
    641647                    row.append(cellFormat); 
    642648                    row.append(cellDescription); 
     649                    row.append(cellActions); 
     650 
     651                    downloadSpan.observeClick(function() { 
     652                        window.location = "${ urlHandlers.UHDownloadContributionTemplate.getURL() }" + "?reviewingTemplateId=" + '${ t.getId()}' + "&confId=${ ConfReview.getConference().getId()}"; 
     653                    }); 
     654                    removeSpan.observeClick(function(event){ 
     655                        var selectedRow = $E('TemplateRow_'+'${t.getId()}'); 
     656                        deleteTpl(selectedRow); 
     657                    }); 
     658 
     659 
    643660                    $E('templateListTable').append(row); 
    644661             % endfor 
     
    743760            //var deleteLink = Html.a({href: linkDelete},deleteIcon); 
    744761 
    745             var row = Html.tr(); 
     762            var row = Html.tr({id:'TemplateRow_' + value.id, className:'infoTR'}); 
    746763            var params = {conference: '${ ConfReview.getConference().getId() }',templateId: value.id} 
    747764            var deleteTemplate = function() { 
    748             if (confirm("Are you sure you want to delete '"+ value.name+"'?")) { 
    749                 var killProgress = IndicoUI.Dialogs.Util.progress($T('Removing...')); 
    750                 jsonRpc(Indico.Urls.JsonRpcService, 
    751                     'reviewing.conference.deleteTemplate', 
    752                     params, 
    753                     function(response,error) { 
    754                             if (exists(error)) { 
    755                                 killProgress(); 
    756                                 IndicoUtil.errorReport(error); 
    757                             } else { 
    758                                 killProgress(); 
    759                                 $E('templateListTable').remove(row); 
    760                                 tablerows = document.getElementById('templateListTableAll').rows.length; 
    761                                 if(tablerows == '1'){ 
    762                                     $E('NoTemplateTable').dom.style.display = ''; 
    763                                     $E('templateListTableAll').dom.style.display = 'none';} 
    764                             } 
    765                         });}}; 
    766         var menu; 
    767             menu = Html.span( 
    768                 {}, 
    769                 Widget.link(command( 
    770                     deleteTemplate, 
    771                     IndicoUI.Buttons.removeButton() 
    772                 ))); 
    773             var linkName = Html.a({href: "${ urlHandlers.UHDownloadContributionTemplate.getURL() }" + "?reviewingTemplateId=" + value.id + "&confId=${ ConfReview.getConference().getId()}", style:{color:'#5FA5D4'}}, value.name); 
    774             var cellName = Html.td({id:'TemplateName_'+value.id, style:{borderRight: '5px solid #FFFFFF', borderLeft:'5px solid #FFFFFF'}}, linkName); 
    775             cellName.append(linkName); 
    776             % if CanDelete: 
    777                 cellName.append(menu); 
    778             % endif 
    779             var cellFormat = Html.td({id:'TemplateName_'+value.id, style:{borderRight: '5px solid #FFFFFF', borderLeft:'5px solid #FFFFFF'}}, value.format); 
    780             var cellDescription = Html.td({id:'TemplateName_'+value.id, style:{borderRight: '5px solid #FFFFFF', borderLeft:'5px solid #FFFFFF'}}, value.description); 
     765                if (confirm("Are you sure you want to delete '"+ value.name+"'?")) { 
     766                    var killProgress = IndicoUI.Dialogs.Util.progress($T('Removing...')); 
     767                        jsonRpc(Indico.Urls.JsonRpcService, 
     768                        'reviewing.conference.deleteTemplate', 
     769                        params, 
     770                            function(response,error) { 
     771                                if (exists(error)) { 
     772                                    killProgress(); 
     773                                    IndicoUtil.errorReport(error); 
     774                                } else { 
     775                                    killProgress(); 
     776                                    $E('templateListTable').remove(row); 
     777                                    tablerows = document.getElementById('templateListTableAll').rows.length; 
     778                                    if(tablerows == '1'){ 
     779                                        $E('NoTemplateTable').dom.style.display = ''; 
     780                                        $E('templateListTableAll').dom.style.display = 'none';} 
     781                                } 
     782                            }); 
     783                } 
     784            }; 
     785 
     786            var nameSpan = Html.span({}, value.name); 
     787            var cellName = Html.td({id:'TemplateName_'+ value.id, className:'content'}, nameSpan); 
     788            var cellFormat = Html.td({id:'TemplateName_'+ value.id, className:'content'}, value.format); 
     789            var cellDescription = Html.td({id:'TemplateName_'+ value.id, className:'content'}, value.description); 
     790            var downloadSpan = Html.span({className:'link'}, "Download"); 
     791            var barSpan = Html.span({className:'horizontalSeparator'}, "|"); 
     792            var removeSpan = Html.span({className:'link'}, "Remove"); 
     793            var cellActions = Html.td({className:'content', style:{textAlign: 'right'}}); 
     794            cellActions.append(downloadSpan); 
     795            cellActions.append(barSpan); 
     796            cellActions.append(removeSpan); 
    781797            row.append(cellName); 
    782798            row.append(cellFormat); 
    783799            row.append(cellDescription); 
     800            row.append(cellActions); 
     801 
     802            downloadSpan.observeClick(function() { 
     803                window.location = "${ urlHandlers.UHDownloadContributionTemplate.getURL() }" + "?reviewingTemplateId=" + value.id + "&confId=${ ConfReview.getConference().getId()}"; 
     804            }); 
     805            removeSpan.observeClick(deleteTemplate); 
    784806 
    785807            return $E('templateListTable').append(row); 
  • indico/MaKaC/webinterface/tpls/ConfMyContributions.tpl

    rc0de5a r25f3ad  
    1313                <tr> 
    1414                    <td nowrap class="data"> 
    15                         <b>Id</b> 
     15                        <span style="font-weight:bold;">${ _("Id") }</span> 
    1616                    </td> 
    1717                    <td nowrap class="data"> 
    18                         <b>Name</b> 
     18                        <span style="font-weight:bold;">${ _("Name") }</span> 
    1919                    </td> 
    2020                    % if Conference.getConfPaperReview().hasReviewing(): 
    2121                    <td nowrap class="data"> 
    22                         <b>Reviewing Status</b> 
     22                        <span style="font-weight:bold;">${ _("Reviewing Status") }</span> 
    2323                    </td> 
    2424                    % endif 
    25                     <td nowrap class="data"> 
    26  
     25                    <td nowrap class="data" style="text-align:right;"> 
     26                        <span style="font-weight:bold;">${ _("Actions") }</span> 
    2727                    </td> 
    2828                    </tr> 
     
    4242                    <td nowrap class="content" valign="top" style="text-align: right;"> 
    4343                    % if c.canModify(self_._aw): 
    44                             <a href="${urlHandlers.UHContributionModification.getURL(c)}">Edit</a><span class="horizontalSeparator">|</span><a href="${urlHandlers.UHContributionDisplay.getURL(c)}">View</a> 
     44                            <a href="${urlHandlers.UHContributionModification.getURL(c)}">${ _("Edit") }</a><span class="horizontalSeparator">|</span><a href="${urlHandlers.UHContributionDisplay.getURL(c)}">View</a> 
    4545                    % else: 
    46                             <a href="${urlHandlers.UHContributionDisplay.getURL(c)}">View</a> 
     46                            <a href="${urlHandlers.UHContributionDisplay.getURL(c)}">${ _("View") }</a> 
    4747                    % endif 
    4848                    </td> 
  • indico/MaKaC/webinterface/tpls/ConfPaperMyContributions.tpl

    rc0de5a r25f3ad  
    66        <table class="groupTable" align="center" cellspacing="0"  width="100%"> 
    77        <tr> 
    8             <td class="groupTitle" colspan="4" style="padding-top:25px;">Contributions</td> 
     8            <td class="groupTitle" colspan="4" style="padding-top:25px;">${ _("Contributions") }</td> 
    99        </tr> 
    1010        <tr> 
     
    1313                <tr> 
    1414                    <td nowrap class="data"> 
    15                         <b>Id</b> 
     15                        <span style="font-weight:bold;">${ _("Id") }</span> 
    1616                    </td> 
    1717                    <td nowrap class="data"> 
    18                         <b>Name</b> 
     18                        <span style="font-weight:bold;">${ _("Name") }</span> 
    1919                    </td> 
    2020                    % if Conference.getConfPaperReview().hasReviewing(): 
    2121                    <td nowrap class="data"> 
    22                         <b>Reviewing Status</b> 
     22                        <span style="font-weight:bold;">${ _("Reviewing Status") }</span> 
    2323                    </td> 
    2424                    % endif 
    25                     <td nowrap class="data"> 
    26  
     25                    <td nowrap class="data" style="text-align:right;"> 
     26                        <span style="font-weight:bold;">${ _("Actions") }</span> 
    2727                    </td> 
    2828                    </tr> 
     
    4242                    <td nowrap class="content" valign="top" style="text-align: right;"> 
    4343                    % if c.canModify(self_._aw): 
    44                             <a href="${urlHandlers.UHContributionModification.getURL(c)}">Edit</a><span class="horizontalSeparator">|</span><a href="${urlHandlers.UHContributionDisplay.getURL(c)}">View</a> 
     44                            <a href="${urlHandlers.UHContributionModification.getURL(c)}">${ _("Edit") }</a><span class="horizontalSeparator">|</span><a href="${urlHandlers.UHContributionDisplay.getURL(c)}">${ _("View") }</a> 
    4545                    % else: 
    4646                        <% url = urlHandlers.UHContributionDisplay.getURL(c) %> 
    4747                        <% url.addParam("s",1) %> 
    48                             <a href="${url}">Upload Paper</a> 
     48                            <a href="${url}">${ _("Upload Paper") }</a> 
    4949                    % endif 
    5050                    </td> 
  • indico/MaKaC/webinterface/tpls/ContributionReviewingTemplatesList.tpl

    rc0de5a r25f3ad  
    11<% import MaKaC.webinterface.urlHandlers as urlHandlers %> 
    2 <% import MaKaC.common.Configuration as Configuration %> 
    32 
    43    % if ConfReview.hasTemplates(): 
    54    <!-- here to put table for the uploaded templates info :) --> 
    6         <tr> 
    7             <td nowrap width="10%" class="titleCellFormat" style="border-right:5px solid #FFFFFF;border-left:5px solid #FFFFFF;border-bottom: 1px solid #DDDDDD;"> 
    8                 ${ _("Name")} 
     5        <tr> 
     6            <td nowrap width="20%" class="data"> 
     7                <span style="font-weight:bold;">${ _("Name")}</span> 
    98            </td> 
    10             <td nowrap class="titleCellFormat" style="border-right:5px solid #FFFFFF;border-left:5px solid #FFFFFF;border-bottom: 1px solid #DDDDDD;"> 
    11                 ${ _("Format")} 
     9            <td nowrap width="20%" class="data"> 
     10                <span style="font-weight:bold;">${ _("Format")}</span> 
    1211            </td> 
    13             <td nowrap class="titleCellFormat" style="border-right:5px solid #FFFFFF;border-left:5px solid #FFFFFF;border-bottom: 1px solid #DDDDDD;"> 
    14                 ${ _("Description")} 
     12            <td nowrap width="33%" class="data"> 
     13                <span style="font-weight:bold;">${ _("Description")}</span> 
     14            </td> 
     15            <td nowrap width="27%" class="data" style="text-align:right;"> 
     16                <span style="font-weight:bold;">${ _("Actions")}</span> 
    1517            </td> 
    1618        </tr> 
    1719 
    18         <% keys = ConfReview.getTemplates().keys() %> 
    19         <% keys.sort() %> 
    20         % for k in keys: 
    21             <% t = ConfReview.getTemplates()[k] %> 
    22         <tr> 
    23             <td style="border-right:5px solid #FFFFFF;border-left:5px solid #FFFFFF;"> 
    24                 <a style="color:#5FA5D4" href="${ urlHandlers.UHDownloadContributionTemplate.getURL(t) }"> 
    25                     ${ t.getName() } 
    26                 </a> 
    27  
    28                 % if CanDelete: 
    29                 &nbsp;&nbsp;&nbsp; 
    30                 <a href="${ urlHandlers.UHDeleteContributionTemplate.getURL(t) }"> 
    31                     <img class="imglink" style="vertical-align: bottom; width: 15px; height: 15px;" src="${ Configuration.Config.getInstance().getSystemIconURL("remove") }" alt="delete template"> 
    32                 </a> 
    33                 % endif 
    34             </td> 
    35             <td style="border-right:5px solid #FFFFFF;border-left:5px solid #FFFFFF;"> 
     20        <% keys = ConfReview.getTemplates().keys() %> 
     21        <% keys.sort() %> 
     22        % for k in keys: 
     23            <% t = ConfReview.getTemplates()[k] %> 
     24        <tr class="infoTR"> 
     25            <td class="content"> 
     26                ${ t.getName() } 
     27                </td> 
     28            <td class="content"> 
    3629                ${ t.getFormat() } 
    3730            </td> 
    38             <td style="border-right:5px solid #FFFFFF;border-left:5px solid #FFFFFF;"> 
     31            <td class="content"> 
    3932                ${ t.getDescription() } 
    4033            </td> 
    41         </tr> 
    42         % endfor 
    43         <tr><td style="padding-bottom:15px;"></td></tr> 
     34            <td class="content" style="text-align: right;"> 
     35                <span class="link" onclick="window.location='${ urlHandlers.UHDownloadContributionTemplate.getURL(t) }';">${ _("Download") }</span> 
     36            </td> 
     37        </tr> 
     38        % endfor 
    4439    % else: 
    4540        <tr><td style="border-right:5px solid #FFFFFF;border-left:5px solid #FFFFFF;"> 
  • indico/MaKaC/webinterface/tpls/DownloadPRTemplate.tpl

    rc0de5a r25f3ad  
    55 
    66   % if hasPaperReviewing: 
     7   <tr> 
     8       <table class="infoTable" cellspacing="0" width="100%"> 
    79       ${ ContributionReviewingTemplatesList } 
     10       </table> 
     11   </tr> 
    812   % else: 
    913   <tr> 
  • indico/MaKaC/webinterface/tpls/RoomBookingEmail_2UserAfterPreBookingInsertion.tpl

    r5cf491 r25f3ad  
    2525 
    2626If you are the creator of the bookings, you can check them here: 
    27 <%= urlHandlers.UHRoomBookingBookingList.getURL( onlyMy = True ) %> 
     27${ urlHandlers.UHRoomBookingBookingList.getURL( onlyMy = True ) } 
  • indico/htdocs/css/Default.css

    r5cf491 r25f3ad  
    66366636} 
    66376637 
    6638 table.infoTable td.data { 
     6638table.infoTable td.tableHeader { 
    66396639    font-size: 13px; 
    66406640    font-family: Verdana, Arial; 
Note: See TracChangeset for help on using the changeset viewer.