更新 file_upload_template.jst.ejs

This commit is contained in:
钟进 2020-07-13 17:22:22 +00:00
parent 412ab7cc9d
commit cc08ae473d

View File

@ -1,28 +1,28 @@
<form class="Form js-form"> <form class="Form js-form">
<div class="ImportPanel-header"> <div class="ImportPanel-header">
<h3 class="CDB-Text CDB-Size-large u-mainTextColor u-secondaryTextColor u-bSpace--m">Upload a file or a URL</h3> <h3 class="CDB-Text CDB-Size-large u-mainTextColor u-secondaryTextColor u-bSpace--m">上传文件</h3>
<p class="CDB-Text CDB-Size-medium u-altTextColor u-bSpace--xl ImportPanel-headerDescription"> <p class="CDB-Text CDB-Size-medium u-altTextColor u-bSpace--xl ImportPanel-headerDescription">
Paste a URL <% if (fileEnabled) { %>or select a file like JPG, GIF, PNG, SVG<% } %> 粘贴 URL <% if (fileEnabled) { %>或选择上传 JPG, GIF, PNG, SVG文件<% } %>
</p> </p>
</div> </div>
<div class="Form-row Form-row--centered"> <div class="Form-row Form-row--centered">
<% if (fileEnabled) { %> <% if (fileEnabled) { %>
<div class="Form-rowData Form-rowData--med Form-rowData--noMargin js-dropzone"> <div class="Form-rowData Form-rowData--med Form-rowData--noMargin js-dropzone">
<div class="Form-upload"> <div class="Form-upload">
<label class="Form-fileLabel js-fileLabel">Drag & drop your file</label> <label class="Form-fileLabel js-fileLabel">拖放文件</label>
<label class="Form-fileLabel Form-fileLabel--error CDB-Text CDB-Size-small js-fileError"></label> <label class="Form-fileLabel Form-fileLabel--error CDB-Text CDB-Size-small js-fileError"></label>
<div class="Form-file"> <div class="Form-file">
<input type="file" class="js-fileInput" accept=".jpg,.gif,.png,.svg" /> <input type="file" class="js-fileInput" accept=".jpg,.gif,.png,.svg" />
<span class="Button Button--main Form-fileButton js-fileButton">browse</span> <span class="Button Button--main Form-fileButton js-fileButton">浏览</span>
</div> </div>
</div> </div>
</div> </div>
<span class="u-lSpace--xl u-rSpace--xl u-flex u-alignCenter CDB-Text CDB-Size-medium u-altTextColor">or</span> <span class="u-lSpace--xl u-rSpace--xl u-flex u-alignCenter CDB-Text CDB-Size-medium u-altTextColor">or</span>
<% } %> <% } %>
<div class="Form-rowData Form-rowData--noMargin Form-rowData--med"> <div class="Form-rowData Form-rowData--noMargin Form-rowData--med">
<input type="text" class="Form-input Form-input--med has-submit js-textInput" placeholder="https://carto.com/logo.png" /> <input type="text" class="Form-input Form-input--med has-submit js-textInput" placeholder="" />
<button type="submit" class="Button Button--secondaryBlue Form-inputSubmit"><span>submit</span></button> <button type="submit" class="Button Button--secondaryBlue Form-inputSubmit"><span>提交</span></button>
<div class="CDB-Text Form-inputError">Error. Your URL doesnt look correct.</div> <div class="CDB-Text Form-inputError">URL错误.</div>
</div> </div>
</div> </div>
</form> </form>