Commit b001647c authored by Jeffrey Shell's avatar Jeffrey Shell

Changed arguments list widget to a TEXTAREA

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