blob: fe2c52258fc617a6986745b0dee4dde2c37b96f9 (
plain) (
tree)
|
|
<form role="form" method="post" action="?do=VmStore">
<input type="text" name="prevent_autofill" id="prevent_autofill" value="" style="display:none;">
<input type="password" name="password_fake" id="password_fake" value="" style="display:none;">
<input type="hidden" name="token" value="{{token}}">
<input type="hidden" name="action" value="setstore">
<div class="panel panel-default">
<div class="panel-heading">
{{lang_vmLocation}} <a class="btn btn-default" data-toggle="modal" data-target="#help-store"><span class="glyphicon glyphicon-question-sign"></span></a>
</div>
<div class="panel-body slx-md-width">
<p>{{lang_vmLocationChoose}}</p>
<div class="panel panel-default">
<div class="panel-heading">
<input type="radio" name="storetype" value="internal" {{pre-internal}}> {{lang_intern}}
</div>
<div class="panel-body">
{{lang_noAdditionalInformation}}
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<input type="radio" name="storetype" value="nfs" {{pre-nfs}}> NFS
<a class="btn btn-default btn-sm" data-toggle="modal" data-target="#help-nfs"><span class="glyphicon glyphicon-question-sign"></span></a>
</div>
<div class="panel-body">
<label for="nfsaddr">NFS-Export</label>
<input type="text" class="form-control" name="nfsaddr" value="{{nfsaddr}}" placeholder="1.2.3.4:/export/bwlp" id="nfsaddr">
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<input type="radio" name="storetype" value="cifs" {{pre-cifs}}> CIFS
</div>
<div class="panel-body">
<label for="cifsaddr">UNC-Pfad</label>
<input type="text" class="form-control" name="cifsaddr" value="{{cifsaddr}}" placeholder="\\samba.server.example.com\bwlp" id="cifsaddr">
<br>
<label for="cifsuser">{{lang_readWrite}}</label>
<div class="input-group">
<span class="input-group-addon slx-ga">
{{lang_username}}
</span>
<input type="text" class="form-control" name="cifsuser" value="{{cifsuser}}" placeholder="{{lang_username}}" id="cifsuser">
<span class="input-group-addon">
{{lang_password}}
</span>
<input type="{{password_type}}" class="form-control" name="cifspasswd" value="{{cifspasswd}}" placeholder="{{lang_password}}">
</div>
<br>
<label for="cifsuserro">{{lang_readOnly}}</label>
<div class="input-group">
<span class="input-group-addon slx-ga">
{{lang_username}}
</span>
<input type="text" class="form-control" name="cifsuserro" value="{{cifsuserro}}" placeholder="{{lang_username}}" id="cifsuserro">
<span class="input-group-addon">
{{lang_password}}
</span>
<input type="{{password_type}}" class="form-control" name="cifspasswdro" value="{{cifspasswdro}}" placeholder="{{lang_password}}">
</div>
</div>
</div>
<button class="btn btn-primary" type="submit">{{lang_save}}</button>
</div>
</div>
</form>
<div class="modal fade" id="help-store" tabindex="-1" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">{{lang_vmLocation}}</div>
<div class="modal-body">
<p>
{{lang_vmLocationHelp1}}
</p>
<p>
{{lang_vmLocationHelp2}}
</p>
<p>
{{lang_vmLocationHelp3}}
</p>
</div>
<div class="modal-footer"><a class="btn btn-primary" data-dismiss="modal">{{lang_close}}</a></div>
</div>
</div>
</div>
<div class="modal fade" id="help-nfs" tabindex="-1" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">NFS</div>
<div class="modal-body">
<p>
{{lang_nfsHelp1}}
</p>
<pre>
/mnt/images 1.2.3.4(rw,no_root_squash,async)
/mnt/images *(ro,async,nolock)
</pre>
<p>
{{lang_nfsHelp2}}
</p>
<pre>
/mnt/images 1.2.3.4(rw,all_squash,anon_uid=1234,async)
/mnt/images *(ro,async,nolock)
</pre>
</div>
<div class="modal-footer"><a class="btn btn-primary" data-dismiss="modal">{{lang_close}}</a></div>
</div>
</div>
</div>
|