CGI-Application-Plugin-AJAXUpload
view release on metacpan or search on metacpan
example/httpdocs/css/editor.css view on Meta::CPAN
form {
border: thin solid black;
margin: 2em;
}
fieldset {
display: table;
}
legend, h2 {
width: 100%;
font-weight: bold;
text-align: center;
}
.form_control {
width: 100%;
display: table-row;
}
example/templates/one.tmpl view on Meta::CPAN
<script type="text/javascript" src="http://yui.yahooapis.com/2.8.1/build/connection/connection-min.js"></script>
<script type="text/javascript" src="http://yui.yahooapis.com/2.8.1/build/json/json-min.js"></script>
<script type="text/javascript" src="http://yui.yahooapis.com/2.8.1/build/button/button-min.js"></script>
<script type="text/javascript" src="http://yui.yahooapis.com/2.8.1/build/editor/editor-min.js"></script>
<script type="text/javascript" src="/js/editor.js"></script>
</head>
<body>
<form action="/cgi-bin/template.cgi" method="post">
<fieldset>
<legend>Article</legend>
<label class="form_control"><span class="label">Title: <TMPL_VAR NAME="err_title"></span><input type="text" name="title" id="input_title" maxlength="255" value=""/></label>
<label class="form_control yui-skin-sam"><span class="label">Body: <TMPL_VAR NAME="err_body"></span><textarea name="body" id="body" cols="100" rows="10"></textarea></label>
<input type="submit" value="Submit changes" class="form_control"/>
<input type="hidden" value="two" name="rm"/>
<TMPL_IF NAME="err__"><p class="form_control">Please correct these errors.</p></TMPL_IF>
</fieldset>
</form>
</body>
</html>
( run in 1.054 second using v1.01-cache-2.11-cpan-49f99fa48dc )