Katello/katello — pull request #713 by bbuckingham (2012-09-19 20:29:37+00:00)
Title: object labels - by default, assign label by 'labelizing' the object name

This is an initial pull request to facilitate assigning the label when
a user creates a new object (org/env/product/repo) in the UI. The
default assignment will be by running the model_utils::labelize
on the object name. This will change in the future to use
punycode (or alternative); however, the UI behavior will remain
regardless of algorithm use to derive the label.

The following is the general UI behavior:
1. user clicks the appropriate link to open a new object form (e.g. org)
2. the label input and save button are disabled
3. user clicks on 'name', enters a value and leaves the input box
4. browser initiates an ajax request to server to request a default
value for the label
5. once received, browser sets the label, enables it and enables
the save button

If desired, the user may edit the name. Doing so, will disable
the label input, save button and repeat 3-5.

If the user doesn't like the default label, they may change it,
so long as it follows the 'validation' requirements.