Feature Request: AD Web GUI

General Discussion

Re: Feature Request: AD Web GUI

Postby kevin » Sat Jan 21, 2017 11:41 pm

Don't know what to tell you, it is a completely responsive interface using bootstrap3. The keypad.css isn't used anymore because there is no more specific keypad styling there. There is keypad_responsive.css (or something of the like).

Again, completely usable on my galaxy s7 as well as ipad. This is why we open source these things though, so feel free to adapt it to your needs.
Not an employee of the company. Just here to help and keep things clean.
kevin
Platinum Nut
Platinum Nut
 
Posts: 994
Joined: Fri Aug 16, 2013 10:10 am

Re: Feature Request: AD Web GUI

Postby David.B » Wed Feb 01, 2017 5:49 am

Ya, same as before. Unusable keyboard, in fact the GUI itself is also too small. e.g. the menu buttons and links on my screen.

I'll work up some more edits...
David.B
newt
newt
 
Posts: 11
Joined: Fri Dec 09, 2016 8:30 am

Re: Feature Request: AD Web GUI

Postby David.B » Wed Feb 01, 2017 7:24 am

The file you need to modify is: /opt/alarmdecoder-webapp/ad2web/static/css/datatables.min.css

Changes:

.col-sm-3{width:25%} to .col-sm-3{width:auto}
.col-sm-6{width:50%} to .col-sm-6{width:80%}

Editing this file is a huge pain it's basically one huge line! So I attached one to make it easier. if you go to edit it make sure you make a backup!


Making Backup:
Code: Select all
cp /opt/alarmdecoder-webapp/ad2web/static/css/datatables.min.css /opt/alarmdecoder-webapp/ad2web/static/css/datatables.min.css.orig


Finally unzip the attached file and copy the extracted file datatables.min.css to /opt/alarmdecoder-webapp/ad2web/static/css/ on your RPI.

You will need an application like winscp to copy the file to the RPI.

**make sure you unzip it. Don't copy the .zip file to that location.

As well this only addresses the keypad, I haven't had time to address the menus. Busy day at work...
Attachments
datatables.min.css.zip
Modified version of file for mobile devices
(20.38 KiB) Downloaded 428 times
David.B
newt
newt
 
Posts: 11
Joined: Fri Dec 09, 2016 8:30 am

Re: Feature Request: AD Web GUI

Postby kevin » Wed Feb 01, 2017 10:17 am

Good catch. Datatables aren't even used on the keypad so in the next release we just won't be loading that css file on the keypad - sorry we missed it. Should fix the issue.

Since it is an open source project, you should issue Pull Requests on github for these so we can easily merge changes in.

One thing we don't want to do is focus too much on fixes just for iphone especially if it's going to make the experience worse for others on other devices, wish we had one in house to test.
Not an employee of the company. Just here to help and keep things clean.
kevin
Platinum Nut
Platinum Nut
 
Posts: 994
Joined: Fri Aug 16, 2013 10:10 am

Re: Feature Request: AD Web GUI

Postby David.B » Wed Feb 01, 2017 11:06 am

kevin wrote:Good catch. Datatables aren't even used on the keypad so in the next release we just won't be loading that css file on the keypad - sorry we missed it. Should fix the issue.

Since it is an open source project, you should issue Pull Requests on github for these so we can easily merge changes in.

One thing we don't want to do is focus too much on fixes just for iphone especially if it's going to make the experience worse for others on other devices, wish we had one in house to test.



Right, I just used the logic to maximize it to the screen as much as possible (should be universal). In my case it was on a Samsung Galaxy S5. Not even an IOS device.

Tweaks also need to be made to the menus, as they are too small as well.

I can contribute back to the repo directly in the future. As it would actually make things a lot easier for people to auto update too.
David.B
newt
newt
 
Posts: 11
Joined: Fri Dec 09, 2016 8:30 am

Re: Feature Request: AD Web GUI

Postby kevin » Wed Feb 01, 2017 11:24 am

Instead of modifying the css file, please add this to keypad template file:

Code: Select all
{% block permanent_css %}
<link rel="stylesheet" href="{{ url_for('static', filename='bootstrap3/css/bootstrap.min.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap.toggle.min.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='css/main_responsive.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='css/user_custom.css') }}">
{% endblock %}


This will remove datatables references totally from the template so the referenced styles shouldn't apply.
Not an employee of the company. Just here to help and keep things clean.
kevin
Platinum Nut
Platinum Nut
 
Posts: 994
Joined: Fri Aug 16, 2013 10:10 am

Re: Feature Request: AD Web GUI

Postby kevin » Wed Feb 01, 2017 11:29 am

Sorry to double post but we're pushing a maintenance release with these fixes as well as fixes for sending keys. To use the updater, any pending changes must be undone.

git checkout -- <edited_file>
Not an employee of the company. Just here to help and keep things clean.
kevin
Platinum Nut
Platinum Nut
 
Posts: 994
Joined: Fri Aug 16, 2013 10:10 am

Previous

Return to General

Who is online

Users browsing this forum: No registered users and 2 guests