PageRenderTime 18ms CodeModel.GetById 10ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/modules/mod_admin/templates/_admin_edit_depiction.tpl

https://code.google.com/p/zotonic/
Smarty Template | 31 lines | 27 code | 4 blank | 0 comment | 4 complexity | c014acffdeb5c247f946b4ee53cd7ed0 MD5 | raw file
 1{% extends "admin_edit_widget_std.tpl" %}
 2
 3{% block widget_title %}{_ Attached media _}{% endblock %}
 4{% block widget_show_minimized %}false{% endblock %}
 5
 6
 7{% block widget_content %}
 8{% if is_editable or m.rsc[id].depiction %}
 9<div id="{{ #media }}">
10	{% include "_edit_media.tpl" media=media div_id=#media %}
11</div>
12<div class="clear">
13	{% if is_editable %}
14		{% button   text=_"add a new media item"
15			    action={dialog_media_upload subject_id=id stay
16			    action={postback postback={reload_media rsc_id=id div_id=#media} delegate="resource_admin_edit"}}
17		%}
18
19		{% button   text=_"add existing media item"
20			    action={dialog_link subject_id=id predicate="depiction"
21						action={postback
22						postback={reload_media rsc_id=id div_id=#media}
23						delegate="resource_admin_edit"}
24				    } 
25			    %}
26	{% else %}
27		&nbsp;
28	{% endif %}
29</div>
30{% endif %}
31{% endblock %}