| {#- |
| 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. |
| -#} |
| |
| {% do g.register_css('css/files.css', compress=False) %} |
| |
| {% import 'allura:templates/jinja_master/lib.html' as lib with context %} |
| |
| <h1 class="title" > |
| <span> Publish Folder </span> |
| </h1> |
| |
| <!-- popup for publish folder--> |
| <div id="publish_folder_popup" > |
| <form id ='publish_folder_form' method="post" action="{{c.app.url}}publish_folder" onsubmit="return ConfirmPublishFolder();" > |
| <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" class="folder_name_label" >Release Notes:</label> |
| <textarea type="text-area" id="remarks_id" name="remarks" rows="4" cols="50" maxlength="100" {% if not status %} disabled {% endif %} ></textarea><br /> |
| |
| <span id="error_message" class="modal-form-error"> |
| {% if not status %} To publish this folder, please link a file under it to the Download button {% endif %} |
| {% if status and folder_object.published %} This folder has been already published. Please publish again only if there are any significant changes. {% endif %} |
| </span> |
| </p> |
| </div> |
| <input type="hidden" name="folder_id" id='publish_folder_id' value="{{folder_object._id}}" /> |
| <input type="hidden" id='parent_publish_status' value="{{status}}" /> |
| <input type="hidden" id='publish_status' value="{{folder_object.published}}" /> |
| |
| <div class="modal-footer grid-13"> |
| <p> |
| <input type="submit" id="submit_btn" value="Ok" {% if not status %} disabled {% endif %} /> |
| <a href="#" class="close">Cancel</a> |
| </p> |
| </div> |
| </div> |
| </div> |
| {{lib.csrf_token()}} |
| </form> |
| </div> |
| |
| |
| <script type="text/javascript" src="{{g.app_static('js/publish_folder.js')}}"></script> |
| |
| |
| |