{% extends "admin/core/base.html" %} {% load securitytags %} {% load files %} {% load foundation %} {% block title %}Edit Galley - {{ galley.pk }}{% endblock title %} {% block title-section %}Edit Galley - {{ galley.pk }}{% endblock %} {% block title-sub %}#{{ article.pk }} / {{ article.correspondence_author.last_name }} / {{ article.safe_title }}{% endblock %} {% block breadcrumbs %} {{ block.super }} {% if request.resolver_match.view_name == 'pm_edit_galley' %} {% include "elements/breadcrumbs/production_manager_base.html" %} {% else %} {% include "elements/breadcrumbs/typesetter_base.html" %} {% endif %}
  • Edit Galley
  • {% endblock breadcrumbs %} {% block body %}

    Metadata

    {% if return_url %} Back{% endif %}
    {% can_view_file galley.file as can_view_file_flag %} {% can_edit_file galley.file article as can_edit_file_flag %} {% can_view_file_history galley.file article as can_view_file_history_flag %}
    Label Filename Type Modified Download History Delete
    {{ galley.label }} {{ galley.file.original_filename|truncatechars:40 }} Galley {{ galley.file.last_modified|date:"Y-m-d G:i" }} {% if can_view_file_flag %}  {% endif %} {% if can_view_file_history_flag %}  {% endif %} {% if can_edit_file_flag %}
    {% csrf_token %} {% endif %}

    Replace File

    You can upload a new file to replace the one in this galley.

    {% csrf_token %}

    Galley Details

    {% csrf_token %} {{ galley_form|foundation }}
    {% if galley.type != 'pdf' %}

    Image Files

    You can upload image files associated with the XML/HTML galley. We will display those we have detected but you can upload your own. The uploaded filename should match the src or href of the file in your XML/HTML and should be relative eg. src="fig1.jpg".

    {% for image in galley.images.all %} {% can_view_file image as can_view_file_flag %} {% can_edit_file image article as can_edit_file_flag %} {% can_view_file_history image article as can_view_file_history_flag %} {% empty %} {% endfor %}
    Label Filename Type Modified Download Replace History Delete
    {{ image.label }} {{ image.original_filename }} Galley Images {{ image.last_modified|date:"Y-m-d G:i" }} {% if can_view_file_flag %}  {% endif %} {% if can_edit_file_flag %}  {% endif %} {% if can_view_file_history_flag %}  {% endif %} {% if can_edit_file_flag %}
    {% csrf_token %} {% endif %}
    Galley has no images, you can upload them below.
    {% if galley.file.mime_type in galley.mimetypes_with_figures %} {% for element in galley.has_missing_image_files %} {% if element not in image_names %}
    {% csrf_token %}
    {{ element }}


    {% if data_files %}

    Or, you can choose an existing figure file.

    {% endif %}
    {% endif %} {% endfor %} {% endif %}
    {% csrf_token %}
    Additional Galley Images


    {% if galley.has_missing_image_files %}
    {% csrf_token %}
    Upload Zip File

    You can upload a zip file of images using the {% if typeset_task %} {% else %} {% endif %} Zip Uploader .

    {% endif %}

    CSS File

    You can upload a CSS file associated with this article for individual style. You should be wary not to make style changes to header and footer type elements as this will effect the layout of the page.

    {% if galley.css_file %} {% can_view_file galley.css_file as can_view_file_flag %} {% can_edit_file galley.css_file article as can_edit_file_flag %} {% can_view_file_history galley.css_file article as can_view_file_history_flag %} {% endif %}
    Label Filename Type Download Replace History Delete
    {{ galley.css_file.label }} {{ galley.css_file.original_filename }} Galley Images {% if can_view_file_flag %}  {% endif %} {% if can_edit_file_flag %}  {% endif %} {% if can_view_file_history_flag %}  {% endif %} {% if can_edit_file_flag %}  {% endif %}
    {% if not galley.css_file %}
    {% csrf_token %}
    Upload CSS File


    {% endif %}
    {% if xsl_files %}

    Galley XSLT

    Select the XSL File used for rendering the HTML out of this galley

    {% csrf_token %}
    {% endif %} {% endif %}
    {% endblock body %}