New save flow

This makes the save buttons on WidgyPages specific to the page's status (draft or published) and automatically manages commit status based on these buttons.

### Without review queue

- Creating a new page: Save
- Draft: Save as Draft (saves mezzanine content), Publish (saves, makes a commit)
- Published: Publish changes (saves, commits)

### with review queue
- Create a new page: Save
- Draft: Save as Draft, Submit for Review, Publish
- Published: Submit for Review, Publish changes

![image](https://cloud.githubusercontent.com/assets/421710/3959152/0b7ee65a-2728-11e4-8cfe-da34d3bc5190.png)

Depends on #240. Still needs code clean up and tests.
That's not supported.


 *Gavin Wahl*, Programmer
 fusionbox*▝*
 o: 303.952.7490
www.fusionbox.com
<http://www.fusionbox.com/?utm_source=fb%2Bemail&utm_medium=email&utm_campaign=email%2Btracking>

This information is confidential and intended solely for the use
of the individual or entity to whom it is addressed. If you have
received this email in error please notify the sender.

On Mon, Sep 8, 2014 at 11:40 AM, Antoine Catton <notifications@github.com>
wrote:

> In
> widgy/contrib/widgy_mezzanine/templates/widgy/widgy_mezzanine/widgypage_change_form.html:
>
> > +
> > +{% block object-tools %}
> > +  {% if change %}
> > +    <ul class="object-tools">
> > +    {% if original.status == 2 %}
> > +      <li><a href="unpublish/">Unpublish</a></li>
> > +    {% endif %}
> > +    {% get_action_links original original.root_node.working_copy as links %}
> > +    {% for link in links %}
> > +      <li><a class="{{ link.type }}" target="_blank" href="{{ link.url }}">{{ link.text }}</a></li>
> > +    {% endfor %}
> > +    {% if has_add_permission %}
> > +      <li><a class="widgy-fancybox" href="clone/">Clone</a></li>
> > +    {% endif %}
> > +    {% if history_url %}
> > +      <li><a class="historylink" target="_blank" href="{{ history_url }}">{% trans "History" %}</a></li>
>
> I don't undertand why github doesn't see this as a renaming with only this
> change, like git log master..new-saveflow -M.
>
> Anyway, I'm not sure to understand what happen if I put my own
> WIDGY_MEZZANINE_PAGE_MODEL with two widgy fields here.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/fusionbox/django-widgy/pull/241/files#r17253625>.
>