diff options
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 %} |