mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-16 04:36:02 +00:00
FB_CALLLIST: added no-heading attribute (Forum: #38384)
git-svn-id: https://svn.fhem.de/fhem/trunk@8827 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
4648af6498
commit
de1a1c5b48
@ -47,7 +47,7 @@ FB_CALLLIST_Initialize($)
|
|||||||
"connection-mapping ".
|
"connection-mapping ".
|
||||||
"create-readings:0,1 ".
|
"create-readings:0,1 ".
|
||||||
"visible-columns:sortable-strict,row,state,timestamp,name,number,internal,connection,duration ".
|
"visible-columns:sortable-strict,row,state,timestamp,name,number,internal,connection,duration ".
|
||||||
"show-icons:0,1 ".
|
"show-icons:1,0 ".
|
||||||
"list-type:all,incoming,outgoing,missed-calls,completed,active " .
|
"list-type:all,incoming,outgoing,missed-calls,completed,active " .
|
||||||
"time-format-string ".
|
"time-format-string ".
|
||||||
"list-order:ascending,descending ".
|
"list-order:ascending,descending ".
|
||||||
@ -55,6 +55,7 @@ FB_CALLLIST_Initialize($)
|
|||||||
"disable:0,1 ".
|
"disable:0,1 ".
|
||||||
"disabledForIntervals ".
|
"disabledForIntervals ".
|
||||||
"do_not_notify:0,1 ".
|
"do_not_notify:0,1 ".
|
||||||
|
"no-heading:0,1 ".
|
||||||
$readingFnAttributes;
|
$readingFnAttributes;
|
||||||
|
|
||||||
$hash->{FW_detailFn} = "FB_CALLLIST_makeTable";
|
$hash->{FW_detailFn} = "FB_CALLLIST_makeTable";
|
||||||
@ -502,15 +503,21 @@ sub FB_CALLLIST_list2html($;$)
|
|||||||
|
|
||||||
my $create_readings = AttrVal($hash->{NAME}, "create-readings",0);
|
my $create_readings = AttrVal($hash->{NAME}, "create-readings",0);
|
||||||
|
|
||||||
my $ret = "";
|
|
||||||
my $td_style = "style=\"padding-left:6px;padding-right:6px;\"";
|
my $td_style = "style=\"padding-left:6px;padding-right:6px;\"";
|
||||||
my @json_output = ();
|
my @json_output = ();
|
||||||
my $line;
|
my $line;
|
||||||
|
|
||||||
my $old_locale = setlocale(LC_ALL);
|
my $old_locale = setlocale(LC_ALL);
|
||||||
$ret .= "<table><tr><td>";
|
|
||||||
$ret .= "<div class=\"devType\"><a href=\"$FW_ME$FW_subdir?detail=$name\">$alias</a>".(IsDisabled($name) ? " (disabled)" : "")."</div>" unless($FW_webArgs{"detail"});
|
my $ret .= "<table>";
|
||||||
$ret .= "</td></tr>";
|
|
||||||
|
if(AttrVal($name, "no-heading", "0") eq "0")
|
||||||
|
{
|
||||||
|
$ret .=" <tr><td>";
|
||||||
|
$ret .= "<div class=\"devType\"><a href=\"$FW_ME$FW_subdir?detail=$name\">$alias</a>".(IsDisabled($name) ? " (disabled)" : "")."</div>" unless($FW_webArgs{"detail"});
|
||||||
|
$ret .= "</td></tr>";
|
||||||
|
}
|
||||||
|
|
||||||
$ret .= "<tr><td>";
|
$ret .= "<tr><td>";
|
||||||
$ret .= "<div class=\"fhemWidget\" informId=\"$name\" cmd=\"\" arg=\"fbcalllist\" dev=\"$name\">"; # div tag to support inform updates
|
$ret .= "<div class=\"fhemWidget\" informId=\"$name\" cmd=\"\" arg=\"fbcalllist\" dev=\"$name\">"; # div tag to support inform updates
|
||||||
$ret .= "<table class=\"block fbcalllist\">";
|
$ret .= "<table class=\"block fbcalllist\">";
|
||||||
@ -1063,6 +1070,10 @@ sub FB_CALLLIST_returnTableHeader($)
|
|||||||
<br><br>
|
<br><br>
|
||||||
Possible values: a combination of <code>row,state,timestamp,name,number,internal,connection,duration</code><br>
|
Possible values: a combination of <code>row,state,timestamp,name,number,internal,connection,duration</code><br>
|
||||||
Default Value is "row,state,timestamp,name,number,internal,connection,duration" (show all columns)<br><br>
|
Default Value is "row,state,timestamp,name,number,internal,connection,duration" (show all columns)<br><br>
|
||||||
|
<li><a name="no-heading">no-heading</a> 0,1</li>
|
||||||
|
If activated the headline with a link to the detail page of the current definition will be hidden.<br><br>
|
||||||
|
Possible values: 0 => the heading line will be shown , 1 => the heading line will not be shown<br>
|
||||||
|
Default Value is 0 (the heading line will be shown)<br><br>
|
||||||
</ul>
|
</ul>
|
||||||
<br>
|
<br>
|
||||||
<a name="FB_CALLLISTevents"></a>
|
<a name="FB_CALLLISTevents"></a>
|
||||||
@ -1227,6 +1238,10 @@ sub FB_CALLLIST_returnTableHeader($)
|
|||||||
<br><br>
|
<br><br>
|
||||||
Mögliche Werte: Eine Kombination der folgenden Werte in der gewünschten Reihenfolge: <code>row,state,timestamp,name,number,internal,connection,duration</code><br>
|
Mögliche Werte: Eine Kombination der folgenden Werte in der gewünschten Reihenfolge: <code>row,state,timestamp,name,number,internal,connection,duration</code><br>
|
||||||
Standardwert ist "row,state,timestamp,name,number,internal,connection,duration" (Anzeige aller Spalten)<br><br>
|
Standardwert ist "row,state,timestamp,name,number,internal,connection,duration" (Anzeige aller Spalten)<br><br>
|
||||||
|
<li><a name="no-heading">no-heading</a> 0,1</li>
|
||||||
|
Sofern aktiviert, wird die Überschriftenzeile ausserhalb der Liste inkl. Link auf die Detail-Seite der aktuellen Definition ausgeblendet.<br><br>
|
||||||
|
Mögliche Werte: 0 => Überschriftenzeile wird angezeigt , 1 => Überschriftenzeile wird ausgeblendet<br>
|
||||||
|
Standardwert ist 1 (Überschriftenzeile wird angezeigt)<br><br>
|
||||||
</ul>
|
</ul>
|
||||||
<br>
|
<br>
|
||||||
<a name="FB_CALLLISTevents"></a>
|
<a name="FB_CALLLISTevents"></a>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user