2.0 upgrade test first
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
10
templates/Maketank/dns_editor/entry_bit.tpl
Normal file
10
templates/Maketank/dns_editor/entry_bit.tpl
Normal file
@@ -0,0 +1,10 @@
|
||||
<tr>
|
||||
<td>{$entry['record']}</td>
|
||||
<td>{$entry['type']}</td>
|
||||
<td><if ($entry['prio'] <= 0 && $entry['type'] != 'MX' && $entry['type'] != 'SRV')> <else>{$entry['prio']}</if></td>
|
||||
<td>{$entry['content']}</td>
|
||||
<td>{$entry['ttl']}</td>
|
||||
<td>
|
||||
<a href="{$linker->getLink(array('section' => 'domains', 'page' => $page, 'action' => 'delete', 'domain_id' => $domain_id, 'id' => $entry['id']))}"><img src="templates/{$theme}/assets/img/icons/delete.png" alt="{$lng['panel']['delete']}" title="{$lng['panel']['delete']}" /></a>
|
||||
</td>
|
||||
</tr>
|
||||
39
templates/Maketank/dns_editor/index.tpl
Normal file
39
templates/Maketank/dns_editor/index.tpl
Normal file
@@ -0,0 +1,39 @@
|
||||
$header
|
||||
<article>
|
||||
<header>
|
||||
<h2>
|
||||
<img src="templates/{$theme}/assets/img/icons/domain_edit_big.png" alt="" />
|
||||
DNS Editor (<a href="{$linker->getLink(array('section' => 'domains', 'page' => 'domains', 'action' => 'edit', 'id' => $domain_id))}">{$domain}</a>, {$entriescount} {$lng['dnseditor']['records']})
|
||||
</h2>
|
||||
</header>
|
||||
|
||||
<div class="messagewrapperfull">
|
||||
<div class="warningcontainer bradius">
|
||||
<div class="warningtitle">{$lng['admin']['warning']}</div>
|
||||
<div class="warning">{$lng['dns']['howitworks']}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<if !empty($errors)>
|
||||
<div class="errorcontainer bradius">
|
||||
<div class="errortitle">{$lng['error']['error']}</div>
|
||||
<div class="error">{$errors}</div>
|
||||
</div>
|
||||
</if>
|
||||
<if !empty($success_message)>
|
||||
<div class="successcontainer bradius">
|
||||
<div class="successtitle">{$lng['success']['success']}</div>
|
||||
<div class="success">{$success_message}</div>
|
||||
</div>
|
||||
</if>
|
||||
|
||||
<section>
|
||||
{$record_list}
|
||||
</section>
|
||||
|
||||
</article>
|
||||
|
||||
<br><br>
|
||||
<textarea rows="20" class="filecontent">{$zonefile}</textarea>
|
||||
|
||||
$footer
|
||||
25
templates/Maketank/dns_editor/list.tpl
Normal file
25
templates/Maketank/dns_editor/list.tpl
Normal file
@@ -0,0 +1,25 @@
|
||||
<form method="post" action="{$linker->getLink(array('section' => 'domains', 'page' => $page, 'action' => 'add_record', 'domain_id' => $domain_id))}">
|
||||
<table class="full hl">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="size-20">Record</th>
|
||||
<th class="size-5">Type</th>
|
||||
<th class="size-5">Priority</th>
|
||||
<th class="size-50">Content</th>
|
||||
<th class="size-10">TTL</th>
|
||||
<th class="size-10"> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><input id="dns_record" type="text" name="record[record]" class="small" placeholder="Record" value="{$record}" /></td>
|
||||
<td><select id="dns_type" name="record[type]" class="small">{$type_select}</select></td>
|
||||
<td><input id="dns_mxp" type="text" name="record[prio]" class="small" placeholder="MX priority" value="{$prio}" /></td>
|
||||
<td><input id="dns_content" type="text" name="record[content]" class="small" placeholder="Content" value="{$content}" /></td>
|
||||
<td><input id="dns_ttl" type="text" name="record[ttl]" class="small" placeholder="18000" value="{$ttl}" /></td>
|
||||
<td><input type="submit" class="submitsearch" value="add" name="add" /></td>
|
||||
</tr>
|
||||
{$existing_entries}
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
Reference in New Issue
Block a user