| 1 | <% import MaKaC.webinterface.urlHandlers as urlHandlers %> |
|---|
| 2 | <% from MaKaC.webinterface.rh.conferenceBase import RHSubmitMaterialBase %> |
|---|
| 3 | %(existingMaterialsTitle)s |
|---|
| 4 | <div id="reviewingMaterialListPlace"><!-- DOM-filled materials list --></div> |
|---|
| 5 | <span id="container"></span> |
|---|
| 6 | <% if self._target.getReviewManager().getLastReview().isAuthorSubmitted(): %> |
|---|
| 7 | <% display = 'none' %> |
|---|
| 8 | <% end %> |
|---|
| 9 | <% else: %> |
|---|
| 10 | <% display = 'form' %> |
|---|
| 11 | <% end %> |
|---|
| 12 | <form id="SendBtnForm" action="<%=urlHandlers.UHContributionSubmitForRewiewing.getURL(self._target)%>" method="POST" style="disabled:true; display:<%=display%>"> |
|---|
| 13 | <input id="SendBtn" type="submit" class="btn" value="Send" style="display:<%=display%>"> |
|---|
| 14 | <div id="SendHelp" style="display:<%=display%>"> |
|---|
| 15 | <% inlineContextHelp(_('First you should add the materials and then by clicking on this button you will send them for reviewing. They will be locked until the end of the process')) %> |
|---|
| 16 | </div> |
|---|
| 17 | </form> |
|---|
| 18 | <script type="text/javascript"> |
|---|
| 19 | |
|---|
| 20 | <% import MaKaC.conference as conference %> |
|---|
| 21 | |
|---|
| 22 | var args = { |
|---|
| 23 | conference: '<%= self._target.getConference().getId() %>', |
|---|
| 24 | confId: '<%= self._target.getConference().getId() %>', |
|---|
| 25 | contribution: '<%= self._target.getId() %>', |
|---|
| 26 | contribId: '<%= self._target.getId() %>' |
|---|
| 27 | }; |
|---|
| 28 | |
|---|
| 29 | var uploadAction = Indico.Urls.UploadAction.contribution; |
|---|
| 30 | var visibility = ''; |
|---|
| 31 | <% if self._target.getConference().getConfReview().getChoice() == 3: %> |
|---|
| 32 | <% if not self._target.getReviewManager().getLastReview().getEditorJudgement().isSubmitted():%> |
|---|
| 33 | visibility = 'visible'; |
|---|
| 34 | <% end %> |
|---|
| 35 | <% else: %> |
|---|
| 36 | visibility = 'hidden'; |
|---|
| 37 | <% end %> |
|---|
| 38 | <% end %> |
|---|
| 39 | <% if self._target.getConference().getConfReview().getChoice() == 2: %> |
|---|
| 40 | <% if not (self._target.getReviewManager().getLastReview().getRefereeJudgement().isSubmitted() or self._target.getReviewManager().getLastReview().anyReviewerHasGivenAdvice()): %> |
|---|
| 41 | visibility = 'visible'; |
|---|
| 42 | <% end %> |
|---|
| 43 | <% else: %> |
|---|
| 44 | visibility = 'hidden'; |
|---|
| 45 | <% end %> |
|---|
| 46 | <% end %> |
|---|
| 47 | <% if self._target.getConference().getConfReview().getChoice() == 4: %> |
|---|
| 48 | <% if not (self._target.getReviewManager().getLastReview().getRefereeJudgement().isSubmitted() or self._target.getReviewManager().getLastReview().anyReviewerHasGivenAdvice() or self._target.getReviewManager().getLastReview().getEditorJudgement().isSubmitted()): %> |
|---|
| 49 | visibility = 'visible'; |
|---|
| 50 | <% end %> |
|---|
| 51 | <% else: %> |
|---|
| 52 | visibility = 'hidden'; |
|---|
| 53 | <% end %> |
|---|
| 54 | <% end %> |
|---|
| 55 | |
|---|
| 56 | var mlist = new ReviewingMaterialListWidget(args, <%= RHSubmitMaterialBase._allowedMatsforReviewing %>, uploadAction,null,null,null,$E("SendBtn")); |
|---|
| 57 | |
|---|
| 58 | $E('reviewingMaterialListPlace').set(mlist.draw()); |
|---|
| 59 | |
|---|
| 60 | <% if self._target.getReviewManager().getLastReview().isAuthorSubmitted(): %> |
|---|
| 61 | $E('SendBtnForm').dom.style.display = 'none'; |
|---|
| 62 | $E('SendBtn').dom.style.display = 'none'; |
|---|
| 63 | $E('SendHelp').dom.style.display = 'none'; |
|---|
| 64 | <% end %> |
|---|
| 65 | |
|---|
| 66 | <% if existingMaterialsTitle == " ": %> |
|---|
| 67 | $E('SendBtnForm').dom.style.display = ''; |
|---|
| 68 | <% end %> |
|---|
| 69 | <% else: %> |
|---|
| 70 | $E('SendBtnForm').dom.style.display = 'none'; |
|---|
| 71 | <% end %> |
|---|
| 72 | </script> |
|---|
| 73 | |
|---|