Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
aa.gusti
/
opensipkd-base
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e6ce1e64
authored
Nov 22, 2023
by
taufikyu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
perbaiki file_upload
1 parent
325afbed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
opensipkd/base/views/widgets/file_upload.pt
opensipkd/base/views/widgets/file_upload.pt
View file @
e6ce1e6
...
@@ -6,15 +6,9 @@
...
@@ -6,15 +6,9 @@
fname str(cstruct.get('filename'))|'';
fname str(cstruct.get('filename'))|'';
delete cstruct.get('delete')|'';">
delete cstruct.get('delete')|'';">
${field.start_mapping()}
${field.start_mapping()}
<tal:block tal:condition="preview_url and ext in ['jpg','jpeg','png','bmp','gif']">
<img id="preview-${oid}" alt="" src="${preview_url}" style="width:100px;height:auto;display:block;"
<img id="preview-${oid}" alt="" src="${structure: preview_url}" style="width:100px;height:auto;display:block;"
onload="window.URL.revokeObjectURL(this.src);"></img>
onload="window.URL.revokeObjectURL(this.src)"></img>
<a id="label-${oid}" tal:condition="preview_url" class="label label-default" href="${preview_url}"
</tal:block>
<tal:block tal:condition="not preview_url or ext not in ['jpg','jpeg','png','bmp','gif']">
<img id="preview-${oid}" alt="" src="" style="width:100px;height:auto;display:block;"
onload="window.URL.revokeObjectURL(this.src)"></img>
</tal:block>
<a id="label-${oid}" tal:condition="preview_url" class="label label-default" href="${structure: preview_url}"
target="_blank"><i class="fa fa-search"></i> View</a>
target="_blank"><i class="fa fa-search"></i> View</a>
<input type="file" name="upload" id="${oid}"
<input type="file" name="upload" id="${oid}"
tal:attributes="style style;
tal:attributes="style style;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment