diff options
author | Alexander Sulfrian <alex@spline.inf.fu-berlin.de> | 2014-11-18 05:22:34 +0100 |
---|---|---|
committer | Alexander Sulfrian <alex@spline.inf.fu-berlin.de> | 2014-11-19 02:15:55 +0100 |
commit | 0bfe5fad665a1d75b194a49c8f8f58624a08f478 (patch) | |
tree | b46d2d2ea478cfb2258c3ea037b5712da52038d3 /templates/index.html | |
parent | 8d602926f15f34cce578e50dbaa5877f47a5318d (diff) | |
download | padlite-teams-0bfe5fad665a1d75b194a49c8f8f58624a08f478.tar.gz padlite-teams-0bfe5fad665a1d75b194a49c8f8f58624a08f478.tar.bz2 padlite-teams-0bfe5fad665a1d75b194a49c8f8f58624a08f478.zip |
templates/index: collapse create group form with js
Diffstat (limited to 'templates/index.html')
-rw-r--r-- | templates/index.html | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/templates/index.html b/templates/index.html index dddf664..f5cf4d8 100644 --- a/templates/index.html +++ b/templates/index.html @@ -18,19 +18,28 @@ <div class="panel panel-default"> <div class="panel-heading"> - <h3 class="panel-title">Create new group</h3> + <h3 class="panel-title"> + <a data-toggle="collapse" href="#collapseCreate"> + Create new group + </a> + </h3> </div> - <div class="panel-body"> - <form class="form-horizontal" role="form" method="POST"> - {% for field in create_form %} - {{ render_field(field) }} - {% endfor %} - <div class="form-group"> - <div class="col-lg-offset-2 col-lg-10"> - <button type="submit" class="btn btn-default">Create group</button> + <div id="collapseCreate" class="panel-collapse collapse in"> + <div class="panel-body"> + <form class="form-horizontal" role="form" method="POST"> + {% for field in create_form %} + {{ render_field(field) }} + {% endfor %} + <div class="form-group"> + <div class="col-lg-offset-2 col-lg-10"> + <button type="submit" class="btn btn-default">Create group</button> + </div> </div> - </div> - </form> + </form> + </div> </div> </div> +<script type="text/javascript"> + $('#collapseCreate').collapse('hide'); +</script> {% endblock %} |