Commit b001647c authored by Jeffrey Shell's avatar Jeffrey Shell

Changed arguments list widget to a TEXTAREA

parent 5845e4b3
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<BODY BGCOLOR="#FFFFFF" LINK="#000099" VLINK="#555555"> <BODY BGCOLOR="#FFFFFF" LINK="#000099" VLINK="#555555">
<H2>Add a SQL Method</H2> <H2>Add a SQL Method</H2>
<!--#if SQLConnectionIDs--> <dtml-if SQLConnectionIDs>
<P> <P>
A SQL Method allows you to access a SQL database. For more A SQL Method allows you to access a SQL database. For more
information see the information see the
...@@ -29,15 +29,17 @@ which the SQL Method will execute. ...@@ -29,15 +29,17 @@ which the SQL Method will execute.
<td align='LEFT'><input name="title" size="40"></td></tr> <td align='LEFT'><input name="title" size="40"></td></tr>
<tr> <th align='LEFT'>Connection id</th> <tr> <th align='LEFT'>Connection id</th>
<td align='LEFT'><select name="connection_id"> <td align='LEFT'><select name="connection_id">
<!--#in SQLConnectionIDs--> <dtml-in SQLConnectionIDs>
<option value="<!--#var sequence-item html_quote-->"> <option value="&dtml-sequence-item;">
<!--#var sequence-key--></option> <dtml-var sequence-key></option>
<!--#/in--> </dtml-in>
</select></td></tr> </select></td></tr>
<tr> <th align='LEFT'><em>Arguments<em></th> <tr valign="top"> <th align='LEFT'><em>Arguments<em></th>
<td align='LEFT'><input name="arguments" size="40"></td></tr> <td align='LEFT'>
<textarea name="arguments" cols="40" rows="4"></textarea>
<!--<input name="arguments" size="40">--></td></tr>
<tr> <td colspan=2 align='LEFT'><strong>Query template</strong><br> <tr> <td colspan=2 align='LEFT'><strong>Query template</strong><br>
<textarea name="template:text" rows=9 cols=50>select * <textarea name="template:text" rows=9 cols=50 wrap="off">select *
from data</textarea></td></tr> from data</textarea></td></tr>
<tr><td colspan=2> <tr><td colspan=2>
...@@ -51,11 +53,12 @@ from data</textarea></td></tr> ...@@ -51,11 +53,12 @@ from data</textarea></td></tr>
</form> </form>
<!--#else--> <dtml-else>
<em><strong>Warning:</strong> <em><strong>Warning:</strong>
There are no SQL database connections. You need There are no SQL database connections. You need
to add a Zope SQL database connection to add a Zope SQL database connection
before you can use a Zope SQL Method. before you can use a Zope SQL Method.
</em> </em>
<!--#/if--> </dtml-if>
</body></html> </body></html>
...@@ -34,9 +34,9 @@ ...@@ -34,9 +34,9 @@
<!--#var sequence-key--></option> <!--#var sequence-key--></option>
<!--#/in--> <!--#/in-->
</select></td></tr> </select></td></tr>
<tr> <th align='LEFT'><em>Arguments</em></th> <tr valign="top"><th align='LEFT'><em>Arguments</em></th>
<td align='LEFT'><input name="arguments" size="40" <td align='LEFT'>
value="<!--#var arguments_src fmt=html-quote-->"></td> <textarea name="arguments" cols="40" rows="4">&dtml-arguments_src;</textarea></td>
</tr> </tr>
<tr> <td colspan=2 align='LEFT'><strong>Query template</strong><br> <tr> <td colspan=2 align='LEFT'><strong>Query template</strong><br>
<textarea name="template:text" <textarea name="template:text"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment