adding help page link for preferred filename/folder name characters
{# ======= Missing fields notification =======#}
{% if page.perms.change and not is_replaced_by %}
- {% if missing_metadata_elements or title|stringformat:"s" == "Untitled resource" or not cm.has_required_content_files or cm.non_preferred_path_names %}
+ {% if missing_metadata_elements or title|stringformat:"s" == "Untitled resource" or not cm.has_required_content_files %}
<div class="col-xs-12">
<div id="missing-metadata-or-file" class="alert {% if just_created %}alert-success{% else %}alert-warning{% endif %} alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span
{% endif %}
{% endif %}
- {% if cm.non_preferred_path_names %}
- <p>This resource contains some files/folders that have non-preferred characters in their name.
- <a href="#" data-toggle="modal" data-target="#non-preferred-paths-dialog">Show non-conforming files/folders.</a>
- </p>
- {% endif %}
-
{% if not resource_edit_mode %}
<hr>
<span class="glyphicon glyphicon-question-sign"></span>
</div>
</div>
{% endif %}
+ {% if cm.non_preferred_path_names %}
+ <div class="col-sm-12">
+ <div id="non-preferred-paths" class="alert {% if just_created %}alert-success{% else %}alert-warning{% endif %} alert-dismissible" role="alert">
+ <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span
+ aria-hidden="true">&times;</span></button>
+ <p>This resource contains some files/folders that have non-preferred characters in their name.
+ <a href="#" data-toggle="modal" data-target="#non-preferred-paths-dialog">Show non-conforming files/folders.</a>
+ </p>
+ </div>
+ </div>
<div class="modal fade" id="non-preferred-paths-dialog" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<p>
The following files/folders contain non-preferred characters in their name.
This may result in problems and you are encouraged to change the name to follow the
- HydroShare preferred character set. [TODO: link to help page here]
+ <a href="https://help.hydroshare.org/hydroshare-resources/special-characters-in-file-folder-names/" target="_blank">HydroShare preferred character set.</a>
</p>
</div>
<div class="modal-body">
</div>
</div>
{% endif %}
+{% endif %}
{# ======= Title ======= #}
<div class="col-xs-12">
