PageRenderTime 22ms CodeModel.GetById 13ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/modules/mod_admin_modules/templates/admin_modules.tpl

https://code.google.com/p/zotonic/
Smarty Template | 47 lines | 42 code | 5 blank | 0 comment | 5 complexity | 5c0c31d1f90a4843a410ab820af8f4fb MD5 | raw file
 1{% extends "admin_base.tpl" %}
 2
 3{% block title %}{_ Modules _}{% endblock %}
 4
 5{% block content %}
 6	<div id="content" class="zp-85">
 7		<div class="block clearfix">
 8
 9		<h2>{_ Modules _}</h2>
10
11		<h3 class="above-list ">{_ Modules overview _}</h3>
12		<ul class="short-list">
13			<li class="headers clearfix">
14				<span class="zp-20">{_ Title _}</span>
15				<span class="zp-45">{_ Description _}</span>
16				<span class="zp-5">{_ Prio _}</span>
17				<span class="zp-25">{_ Author _}</span>
18				<span class="zp-5">{_ Activate _}</span>
19			</li>
20		{% for sort, prio, module, props in modules %}
21			<li id="{{ #li.module }}" class="clearfix {% if not props.is_active %}unpublished{% endif %}">
22				<a href="#">
23					<span class="zp-20">{% include "_icon_status.tpl" status=status[module] status_id=#status.module %} {{ props.mod_title|default:props.title }}</span>
24					<span class="zp-45">{{ props.mod_description|default:"-" }}</span>
25					<span class="zp-5">{{ prio }}</span>
26					<span class="zp-30">{{ props.author|escape|default:"-" }}</span>
27                </a>
28                <span class="button-area">
29						{% if props.is_active %}
30							{% button text=_"Deactivate" 
31									action={module_toggle module=module status_id=#status.module}
32									action={toggle_class id=#li.module class="enabled"} %}
33						{% else %}
34							{% button text=_"Activate"
35									action={module_toggle module=module status_id=#status.module} 
36									action={toggle_class id=#li.module class="enabled"} %}
37						{% endif %}
38                </span>
39			</li>
40		{% empty %}
41			<li>{_ No modules found _}</li>
42		{% endfor %}
43		</ul>
44
45		</div>
46	</div>
47{% endblock %}