As Andrija pointed out, you can check out templates.js and see the if condition for displaying "public" checkbox or not.
It is based on a global variable called g_userPublicTemplateEnabled, which is assigned in cloudStack.js. The command that pulls that kind of info is listCapabilitiesCmd. I believe it's the only command that is called before the user logs in to set some variables, such as cloudstack version, ability for users to create projects etc. It gets the info from global configs. In your case, you could implement a new attribute on that command and then update the UI with the same if condition as in the templates.js file. -- Daniel Simões Time Evolução Infra - Globo.com E-mail: daniel.sim...@corp.globo.com Tel.: +55 21 2483-6977 2015-03-06 12:00 GMT-03:00 Andrija Panic <andrija.pa...@gmail.com>: > If you disable global option for users to create Public templates, then > "public" checkbox is hidden on the New Template creation form.. > > not a button - but... > > On 6 March 2015 at 14:50, Pierre-Luc Dion <pd...@cloudops.com> wrote: > > > I think Ilya want to implement the disable Reset VM button, SAML button > > can be disable thru GlobalSettings: saml2.enabled > > > > > > > > > > > > On Fri, Mar 6, 2015 at 8:39 AM, Nux! <n...@li.nux.ro> wrote: > > > > > Pierre-Luc, > > > > > > Out of curiosity, which is the setting that disables "Reset VM"? > > > > > > Lucian > > > > > > -- > > > Sent from the Delta quadrant using Borg technology! > > > > > > Nux! > > > www.nux.ro > > > > > > ----- Original Message ----- > > > > From: "Pierre-Luc Dion" <pd...@cloudops.com> > > > > To: dev@cloudstack.apache.org > > > > Sent: Friday, 6 March, 2015 13:29:28 > > > > Subject: Re: Disable a UI button via global setting - how to > implement? > > > > > > > You can refer to Rohit's SAML feature, their is a button on the logon > > > page > > > > in acs4.5, it can be disabled thru GlobalSettings. > > > > > > > > > > > > > > > > > > > > > > > > On Thu, Mar 5, 2015 at 5:44 PM, ilya musayev < > > > ilya.mailing.li...@gmail.com> > > > > wrote: > > > > > > > >> I'm looking into a way of making ResetVM button disabled in some > > > >> cloudstack environments. Ideally, i'd want it per zone, but its can > be > > > also > > > >> Global Setting. > > > >> > > > >> I don't want to disable the API ResetVM, just the UI button. > > > >> > > > >> Would you know of a feature/button in cloudstack UI that follows a > > > similar > > > >> pattern and can be used as a point of reference? > > > >> > > > >> Thanks > > > >> ilya > > > > > > > > > -- > > Andrija Panić >