From: <fg...@us...> - 2009-12-27 16:47:59
|
Revision: 1545 http://openutils.svn.sourceforge.net/openutils/?rev=1545&view=rev Author: fgiust Date: 2009-12-27 16:47:51 +0000 (Sun, 27 Dec 2009) Log Message: ----------- GROOVY-2 branding and textarea layout Modified Paths: -------------- trunk/openutils-mgnlgroovy/src/main/resources/net/sourceforge/openutils/mgnlgroovy/pages/GroovyShellPage.html Added Paths: ----------- trunk/openutils-mgnlgroovy/src/main/resources/mgnl-resources/groovyshell/css/mgnladmin.css trunk/openutils-mgnlgroovy/src/main/resources/mgnl-resources/groovyshell/img/ trunk/openutils-mgnlgroovy/src/main/resources/mgnl-resources/groovyshell/img/admin-bottomleft.png trunk/openutils-mgnlgroovy/src/main/resources/mgnl-resources/groovyshell/img/admin-bottomright.png trunk/openutils-mgnlgroovy/src/main/resources/mgnl-resources/groovyshell/img/admin-topleft.png trunk/openutils-mgnlgroovy/src/main/resources/mgnl-resources/groovyshell/img/admin-topright.png trunk/openutils-mgnlgroovy/src/main/resources/mgnl-resources/groovyshell/img/ico-warning.png trunk/openutils-mgnlgroovy/src/main/resources/mgnl-resources/groovyshell/img/openmind-logo.png Added: trunk/openutils-mgnlgroovy/src/main/resources/mgnl-resources/groovyshell/css/mgnladmin.css =================================================================== --- trunk/openutils-mgnlgroovy/src/main/resources/mgnl-resources/groovyshell/css/mgnladmin.css (rev 0) +++ trunk/openutils-mgnlgroovy/src/main/resources/mgnl-resources/groovyshell/css/mgnladmin.css 2009-12-27 16:47:51 UTC (rev 1545) @@ -0,0 +1,96 @@ +body.ma { + background-color: #333; + padding: 10px; + margin: 0; +} + +body.ma img { + border: none; +} + +body.ma div,body.ma span,body.ma p,body.ma input,body.ma select,body.ma pre,body.ma textarea { + font-size: 12px; + font-family: verdana, sans-serif; +} + +.ma-frame { + background-color: #fff; + background-image: url("../img/admin-topleft.png"); + background-repeat: no-repeat; + background-position: top left; + padding: 0; + margin: 0; +} + +.ma-frame h2 { + background-image: url("../img/admin-topright.png"); + background-repeat: no-repeat; + background-repeat: no-repeat; + background-position: top right; + height: 59px; + color: #fff; + padding: 0 20px 0 20px; + font-family: georgia, sans-serif; + font-weight: lighter; + font-size: 20px; + line-height: 55px; +} + +.ma-framecenter { + padding: 10px 20px 10px 20px; +} + +.ma-framefooter { + background-image: url("../img/admin-bottomleft.png"); + background-repeat: no-repeat; + background-repeat: no-repeat; + background-position: bottom left; + height: 75px; + padding: 0; + color: #fff; +} + +.ma-framefooterinner { + padding: 0 20px 0 20px; + background-image: url("../img/admin-bottomright.png"); + background-repeat: no-repeat; + background-repeat: no-repeat; + background-position: bottom right; + height: 75px; +} + +.ma-buttons { + text-align: right; + padding-top: 40px; +} + +.ma-warning { + border: 1px solid #FFD324; + padding: 10px 11px 8px 10px; + background-color: #FFF8BF; + color: #B35F00; + margin: 0 0 20px 0; +} + +.ma-warning p { + margin: 0; +} + +.ma-info { + border: 1px solid #769837; + padding: 10px 11px 8px 10px; + background-color: #eaf5d6; + margin: 0 0 20px 0; + color: #769837; +} + +.ma-formel-container { + margin-bottom: 10px; +} + +.ma-formel-left { + float: left; + width: 150px; + color: #769837; + font-weight: bold; +} \ No newline at end of file Property changes on: trunk/openutils-mgnlgroovy/src/main/resources/mgnl-resources/groovyshell/css/mgnladmin.css ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:eol-style + native Added: trunk/openutils-mgnlgroovy/src/main/resources/mgnl-resources/groovyshell/img/admin-bottomleft.png =================================================================== (Binary files differ) Property changes on: trunk/openutils-mgnlgroovy/src/main/resources/mgnl-resources/groovyshell/img/admin-bottomleft.png ___________________________________________________________________ Added: svn:mime-type + image/png Added: trunk/openutils-mgnlgroovy/src/main/resources/mgnl-resources/groovyshell/img/admin-bottomright.png =================================================================== (Binary files differ) Property changes on: trunk/openutils-mgnlgroovy/src/main/resources/mgnl-resources/groovyshell/img/admin-bottomright.png ___________________________________________________________________ Added: svn:mime-type + image/png Added: trunk/openutils-mgnlgroovy/src/main/resources/mgnl-resources/groovyshell/img/admin-topleft.png =================================================================== (Binary files differ) Property changes on: trunk/openutils-mgnlgroovy/src/main/resources/mgnl-resources/groovyshell/img/admin-topleft.png ___________________________________________________________________ Added: svn:mime-type + image/png Added: trunk/openutils-mgnlgroovy/src/main/resources/mgnl-resources/groovyshell/img/admin-topright.png =================================================================== (Binary files differ) Property changes on: trunk/openutils-mgnlgroovy/src/main/resources/mgnl-resources/groovyshell/img/admin-topright.png ___________________________________________________________________ Added: svn:mime-type + image/png Added: trunk/openutils-mgnlgroovy/src/main/resources/mgnl-resources/groovyshell/img/ico-warning.png =================================================================== (Binary files differ) Property changes on: trunk/openutils-mgnlgroovy/src/main/resources/mgnl-resources/groovyshell/img/ico-warning.png ___________________________________________________________________ Added: svn:mime-type + image/png Added: trunk/openutils-mgnlgroovy/src/main/resources/mgnl-resources/groovyshell/img/openmind-logo.png =================================================================== (Binary files differ) Property changes on: trunk/openutils-mgnlgroovy/src/main/resources/mgnl-resources/groovyshell/img/openmind-logo.png ___________________________________________________________________ Added: svn:mime-type + image/png Modified: trunk/openutils-mgnlgroovy/src/main/resources/net/sourceforge/openutils/mgnlgroovy/pages/GroovyShellPage.html =================================================================== --- trunk/openutils-mgnlgroovy/src/main/resources/net/sourceforge/openutils/mgnlgroovy/pages/GroovyShellPage.html 2009-12-27 16:46:37 UTC (rev 1544) +++ trunk/openutils-mgnlgroovy/src/main/resources/net/sourceforge/openutils/mgnlgroovy/pages/GroovyShellPage.html 2009-12-27 16:47:51 UTC (rev 1545) @@ -3,46 +3,14 @@ <head> <title>Groovy Shell Page</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> - <link href="${this.request.contextPath}/.resources/admin-css/admin-all.css" type="text/css" rel="stylesheet" /> + <link href="${this.request.contextPath}/.resources/groovyshell/css/mgnladmin.css" type="text/css" rel="stylesheet" /> <link href="${this.request.contextPath}/.resources/groovyshell/css/styles.css" type="text/css" rel="stylesheet" /> <script src="${this.request.contextPath}/.resources/groovyshell/js/codepress/codepress.js" type="text/javascript"></script> - </head> - <body id="mgnl"> - <form method="post" action="" enctype="multipart/form-data"> - <div class="pageframe"> - <h3>Groovy Shell<span style="font-weight:normal;position:absolute;right:45px">groovy version <em>${this.groovyVersion!''}</em></span></h3> - <div class="warningMsg" style="width:75%;"> - <strong>Warning</strong>: the Groovy Shell potentially makes at your disposal the entire Magnolia API. - If not used properly and judiciously, this means that <strong>you could make permanent damages to your repository</strong>, - such as delete all your data. <strong>Use it at your own risk.</strong> - </div> - <br/> - <div class="formelement"> - <label for="groovyScriptFile">Upload groovy script</label> - <input type="file" name="groovyScriptFile" /> - <input type="submit" value="Upload" onclick="uploadFile()" class="mgnlControlButton" /> - </div> - <br/> - <br/> - <div class="formelement" style="height: auto"> - <label for="groovyScriptTxtArea">Groovy script</label> - <textarea id="groovyScriptTxtArea" name="groovyScriptTxtArea" rows="30" cols="120" class="codepress groovy readonly-off">${this.groovyScript!''}</textarea> - <input type="hidden" name="groovyScript" id="groovyScript" value=""/> - </div> - <br/> - <input type="hidden" id="command" name="command" value="executeGroovyScript" /> - <input type="submit" id="runBtn" value="Run" onclick="warnBeforeSubmit(); return false" class="mgnlControlButton" style="margin-left:200px"/> - </div> - </form> - [#if message?exists] - <hr /> - <pre id="infoMsg">${message}</pre> - [/#if] - - <script type="text/javascript"> + <script type="text/javascript"> + // <![[ function uploadFile(){ document.getElementById('command').value='loadGroovyScript' - document.forms[0].submit() + document.forms[0].submit() } function warnBeforeSubmit(){ if(confirm('Are you sure you want to run this script?')){ @@ -50,11 +18,61 @@ document.getElementById('groovyScript').value = groovyScriptTxtArea.getCode() document.getElementById('runBtn').disabled=true document.getElementById('infoMsg').innerHTML = '' - document.forms[0].submit() + document.forms[0].submit() } else - return false + return false } - </script> + // ]]> + </script> + </head> + <body class="ma"> + <div class="ma-frame"> + <form method="post" action="" enctype="multipart/form-data"> + <h2> + Groovy Shell + <a target="_blank" href="http://www.openmindonline.it" style="position:absolute;right:45px;"> + <img class="omlogo" alt="openmind" src="${this.request.contextPath}/.resources/groovyshell/img/openmind-logo.png" /> + </a> + </h2> + <div class="ma-framecenter"> + <div class="ma-warning"> + <strong>Warning</strong> + : the Groovy Shell potentially makes at your disposal the entire Magnolia API. If not used properly and + judiciously, this means that + <strong>you could make permanent damages to your repository</strong> + , such as delete all your data. + <strong>Use it at your own risk.</strong> + </div> + <div class="ma-formel-container"> + <div class="ma-formel-left"> + <label for="groovyScriptFile">Upload groovy script</label> + </div> + <div class="ma-formel-right"> + <input type="file" name="groovyScriptFile" /> + <input type="submit" value="Upload" onclick="uploadFile()" class="mgnlControlButton" /> + </div> + </div> + <div class="ma-formel-container"> + <div class="ma-formel-right"> + <textarea id="groovyScriptTxtArea" name="groovyScriptTxtArea" rows="30" cols="120" style="width:100%" + class="codepress groovy readonly-off">${this.groovyScript!''}</textarea> + <input type="hidden" name="groovyScript" id="groovyScript" value="" /> + </div> + </div> + <input type="hidden" id="command" name="command" value="executeGroovyScript" /> + [#if message?exists] + <pre class="ma-info">${message}</pre> + [/#if] + </div> + <div class="ma-framefooter"> + <div class="ma-framefooterinner"> + <div class="ma-buttons"> + <input type="submit" id="runBtn" value="Run" onclick="warnBeforeSubmit(); return false" class="mgnlControlButton" /> + </div> + </div> + </div> + </form> + </div> </body> </html> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |