Skip to content

Commit

Permalink
removed dtml artefact
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr. Frank Hoffmann authored and Dr. Frank Hoffmann committed Jul 6, 2018
1 parent 855c7d6 commit ccb1a33
Showing 1 changed file with 22 additions and 27 deletions.
49 changes: 22 additions & 27 deletions src/Products/PageTemplates/www/ptEdit.zpt
Expand Up @@ -79,12 +79,13 @@

</div>


</form>



<form action="pt_upload" method="post" enctype="multipart/form-data" class="zmi-upload mt-4">
<form action="pt_upload" method="post" enctype="multipart/form-data" class="zmi-upload mt-4"
tal:condition="not:here/wl_isLocked | nothing">

<p class="form-help">
You can upload the text for
<span tal:replace="context/title_and_id" /> using the following form.
Expand All @@ -94,31 +95,25 @@
<a href="document_src" title="Document Source">here</a>.
</p>

<dtml-unless wl_isLocked>
<form action="pt_upload" method="post" enctype="multipart/form-data" class="zmi-upload mt-4">
<div class="input-group" title="Select Local File for Uploading">
<div class="custom-file">
<input type="file" name="file" class="custom-file-input" id="file-data" value=""
onchange="$('.custom-file label span').html($(this).val().replace(/^.*(\\|\/|\:)/, ''));" />
<label class="custom-file-label" for="file-data"><span>Choose file</span></label>
</div>
<div class="input-group-append">
<input id="encoding" type="text" title="Encoding"
class="form-control text-warning"
style="width:5rem;border-radius:0;text-align:center"
name="encoding" value="utf-8" placeholder="utf-8" />
</div>
<div class="input-group-append">
<input class="btn btn-outline-secondary" type="submit" value="Upload File" />
</div>
</div>
<small id="encodingHelp" class="form-text text-warning text-right">
Encoding only used for non-XML and non-HTML content
</small>
</form>
</dtml-unless>


<div class="input-group" title="Select Local File for Uploading">
<div class="custom-file">
<input type="file" name="file" class="custom-file-input" id="file-data" value=""
onchange="$('.custom-file label span').html($(this).val().replace(/^.*(\\|\/|\:)/, ''));" />
<label class="custom-file-label" for="file-data"><span>Choose file</span></label>
</div>
<div class="input-group-append">
<input id="encoding" type="text" title="Encoding"
class="form-control text-warning"
style="width:5rem;border-radius:0;text-align:center"
name="encoding" value="utf-8" placeholder="utf-8" />
</div>
<div class="input-group-append">
<input class="btn btn-outline-secondary" type="submit" value="Upload File" />
</div>
</div>
<small id="encodingHelp" class="form-text text-warning text-right">
Encoding only used for non-XML and non-HTML content
</small>

</form>
</main>
Expand Down

0 comments on commit ccb1a33

Please sign in to comment.