mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Added 'fix text' flag
SVN revision: 949
This commit is contained in:
parent
cfb1290978
commit
0885a5420d
@ -1091,6 +1091,27 @@ ID display = TAG-$message id
|
||||
would display the entry ID as "TAG-1","TAG-2", ... and so on.
|
||||
<p>
|
||||
|
||||
<li><b><code>Prepend on reply = <string></code></b>
|
||||
<br>
|
||||
With this option a string can be placed on top of a reply. Using string substition,
|
||||
this can be useful for adding the author and the date of a reply, like<br>
|
||||
<br>
|
||||
<code><b>Prepend on reply = Added $date by $long_name\n\n</code></b><br>
|
||||
<br>
|
||||
where "\n" causes a line break.
|
||||
<p>
|
||||
|
||||
<li><b><code>Apend on reply = <string></code></b>
|
||||
<br>
|
||||
Same as before, but gets added after the previous entry.
|
||||
<p>
|
||||
|
||||
<li><b><code>Prepend on edit = <string></code></b>
|
||||
<li><b><code>Apend on edit = <string></code></b>
|
||||
</br>
|
||||
Same as before, but for editing entries.
|
||||
<p>
|
||||
|
||||
</UL>
|
||||
|
||||
<a name="conditional"><hr>
|
||||
@ -1642,27 +1663,6 @@ in a browser, in which case the stale locks still might appear.<br><br>
|
||||
|
||||
Default for "Use Lock" is <b>0</b>.<p>
|
||||
|
||||
<li><b><code>Prepend on reply = <string></code></b>
|
||||
<br>
|
||||
With this option a string can be placed on top of a reply. Using string substition,
|
||||
this can be useful for adding the author and the date of a reply, like<br>
|
||||
<br>
|
||||
<code><b>Prepend on reply = Added $date by $long_name\n\n</code></b><br>
|
||||
<br>
|
||||
where "\n" causes a line break.
|
||||
<p>
|
||||
|
||||
<li><b><code>Apend on reply = <string></code></b>
|
||||
<br>
|
||||
Same as before, but gets added after the previous entry.
|
||||
<p>
|
||||
|
||||
<li><b><code>Prepend on edit = <string></code></b>
|
||||
<li><b><code>Apend on edit = <string></code></b>
|
||||
</br>
|
||||
Same as before, but for editing entries.
|
||||
<p>
|
||||
|
||||
<li><b><code>Show top groups = 0|1</code></b>
|
||||
<br>
|
||||
When using top groups, the root of the elogd server is not accessible any more, to avoid
|
||||
@ -1671,6 +1671,13 @@ unwanted, the flag <code><b>Show top groups</b></code> can be set to <code><b>1<
|
||||
in which case a list of available top groups is shown.
|
||||
<p>
|
||||
|
||||
<li><b><code>Fix text = 0|1</code></b>
|
||||
<br>
|
||||
With this options the main text body can be fixed, so that it cannot be
|
||||
changed via the <b><code>Edit</code></b> button later. This feature can be
|
||||
useful for set-ups where some attributed must be changed later, but the
|
||||
text body should be preserved. The default is <b>0</b>.
|
||||
<p>
|
||||
|
||||
</ul><p>
|
||||
|
||||
|
||||
11
src/elogd.c
11
src/elogd.c
@ -6,6 +6,9 @@
|
||||
Contents: Web server program for Electronic Logbook ELOG
|
||||
|
||||
$Log$
|
||||
Revision 1.377 2004/07/12 08:01:15 midas
|
||||
Added 'fix text' flag
|
||||
|
||||
Revision 1.376 2004/07/09 08:13:39 midas
|
||||
Fixed problem that admin user of top group could change global section
|
||||
|
||||
@ -7259,7 +7262,13 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
||||
|
||||
if (!getcfg(lbs->name, "Show text", str)
|
||||
|| atoi(str) == 1) {
|
||||
rsprintf("<textarea rows=%d cols=%d wrap=hard name=\"Text\" onChange=\"mod();\">", height, width);
|
||||
|
||||
if (getcfg(lbs->name, "Fix text", str) && atoi(str) == 1)
|
||||
strcpy(str, " readonly");
|
||||
else
|
||||
strcpy(str, "");
|
||||
|
||||
rsprintf("<textarea rows=%d cols=%d wrap=hard %s name=\"Text\" onChange=\"mod();\">", height, width, str);
|
||||
|
||||
if (bedit) {
|
||||
if (!preset_text) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user