{% extends "admin/core/base.html" %} {% load securitytags %} {% load typesetting_file_permissions %} {% load files %} {% load foundation %} {% block title %}Edit Typeset File - {{ galley.pk }}{% endblock title %} {% block title-section %}Edit Typeset File - {{ galley.pk }}{% endblock %} {% block breadcrumbs %} {{ block.super }} {% include "typesetting/breadcrumbs/typesetting_base.html" %}
  • Edit Typeset File
  • {% endblock breadcrumbs %} {% block body %}

    Metadata

    {% if return_url %} Back{% endif %}
    {% can_manage_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
    {{ galley.label }} {{ galley.file.original_filename|truncatechars:40 }} Typeset File {{ galley.file.last_modified|date:"Y-m-d G:i" }}   {% if can_view_file_history_flag %}  {% endif %}

    Replace File

    You can upload a new file to replace the existing one.

    {% csrf_token %}

    Typeset File Details

    {% csrf_token %} {% include "admin/elements/forms/errors.html" with form=galley_form %} {{ galley_form|foundation }}
    {% if galley.file.mime_type in galley.mimetypes_with_figures %}

    Image Files

    You can upload image files associated with the XML/HTML file. 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 %}
    Typeset file 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 File 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 %}

    Typeset File XSLT

    Select the XSL File used for rendering the HTML out of this file.

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