Changeset 605ef7 in indico
- Timestamp:
- 10/04/10 17:17:51 (3 years ago)
- Branches:
- master, burotel, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, d9941f8582b36b24821a11ea5ba16fda6a457fb1
- Children:
- 1d3b3c
- Parents:
- a4c859
- git-author:
- csvetelina.angelova@…> (01/08/10 16:16:40)
- git-committer:
- Jose Benito <jose.benito.gonzalez@…> (10/04/10 17:17:51)
- Location:
- indico/MaKaC/webinterface/tpls
- Files:
-
- 2 edited
-
ConfReviewingAssignContributions.tpl (modified) (13 diffs)
-
ContributionReviewingHistory.tpl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
indico/MaKaC/webinterface/tpls/ConfReviewingAssignContributions.tpl
r9b3d51 r605ef7 7 7 <% if not ConfReview.hasReviewing(): %> 8 8 <table align="center"><tr><td><%= _("Type of reviewing has not been chosen yet")%></td></tr></table> 9 <% end %>10 <% elif not ConfReview.getJudgedContributions(user):%>11 <p style="padding-left: 25px;"><font color="gray"><%= _("There are no contributions to assign as a Referee.")%></font></p>12 9 <% end %> 13 10 <% else: %> … … 16 13 <% end %> 17 14 <%else:%> 18 <div style="padding-top:10px; padding-bottom: 10px; "><em><%= _("Please, select one or more contributions to assign Reviewers")%></em></div>19 20 <div id="showHideFilteringHelp" style="padding-top: 10px; "><div id="showHideFiltering" style="display:inline"></div></div>15 <div style="padding-top:10px; padding-bottom: 10px;padding-left: 10px"><em><%= _("Please, select one or more contributions to assign Reviewers")%></em></div> 16 17 <div id="showHideFilteringHelp" style="padding-top: 10px;padding-left: 40px"><div id="showHideFiltering" style="display:inline"></div></div> 21 18 <br/> 22 19 <table id="filteringTable" class="Revtab" width="90%%" align="center"> … … 109 106 </table> 110 107 111 <table >108 <table style="padding-left: 40px"> 112 109 <% if not IsOnlyReferee and not (ConfReview.getChoice() == 3 or ConfReview.getChoice() == 1): %> 113 110 <tr> … … 146 143 </div> 147 144 148 <table class="Revtab" width="95%%" cellspacing="0" align="center" border="0" style="padding-left:2px; margin-bottom:1em"> 145 <table style="padding-left:40px; margin-bottom:1em;"> 146 <tr> 147 <td style="padding-bottom: 20px; padding-top: 20px"> 148 <%= _("Select:") %> 149 </td> 150 <td nowrap class="titleCellFormat" style="padding-bottom: 20px; padding-top: 20px; border-right:5px solid #FFFFFF;border-left:5px solid #FFFFFF"> 151 <span onclick="selectAll('selectedContributions')" align="left" style="cursor:pointer;padding-bottom:5px;color:#0B63A5;list-style-type:none;" onmouseover="this.style.color='#E25300'" onmouseout="this.style.color='#0B63A5'"> 152 <%= _("All")%> 153 </span>, 154 <span onclick="deselectAll('selectedContributions')" align="left" style="cursor:pointer;padding-bottom:5px;color:#0B63A5;list-style-type:none;" onmouseover="this.style.color='#E25300'" onmouseout="this.style.color='#0B63A5'"> 155 <%= _("None")%> 156 </span> 157 </td> 158 </tr> 159 </table> 160 161 <table class="Revtab" width="95%%" cellspacing="0" align="center" border="0" style="padding-left:20px; margin-bottom:1em"> 149 162 <!-- 150 163 <tr> … … 154 167 <thead> 155 168 <tr> 156 <td nowrap class="titleCellFormat" style="border-right:5px solid #FFFFFF;border-left:5px solid #FFFFFF"> 157 <ul style="padding-left: 0px; padding-right: 20px;"> 158 <li onclick="selectAll('selectedContributions')" align="left" style="padding-bottom:5px;color:#0B63A5;list-style-type:none;" onmouseover="this.style.color='#E25300'" onmouseout="this.style.color='#0B63A5'"> 159 <span style="cursor:pointer"><%= _("Select All")%></span> 160 </li> 161 <li onclick="deselectAll('selectedContributions')" style="color:#0B63A5;list-style-type:none;" onmouseover="this.style.color='#E25300'" onmouseout="this.style.color='#0B63A5'"> 162 <span style="cursor:pointer"><%= _("Deselect All")%></span> 163 </li> 164 </ul> 165 </td> 169 166 170 <td nowrap class="titleCellFormat" style="border-right:5px solid #FFFFFF;border-left:5px solid #FFFFFF;"> 167 171 <%= _("Id")%> … … 241 245 </td> 242 246 --> 243 244 247 <td> 245 248 <ul> … … 278 281 </table> 279 282 280 <table >283 <table style="padding-left: 40px"> 281 284 <% if not IsOnlyReferee and not (ConfReview.getChoice() == 3 or ConfReview.getChoice() == 1): %> 282 285 <tr> … … 716 719 * @param {Object} role 717 720 */ 718 var removeReviewersAlerts = function(contributions, order,role) {721 var removeReviewersAlerts = function(contributions, role) { 719 722 contributionsWithoutReviewers = [] 720 723 for (i in contributions) { … … 738 741 popup.draw = function(){ 739 742 740 var span1 = Html.span({}, $T("Some of the contributions you checked do not have a Reviewer.")); 741 var span2 = Html.span({}, $T("Do you want to remove a reviewer only from the contributions that have one?")); 742 var yesButton = Html.button('popUpButton', $T("Yes")); 743 yesButton.observeClick(function(){ 743 var span1 = Html.span({}, $T("The Content Reviewers will be removed only from the contributions that have ones.")); 744 var okButton = Html.button('popUpButton', $T("OK")); 745 okButton.observeClick(function(){ 744 746 deselectWithoutReviewer(contributions); 745 fetchUsers(order, role);747 removeUser('allReviewers'); 746 748 popup.close(); 747 749 }); 748 749 var noButton = Html.button('popUpButton', $T("No")); 750 noButton.observeClick(function(){ 751 popup.close(); 752 }); 753 var buttons = Widget.inline([yesButton, noButton]) 754 var all = Widget.lines([span1, span2, buttons]) 750 751 var all = Widget.lines([span1, okButton]) 755 752 return this.ExclusivePopup.prototype.draw.call(this, Html.div({style: {height: '130px', width: '420px'}},[all])); 756 753 }; … … 1005 1002 1006 1003 if (order == 'remove' && role == 'reviewer') { 1007 if (!removeReviewersAlerts(checkedContributions, order,role)) {1004 if (!removeReviewersAlerts(checkedContributions, role)) { 1008 1005 return; 1009 1006 } … … 1031 1028 1032 1029 popup.draw = function(){ 1033 var users = $L();1034 var userTemplate = function(user) {1035 var li = Html.li();1036 var userName = Widget.link(command(function(){1037 userSelected(user);1038 var killProgress = IndicoUI.Dialogs.Util.progress()1039 popup.close();1040 killProgress();1041 }, user.name));1042 1043 1044 var userCompetences = Html.span({style:{marginLeft:'5px'}},1030 var users = $L(); 1031 var userTemplate = function(user) { 1032 var li = Html.li(); 1033 var userName = Widget.link(command(function(){ 1034 userSelected(user); 1035 var killProgress = IndicoUI.Dialogs.Util.progress() 1036 popup.close(); 1037 killProgress(); 1038 }, user.name)); 1039 1040 1041 var userCompetences = Html.span({style:{marginLeft:'5px'}}, 1045 1042 user.competences.length == 0 ? $T('(no competences defined)') : $T('(competences: ') + user.competences.join(', ') + ')' 1046 1043 ); … … 1049 1046 return li; 1050 1047 } 1051 1048 1052 1049 var userList = Html.ul(); 1053 1050 bind.element(userList, users, userTemplate); … … 1151 1148 function(result,error) { 1152 1149 if (!error) { 1150 if (!removeReviewersAlerts(checkedContributions, role)) { 1151 return; 1152 } 1153 1153 for (i in checkedContributions) { 1154 1154 contributionId = checkedContributions[i]; 1155 1155 contribution = getContribution(contributionId); 1156 if (!removeReviewersAlerts(checkedContributions, role)) {1157 return;1158 }1159 1156 contribution.reviewManager.reviewersList = []; 1160 1157 updateContribution(contributionId); -
indico/MaKaC/webinterface/tpls/ContributionReviewingHistory.tpl
ra4c859 r605ef7 12 12 <<<<<<< HEAD:indico/MaKaC/webinterface/tpls/ContributionReviewingHistory.tpl 13 13 <<<<<<< HEAD:indico/MaKaC/webinterface/tpls/ContributionReviewingHistory.tpl 14 <<<<<<< HEAD:indico/MaKaC/webinterface/tpls/ContributionReviewingHistory.tpl 14 15 <td colspan="3" class="groupTitle" style="width: 60%;padding-top:20px; border-bottom: none"> 16 ======= 17 <td colspan="3" class="groupTitle" style="padding-top:20px; border-bottom: none; font-size: 20px;"> 18 >>>>>>> 4608831... [FIXES] - task #108 + small layout fixes:indico/MaKaC/webinterface/tpls/ContributionReviewingHistory.tpl 15 19 ======= 16 20 <td colspan="3" class="groupTitle" style="padding-top:20px; border-bottom: none; font-size: 20px;">
Note: See TracChangeset
for help on using the changeset viewer.
