| {#- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| -#} |
| |
| {% import 'allura:templates/jinja_master/lib.html' as lib with context %} |
| |
| <script type="text/javascript" src="{{g.app_static('js/create_folder.js')}}" async="async"></script> |
| |
| <h1 class="title" > |
| <span> Create Folder </span> |
| </h1> |
| |
| <div id="folder_popup" class="" role="dialog" > |
| <form {% if folder_object %} action="{{folder_object.url()}}/create_folder" {% else %} action="{{c.app.url}}create_folder" {% endif %} method="post" enctype="multipart/form-data" onsubmit="return validateFolderForm();"> |
| <div class="modal-dialog"> |
| <!-- Modal content--> |
| <div class="modal-content"> |
| <div class="modal-header"> |
| <a class="icon close" href="#" title="Close" data-dismiss="modal"><i class="fa fa-close"></i></a> |
| </div> |
| <div class="modal-body grid-13"> |
| <p> |
| |
| <label for="folder_name">Folder Name:</label> |
| <input type="text" id="folder_id" name="folder_name" maxlength="260" value="" > |
| |
| <span id="error_message" class="modal-form-error"></span> |
| </p> |
| </div> |
| <input type="hidden" name="parent_folder_id" {% if folder_object %} value="{{folder_object._id}}" {% else %} value=None {% endif %} /> |
| <div class="modal-footer grid-13"> |
| <p> |
| <input type="submit" id="submit_btn" value="Save"/> |
| <a href="#" class="close">Cancel</a> |
| </p> |
| </div> |
| </div> |
| </div> |
| {{lib.csrf_token()}} |
| </form> |
| </div> |
| |
| |