summaryrefslogtreecommitdiffstats
path: root/modules-available/vmstore/templates/page-vmstore.html
blob: fece8e2476244b6666d4c96a0ce52c9421d230db (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<form role="form" method="post" action="?do=VmStore">
	<input type="text" name="prevent_autofill" id="prevent_autofill" value="" style="position:absolute;top:-2000px" tabindex="-1">
	<input type="password" name="password_fake" id="password_fake" value=""   style="position:absolute;top:-2000px" tabindex="-1">
	<input type="hidden" name="token" value="{{token}}">
	<input type="hidden" name="action" value="setstore">

	<h1>{{lang_vmLocation}}</h1>

	<p>{{lang_vmLocationChoose}} <a class="btn btn-default" data-toggle="modal" data-target="#help-store"><span class="glyphicon glyphicon-question-sign"></span></a></p>


	<div class="panel panel-default {{^internalAllowed}}disabledPanel{{/internalAllowed}}">
		<div class="panel-heading">
			<div class="radio">
				<input type="radio" name="storetype" value="internal" {{pre-internal}} id="id-internal">
				<label for="id-internal">{{lang_internal}}</label>
			</div>
		</div>
		<div class="panel-body">
			{{lang_noAdditionalInformation}}
		</div>
	</div>

	<div class="panel panel-default {{^nfsAllowed}}disabledPanel{{/nfsAllowed}}">
		<div class="panel-heading">
			<div class="radio radio-inline">
				<input type="radio" name="storetype" value="nfs" {{pre-nfs}} id="id-nfs">
				<label for="id-nfs">NFS</label>
			</div>
			<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 {{^cifsAllowed}}disabledPanel{{/cifsAllowed}}">
		<div class="panel-heading">
			<div class="radio radio-inline">
				<input type="radio" name="storetype" value="cifs" {{pre-cifs}} id="id-cifs">
				<label for="id-cifs">CIFS</label>
			</div>
			<a class="btn btn-default btn-sm" data-toggle="modal" data-target="#help-cifs"><span class="glyphicon glyphicon-question-sign"></span></a>
		</div>
		<div class="panel-body">
			<label for="cifsaddr">UNC-{{lang_path}}</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>
	<div class="text-right">
		<button class="btn btn-primary" type="submit" {{^saveAllowed}}disabled{{/saveAllowed}}><span class="glyphicon glyphicon-floppy-disk"></span> {{lang_save}}</button>
	</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">
				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
				{{lang_vmLocation}}
			</div>
			<div class="modal-body">
				<p>
					{{lang_vmLocationHelp1}}
				</p>
				<p>
					{{lang_vmLocationHelp2}}
				</p>
				<p>
					{{lang_vmLocationHelp3}}
				</p>
				<p>
					{{lang_vmLocationHelp4}}
				</p>
			</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">
				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
				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)
				</pre>
				<p>
					{{lang_nfsHelp2}}
				</p>
				<pre>
/mnt/images    1.2.3.4(rw,all_squash,anonuid=1234,async)
/mnt/images    *(ro,async)
				</pre>
				<p>
					{{lang_nfsHelp3}}
				</p>
				<p>
					{{lang_nfsHelp4}}
				</p>
			</div>
		</div>
	</div>
</div>

<div class="modal fade" id="help-cifs" tabindex="-1" role="dialog">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
				CIFS/SMB
			</div>
			<div class="modal-body">
				<p>
					{{lang_cifsHelp1}}
				</p>
				<p>
					{{lang_cifsHelp2}}
				</p>
				<p>
					{{lang_cifsHelp3}}
				</p>
			</div>
		</div>
	</div>
</div>