Supply buttons for days not active selection

WIP
This commit is contained in:
stevenA 2022-02-01 15:00:18 +01:00
parent 6297285e58
commit 70e972b786
2 changed files with 12 additions and 10 deletions

View file

@ -570,14 +570,17 @@ and open the template in the editor. Base Version before all crash :-)
<page_group name="sccp_dev_vendor_display_conf"> <page_group name="sccp_dev_vendor_display_conf">
<label>Device Display Settings</label> <label>Device Display Settings</label>
<item type="IE" id="3" seq="98"> <item type="IS" id="3" seq="98">
<label>Days Display Not Active</label> <label>Days Display Not Active</label>
<input> <name>daysdisplaynotactive</name>
<name>daysdisplaynotactive</name> <default>off</default>
<default></default> <button value="1">Sun</button>
<class>sccp-custom</class> <button value="2">Mon</button>
<options placeholder="1,7" /> <button value="3">Tue</button>
</input> <button value="4">Wed</button>
<button value="5">Thu</button>
<button value="6">Fri</button>
<button value="7">Sat</button>
<help>Comma separated list of days that the phone's display is not active and will be automatically turned off after the time specified by "displayIdleTimeout" has elapsed (1 - Sunday, 7 - Saturday)</help> <help>Comma separated list of days that the phone's display is not active and will be automatically turned off after the time specified by "displayIdleTimeout" has elapsed (1 - Sunday, 7 - Saturday)</help>
</item> </item>
<item type="IE" id="3" seq="98"> <item type="IE" id="3" seq="98">
@ -634,7 +637,6 @@ and open the template in the editor. Base Version before all crash :-)
<page_group name="sccp_dev_vendor_conf"> <page_group name="sccp_dev_vendor_conf">
<label>Device Vendor Settings</label> <label>Device Vendor Settings</label>
<item type="IS" id="6" seq="98"> <item type="IS" id="6" seq="98">
<name>videocapability</name> <name>videocapability</name>
<label>Video Capability</label> <label>Video Capability</label>
@ -643,7 +645,6 @@ and open the template in the editor. Base Version before all crash :-)
<button value="on">Enabled</button> <button value="on">Enabled</button>
<help></help> <help></help>
</item> </item>
<item type="IS" id="6" seq="98"> <item type="IS" id="6" seq="98">
<name>webadmin</name> <name>webadmin</name>
<label>Web Admin</label> <label>Web Admin</label>

View file

@ -463,7 +463,8 @@ class formcreate
} else {$val_check = "";} } else {$val_check = "";}
} else {$val_check = "";} } else {$val_check = "";}
} }
echo "<input type=radio name= {$res_id} id=${res_id}_{$i} value='{$value[@value]}' {$val_check} {$opt_hide} {$opt_disabled}>"; $tmpName = ($res_id == 'sccpdevice_daysdisplaynotactive') ? "${res_id}_{$i}" : $res_id;
echo "<input type=radio name= {$tmpName} id=${res_id}_{$i} value='{$value[@value]}' {$val_check} {$opt_hide} {$opt_disabled}>";
echo "<label for= {$res_id}_{$i}>{$value}</label>"; echo "<label for= {$res_id}_{$i}>{$value}</label>";
$i++; $i++;
} }