This commit is contained in:
Simon Brooke 2017-09-10 22:55:48 +01:00
parent 1353e27f92
commit 843a1d084b
6 changed files with 39 additions and 21 deletions

View file

@ -75,6 +75,8 @@
:email-prompt "Email address" ;; text of the email widget prompt on edit user page
:file-or-directory "File or directory"
;; used in sanity check report
:file-summary-prompt "Description/what's changed"
;; prompt for the file upload summary input
:file-upload-link-text "You may link to this file using a link of the form"
;; Text introducing the link to an uploaded file
:file-upload-prompt "File to upload" ;; prompt string for the file upload widget

View file

@ -209,6 +209,10 @@ th {
display: block;
}
#uploaded-image {
float: right;
}
.change {
background-color: rgb( 223, 223, 223);
border: thin solid silver;

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View file

@ -3,12 +3,12 @@
<div id="content" class="auth">
{% if uploaded %}
{% if is-image %}
<img alt="Uploaded image" src="uploads/{{uploaded}}"/>
<p>
<img id="uploaded-image" alt="Uploaded image" src="content/uploads/{{uploaded}}"/>
{% i18n file-upload-link-text %}:
<code>![Uploaded image](uploads/{{uploaded}})</code>
<code>![Uploaded image](content/uploads/{{uploaded}})</code>
</p>
{% else %}
<p>
@ -24,6 +24,10 @@
<label for="upload">{% i18n file-upload-prompt %}</label>
<input name="upload" id="upload" type="file" required/>
</p>
<p class="widget">
<label for="summary">{% i18n file-summary-prompt %}</label>
<input name="summary" id="summary" type="text" required/>
</p>
<p class="widget">
<label for="submit">{% i18n save-prompt %}</label>
<input name="submit" id="submit" type="submit" class="action" value="{% i18n save-label %}"/>