<p>This makes apps permanent by default, and restricts text input fields to 254 max characters. To test:</p>

<ol>
<li>Flash node and make it a gateway</li>
<li>Try to input more than 254 chars in any text field (should not work)</li>
<li>Try to input a port > 5 chars and a ttl > 2 chars (should not work)</li>
<li>Add an app with a description and name and icon URL of 254 chars, port = 80, and URL/ipaddr = <a href="http://google.com/12345678901234567890">http://google.com/12345678901234567890</a>... (fill up max 254 chars). This should succeed.</li>
<li>Now edit this app, and uncheck the permanent box. Save the app.</li>
<li>Edit the app again, and the permanent checkbox should be unchecked.</li>
</ol>

<hr>

<h4>You can merge this Pull Request by running</h4>
<pre>  git pull https://github.com/opentechinstitute/luci-commotion-apps field-length</pre>
<p>Or view, comment on, or merge it at:</p>
<p>  <a href='https://github.com/opentechinstitute/luci-commotion-apps/pull/36'>https://github.com/opentechinstitute/luci-commotion-apps/pull/36</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>added controls for keeping TXT fields and name field under 255 chars</li>
  <li>apps permanent by default</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/opentechinstitute/luci-commotion-apps/pull/36/files#diff-0">lua/luci/controller/commotion/apps_controller.lua</a>
    (10)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/opentechinstitute/luci-commotion-apps/pull/36/files#diff-1">lua/luci/view/commotion/apps_form.htm</a>
    (14)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/opentechinstitute/luci-commotion-apps/pull/36.patch'>https://github.com/opentechinstitute/luci-commotion-apps/pull/36.patch</a></li>
  <li><a href='https://github.com/opentechinstitute/luci-commotion-apps/pull/36.diff'>https://github.com/opentechinstitute/luci-commotion-apps/pull/36.diff</a></li>
</ul>