smeserver-ddclient/root/usr/share/smanager/themes/default/templates/ddclient.html.ep

49 lines
1.1 KiB
Plaintext

% layout 'default', title => "Sme server 2 - Dynamic Clients", share_dir => './';
% content_for 'module' => begin
<div id="module" class="module ddclient-panel">
% if ($config->{debug} == 1) {
<p>
%= dumper $c->current_route
</p>
% }
<h1><%=$title%></h1>
%= $modul
%if ($ddc_datas->{first}) {
<br><p>
%=$c->render_to_string(inline =>$c->l($ddc_datas->{first}))
</p>
%} elsif ($ddc_datas->{success}) {
<div class='sme-border'>
<h2> Operation Status Report</h2><p>
%= $c->l($ddc_datas->{success});
</p>
</div>
%} elsif ($ddc_datas->{error}) {
<div class='sme-error'>
<h2> Operation Status Report - error</h2><p>
%= $c->l($ddc_datas->{error});
</p>
</div>
%}
% if ($ddc_datas->{trt} eq 'NEW') {
%= include 'partials/_ddc_create_cust'
%} elsif ($ddc_datas->{trt} eq 'DEL') {
%= include 'partials/_ddc_del'
%} elsif ($ddc_datas->{trt} eq 'MOD') {
%= include 'partials/_ddc_modify_domain'
%} else { #LIST
%= include 'partials/_ddc_paramlist'
%= include 'partials/_ddc_domainlist'
%= include 'partials/_ddc_customlist'
%}
</div>
%end