help-texts: add

users with permission edit_help_texts are allowed to select edit help
texts from menu and enter texts for all event fields. Other users will
see help texts as tooltips. This allows to provide help to users
depending on your workflow. help texts are saved by project and studio.
This commit is contained in:
Milan
2023-03-20 23:09:11 +01:00
parent 6e2a04dd94
commit 8c80c55011
16 changed files with 447 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
<script src="js/edit-help-texts.js" type="text/javascript"></script>
<link rel="stylesheet" href="css/edit-help-texts.css" type="text/css" />
<TMPL_LOOP tables>
Table <TMPL_VAR name>
<table>
<TMPL_LOOP columns>
<tr>
<form action="help-texts.cgi" method=post>
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>">
<input type="hidden" name="table" value="<TMPL_VAR table>">
<input type="hidden" name="column" value="<TMPL_VAR column>">
<td><TMPL_VAR column></td>
<td><textarea name="text" style="width:80ch;height:8rem;"><TMPL_VAR value></textarea></td>
<td><input type="submit" name="action" value="save"></td>
</form>
</tr>
</TMPL_LOOP>
</table>
</TMPL_LOOP>