verypossible / atomic_cms

CMS for Atomic Asset components
1 stars 3 forks source link

Generalize form selectors #32

Closed bbrock25 closed 8 years ago

bbrock25 commented 8 years ago

Why?

Currently the javascript only supports editing one type of model, a "page"

How?

Updated the angular code to look for a form field by id: cms_type If this exists, we set the selectors to use that cms_type as a prefix, otherwise, we stay with the default, "page"

Side Effects?

I left "page" in there as to support the current functionality, so hopefully there shouldn't be anything unanticipated. But, there are no guarantees here with javascript :)

samcdavid commented 8 years ago

:+1:

Mrjaco12 commented 8 years ago

I believe we need to document the need to pass in

html: { class: 'edit-atomic-content' }

to the form in order to preserve button styles.

Mrjaco12 commented 8 years ago

Nevermind, I found it. :+1: