Implement front end to LJ::Support::define_cat

- Consolidates changes to table supportcat.

- Adds new priv.

- Basic form content and processing.

Fixes #965

I think we'll have to modify it so that it's label + textfield on the
left (one column), additional text on the right (another column). That
should keep most of what you wanted out of the grid structure -- the
ability to have the additional help text not take over the right side on
smaller screens, while still letting you use the form.* things, which
I'd like to highly encourage.


(Although, I wouldn't be averse to going very vertical either, if we cut
down on some of the length of the hint text)


On Sun, Nov 2, 2014, at 01:22 AM, Pau Amma wrote:
> In views/admin/supportcat/category.tt:


> > +    [% dw.form_auth %]
> +    <input type="hidden" name="newcat" value="[% newcat | html %]" />
> +    [% IF newcat %]
> +        <div class="row"><div class="column"><label for="catkey">[%
>          '.field.catkey.label' | ml %]</label></div>
> +        <div class="small-12 medium-4 large-4 column"><input
>          type="text" name="catkey" id="catkey" maxlength="25"
>          value="[% cat.catkey | html %]" /></div>
> +        <div class="small-12 medium-8 large-8 column"><small>[%
>          '.field.catkey.note' | ml %]</small></div></div>
> +    [% ELSE %]
> +        <input type="hidden" name="catkey" id="catkey" value="[%
>          cat.catkey | html %]" />
> +    [% END %]
> +    <div class="row"><div class="column"><label for="catname">[%
>      '.field.catname.label' | ml %]</label></div>
> +    <div class="small-12 medium-4 large-4 column"><input type="text"
>      name="catname" id="catname" maxlength="80" size="50" value="[%
>      cat.catname | html %]" /></div>
> +    <div class="small-12 medium-8 large-8 column"><small>[%
>      '.field.catname.note' | ml %]</small></div></div>
> +    <div class="row"><div class="column"><label for="sortorder">[%
>      '.field.sortorder.label' | ml %]</label></div>
> +    <div class="small-12 medium-4 large-4 column"><input type="text"
>      name="sortorder" id="sortorder" maxlength="8" value="[%
>      cat.sortorder | html %]" /></div>
> +    <div class="small-12 medium-8 large-8 column"><small>[%
>      '.field.sortorder.note' | ml %]</small></div></div>
> +    <div class="row"><div class="column"><label for="basepoints">[%
>      '.field.basepoints.label' | ml %]</label></div> What will this do
>      to the grid structure we agreed on?


> — Reply to this email directly or view it on GitHub[1].




Links:

  1. https://github.com/dreamwidth/dw-free/pull/1022/files#r19705865