<div class="row-fluid">
	<div class="span1 hidden-phone"></div>
	<div class="span10">
		<ul id="msgops">
			<li>${h.link_to(_('Domain Settings'), url('domain-settings', domainid=c.domain.id))}</li>
			<li>${h.link_to(_('Domain details'), url(controller='domains', action='detail', domainid=c.domain.id))}</li>
			% if len(c.domain.signatures) < 2:
			<li>${h.link_to(_('Add signature'), url('domain-sigs-add', domainid=c.domain.id))}</li>
			% endif
		</ul>
	</div>
	<div class="span1 hidden-phone"></div>
</div>
<div class="space-6"></div>
<div class="row-fluid">
	<div class="span1 hidden-phone"></div>
	<div class="span10">
		<h3 class="head smaller lighter blue">${_('Domain email signatures')}</h3>
	</div>
	<div class="span1 hidden-phone"></div>
</div>
<div class="row-fluid">
	<div class="span1 hidden-phone"></div>
	<div class="span10">
		% for signature in c.domain.signatures:
		<div class="row-fluid">
			<div class="span8">
				${_('Text signature') if signature.signature_type == 1 else _('HTML Signature')}
			</div>
			<div class="span1">
				${functions.item_status(signature.enabled)}
			</div>
			<div class="span1">
				&nbsp;
			</div>
			<div class="span1">
				${h.link_to(h.literal('<i class="icon-edit"></i>'), url('domain-sigs-edit', sigid=signature.id))}
			</div>
			<div class="span1">
				${h.link_to(h.literal('<i class="icon-remove red"></i>'), url('domain-sigs-delete', sigid=signature.id))}
			</div>
		</div>
		% endfor
		% if not c.domain.signatures:
		<div class="row-fluid">
			<div class="span12">${_('No domain signatures configured')}</div>
		</div>
		% endif
	</div>
	<div class="span1 hidden-phone"></div>
</div>


<%def name="title()">
${_('Settings :: Domain email signatures :: %s') % c.domain.name}
</%def>

<%def name="heading()">
${_('Settings :: Domain email signatures :: %s') % c.domain.name}
</%def>

<%def name="headers()">
</%def>
<%def name="submenu()"></%def>
<%def name="localscripts()">
</%def>
<%namespace name="functions" file="../includes/functions.html"/>
<%inherit file="../base.html"/>
