discourse-legacysite-perl/site/glist/templates/gossamer/plugin_wizard_step4.html

73 lines
3.1 KiB
HTML
Raw Permalink Normal View History

2024-06-17 12:24:05 +00:00
<table border="1" cellpadding="0" cellspacing="0">
<tr>
<td>
<table border="0" cellpadding="3" width="500">
<tr class=body>
<td class=body>
<form method="POST" action="glist.cgi">
<input type="hidden" name="do" value="admin_page" />
<input type="hidden" name="pg" value="plugin_wizard.html" />
<input type="hidden" name="plugin_name" value="<%plugin_name%>" />
<input type="hidden" name="plugin_wiz_do" value="step5" />
Now you need to decide what menu options, if any, you want to be displayed
to the user. If you provide admin menu options, for the user to interact with
the plugin, you should provide the name you want displayed, and the URL
you want it to go to.
<p class=body>To run a function in your code, the URL should look like:<br /><br />
&nbsp;&nbsp;&nbsp;plugin.cgi?do=plugin&plugin=<%plugin_name%>&func=yourfunc<br /><br />
This will run the function called <i>yourfunc</i>. You are responsible for printing
headers and any output you want.</p>
<%if error%>
<p class=body><font color="red"><%error%></font></p>
<%endif%>
<%if results%>
<p class=body><font color="green"><%results%></font></p>
<%endif%>
<%if menu%>
<p class=body>Existing Options:<br /><br /><%menu%></p>
<p align="right" class=body><input type="submit" value="Delete Checked" class=button name="delete_btn" /></p>
<%endif%>
<p class=body>Add New Menu:</p>
<table border="1" cellpadding="3" width="100%" bordercolor="#C0C0C0" cellspacing="0">
<tr class=body>
<td width="120" class=body>Name</td>
<td><input type="text" name="name" size="40" class=object /></td>
</tr>
<tr class=body>
<td width="120" class=body>URL</td>
<td><input type="text" class=object name="url" value="glist.cgi?do=admin_plugin&plugin=<%plugin_name%>&func=" size="40" /></td>
</tr>
</table>
<p align="right"><input type="submit" value="Add New Option" class=button name="add_btn" />
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
<form method="POST" action="glist.cgi">
<input type="hidden" name="do" value="admin_page" />
<input type="hidden" name="pg" value="plugin_wizard.html" />
<input type="hidden" name="plugin_name" value="<%plugin_name%>" />
<input type="hidden" name="plugin_wiz_do" value="step5" />
<%if sid%>
<input type=hidden name="sid" value="<%sid%>" />
<%endif%>
<table border="1" cellpadding=0 cellspacing=0>
<tr>
<td>
<table border=0 width=500>
<tr>
<td align=center>
<input type="submit" value="Next >>" name="next" class=button />
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>