Help needed: Hide / disable to client set website as active or inactive
Hi, Im trying to modify ISPConfig and hide field "Active" in website creating / editing form. I do not want to let clients to enable or disable their websites on their own.
I tried to this modification of ''sites/templates/web_vhost_domain_edit.htm'' (added is_admin condition)
<tmpl_if name="is_admin"> {tmpl_hook name="field_active"} <div class="form-group"> <label class="col-sm-3 control-label">{tmpl_var name='active_txt'}</label> <div class="col-sm-9"> {tmpl_var name='active'} </div> </div> </tmpl_if>
But there is a problem with this modification. Every website edit user made = website is set as inactive.
I try to look around the code what is the active/inactive workaround but I didnt find anything how this function works. Where is the string / form created / inserted / setted.
Please, can you someone help me, how to achieve my goal? Or is possible to implement this feature also to ISPConfig release?
Thank you so much!