|
68 | 68 |
|
69 | 69 | {% block submit_content %} |
70 | 70 |
|
71 | | -{% if canceled %} |
72 | | -<h2>Submission Canceled</h2> |
73 | | -<div class="metadata-errors"> |
74 | | - <p>This submission has been canceled, modification is no longer possible.</p> |
75 | | -</div> |
| 71 | +{% if status %} |
| 72 | +<h2>Status of the submission: {{ status.status_value }}</h2> |
| 73 | +{% endif %} |
| 74 | + |
| 75 | +{% if message %} |
| 76 | +<div class="info-message-{{ message.0 }}">{{ message.1 }}</div> |
76 | 77 | {% endif %} |
77 | 78 |
|
78 | 79 | <h2>Check Page</h2> |
@@ -143,29 +144,40 @@ <h3>Meta-Data errors found</h3> |
143 | 144 | <tr{% if validation.warnings.pages %} class="warning"{% endif %}><th>Pages</th><td>{{ detail.txt_page_count }}<div class="warn_message">{{ validation.warnings.pages }}</div></td></tr> |
144 | 145 | <tr{% if validation.warnings.abstract %} class="warning"{% endif %}><th>Abstract</th><td>{{ detail.abstract|linebreaksbr }}<div class="warn_message">{{ validation.warnings.abstract }}</div></td></tr> |
145 | 146 | </table> |
146 | | -{% if not canceled %} |
147 | | - <form method="post" action="" name="auto_post_form"> |
148 | | - <input type="submit" value="Adjust Meta-Data" value="adjust" /> (Leads to manual post by the Secretariat) |
149 | | - </form> |
150 | | - {% if is_valid %} |
151 | | - <h2>Please edit the following meta-data before proceeding to Auto-Post</h2> |
152 | | - <p> |
153 | | - If you are one of the authors of this document, then please click the button with your name on it to automatically fill in the submitter information as requested below. Otherwise, please manually enter your information. |
154 | | - </p> |
155 | | - <form method="post" action=""> |
156 | | - {{ auto_post_form.get_author_buttons|safe }} |
157 | | - <table class="metadata-table"> |
158 | | - {{ auto_post_form }} |
159 | | - </table> |
160 | | - <input type="submit" value="Post" name="autopost" /> |
161 | | - </form> |
162 | | - {% endif %} |
163 | | - |
164 | | - <h2>Cancel submission</h2> |
165 | | - <p> |
166 | | - <input type="button" onclick="confirmCancelation();" value="Cancel Submission" /><br> |
167 | | - This submission will be canceled, and its uploaded document(s) permanently deleted. |
168 | | - </p> |
| 147 | + |
| 148 | +{% if allow_edit %} |
| 149 | +<form method="post" action="" name="auto_post_form"> |
| 150 | +<input type="submit" value="Adjust Meta-Data" value="adjust" /> (Leads to manual post by the Secretariat) |
| 151 | +</form> |
| 152 | +{% if is_valid %} |
| 153 | +<h2>Please edit the following meta-data before proceeding to Auto-Post</h2> |
| 154 | +<p> |
| 155 | +If you are one of the authors of this document, then please click the button with your name on it to automatically fill in the submitter information as requested below. Otherwise, please manually enter your information. |
| 156 | +</p> |
| 157 | +<form method="post" action=""> |
| 158 | +{{ auto_post_form.get_author_buttons|safe }} |
| 159 | +<table class="metadata-table"> |
| 160 | +{{ auto_post_form }} |
| 161 | +</table> |
| 162 | +<input type="submit" value="Post" name="autopost" /> |
| 163 | +</form> |
| 164 | +{% endif %} |
| 165 | + |
| 166 | +<h2>Cancel submission</h2> |
| 167 | +<p> |
| 168 | + <input type="button" onclick="confirmCancelation();" value="Cancel Submission" /><br> |
| 169 | + This submission will be canceled, and its uploaded document(s) permanently deleted. |
| 170 | +</p> |
| 171 | +{% else %} |
| 172 | +{% if validation.submitter %} |
| 173 | +<h3>Submitter information</h3> |
| 174 | +<table class="metadata-table"> |
| 175 | +<tr><th>First name</th><td>{{ validation.submitter.first_name }}</td></tr> |
| 176 | +<tr><th>Last name</th><td>{{ validation.submitter.last_name }}</td></tr> |
| 177 | +<tr><th>Email address</th><td>{{ validation.submitter.email_address|default:validation.submitter.email.1 }}</td></tr> |
| 178 | +</table> |
| 179 | +{% endif %} |
| 180 | + |
169 | 181 | {% endif %} |
170 | 182 |
|
171 | 183 | <p> |
|
0 commit comments