Files
control-pane/public/dialogs/image-import.php
2018-03-02 20:27:28 +03:00

37 lines
1.7 KiB
PHP

<script type="text/javascript">
err_messages.add({
'jname':'<?php echo $this->translate("Can not be empty. Name must begin with a letter / a-z / and not have any special symbols: -,.=%");?>',
'hostname':'<?php echo $this->translate("This field can not be empty");?>',
'ip':'<?php echo $this->translate("Write correct ip address, e.g: 10.0.0.2");?>',
});
</script>
<dialog id="image-import" class="window-box new">
<h1>
<span class="new"><?php echo $this->translate('Image Import');?></span>
<!-- <span class="edit"><?php echo $this->translate('Edit jail');?></span> -->
</h1>
<h2><?php echo $this->translate('Settings');?></h2>
<form class="win" method="post" id="imageImportSettings" onsubmit="return false;">
<div class="window-content">
<p>
<span class="field-name"><?php echo $this->translate('New name');?>:</span>
<input type="text" name="jname" value="" pattern="[^0-9]{1}[a-zA-Z0-9]{2,}" required="required" class="edit-disable" />
<div class="inp_comment" id="name_comment"></div>
</p>
<p>
<span class="field-name"><?php echo $this->translate('Hostname');?> (FQDN):</span>
<input type="text" name="host_hostname" value="" required="required" />
</p>
<p>
<span class="field-name"><?php echo $this->translate('IP address');?>:</span>
<input type="text" name="ip4_addr" value="DHCP" pattern="^DHCP$|^(?:[0-9]{1,3}\.){3}[0-9]{1,3}(\/[\d]{1,3})?$" required="required" />
</p>
<input type="hidden" name="file_id" value="" />
</div>
</form>
<div class="buttons">
<input type="button" value="<?php echo $this->translate('Import');?>" class="new button ok-but" />
<input type="button" value="<?php echo $this->translate('Cancel');?>" class="button red cancel-but" />
</div>
</dialog>