<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Improved usability for mobiles & phablets]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7287&amp;type=atom" />
	<updated>2018-02-23T20:41:19Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=7287</id>
		<entry>
			<title type="html"><![CDATA[Re: Improved usability for mobiles & phablets]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30883#p30883" />
			<content type="html"><![CDATA[<p>@cambell demo site <a href="https://colombiaonline.net.co/sbox/fa/tmin/index.php">here</a> with no changes to core or added js, only changes made to default.css and renderer.php<br />Very much WIP as a test to see what is possible; with very little styling, mainly structure: Works fine down to just over 300px wide for the following pages only:-</p><p>Sales:-<br />Transactions<br />Sales Quotation Entry<br />Sales Order Entry<br />Direct Delivery<br />Direct Invoice</p><p>Maintenance<br />Add and Manage Customers<br />Customer Branches</p><p>Purchases:-<br />Transactions<br />Purchase Order Entry<br />Direct GRN<br />Direct Supplier Invoice</p><p>Maintenance<br />Suppliers</p><p>Items &amp; Inventory:-<br />Maintenance<br />Items</p><p>Setup:-<br />Preferences</p><p>Scale down to 300px ish add some item rows in either sales or purchases and see what happens</p><p>username: demo<br />Password: password</p><p>Comments and feedback welcome</p>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2018-02-23T20:41:19Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30883#p30883</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Improved usability for mobiles & phablets]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30720#p30720" />
			<content type="html"><![CDATA[<p>@poncho, yes with some modifications to the core the same method could be used for the ui files.&nbsp; That is what <a href="https://github.com/FrontAccountingERP/FA/pull/8">this pull request implements</a>.&nbsp; Once this has been done then a theme can override the default &#039;classic&#039; ui markup by adding a new implementation of the ui files along with the theme.&nbsp; An example of this technique is shown in this <a href="https://github.com/cambell-prince/frontaccounting-theme-bootstrap">Bootstrap 3 theme</a>.</p><p>If this PR were included it would then be possible to have say a Bootstrap 4 renderer and a Material renderer be available as plugins (and then perhaps incorporated in the core once proven) and a whole set of Bootstrap and / or Material themes could then be very easily created.</p>]]></content>
			<author>
				<name><![CDATA[cambell]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19447</uri>
			</author>
			<updated>2018-02-05T03:06:11Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30720#p30720</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Improved usability for mobiles & phablets]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30691#p30691" />
			<content type="html"><![CDATA[<p>@apmuthu Added to <a href="https://frontaccounting.com/fawiki/index.php?n=Help.AccessSetup">Wiki</a> &amp; <a href="https://frontaccounting.com/fawiki/index.php?n=Help.Users"> here </a></p><br /><p>@campbell Yes you do need js sometimes, the examples you&#039;ve given could be retained. The point I was making is that, rather than add complexity to the js and therefore the core, surely it is better to get additional UI features etc from css leaving the core untouched.</p><p>Currently if you change a report or the report header files you put the modified file in the relevant company/x/reporting folder and this is used instead of the core version; this leaves the core untouched. </p><p>Probably not the 1st to have had the idea, but is it possible to use the same method for the ui files?</p>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2018-02-01T14:57:31Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30691#p30691</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Improved usability for mobiles & phablets]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30678#p30678" />
			<content type="html"><![CDATA[<p>@poncho1234 bootstrap 4 only uses js for the components which are optional.&nbsp; All layout / responsive grid is entirely css only.&nbsp; When using SCSS / SASS to build the styles the framework is not bloated in my opinion.&nbsp; It provides a clean enough implementation of the grid system using flex box (since BS4 alpha 6).</p><p>js would still be required for components, like the date picker for example or tabs.</p><p>It would be interesting to hear what the FA devs think about such things.&nbsp; As you say there&#039;s not been much interest in supporting FA on mobile / tablets.</p>]]></content>
			<author>
				<name><![CDATA[cambell]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19447</uri>
			</author>
			<updated>2018-01-30T08:45:41Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30678#p30678</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Improved usability for mobiles & phablets]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30670#p30670" />
			<content type="html"><![CDATA[<p>@campbell</p><p>I completely agree that FA needs a html framework.<br />Does that framework need to be bootstrap? IMHO No, its bloated and relies on js; and from what I&#039;ve read on here (or not read) has little support from the devs.</p><p>Perhaps FA devs would be more willing to change to a purely css framework? No js.</p><p>There is so much you can do just in css now, js use is decreasing as css functionality increases. Even css has its own grid system now!</p>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2018-01-30T00:25:37Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30670#p30670</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Improved usability for mobiles & phablets]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30669#p30669" />
			<content type="html"><![CDATA[<p>@apmuthu it was just a &#039;quick and dirty&#039; solution<br />Good point about SwiftKey, I didn&#039;t know that, thank you.</p>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2018-01-30T00:11:23Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30669#p30669</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Improved usability for mobiles & phablets]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30617#p30617" />
			<content type="html"><![CDATA[<p>I&#039;m responsible for one of the forks that has morphed FA considerably.&nbsp; The code is still <a href="https://github.com/FrontAccountingERP/FA/pull/8">available on GitHub</a>.</p><p>One thing attracted me as a developer to FrontAccounting was the way in which the page views used ui functions to do all (well almost all) their rendering of html.&nbsp; Because of this, all that is required to change the markup for every view is the 4 (or so) ui files.&nbsp; To take advantage of current html markup frameworks, like Bootstrap or Material, the html does need to change.&nbsp; Supporting multiple markup systems is easy, it just needs different implementations of the 4 (or so) ui files.&nbsp; With a small amount of refactoring multiple markup systems can be supported at the same time.&nbsp; This is polymorphism using classes, a very ordinary object oriented programming concept.</p><p>The modifications really are quite minor, the new ui classes diff very well against the existing ui functions.&nbsp; Names are the same, parameters are the same so it is quite easy to keep the classes up to date.&nbsp; I recently brought the code up to date with 2.4.3 and Bootstrap 4.</p><p>If that PR were to make it in to the core it then make it possible to safely experiment with new markup for new frameworks without breaking anything. e.g. Support for Bootstrap 4 could be introduced while still having Bootstrap 3 be the default, and so on.</p><p>There are two other ways that themes can introduce themes based on modern markup frameworks like Bootstrap.</p><p>1. Change the HTML on the fly with Javascript.&nbsp; Change tags, add classes, remove classes and have a theme that works with the modified html.</p><p>2. Change the markup framework so it works specifically with FA&#039;s existing markup.&nbsp; I&#039;ve seen this done by some FA themes.&nbsp; This is a lot of work essentially duplicating the work that went into creating Bootstrap (but easier - its based from it).&nbsp; This is difficult to do well I think, its also difficult to incorporate new features from the ui framework.</p><p>I&#039;m available to help (at no cost) should the developers want to incorporate this feature.</p>]]></content>
			<author>
				<name><![CDATA[cambell]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19447</uri>
			</author>
			<updated>2018-01-25T03:04:37Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30617#p30617</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Improved usability for mobiles & phablets]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30616#p30616" />
			<content type="html"><![CDATA[<p>It is best to make mobile themes self sufficient instead of tinkering with the FA core. The FA core can abstract hardcoded constructs in it into the theme where pertinent. Some elements will need different widths / font sizes to accommodate strings in other languages.</p><p><a href="https://play.google.com/store/apps/details?id=com.touchtype.swiftkey">Swiftkey</a> for Android auto injects emoicons based on context which will not be suitable for FA.</p><p>A mobile/responsive theme is available in some forks which have morphed FA considerably making it difficult to keep updating it when the core changes.</p><p>Creating additional user roles can be documented in the wiki with intent and purpose explained.</p><p>@joe: The viewport can be added if it does not violate strict browser settings.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2018-01-25T02:02:36Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30616#p30616</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Improved usability for mobiles & phablets]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30613#p30613" />
			<content type="html"><![CDATA[<p>Add the following line in:- </p><p>File: access\login.php</p><div class="codebox"><pre><code>62:   echo &quot;&lt;meta name=&#039;viewport&#039; content=&#039;width=device-width, height=device-height, initial-scale=1.0&#039;&gt; \n&quot;;</code></pre></div><p>And also in:-</p><p>File: includes\page\header.inc</p><div class="codebox"><pre><code>145:  echo &quot;&lt;meta name=&#039;viewport&#039; content=&#039;width=device-width, height=device-height, initial-scale=1.0&#039;&gt; \n&quot;;</code></pre></div><p>@joe @itronics @apmuhu<br />As you probably know this will not make any changes to viewing FrontAccounting on a PC or laptop so you may want to include it in the core? It is also good practice to have a ‘viewport’ defined.</p><p><strong>It only works if you hold you phone horizontally</strong></p><p><span class="bbu">Additional setup and changes to increase usability for mobiles</span></p><p>Create an additional user &amp; user role, restrict access to menu items that you will need when travelling such as:-</p><p>Sales Invoices<br />Purchase Invoices<br />Add customer<br />Add supplier<br />Items<br />Reports</p><p><strong>Hide unused menu items in config.php</strong></p><p>Copy and paste a theme – rename for example mobileonly:- Some small changes to the css can make a big difference such as:-</p><p>Increasing font size and line height for menu items<br />Decreasing widths of dropdown menus, input boxes, date boxes, text boxes, etc.</p><p>Use a ‘split keyboard&#039; <s>such as ‘SwiftKey Keyboard’ available here <a href="https://play.google.com/store/apps/details?id=com.touchtype.swiftkey">https://play.google.com/store/apps/deta … e.swiftkey</a> </s>you can make the keyboard smaller and a split keyboard makes it easier to type with your thumbs in horizontal mode.<br />You could also try a semi-transparent keyboard</p><p>Please note: Its not perfect, but you can now create invoices etc. on the move - hope it helps someone.</p>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2018-01-24T20:55:55Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30613#p30613</id>
		</entry>
</feed>
