PageRenderTime 9ms CodeModel.GetById 2ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/modules/mod_admin/templates/_admin_edit_content_media.tpl

https://code.google.com/p/zotonic/
Smarty Template | 20 lines | 14 code | 6 blank | 0 comment | 2 complexity | 3801f805ab8709684aaa44d1894a568e MD5 | raw file
 1{% extends "admin_edit_widget_std.tpl" %}
 2
 3{# Widget for viewing/editing media/file content #}
 4
 5{% block widget_title %}{_ File / media content _}{% endblock %}
 6{% block widget_show_minimized %}false{% endblock %}
 7
 8
 9{% block widget_content %}
10{% with m.rsc[id].medium  as  medium %}
11<div id="media-edit-view">
12    {% include "_admin_edit_media_view.tpl" id=id languages=languages %}
13</div>
14
15{% button   text=_"Replace this media item" 
16	    action={dialog_media_upload id=id action={update target="media-edit-view" template="_admin_edit_media_view.tpl" id=id}} 
17	    disabled=not is_editable %}
18	    
19{% endwith %}
20{% endblock %}