|
|
|
@ -15,6 +15,34 @@
|
|
|
|
|
<@p.hidden id="conf.id" name="conf.id" value='${obj.id}' /> |
|
|
|
|
<@p.text width="30" label="仓库路径" id="conf.repositoryPath" name="conf.repositoryPath" value="${obj.repositoryPath}" maxlength="100" class="required" required="true"/><@p.tr/> |
|
|
|
|
<@p.text width="30" label="访问url" id="conf.domainPath" name="conf.domainPath" value="${obj.domainPath}" maxlength="100" class="required" required="true"/><@p.tr/> |
|
|
|
|
<@p.td label="默认开启的文件夹" colspan="6"> |
|
|
|
|
<table border="0" id="attachTable"> |
|
|
|
|
<tr colspan="3"> |
|
|
|
|
<td align="center"><input type="button" value="<@s.m 'system.add'/>" onclick="addAttachLine();" class="add"></td> |
|
|
|
|
<td align="center" colspan="2">默认开启的文件夹</td> |
|
|
|
|
</tr> |
|
|
|
|
<#list obj.dirs as item> |
|
|
|
|
<#assign index = item_index> |
|
|
|
|
<tr id="attachTr${index}"> |
|
|
|
|
<td align="center"><a onclick="$('#attachTr${index}').remove();" href="javascript:void(0);" class="pn-opt"><@s.m "system.delete"/></a></td> |
|
|
|
|
<td align="center"><input type="text" id="conf.dirs[${index}]" name="conf.dirs[${index}]" value="${item}" /></td> |
|
|
|
|
</tr> |
|
|
|
|
</#list> |
|
|
|
|
</table> |
|
|
|
|
</@p.td><@p.tr/> |
|
|
|
|
<textarea style="display:none" id="attachTr"> |
|
|
|
|
<tr id="attachTr{0}" colspan="3"> |
|
|
|
|
<td align="center"><a onclick="$('#attachTr{0}').remove();" href="javascript:void(0);" class="pn-opt"><@s.m "system.delete"/></a></td> |
|
|
|
|
<td align="center" colspan="2"><input type="text" id="conf.dirs[{0}]" name="conf.dirs[{0}]"/></td> |
|
|
|
|
</tr> |
|
|
|
|
</textarea> |
|
|
|
|
<script type="text/javascript"> |
|
|
|
|
var attachIndex =${obj.dirs?size}; |
|
|
|
|
var attachTpl = $.format($("#attachTr").val()); |
|
|
|
|
function addAttachLine() { |
|
|
|
|
$('#attachTable').append(attachTpl(attachIndex++)); |
|
|
|
|
} |
|
|
|
|
</script> |
|
|
|
|
<@p.td colspan="1"><@p.submit code="global.submit" onclick="Cms.updateAll('conf/update','conf.rk');"/> <@p.reset code="global.reset"/></@p.td><@p.tr/> |
|
|
|
|
</@p.form> |
|
|
|
|
</div> |
|
|
|
|