feature: use an X to show offline status instead of orange circle
This commit is contained in:
@@ -67,4 +67,6 @@ class GenerateForm(forms.Form):
|
||||
defaultManual = forms.CharField(widget=forms.Textarea, required=False)
|
||||
overrideManual = forms.CharField(widget=forms.Textarea, required=False)
|
||||
|
||||
cycleMonitor = forms.BooleanField(initial=False, required=False)
|
||||
#custom added features
|
||||
cycleMonitor = forms.BooleanField(initial=False, required=False)
|
||||
xOffline = forms.BooleanField(initial=False, required=False)
|
||||
@@ -214,7 +214,8 @@
|
||||
{{ form.defaultManual }}<br><br>
|
||||
<label for="{{ form.overrideManual.id_for_label }}">Override settings</label><br>
|
||||
{{ form.overrideManual }}<br><br>
|
||||
<label for="{{ form.cycleMonitor.id_for_label }}">{{ form.cycleMonitor }} Add a button to cycle through available monitors to the minimized toolbar.</label>
|
||||
<label for="{{ form.cycleMonitor.id_for_label }}">{{ form.cycleMonitor }} Add a button to cycle through available monitors to the minimized toolbar.</label><br>
|
||||
<label for="{{ form.xOffline.id_for_label }}">{{ form.xOffline }} Display an X for offline devices in the addressbook.</label><br>
|
||||
</div>
|
||||
</div>
|
||||
<div class="platform">
|
||||
|
||||
@@ -24,6 +24,7 @@ def generator_view(request):
|
||||
version = form.cleaned_data['version']
|
||||
delayFix = form.cleaned_data['delayFix']
|
||||
cycleMonitor = form.cleaned_data['cycleMonitor']
|
||||
xOffline = form.cleaned_data['xOffline']
|
||||
server = form.cleaned_data['serverIP']
|
||||
key = form.cleaned_data['key']
|
||||
apiServer = form.cleaned_data['apiServer']
|
||||
@@ -157,6 +158,7 @@ def generator_view(request):
|
||||
extras['version'] = version
|
||||
extras['rdgen'] = 'true'
|
||||
extras['cycleMonitor'] = 'true' if cycleMonitor else 'false'
|
||||
extras['xOffline'] = 'true' if xOffline else 'false'
|
||||
extra_input = json.dumps(extras)
|
||||
|
||||
####from here run the github action, we need user, repo, access token.
|
||||
|
||||
Reference in New Issue
Block a user