Fix mount’s read-only attr when editing service

This commit is contained in:
cuigh 2017-10-12 18:05:48 +08:00
parent a5129ff188
commit 6dfb22dd11

View File

@ -194,7 +194,7 @@
<td><input name="mounts[{{i}}].dst" value="{{m.Target}}" class="input is-small" placeholder="path in container"></td>
<td>
<div class="select is-small">
{{ yield select(name="mounts["+i+"].read_only", values=slice("false", "true"), labels=slice("No", "Yes"), selected=m.Type, dt="bool") }}
{{ yield select(name="mounts["+i+"].read_only", values=slice("false", "true"), labels=slice("No", "Yes"), selected=m.ReadOnly, dt="bool") }}
</div>
</td>
<td>