Changeset 7355
- Timestamp:
- 03/06/09 13:39:12 (17 months ago)
- Location:
- head/ambra/webapp/src/main/webapp
- Files:
-
- 10 modified
-
css/annotation.css (modified) (10 diffs)
-
css/screen.css (modified) (8 diffs)
-
discussion/startDiscussion.ftl (modified) (1 diff)
-
images/dialog_pb.gif (modified) (previous)
-
images/dialog_pt.gif (modified) (previous)
-
journals/plosJournals/article/article_content.ftl (modified) (1 diff)
-
widget/annotation_add.ftl (modified) (2 diffs)
-
widget/contextAction.ftl (modified) (5 diffs)
-
widget/discussionResponse.ftl (modified) (1 diff)
-
widget/ratingDialog.ftl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
head/ambra/webapp/src/main/webapp/css/annotation.css
r7318 r7355 38 38 .dialog { line-height: 1.4em; font-size: .9em;} 39 39 /* dialog box title */ 40 .dialog h5{ margin: 0 0 10px 0; font-size: 1em; color: #333; padding: 5px;}40 .dialog h5{ margin: 5px 5px 10px;} 41 41 /* annotation post title */ 42 42 .dialog h6{ border: 1px solid #666; border-bottom:0; font-size: 1em; padding: 5px; margin: 0; background: #fff; clear: right;} … … 83 83 .preview div.detail a { margin: 0 10px; } 84 84 /* annotate is applied to dialog viewers in the annotation process */ 85 .annotate{ width: 42em; border: 3px solid #0bf; background: #fff url(../images/forms_bg.gif) repeat-x bottom; position:relative;}85 .annotate{ width:52em; border: 3px solid #666; background: #fff url(../images/forms_bg.gif) repeat-x bottom; position:relative;} 86 86 87 87 div.contextActionDialog { padding:0;margin:0; } … … 89 89 div.context div.tipu { background:transparent url(../images/dialog_pt.gif) no-repeat 0px 0px; width:39px; height:22px; position:absolute; top: -22px; left:22px; } 90 90 91 div.context{ width:2 2em; border:3px solid #666; background:#fff url(../images/forms_bg.gif) repeat-x bottom; position:relative;}92 div.context div.contextActionContent { border:0px; margin: 4px; line-height:1.1em; }91 div.context{ width:28em; border:3px solid #666; background:#fff url(../images/forms_bg.gif) repeat-x bottom; position:relative;} 92 div.context div.contextActionContent { border:0px; margin:10px; } 93 93 div.context div.contextActionContent h5 { padding:0px 0px 3px 0px; margin:0px;} 94 94 div.context div.contextActionContent ul { padding:5px 0px 0px 0px; margin:0px; list-style-type:dot;} … … 106 106 .response fieldset{ border: none; } 107 107 .response fieldset .reply{ display: block; margin: 10px 0; padding: 2px; border: 1px solid #ccc} 108 .posting .title{ width: 34em; }108 .posting .title{ width: 25em; } 109 109 .flag textarea, 110 .posting textarea{ width: 34em; height: 8em; display: block; overflow: auto; margin-bottom: 10px; margin-left: 0; margin-top: 5px;}110 .posting textarea{ width: 25em; height: 8em; display: block; overflow: auto; margin-bottom: 10px; margin-left: 0; margin-top: 5px;} 111 111 .response .body{ width: 46em; height: 12em; overflow: auto;} 112 112 … … 131 131 132 132 /* --- pane contains viewing area --- */ 133 .pane { margin: 20px; padding: 0 5px; margin: 10px0; position: relative; }133 .pane { margin: 20px; padding: 0 5px; margin:0; position: relative; } 134 134 .reading.pane { height: 12em; } 135 135 .dialog fieldset{ border: 0; margin: 0; padding: 0;} … … 137 137 .dialog legend, 138 138 .post legend { display: none; } 139 .pane .error { background-color: #fff; font-style: normal; } 140 141 .dialog input, 142 .post input { display: block; margin: 10px 0;} 139 .pane .error { display:none; padding:5px; border:1px solid #c00; background-color: #fff; font-style: normal; } 143 140 144 141 .dialog .response { width: 100%; height: 8em; overflow: auto; } … … 150 147 .dialog fieldset input.checkbox { width: 1em; vertical-align: middle; height: 1.125em; display: inline; margin-right: 4px;} 151 148 div.btnwrap { width: 100%; display:block; margin: 0; height: auto; } 152 div.btnwrap input { margin: 5px auto; display: block; width: 18em;padding: 2px;}149 div.btnwrap input { margin: 5px auto; display: block; padding: 2px;} 153 150 154 151 /* --- multiple is the containing block for multiple annotations --- */ … … 187 184 188 185 .none { display: none; } 189 .annotate ol,190 .annotate li { list-style-type: none; margin: 0; padding: 0; width: 100%;}191 186 192 187 /* --- page view --- */ … … 209 204 div.response div.detail { padding-left: 5px; } 210 205 /* h5 for pane posting titles */ 211 div.response h5 { margin: 20px 0 0 0; padding: 0; font-size: 1.1em;}206 div.response h5 { margin: 20px 5px 5px; padding: 0; font-size: 1.1em;} 212 207 213 208 div.pane { position: relative; } 209 div.pane fieldset { margin:0; padding:0; } 214 210 div.response div.close a { position: absolute; float: none; top: 20px; right: 20px; color: #333;} 215 211 216 div.response .pane { border: 2px solid #ccc; border-width: 2px 0 2px 2px; padding: 0 20px 20px 20px; margin: 0; background-repeat: repeat-x; background-position: top; color: #fff;}212 div.response .pane { border: 2px solid #ccc; border-width: 2px 0 2px 2px; padding: 0 20px 20px; margin: 0; background-repeat: repeat-x; background-position: top; color: #fff;} 217 213 div.response .pane legend { display: none; } 218 214 … … 239 235 div#flagConfirm { display: none; } 240 236 237 /*-------------- additional styles for notation, comment/response and rating forms 238 NOTE: 239 div.response targets start/respond discussion forms only 240 div.annotate targets rating and notation forms only 241 div.posting targets all user input forms --------------------*/ 242 div.response div.instructions a, 243 div.response div.instructions a:hover { color:#fff; text-decoration:underline; } 244 div.annotate div.instructions, 245 div.response div.instructions { border:1px solid #ccc; border-left:0; border-right:0; font-size:0.9em; margin:0 5px 1.5em; padding:5px 0; } 246 div.response div.instructions { font-size:inherit; } 247 div.annotate div.instructions ol, 248 div.response div.instructions ol { margin:0; padding-left:15px; list-style-position:inside; } 249 250 div.posting ul { margin:0; padding:0; } 251 div.posting label, 252 div.posting ul.rating { line-height:0.8em; } 253 /* SWT - this breaks star rating in IE div.posting ul.rating { top:-1em; }*/ 254 div.annotate div.posting textarea, 255 div.annotate div.posting input.title { margin:5px 0; width:23.7em; } 256 div.response textarea, 257 div.response input.title { width:32em; } 258 div.posting td.coi textarea { height:5em; } 259 div.posting td.coi ul li { list-style-type:none; } 260 div.posting td.coi ul li:first-child { margin-bottom:1em; } 261 div.posting td.coi ul li label { display:block; line-height:1.5em; } 262 div.posting td.coi ul li label input { float:left; margin-right:0.5em; margin-bottom:1em; } 263 div.response td.coi ul li label input { margin-bottom:0; } 264 div.response table.layout td.coi { vertical-align:bottom; } 265 div.annotate div.instructions ol li { list-style-position:inside; } 266 div.response table.layout {width:67em; margin:0 5px; } 267 table.layout td.buttons { text-align:right; vertical-align:bottom; } 268 .buttons input { color:#333; margin:0 5px; } 269 .buttons input.primary { font-weight:bold; } 270 271 241 272 .toolbar { background: url(../images/toolbar_bg.gif) repeat-x 20px; padding: 5px; border: 1px solid #ccc; border-width: 0 0 2px 2px; margin: 0} 242 273 .toolbar ul, -
head/ambra/webapp/src/main/webapp/css/screen.css
r7334 r7355 3 3 * $Id$ 4 4 * 5 * Copyright (c) 2006-200 8by Topaz, Inc.5 * Copyright (c) 2006-2009 by Topaz, Inc. 6 6 * http://topazproject.org 7 7 * … … 56 56 strong { font-weight: bold; } 57 57 h1 sup { font-size: .75em; } 58 ul, ol, dl { margin: 20px; position: relative; }59 58 ol.simple {list-style-type: none; margin: 20px; position: relative; } 60 59 ol.roman-lower {list-style-type: lower-roman; margin: 20px; position: relative; } … … 67 66 th { padding: 6px; background-color: #fdae7a; border: 4px solid #FFF; border-width: 0 3px 3px 0; font-weight: bold;} 68 67 td { padding: 6px; background-color: #fcd3b8; border: 4px solid #FFF; border-width: 0 3px 3px 0; } 68 table.layout { margin:0; } 69 table.layout td { padding:0; background-color:transparent; border:0; vertical-align:top; } 70 69 71 /* Default Headings */ 70 72 h1, h2, h3 { font-family: Georgia, "Times New Roman", Times, serif; color: #333; /*position: relative; Note: this was causing links in floated articleMenu to be covered up and unclickable in Firefox2 */ } … … 396 398 div#contentHeader p { margin: 0; padding:0; text-indent: -9999px; } 397 399 div#contentHeader p#articleType { text-transform:uppercase; text-indent:7px; margin-top:-13px; font-weight:bold; color:#fff; background-color:transparent; } 400 div#contentHeader a.info { background-position:0 0.3em; background-repeat:no-repeat; display:inline-block; text-indent:-9999px; width:14px; } 398 401 399 402 div#publisher { border-bottom:1px dashed #c60; background-color:#fff; } /* background color allows bottom border to display in IE6 */ … … 407 410 p.oa-banner { margin: 0; padding: 5px 0;font-size: .85em; border-bottom: 8px solid #c60; color: #666; } 408 411 p.authors { margin: 10px 0 0 0; font-weight: bold; font-size: 1.1em; } 409 p.affiliations { font-size: .85em; margin: 0; }412 p.affiliations { font-size: .85em; margin: 0; line-height:1.4em; } 410 413 411 414 div.abstract { margin: 15px 0; } … … 427 430 div.content div#articleMenu p { margin-bottom:0; padding:0 8px 0 23px; } 428 431 div.content div#articleMenu ul { margin:0; padding:0 8px 0 23px; position:static!important; } /* position:static fixes display issues in IE6 */ 429 div.content div#articleMenu ul li { background-image:none; padding:2px 0; line-height:1. 5em; }432 div.content div#articleMenu ul li { background-image:none; padding:2px 0; line-height:1.4em; } 430 433 div.content div#articleMenu ul li.annotation, 431 434 div.content div#articleMenu ul li.discuss { background-position:0 2px; background-repeat:no-repeat; padding-left:18px; } … … 496 499 div.fch ol li p a:visited { font-weight:normal; color:#004e9c; } 497 500 501 /* Retraction styles */ 502 div.retractionHtmlId p.retractionHtmlId strong { color:#ff0000; } 503 div.retractionHtmlId p.retractionHtmlId em { font-weight:bold; font-style:normal; } 504 div.retractionHtmlId { margin: 15px 0; padding:0; border: 1px solid #ff0000; background-color: #fff4f0; } 505 div.retractionHtmlId p.retractionHtmlId, 506 div.corrections td.title a, 507 div#discussionContainer div.corrections div.original div.hd h3 { background:url(../images/icon_correction.gif) left 0% no-repeat; } 508 div.retractionHtmlId p.retractionHtmlId { margin:8px 8px 0; text-indent:20px; } 509 div.retractionHtmlId span.retractionHtmlId { margin:8px 8px 0; text-indent:0; } 510 div.retractionHtmlId span.retractionHtmlId div { margin-bottom:10px; font-weight:normal; } 511 div.retractionHtmlId span.retractionHtmlId div p { margin:0; padding:0; display:inline; font-weight:normal; } 512 div.retractionHtmlId span.retractionHtmlId div p a:link { font-weight:normal; color:#069; } 513 div.retractionHtmlId span.retractionHtmlId div p a:visited { font-weight:normal; color:#004e9c; } 514 498 515 div#ratingRhc1 { margin-bottom:5px;} 499 516 div#ratingRhc1 ol, … … 568 585 569 586 /* adds correction icon to bugs containing correction notes */ 570 span.minrcrctn a.bug span, span.frmlcrctn a.bug span {587 span.minrcrctn a.bug span, span.frmlcrctn a.bug span, span.retractionCssStyle a.bug span { 571 588 background:url(../images/icon_correction_small.gif) left center no-repeat; 572 589 padding-left:10px; -
head/ambra/webapp/src/main/webapp/discussion/startDiscussion.ftl
r6581 r7355 32 32 <div class="posting pane" id="DiscussionPanel"> 33 33 <h5>Post Your Discussion Comment</h5> 34 <div class="close btn" id="btnCancelResponse"><@s.a href="%{articlePageURL}" title="Cancel and go back to original article">Cancel</@s.a></div> 34 <div class="instructions">Please follow our <a href="/static/commentGuidelines.action">guidelines for commenting/rating</a> and review our <a href="#">competing interests policy</a>. Comments that do not conform to our guidelines will be promptly removed and the user account disabled. The following must be avoided: 35 <ol> 36 <li>Remarks that could be interpreted as allegations of misconduct</li> 37 <li>Unsupported assertions or statements</li> 38 <li>Inflammatory or insulting language</li> 39 </ol> 40 </div> 41 <!-- You may want the url variables here for targeting by the new cancel button at the bottom of the form. <div class="close btn" id="btnCancelResponse"><@s.a href="%{articlePageURL}" title="Cancel and go back to original article">Cancel</@s.a></div>--> 35 42 <form name="discussionResponse" method="post" action=""> 36 43 <input type="hidden" name="target" value="${articleInfo.id}" /> 37 44 <input type="hidden" name="commentTitle" value="" /> 38 45 <input type="hidden" name="comment" value="" /> 39 <input type="hidden" name="isPublic" value="true" /> 40 41 <div id="responseSubmitMsg" class="error"/> 46 <input type="hidden" name="isPublic" value="true" /> 42 47 <fieldset> 43 48 <legend>Compose Your Response</legend> 44 45 <label for="responseTitle"><span class="none">Enter your comment title</span><!-- error message text <em>A title is required for all public annotations</em>--></label> 46 <input type="text" name="responseTitle" id="responseTitle" value="Enter your comment title..." class="title" alt="Enter your comment title..." /> 47 48 <label for="responseArea"><span class="none">Enter your comment</span><!-- error message style <em>Please enter your response</em>--></label> 49 <textarea id="responseArea" title="Enter your comment..." class="response" name="responseArea" >Enter your comment...</textarea> 50 51 <div class="btnwrap"><input name="post" value="Post" type="button" id="btnPostResponse" title="Click to Post Your Response"/></div> 49 <div id="responseSubmitMsg" class="error"></div> 50 <table class="layout"> 51 <tr> 52 <td> 53 <label for="title"><span class="none">Enter your comment title</span></label> 54 <input type="text" name="responseTitle" id="title" value="Enter your comment title..." class="title" alt="Enter your comment title..." /> 55 <label for="responseArea"><span class="none">Enter your comment</span></label> 56 <textarea id="responseArea" title="Enter your comment..." class="response" name="responseArea" >Enter your comment...</textarea> 57 </td> 58 <td> </td> 59 <td class="coi"> 60 <fieldset> 61 <legend>Declare any competing interests.</legend> 62 <ul> 63 <li><label><input id="temp" type="radio" checked="checked" name="noCOI" value="blah" /> No, I don't have any competing interests to declare.</label></li> 64 <li><label><input id="temp2" type="radio" name="yesCOI" value="blahblah" /> Yes, I have competing interests to declare (enter below):</label></li> 65 </ul> 66 <textarea name="coi" id="temp" value="Enter your competing interests..." alt="Enter your competing interests...">Enter your competing interests...</textarea> 67 </fieldset> 68 </td> 69 </tr> 70 <tr> 71 <td colspan="3" class="buttons"> 72 <input type="button" value="Cancel" title="Click to close and cancel" id="btnCancelResponse"/> 73 <input name="post" value="Submit" type="button" id="btnPostResponse" title="Click to Post Your Response" class="primary"/> 74 </td> 75 </tr> 76 </table> 52 77 </fieldset> 53 78 </form> -
head/ambra/webapp/src/main/webapp/journals/plosJournals/article/article_content.ftl
r7339 r7355 42 42 <li class="discuss icon"> 43 43 <#if Session[freemarker_config.userAttributeKey]?exists> 44 <a href="${createDiscussionURL}" class="discuss icon">Make a general comment</a>44 <a href="${createDiscussionURL}">Make a general comment</a> 45 45 <#else> 46 46 <a href="${freemarker_config.context}/user/secure/secureRedirect.action?goTo=${thisPage}">Make a general comment</a> -
head/ambra/webapp/src/main/webapp/widget/annotation_add.ftl
r5684 r7355 21 21 <div class="dialog annotate"> 22 22 <div class="tipu" id="dTipu"></div> 23 <div class="btn close" title="Click to close and cancel">24 <a id="btn_cancel" title="Click to close and cancel">Cancel</a>25 </div>26 23 <div class="comment"> 27 24 <h5><span class="commentPrivate">Add Your Note (For Private Viewing)</span><span class="commentPublic">Post Your Note (For Public Viewing)</span></h5> … … 38 35 <fieldset> 39 36 <legend>Compose Your Note</legend> 40 41 37 <span id="submitMsg" class="error"></span> 42 43 <label for="cNoteType">This is a </label><select name="cNoteType" id="cNoteType"><option value="note">note</option><option value="correction">correction</option></select> 44 <@s.url id="wacl" namespace="/static" action="commentGuidelines" includeParams="none" anchor="corrections" target="${articleURI}" /> 45 <span id="cdls" style="visibility:hidden;margin-left:1em">(<a href="${wacl}">What are corrections?</a>)</span> 46 47 <label for="cTitle" class="commentPublic"><span class="none">Enter your note title</span><!-- error message text <em>A title is required for all public notes</em>--></label> 48 <input type="text" name="cTitle" id="cTitle" value="Enter your note title..." class="title commentPublic" alt="Enter your note title..." /> 49 50 <label for="cArea"><span class="none">Enter your note</span><!-- error message text <em>Please enter your note</em>--></label> 51 <textarea name="cArea" id="cArea" value="Enter your note..." alt="Enter your note...">Enter your note...</textarea> 52 53 <input type="hidden" name="isPublic" value="true" /> 54 <!-- 55 <div><input type="radio" id="privateFlag" class="radio" title="Choose from one of the options" name="public" value="false" disabled="true" /><label for="Private">Private</label></div> 56 <div><input type="radio" id="publicFlag" class="radio" title="Choose from one of the options" name="public" value="true" checked="true" /><label for="Public">Public</label></div> 57 --> 58 <div class="btnwrap commentPrivate"><input type="button" value="Save" class="commentPrivate" title="Click to save your note privately" id="btn_save"/></div> 59 <div class="btnwrap commentPublic"><input type="button" value="Post" class="commentPublic" title="Click to post your note publicly" id="btn_post"/></div> 38 <table class="layout"> 39 <tr> 40 <td> 41 <label for="cNoteType">This is a </label><select name="cNoteType" id="cNoteType"><option value="note">note</option><option value="correction">correction</option></select> 42 <@s.url id="wacl" namespace="/static" action="commentGuidelines" includeParams="none" anchor="corrections" target="${articleURI}" /> 43 <span id="cdls" style="visibility:hidden;margin-left:0.3em; white-space:nowrap;"><a href="${wacl}">What are corrections?</a></span> 44 <label for="cTitle" class="commentPublic"><span class="none">Enter your note title</span><!-- error message text <em>A title is required for all public notes</em>--></label> 45 <input type="text" name="cTitle" id="cTitle" value="Enter your note title..." class="title commentPublic" alt="Enter your note title..." /> 46 <label for="cArea"><span class="none">Enter your note</span><!-- error message text <em>Please enter your note</em>--></label> 47 <textarea name="cArea" id="cArea" value="Enter your note..." alt="Enter your note...">Enter your note...</textarea> 48 <input type="hidden" name="isPublic" value="true" /> 49 </td> 50 <td> </td> 51 <td class="coi"> 52 <fieldset> 53 <legend>Declare any competing interests.</legend> 54 <ul> 55 <li><label><input id="temp" type="radio" checked="checked" name="noCOI" value="blah" /> No, I don't have any competing interests to declare.</label></li> 56 <li><label><input id="temp2" type="radio" name="yesCOI" value="blahblah" /> Yes, I have competing interests to declare (enter below):</label></li> 57 </ul> 58 <textarea name="coi" id="temp" value="Enter your competing interests..." alt="Enter your competing interests...">Enter your competing interests...</textarea> 59 </fieldset> 60 </td> 61 </tr> 62 <tr> 63 <td colspan="3" class="buttons"> 64 <input type="button" value="Cancel" title="Click to close and cancel" id="btn_cancel"/> 65 <input type="button" value="Submit" title="Click to post your note publicly" id="btn_post" class="primary"/> 66 </td> 67 </tr> 68 </table> 60 69 </fieldset> 61 70 </form> -
head/ambra/webapp/src/main/webapp/widget/contextAction.ftl
r7318 r7355 3 3 <div class="tipu" id="caTipu"></div> 4 4 <div class="contextActionContent"> 5 <h5><img src="images/tooltip_addannotation.gif" /> Add a note to this text.</h5> 6 Please follow our <a href="">guidelines for commenting/rating</a>. Comments that do 7 not conform to our guidelines will be promptly removed and the 8 user account disabled. The following must be avoided: 5 <h5><img src="../images/tooltip_addannotation.gif" /> Add a note to this text.</h5> 6 Please follow our <a href="">guidelines for commenting/rating</a> and review our <a href="#">competing interests policy</a>. Comments that do not conform to our guidelines will be promptly removed and the user account disabled. The following must be avoided: 9 7 <ul> 10 8 <li>Remarks that could be interpreted as allegations of misconduct</li> … … 12 10 <li>Inflammatory and insulting language</li> 13 11 </ul> 14 <form name="contextActionForm" id="contextActionForm" method="post" action=""> 15 <input type="button" name="Continue" value="Continue" id="ContextActionDialogContinueButton" onmouseup="ambra.displayAnnotationContext.startComment(event);" title="Add a note to this text"></form> 16 <div class="clearer"></div> 12 <form name="contextActionForm" id="contextActionForm" class="clearfix buttons" method="post" action=""> 13 <input type="button" name="Continue" value="Continue" id="ContextActionDialogContinueButton" onmouseup="ambra.displayAnnotationContext.startComment(event);" title="Add a note to this text" class="primary"/></form> 17 14 </div> 18 15 <div class="tip" id="caTip"></div> … … 23 20 <div class="tipu" id="canlTipu"></div> 24 21 <div class="contextActionContent"> 25 <h5><img src=" images/tooltip_addannotation.gif" /> Add a note to this text.</h5>22 <h5><img src="../images/tooltip_addannotation.gif" /> Add a note to this text.</h5> 26 23 You must be logged into to add a note to an article. 27 24 You may log in by <a onmousedown="ambra.displayAnnotationContext.disconnect(event);" href="${freemarker_config.context}/user/secure/secureRedirect.action?goTo=${thisPage}">clicking here</a>. … … 34 31 <div class="tipu" id="canBDTipu"></div> 35 32 <div class="contextActionContent"> 36 <h5 ><img src="images/tooltip_addannotation.gif" /> Add a note to this text.</h5>33 <h5 class="annotation icon"><img src="../images/tooltip_addannotation.gif" /> Add a note to this text.</h5> 37 34 You can not annotate this area of the document. 38 35 </div> … … 44 41 <div class="tipu" id="canbrTipu"></div> 45 42 <div class="contextActionContent"> 46 <h5><img src=" images/tooltip_addannotation.gif" /> Add a note to this text.</h5>43 <h5><img src="../images/tooltip_addannotation.gif" /> Add a note to this text.</h5> 47 44 You can not create an annotation that spans different sections of the document, please 48 45 adjust your selection. -
head/ambra/webapp/src/main/webapp/widget/discussionResponse.ftl
r5405 r7355 21 21 <div class="posting pane" id="DiscussionPanel"> 22 22 <h5>Post Your Response</h5> 23 <div class="close btn" id="btnCancelResponse"><a href="#" title="Close this dialogue box">Cancel</a></div> 24 <form name="discussionResponse" method="post" action=""> 25 <input type="hidden" name="commentTitle" value="" /> 26 <input type="hidden" name="comment" value="" /> 27 28 <div id="responseSubmitMsg" class="error"></div> 29 30 <fieldset> 31 <legend>Compose Your Response</legend> 32 33 <label for="responseTitle"><span class="none">Enter your response title</span><!-- error message text <em>A title is required for all public annotations</em>--></label> 34 <input type="text" name="responseTitle" id="responseTitle" value="Enter your response title..." class="title" alt="Enter your response title..." /> 35 36 <label for="reponseArea"><span class="none">Enter your response</span><!-- error message style <em>Please enter your response</em>--></label> 37 <textarea id="responseArea" title="Enter your response..." class="response" name="responseArea" >Enter your response...</textarea> 38 39 <div class="btnwrap"><input name="post" value="Post" type="button" id="btnPostResponse" title="Click to Post Your Response"/></div> 40 23 <div class="instructions">Please follow our <a href="/static/commentGuidelines.action">guidelines for commenting/rating</a> and review our <a href="#">competing interests policy</a>. Comments that do not conform to our guidelines will be promptly removed and the user account disabled. The following must be avoided: 24 <ol> 25 <li>Remarks that could be interpreted as allegations of misconduct</li> 26 <li>Unsupported assertions or statements</li> 27 <li>Inflammatory or insulting language</li> 28 </ol> 29 </div> 30 <form name="discussionResponse" method="post" action=""> 31 <input type="hidden" name="commentTitle" value="" /> 32 <input type="hidden" name="comment" value="" /> 33 <fieldset> 34 <legend>Compose Your Response</legend> 35 <div id="responseSubmitMsg" class="error"></div> 36 <table class="layout"> 37 <tr> 38 <td> 39 <label for="title"><span class="none">Enter your response title</span></label> 40 <input type="text" name="responseTitle" id="title" value="Enter your response title..." class="title" alt="Enter your response title..." /> 41 <label for="reponseArea"><span class="none">Enter your response</span></label> 42 <textarea id="responseArea" title="Enter your response..." class="response" name="responseArea" >Enter your response...</textarea> 43 <td> </td> 44 <td class="coi"> 45 <fieldset> 46 <legend>Declare any competing interests.</legend> 47 <ul> 48 <li><label><input id="temp" type="radio" checked="checked" name="noCOI" value="blah" /> No, I don't have any competing interests to declare.</label></li> 49 <li><label><input id="temp2" type="radio" name="yesCOI" value="blahblah" /> Yes, I have competing interests to declare (enter below):</label></li> 50 </ul> 51 <textarea name="coi" id="temp" value="Enter your competing interests..." alt="Enter your competing interests...">Enter your competing interests...</textarea> 52 </fieldset> 53 </td> 54 </tr> 55 <tr> 56 <td colspan="3" class="buttons"> 57 <input type="button" value="Cancel" title="Click to close and cancel" id="btnCancelResponse"/> 58 <input name="post" value="Post" type="button" id="btnPostResponse" title="Click to Post Your Response" class="primary"/> 59 </td> 60 </tr> 61 </table> 41 62 </fieldset> 42 63 </form> -
head/ambra/webapp/src/main/webapp/widget/ratingDialog.ftl
r6015 r7355 21 21 <div class="dialog annotate"> 22 22 <div class="tipu" id="dTipu"></div> 23 <div class="btn close" title="Click to close and cancel"><a id="btn_cancel_rating" title="Click to close and cancel">Cancel</a></div>24 23 <div class="comment"> 25 24 <h5><span class="commentPublic">Rate This Article</span></h5> 26 <p>See also <a href="${freemarker_config.getContext()}/static/ratingGuidelines.action" class="instructions">guidelines for rating</a>.</p> 27 <div class="posting pane"><form name="ratingForm" id="ratingForm" method="post" action=""> 28 <input type="hidden" name="articleURI" value="${articleURI}" /> 29 <input type="hidden" name="commentTitle" id="commentTitle" value="" /> 30 <input type="hidden" name="comment" id="commentArea" value="" /> 31 <fieldset> 32 <legend>Compose Your Annotation</legend> 33 <span id="submitRatingMsg" class="error"></span> 34 <#if isResearchArticle == true> 35 <label for="insight">Insight</label> 36 <ul class="star-rating rating edit" title="Rate insight" id="rateInsight"> 37 <li class="current-rating pct0"></li> 38 <li><a href="javascript:void(0);" title="Bland" class="one-star" onclick="ambra.rating.setRatingCategory(this, 'insight', 1);">1</a></li> 39 <li><a href="javascript:void(0);" title="" class="two-stars" onclick="ambra.rating.setRatingCategory(this, 'insight', 2);">2</a></li> 40 <li><a href="javascript:void(0);" title="" class="three-stars" onclick="ambra.rating.setRatingCategory(this, 'insight', 3);">3</a></li> 41 <li><a href="javascript:void(0);" title="" class="four-stars" onclick="ambra.rating.setRatingCategory(this, 'insight', 4);">4</a></li> 42 <li><a href="javascript:void(0);" title="Profound" class="five-stars" onclick="ambra.rating.setRatingCategory(this, 'insight', 5);">5</a></li> 43 </ul> 44 <input type="hidden" name="insight" title="insight" value="" /> 45 <label for="reliability">Reliability</label> 46 <ul class="star-rating rating edit" title="Rate reliability" id="rateReliability"> 47 <li class="current-rating pct0"></li> 48 <li><a href="javascript:void(0);" title="Tenuous" class="one-star" onclick="ambra.rating.setRatingCategory(this, 'reliability', 1);">1</a></li> 49 <li><a href="javascript:void(0);" title="" class="two-stars" onclick="ambra.rating.setRatingCategory(this, 'reliability', 2);">2</a></li> 50 <li><a href="javascript:void(0);" title="" class="three-stars" onclick="ambra.rating.setRatingCategory(this, 'reliability', 3);">3</a></li> 51 <li><a href="javascript:void(0);" title="" class="four-stars" onclick="ambra.rating.setRatingCategory(this, 'reliability', 4);">4</a></li> 52 <li><a href="javascript:void(0);" title="Unassailable" class="five-stars" onclick="ambra.rating.setRatingCategory(this, 'reliability', 5);">5</a></li> 53 </ul> 54 <input type="hidden" name="reliability" title="reliability" value="" /> 55 <label for="style">Style</label> 56 <ul class="star-rating rating edit" title="Rate style" id="rateStyle"> 57 <li class="current-rating pct0"></li> 58 <li><a href="javascript:void(0);" title="Crude" class="one-star" onclick="ambra.rating.setRatingCategory(this, 'style', 1);">1</a></li> 59 <li><a href="javascript:void(0);" title="" class="two-stars" onclick="ambra.rating.setRatingCategory(this, 'style', 2);">2</a></li> 60 <li><a href="javascript:void(0);" title="" class="three-stars" onclick="ambra.rating.setRatingCategory(this, 'style', 3);">3</a></li> 61 <li><a href="javascript:void(0);" title="" class="four-stars" onclick="ambra.rating.setRatingCategory(this, 'style', 4);">4</a></li> 62 <li><a href="javascript:void(0);" title="Elegant" class="five-stars" onclick="ambra.rating.setRatingCategory(this, 'style', 5);">5</a></li> 63 </ul> 64 <input type="hidden" name="style" title="style" value="" /> 65 <#else> 66 <label for="singleRating">Rating</label> 67 <ul class="star-rating rating edit" title="Rate single" id="rateSingleRating"> 68 <li class="current-rating pct0"></li> 69 <li><a href="javascript:void(0);" title="Bland" class="one-star" onclick="ambra.rating.setRatingCategory(this, 'singleRating', 1);">1</a></li> 70 <li><a href="javascript:void(0);" title="" class="two-stars" onclick="ambra.rating.setRatingCategory(this, 'singleRating', 2);">2</a></li> 71 <li><a href="javascript:void(0);" title="" class="three-stars" onclick="ambra.rating.setRatingCategory(this, 'singleRating', 3);">3</a></li> 72 <li><a href="javascript:void(0);" title="" class="four-stars" onclick="ambra.rating.setRatingCategory(this, 'singleRating', 4);">4</a></li> 73 <li><a href="javascript:void(0);" title="Profound" class="five-stars" onclick="ambra.rating.setRatingCategory(this, 'singleRating', 5);">5</a></li> 74 </ul> 75 <input type="hidden" name="singleRating" title="singleRating" value="" /> 76 </#if> 77 <label for="cTitle" class="commentPublic"><span class="none">Enter your comment title</span><!-- error message text <em>A title is required for all public annotations</em>--></label> 78 <input type="text" name="cTitle" id="cTitle" value="Enter your comment title..." class="title commentPublic" alt="Enter your comment title..." /> 79 <label for="cArea"><span class="none">Enter your comment</span><!-- error message text <em>Please enter your annotation</em>--></label> 80 <textarea name="cArea" id="cArea" value="Enter your comment..." alt="Enter your comment...">Enter your comment...</textarea> 81 <div class="btnwrap commentPublic"><input type="button" value="Post" class="commentPublic" title="Click to post your annotation publicly" id="btn_post_rating"/></div> 82 </fieldset> 83 </form></div> 25 <div class="instructions">Please follow our <a href="/static/commentGuidelines.action">guidelines for commenting/rating</a> and review our <a href="#">competing interests policy</a>. Comments that do not conform to our guidelines will be promptly removed and the user account disabled. The following must be avoided: 26 <ol> 27 <li>Remarks that could be interpreted as allegations of misconduct</li> 28 <li>Unsupported assertions or statements</li> 29 <li>Inflammatory or insulting language</li> 30 </ol> 31 </div> 32 <div class="posting pane"> 33 <form name="ratingForm" id="ratingForm" method="post" action=""> 34 <input type="hidden" name="articleURI" value="${articleURI}" /> 35 <input type="hidden" name="commentTitle" id="commentTitle" value="" /> 36 <input type="hidden" name="comment" id="commentArea" value="" /> 37 <fieldset> 38 <legend>Compose Your Annotation</legend> 39 <span id="submitRatingMsg" class="error"></span> 40 <table class="layout"> 41 <tr> 42 <td rowspan="2"> 43 <#if isResearchArticle == true> 44 <label for="insight">Insight</label> 45 <ul class="star-rating rating edit" title="Rate insight" id="rateInsight"> 46 <li class="current-rating pct0"></li> 47 <li><a href="javascript:void(0);" title="Bland" class="one-star" onclick="ambra.rating.setRatingCategory(this, 'insight', 1);">1</a></li> 48 <li><a href="javascript:void(0);" title="" class="two-stars" onclick="ambra.rating.setRatingCategory(this, 'insight', 2);">2</a></li> 49 <li><a href="javascript:void(0);" title="" class="three-stars" onclick="ambra.rating.setRatingCategory(this, 'insight', 3);">3</a></li> 50 <li><a href="javascript:void(0);" title="" class="four-stars" onclick="ambra.rating.setRatingCategory(this, 'insight', 4);">4</a></li> 51 <li><a href="javascript:void(0);" title="Profound" class="five-stars" onclick="ambra.rating.setRatingCategory(this, 'insight', 5);">5</a></li> 52 </ul> 53 <input type="hidden" name="insight" title="insight" value="" /> 54 <label for="reliability">Reliability</label> 55 <ul class="star-rating rating edit" title="Rate reliability" id="rateReliability"> 56 <li class="current-rating pct0"></li> 57 <li><a href="javascript:void(0);" title="Tenuous" class="one-star" onclick="ambra.rating.setRatingCategory(this, 'reliability', 1);">1</a></li> 58 <li><a href="javascript:void(0);" title="" class="two-stars" onclick="ambra.rating.setRatingCategory(this, 'reliability', 2);">2</a></li> 59 <li><a href="javascript:void(0);" title="" class="three-stars" onclick="ambra.rating.setRatingCategory(this, 'reliability', 3);">3</a></li> 60 <li><a href="javascript:void(0);" title="" class="four-stars" onclick="ambra.rating.setRatingCategory(this, 'reliability', 4);">4</a></li> 61 <li><a href="javascript:void(0);" title="Unassailable" class="five-stars" onclick="ambra.rating.setRatingCategory(this, 'reliability', 5);">5</a></li> 62 </ul> 63 <input type="hidden" name="reliability" title="reliability" value="" /> 64 <label for="style">Style</label> 65 <ul class="star-rating rating edit" title="Rate style" id="rateStyle"> 66 <li class="current-rating pct0"></li> 67 <li><a href="javascript:void(0);" title="Crude" class="one-star" onclick="ambra.rating.setRatingCategory(this, 'style', 1);">1</a></li> 68 <li><a href="javascript:void(0);" title="" class="two-stars" onclick="ambra.rating.setRatingCategory(this, 'style', 2);">2</a></li> 69 <li><a href="javascript:void(0);" title="" class="three-stars" onclick="ambra.rating.setRatingCategory(this, 'style', 3);">3</a></li> 70 <li><a href="javascript:void(0);" title="" class="four-stars" onclick="ambra.rating.setRatingCategory(this, 'style', 4);">4</a></li> 71 <li><a href="javascript:void(0);" title="Elegant" class="five-stars" onclick="ambra.rating.setRatingCategory(this, 'style', 5);">5</a></li> 72 </ul> 73 <input type="hidden" name="style" title="style" value="" /> 74 <#else> 75 <label for="singleRating">Rating</label> 76 <ul class="star-rating rating edit" title="Rate single" id="rateSingleRating"> 77 <li class="current-rating pct0"></li> 78 <li><a href="javascript:void(0);" title="Bland" class="one-star" onclick="ambra.rating.setRatingCategory(this, 'singleRating', 1);">1</a></li> 79 <li><a href="javascript:void(0);" title="" class="two-stars" onclick="ambra.rating.setRatingCategory(this, 'singleRating', 2);">2</a></li> 80 <li><a href="javascript:void(0);" title="" class="three-stars" onclick="ambra.rating.setRatingCategory(this, 'singleRating', 3);">3</a></li> 81 <li><a href="javascript:void(0);" title="" class="four-stars" onclick="ambra.rating.setRatingCategory(this, 'singleRating', 4);">4</a></li> 82 <li><a href="javascript:void(0);" title="Profound" class="five-stars" onclick="ambra.rating.setRatingCategory(this, 'singleRating', 5);">5</a></li> 83 </ul> 84 <input type="hidden" name="singleRating" title="singleRating" value="" /> 85 </#if> 86 <label for="cTitle" class="commentPublic"><span class="none">Enter your comment title</span><!-- error message text <em>A title is required for all public annotations</em>--></label> 87 <input type="text" name="cTitle" id="cTitle" value="Enter your comment title..." class="title commentPublic" alt="Enter your comment title..." /> 88 <label for="cArea"><span class="none">Enter your comment</span><!-- error message text <em>Please enter your annotation</em>--></label> 89 <textarea name="cArea" id="cArea" value="Enter your comment..." alt="Enter your comment...">Enter your comment...</textarea> 90 </td> 91 <td rowspan="2"> </td> 92 <td class="coi"> 93 <fieldset> 94 <legend>Declare any competing interests.</legend> 95 <ul> 96 <li><label><input id="temp" type="radio" checked="checked" name="noCOI" value="blah" /> No, I don't have any competing interests to declare.</label></li> 97 <li><label><input id="temp2" type="radio" name="yesCOI" value="blahblah" /> Yes, I have competing interests to declare (enter below):</label></li> 98 </ul> 99 <textarea name="coi" id="temp" value="Enter your competing interests..." alt="Enter your competing interests...">Enter your competing interests...</textarea> 100 </fieldset> 101 </td> 102 </tr> 103 <tr> 104 <td class="buttons"> 105 <input type="button" value="Cancel" title="Click to close and cancel" id="btn_cancel_rating"/> 106 <input type="button" value="Submit" title="Click to post your annotation publicly" id="btn_post_rating" class="primary"/> 107 </td> 108 </tr> 109 </table> 110 </fieldset> 111 </form> 112 </div> 84 113 </div> 85 114 </div>
