index 5c66c26f5652561ae6ab1d48d57ef63379002e27..ebd03920767aea5a994fcf6e0ec4df407b44fae2 100644 (file)
-<h2><img alt="" src="images/select_phone.png" align="middle"> Freigabe bearbeiten</h2>
+<h2><img class="center" alt="" src="images/fai_partitionTable.png" align="middle"> {t}Edit share{/t}</h2>
<table summary="{t}NFS setup{/t}" width="100%">
<tr>
<table summary="{t}NFS setup{/t}" width="100%">
<tr>
- <td width="45%">
+ <td width="45%" style="vertical-align:top">
<!--Table left-top-->
<!--Table left-top-->
- <table >
+ <table summary="">
<tr>
<td>
{t}Name{/t} {$must}
<tr>
<td>
{t}Name{/t} {$must}
{t}Description{/t}
</td>
<td>
{t}Description{/t}
</td>
<td>
- <input type="text" name="description" value="{$description}">
+ <input type="text" size="40" name="description" value="{$description}">
+ </td>
+ </tr>
+ <tr>
+ <td>
+ {t}Path{/t}
+ </td>
+ <td>
+ <input type="text" size="40" name="path" value="{$path}">
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <div id="vlabel">{t}Volume{/t}</div>
+ </td>
+ <td>
+ <input type="text" id="volume" size="40" name="volume" value="{$volume}">
</td>
</tr>
</table>
</td>
</td>
</tr>
</table>
</td>
- <td>
+ <td style="border-left:1px solid #A0A0A0">
<!--Table right-top-->
<!--Table right-top-->
- <table>
+ <table summary="">
<tr>
<tr>
- <td>
+ <td style="vertical-align:top">
{t}Type{/t}
</td>
<td>
{t}Type{/t}
</td>
<td>
- <select size="1" name="type">
- {html_options options=$types selected=$type}
- </select>
+ <select size="1" name="type" id="sharetype">
+ {html_options options=$types selected=$type}
+ </select>
+ {if $allow_mounts == TRUE}
+ <br><br><input type="checkbox" name="netatalk_mount" id="netatalk_mount" {$mount_checked} {$appleMountsACL}/><label for="netatalk_mount">{t}Auto-mount share on Apple systems{/t}</label>
+ <br>
+ <br>
+ {/if}
+
+ {literal}
+ <script language="JavaScript">
+ document.getElementById('sharetype').onchange=function() {
+ var foobar=this[this.selectedIndex].value;
+ var box=document.getElementById('netatalk_mount');
+ var volume=document.getElementById('volume');
+ var vlabel=document.getElementById('vlabel');
+ {/literal}
+ <!-- Only add checkbox enable/disable js part if checkbox is available -->
+ {if $allow_mounts == TRUE}
+ {literal}
+ if(foobar=="NFS"||foobar=="netatalk"){
+ box.disabled=false;
+ } else {
+ box.disabled=true;
+ box.checked=false;
+ }
+ {/literal}
+ {/if}
+ {literal}
+ if(foobar=="NCP"){
+ volume.style.visibility="visible";
+ vlabel.style.visibility="visible";
+ } else {
+ volume.style.visibility="hidden";
+ vlabel.style.visibility="hidden";
+ }
+ };
+ document.getElementById('sharetype').onchange();
+ </script>
+ {/literal}
</td>
</tr>
<tr>
<td>
</td>
</tr>
<tr>
<td>
- {t}Charset{/t}
+ {t}Codepage{/t}
</td>
<td>
<select size="1" name="charset">
</td>
<td>
<select size="1" name="charset">
</select>
</td>
</tr>
</select>
</td>
</tr>
- </table>
- </td>
- </tr>
- <tr>
- <td colspan=2>
- <p class="seperator"> </p>
- </td>
- </tr>
- <tr>
- <td>
- <!--Table bottom-->
- <table>
<tr>
<tr>
- <td>
- {t}Path{/t}
- </td>
- <td>
- <input type="text" name="path" value="{$path}">
- </td>
+ <td>
+ {t}Option{/t}
+ </td>
+ <td>
+ <input type="text" name="option" value="{$option}">
+ </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
- <td>
- <table>
- <tr>
- <td>
- {t}Option{/t}
- </td>
- <td>
- <input type="text" name="option" value="{$option}">
- </td>
- </tr>
- </table>
- </td>
</tr>
<tr>
<td colspan=2>
</tr>
<tr>
<td colspan=2>