Update MarkdownSectionController with support for editing

This allows the MarkdownSectionController and ItemPageController to
work together to begin an editing session for an item description.
This commit is contained in:
Andrew Miner
2015-05-07 11:19:36 -07:00
parent 54194d3f0a
commit 8b94f432b0
6 changed files with 226 additions and 98 deletions
+8 -2
View File
@@ -8,11 +8,11 @@
.view__markdown_section.section
h2
.panel
.markdown.hideable
.waiting.hideable: img(src='/images/wait.gif')
.markdown.hideable.hidden
.editor.hideable.hidden
textarea
.sizer
.images.hideable.hidden
.buttons.hideable.hidden
.error.hideable.hidden: p
button.return.hideable.hidden return
@@ -20,3 +20,9 @@
button.preview.hideable.hidden preview
button.save.hideable.hidden save
button.edit.hideable edit
.confirming.hideable.hidden
p Thanks for your help!
p Your changes will appear on the site in a few minutes.
.appologizing.hideable.hidden
p Sorry, but something went wrong.
p Please try again after a few moments.