2017-09-22 11:13:36 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
include_once __DIR__.'/../../core.php';
|
|
|
|
|
|
|
|
?>
|
|
|
|
<form action="" method="post" id="add-form">
|
|
|
|
<input type="hidden" name="op" value="update">
|
|
|
|
<input type="hidden" name="backto" value="record-edit">
|
|
|
|
|
|
|
|
<!-- DATI -->
|
|
|
|
<div class="panel panel-primary">
|
|
|
|
<div class="panel-heading">
|
2018-02-18 19:53:23 +01:00
|
|
|
<h3 class="panel-title"><?php echo tr('Dati'); ?></h3>
|
2017-09-22 11:13:36 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel-body">
|
|
|
|
<div class="row">
|
2017-09-22 15:16:56 +02:00
|
|
|
<div class="col-md-6">
|
2018-02-18 19:53:23 +01:00
|
|
|
{[ "type": "text", "label": "<?php echo tr('Nome account'); ?>", "name": "name", "value": "$name$", "required": 1 ]}
|
2017-09-22 11:13:36 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-3">
|
2018-02-18 19:53:23 +01:00
|
|
|
{[ "type": "checkbox", "label": "<?php echo tr('Indirizzo PEC'); ?>", "name": "pec", "value": "$pec$" ]}
|
2017-09-22 15:16:56 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-3">
|
2018-02-18 19:53:23 +01:00
|
|
|
{[ "type": "checkbox", "label": "<?php echo tr('Indirizzo predefinito'); ?>", "name": "main", "value": "$main$" ]}
|
2017-09-22 11:13:36 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-6">
|
2018-02-18 19:53:23 +01:00
|
|
|
{[ "type": "text", "label": "<?php echo tr('Nome visualizzato'); ?>", "name": "from_name", "value": "$from_name$" ]}
|
2017-09-22 11:13:36 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-6">
|
2018-02-18 19:53:23 +01:00
|
|
|
{[ "type": "email", "label": "<?php echo tr('Email mittente'); ?>", "name": "from_address", "value": "$from_address$" ]}
|
2017-09-22 11:13:36 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-6">
|
2018-02-18 19:53:23 +01:00
|
|
|
{[ "type": "text", "label": "<?php echo tr('Server SMTP'); ?>", "name": "server", "required": 1, "value": "$server$" ]}
|
2017-09-22 11:13:36 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-3">
|
2018-02-18 19:53:23 +01:00
|
|
|
{[ "type": "text", "label": "<?php echo tr('Porta SMTP'); ?>", "name": "port", "required": 1, "class": "text-center", "value": "$port$" ]}
|
2017-09-22 11:13:36 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-3">
|
2018-02-18 19:53:23 +01:00
|
|
|
{[ "type": "select", "label": "<?php echo tr('Sicurezza SMTP'); ?>", "name": "encryption", "values": "list=\"\": \"<?php echo tr('Nessuna'); ?>\", \"tls\": \"TLS\", \"ssl\": \"SSL\"", "value": "$encryption$" ]}
|
2017-09-22 11:13:36 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-6">
|
2018-02-18 19:53:23 +01:00
|
|
|
{[ "type": "text", "label": "<?php echo tr('Username SMTP'); ?>", "name": "username", "value": "$username$" ]}
|
2017-09-22 11:13:36 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-6">
|
2018-02-18 19:53:23 +01:00
|
|
|
{[ "type": "password", "label": "<?php echo tr('Password SMTP'); ?>", "name": "password", "value": "$password$" ]}
|
2017-09-22 11:13:36 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
2018-02-18 19:53:23 +01:00
|
|
|
{[ "type": "textarea", "label": "<?php echo tr('Note'); ?>", "name": "note", "value": "$note$" ]}
|
2017-09-22 11:13:36 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<a class="btn btn-danger ask" data-backto="record-list">
|
|
|
|
<i class="fa fa-trash"></i> <?php echo tr('Elimina'); ?>
|
|
|
|
</a>
|