[PATCH] Cobbler - webui - hide random mac link when editing system

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Attached is a small patch for cobbler that hides the Random MAC link
when editing systems. This has no use as the needed JS code is also
disabled in that case.

Regards,
Tim
--- webui_templates/system_edit.tmpl.orig	2008-02-07 10:12:20.000000000 +0100
+++ webui_templates/system_edit.tmpl	2008-02-07 10:15:07.000000000 +0100
@@ -277,7 +277,9 @@
                value="$macaddress"
         />
 
+	#if not $system
         <a href="javascript: get_random_mac('macaddress-$interface')" style="font-size: 0.8em;">Random MAC</a>   
+	#end if
 
         <p class="context-tip">Example: AA:BB:CC:DD:EE:FF</p>
         </td>
_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux