| 1 |
{INCLUDE report.tpl}
|
| 2 |
|
| 3 |
<form name="script_entry_form" method="POST" action="create.py">
|
| 4 |
<input type="hidden" name="page" value="save">
|
| 5 |
<input type="hidden" name="parent_script_id" value="{PARENT_SCRIPT_ID}" />
|
| 6 |
<!-- The form to add a new script -->
|
| 7 |
<table width="90%" class="standard_table">
|
| 8 |
<tr>
|
| 9 |
<td colspan="" class="header">{IF PARENT_SCRIPT_ID == 0}Add New Script{ELSE}Create New Version{!IF}</td>
|
| 10 |
</tr>
|
| 11 |
|
| 12 |
<tr>
|
| 13 |
<td class="standard_cell">
|
| 14 |
<font class="instructional">Name:</font><br />
|
| 15 |
<input type="text" class="text-long" name="name" value="{NAME}" {IF PARENT_SCRIPT_ID != 0}disabled{!IF} />
|
| 16 |
</td>
|
| 17 |
</tr>
|
| 18 |
|
| 19 |
<tr>
|
| 20 |
<td class="standard_cell">
|
| 21 |
<font class="instructional">Description:</font><br />
|
| 22 |
<textarea class="text" name="descr" cols="40" rows="6">{DESCR}</textarea>
|
| 23 |
</td>
|
| 24 |
</tr>
|
| 25 |
|
| 26 |
<tr>
|
| 27 |
<td class="standard_cell">
|
| 28 |
<font class="instructional">Version (numeric):</font><br />
|
| 29 |
<input type="text" class="text" name="version" value="{VERSION}" />
|
| 30 |
</td>
|
| 31 |
</tr>
|
| 32 |
|
| 33 |
<tr>
|
| 34 |
<td class="standard_cell">
|
| 35 |
<font class="instructional">Categories:</font><br />
|
| 36 |
{LOOP CATEGORY_LOOP}
|
| 37 |
<input type="checkbox" name="category_ids" value="{CATEGORY_LOOP.category_id}" /> {CATEGORY_LOOP.category_name}
|
| 38 |
<br />
|
| 39 |
{!LOOP}
|
| 40 |
</td>
|
| 41 |
</tr>
|
| 42 |
|
| 43 |
<tr>
|
| 44 |
<td class="standard_cell">
|
| 45 |
<font class="instructional">Language:</font><br />
|
| 46 |
<select name="language_id">
|
| 47 |
<option value="0">Select a Language</option>
|
| 48 |
{LOOP LANGUAGE_LOOP}
|
| 49 |
<option value="{LANGUAGE_LOOP.language_id}" {IF LANGUAGE_LOOP.language_id == LANGUAGE_ID}selected{!IF}>{LANGUAGE_LOOP.language_name}</option>
|
| 50 |
{!LOOP}
|
| 51 |
</select>
|
| 52 |
</td>
|
| 53 |
</tr>
|
| 54 |
|
| 55 |
<tr>
|
| 56 |
<td class="standard_cell">
|
| 57 |
<font class="instructional">Body:</font><br />
|
| 58 |
<textarea rows="15" style="width: 100%;" class="text" name="body">{BODY}</textarea>
|
| 59 |
</td>
|
| 60 |
</tr>
|
| 61 |
|
| 62 |
<tr>
|
| 63 |
<td class="standard_cell">
|
| 64 |
<font class="instructional">ChangeLog:</font><br />
|
| 65 |
<textarea rows="5" style="width: 100%;" class="text" name="changelog">{CHANGELOG}</textarea>
|
| 66 |
</td>
|
| 67 |
</tr>
|
| 68 |
|
| 69 |
<tr>
|
| 70 |
<td class="standard_cell">
|
| 71 |
<input type="submit" class="button" name="preview_script" value="Preview" />
|
| 72 |
|
| 73 |
<input type="submit" class="button" name="publish_script" value="Publish" />
|
| 74 |
|
| 75 |
<input type="submit" class="button" name="get_script_reviewed" value="Submit for Review" />
|
| 76 |
</td>
|
| 77 |
</tr>
|
| 78 |
</table>
|
| 79 |
|
| 80 |
|
| 81 |
</form>
|