Changeset 63c5ef7200d1fb96d0f8b4358e3cca9d59907570


Ignore:
Timestamp:
15.03.2013 01:37:44 (7 years ago)
Author:
Stanislaw Klekot <dozzie@…>
Branches:
b66903eafbcb1d49112014abc82c8bf683413db0, prototype, prototype-new-outfit
Children:
8f1c07c12bed616187cbc4401814c31b38a0a1fb
Parents:
aff0bfa57e67fbd91d18f9dfd5032ece340ae2dd
git-author:
Stanislaw Klekot <dozzie@…> (15.03.2013 01:37:44)
git-committer:
Stanislaw Klekot <dozzie@…> (15.03.2013 01:37:44)
Message:

Added handling cancellation in "create page" form.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • dashwiki/wiki/views.py

    raff0bf r63c5ef  
    115115@csrf_exempt 
    116116def create_wiki(request): 
     117  if 'cancel' in request.POST: 
     118    from django.core.urlresolvers import reverse 
     119    response = HttpResponse(status = 302) 
     120    response['location'] = reverse(handle_wiki, args = ['WikiStart']) 
     121    return response 
     122 
    117123  template = loader.get_template('create_wiki.html') 
    118124 
  • templates/create_wiki.html

    r80caaf r63c5ef  
    3333 
    3434  <div> 
    35     <input type="submit" name="save"   value="Save" /> | 
     35    <input type="submit" name="create" value="Create" /> | 
    3636    <input type="submit" name="cancel" value="Cancel" /> 
    3737  </div> 
Note: See TracChangeset for help on using the changeset viewer.