mirror of
https://github.com/unraid/webgui.git
synced 2026-05-03 08:19:27 -05:00
Don't show Template Dropdown in Edit Container when referrer is Community Applications
This commit is contained in:
@@ -1182,7 +1182,7 @@ optgroup.title{background-color:#625D5D;color:#FFFFFF;text-align:center;margin-t
|
|||||||
<? if ($xmlType == "edit"):
|
<? if ($xmlType == "edit"):
|
||||||
if ($DockerClient->doesContainerExist($templateName)): echo "<input type='hidden' name='existingContainer' value='${templateName}'>\n"; endif;
|
if ($DockerClient->doesContainerExist($templateName)): echo "<input type='hidden' name='existingContainer' value='${templateName}'>\n"; endif;
|
||||||
else:?>
|
else:?>
|
||||||
<tr>
|
<tr class='TemplateDropDown'>
|
||||||
<td>Template:</td>
|
<td>Template:</td>
|
||||||
<td>
|
<td>
|
||||||
<select id="TemplateSelect" size="1" onchange="loadTemplate(this);">
|
<select id="TemplateSelect" size="1" onchange="loadTemplate(this);">
|
||||||
@@ -1784,6 +1784,9 @@ optgroup.title{background-color:#625D5D;color:#FFFFFF;text-align:center;margin-t
|
|||||||
echo "$('.advanced-switch').siblings('.switch-button-background').click();";
|
echo "$('.advanced-switch').siblings('.switch-button-background').click();";
|
||||||
}?>
|
}?>
|
||||||
});
|
});
|
||||||
|
if ( window.location.href.indexOf("/Apps/") > 0 ) {
|
||||||
|
$(".TemplateDropDown").hide();
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
<?END:?>
|
<?END:?>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user