system53 Posted March 10, 2019 Share Posted March 10, 2019 Hello, I developed a module. We can renew or extend active or suspended services in advance. It works fine and convenient. But the product is passive ( suspended,abuse,closed-deleted,canceled) in case I want to disable the refresh button. I have used the following code for this but I did not succeed. {if $service.status != 'active'}Disabled{/if} I'd appreciate it if you could help me. 0 Quote Link to comment Share on other sites More sharing options...
system53 Posted March 10, 2019 Author Share Posted March 10, 2019 (edited) 33 minutes ago, system53 said: Hello, I developed a module. We can renew or extend active or suspended services in advance. It works fine and convenient. But the product is passive ( suspended,abuse,closed-deleted,canceled) in case I want to disable the refresh button. I have used the following code for this but I did not succeed. Bana yardım edebilirsen sevinirim. I tried it like the following and it happened. {if $service.status|strtolower != 'active'}disabled{/if} Edited March 10, 2019 by system53 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 10, 2019 Share Posted March 10, 2019 status is uppercase, I think statusClass would be lowercase. 0 Quote Link to comment Share on other sites More sharing options...
system53 Posted March 10, 2019 Author Share Posted March 10, 2019 2 minutes ago, brian! said: status is uppercase, I think statusClass would be lowercase. Thank you, Brian, you're a wonderful person. As I said, I did what I wanted with the code below. {if $service.status|strtolower != 'active'}disabled{/if} 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 10, 2019 Share Posted March 10, 2019 for others, you equally do this with.. {if $service.status != 'Active'}disabled{/if} 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.