~canonical-isd-hackers/panic-cms/prototype

« back to all changes in this revision

Viewing changes to panic_cms/panic/templates/home.html

  • Committer: Michael Hall
  • Date: 2011-11-08 18:21:20 UTC
  • Revision ID: mhall119@ubuntu.com-20111108182120-fub2ysnh8wjbrp5p
Added the ability to add pages from the toolbar menu, rather than wiki-style

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
<!-- Note: These modals are hard-coded for now but will be templated later on -->
77
77
    <!-- NEW REVISION DIALOG -->
78
78
    <div id="create-new-revision" class="modal hide fade">
79
 
    <form id="add_page_form">
 
79
    <form id="add_page_form" action="/+add" method="POST">
 
80
    {% csrf_token %}
80
81
      <div class="modal-header">
81
82
        <a href="#" class="close">&times;</a>
82
 
        <h3>Create a new page:</h3>
 
83
        <h3>Add page</h3>
83
84
      </div>
84
85
      <div class="modal-body">
85
86
        {{ add_page_form.as_p }}
86
87
      </div>
87
88
      <div class="modal-footer">
88
 
        <a href="#" class="btn primary">Primary</a>
89
 
        <a href="#" class="btn secondary">Secondary</a>
 
89
        <a href="#" class="btn primary" onClick='$("#add_page_form").submit();'>Add Page</a>
90
90
      </div>
91
91
    </form>
92
92
    </div>