This repository has been archived by the owner on Dec 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mon 2803 acl resources access (#6962)
* fix(hg) freeze hg edition compared acl * fix(downtime) freeze form and hide button
- Loading branch information
Showing
9 changed files
with
234 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
175 changes: 114 additions & 61 deletions
175
www/include/configuration/configObject/hostgroup/formHostGroup.ihtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,119 @@ | ||
{$form.javascript}{$javascript} | ||
<form {$form.attributes}> | ||
<div id="validFormTop"> | ||
{if $o == "a" || $o == "c"} | ||
<p class="oreonbutton">{$form.submitC.html}{$form.submitA.html} {$form.reset.html}</p> | ||
{else if $o == "w"} | ||
<p class="oreonbutton">{$form.change.html}</p> | ||
{/if} | ||
</div> | ||
<div id='tab1' class='tab'> | ||
<table class="formTable table"> | ||
<tr class="ListHeader"> | ||
<td class="FormHeader" colspan="2"> | ||
<h3>| {$form.header.title}</h3> | ||
</td> | ||
</tr> | ||
<tr class="list_lvl_1"> | ||
<td class="ListColLvl1_name" colspan="2"> | ||
<h4>{$form.header.information}</h4> | ||
</td> | ||
</tr> | ||
<tr class="list_one"><td class="FormRowField"><img class="helpTooltip" name="hostgroup_name"> {$form.hg_name.label}</td><td class="FormRowValue">{$form.hg_name.html}</td></tr> | ||
<tr class="list_two"><td class="FormRowField"><img class="helpTooltip" name="alias"> {$form.hg_alias.label}</td><td class="FormRowValue">{$form.hg_alias.html}</td></tr> | ||
|
||
<tr class="list_lvl_1"> | ||
<td class="ListColLvl1_name" colspan="2"> | ||
<h4>{$form.header.relation}</h4> | ||
</td> | ||
</tr> | ||
<tr class="list_one"><td class="FormRowField"><img class="helpTooltip" name="members"> {$form.hg_hosts.label}</td><td class="FormRowValue"><p class="oreonbutton">{$form.hg_hosts.html} </p></td></tr> | ||
{if !$form.msgacl } | ||
<div id="validFormTop"> | ||
{if $o == "a" || $o == "c"} | ||
<p class="oreonbutton">{$form.submitC.html}{$form.submitA.html} {$form.reset.html}</p> | ||
{else if $o == "w"} | ||
<p class="oreonbutton">{$form.change.html}</p> | ||
{/if} | ||
</div> | ||
{/if} | ||
{if $form.msgacl } | ||
<div style="color: red; text-align: center; font-weight: bold; margin: 4px"> | ||
{t}You can't edit this hostgroup because you don't have access to all its resources{/t} | ||
</div> | ||
{/if} | ||
<div id='tab1' class='tab'> | ||
<table class="formTable table"> | ||
<tr class="ListHeader"> | ||
<td class="FormHeader" colspan="2"> | ||
<h3>| {$form.header.title}</h3> | ||
</td> | ||
</tr> | ||
<tr class="list_lvl_1"> | ||
<td class="ListColLvl1_name" colspan="2"> | ||
<h4>{$form.header.information}</h4> | ||
</td> | ||
</tr> | ||
<tr class="list_one"> | ||
<td class="FormRowField"><img class="helpTooltip" name="hostgroup_name"> {$form.hg_name.label}</td> | ||
<td class="FormRowValue">{$form.hg_name.html}</td> | ||
</tr> | ||
<tr class="list_two"> | ||
<td class="FormRowField"><img class="helpTooltip" name="alias"> {$form.hg_alias.label}</td> | ||
<td class="FormRowValue">{$form.hg_alias.html}</td> | ||
</tr> | ||
|
||
<tr class="list_lvl_1"> | ||
<td class="ListColLvl1_name" colspan="2"> | ||
<h4>{$form.header.extended}</h4> | ||
</td> | ||
</tr> | ||
<tr class="list_one"><td class="FormRowField"><img class="helpTooltip" name="notes"> {$form.hg_notes.label}</td><td class="FormRowValue"><p class="oreonbutton">{$form.hg_notes.html}</p></td></tr> | ||
<tr class="list_two"><td class="FormRowField"><img class="helpTooltip" name="notes_url"> {$form.hg_notes_url.label}</td><td class="FormRowValue"><p class="oreonbutton">{$form.hg_notes_url.html}</p></td></tr> | ||
<tr class="list_one"><td class="FormRowField"><img class="helpTooltip" name="action_url"> {$form.hg_action_url.label}</td><td class="FormRowValue"><p class="oreonbutton">{$form.hg_action_url.html}</p></td></tr> | ||
<tr class="list_two"><td class="FormRowField"><img class="helpTooltip" name="icon_image"> {$form.hg_icon_image.label}</td><td class="FormRowValue"><p class="oreonbutton">{$form.hg_icon_image.html} <img id='hg_icon_image_img' src='./img/blank.gif'></p></td></tr> | ||
<tr class="list_one"><td class="FormRowField"><img class="helpTooltip" name="statusmap_image"> {$form.hg_map_icon_image.label}</td><td class="FormRowValue"><p class="oreonbutton">{$form.hg_map_icon_image.html} <img id='hg_map_icon_image' src='./img/blank.gif'></p></td></tr> | ||
<tr class="list_two"><td class="FormRowField"><img class="helpTooltip" name="geo_coords"> {$form.geo_coords.label}</td><td class="FormRowValue">{$form.geo_coords.html}</td></tr> | ||
|
||
<tr class="list_lvl_1"> | ||
<td class="ListColLvl1_name" colspan="2"> | ||
<h4>{$form.header.furtherInfos}</h4> | ||
</td> | ||
</tr> | ||
<tr class="list_one"><td class="FormRowField"><img class="helpTooltip" name="hg_rrd_retention"> {$form.hg_rrd_retention.label}</td><td class="FormRowValue">{$form.hg_rrd_retention.html} {$days}</td></tr> | ||
<tr class="list_two"><td class="FormRowField"><img class="helpTooltip" name="hg_comment"> {$form.hg_comment.label}</td><td class="FormRowValue">{$form.hg_comment.html}</td></tr> | ||
<tr class="list_one"><td class="FormRowField"><img class="helpTooltip" name="hg_activate"> {$form.hg_activate.label}</td><td class="FormRowValue">{$form.hg_activate.html}</td></tr> | ||
{if $o == "a" || $o == "c"} | ||
<tr class="list_lvl_2"><td class="ListColLvl2_name" colspan="2">{$form.required._note}</td></tr> | ||
{/if} | ||
</table> | ||
</div> | ||
<div id="validForm"> | ||
{if $o == "a" || $o == "c"} | ||
<p class="oreonbutton">{$form.submitC.html}{$form.submitA.html} {$form.reset.html}</p> | ||
{else if $o == "w"} | ||
<p class="oreonbutton">{$form.change.html}</p> | ||
{/if} | ||
</div> | ||
{$form.hidden} | ||
<tr class="list_lvl_1"> | ||
<td class="ListColLvl1_name" colspan="2"> | ||
<h4>{$form.header.relation}</h4> | ||
</td> | ||
</tr> | ||
<tr class="list_one"> | ||
<td class="FormRowField"><img class="helpTooltip" name="members"> {$form.hg_hosts.label}</td> | ||
<td class="FormRowValue"><p class="oreonbutton">{$form.hg_hosts.html} </p></td> | ||
</tr> | ||
|
||
<tr class="list_lvl_1"> | ||
<td class="ListColLvl1_name" colspan="2"> | ||
<h4>{$form.header.extended}</h4> | ||
</td> | ||
</tr> | ||
<tr class="list_one"> | ||
<td class="FormRowField"><img class="helpTooltip" name="notes"> {$form.hg_notes.label}</td> | ||
<td class="FormRowValue"><p class="oreonbutton">{$form.hg_notes.html}</p></td> | ||
</tr> | ||
<tr class="list_two"> | ||
<td class="FormRowField"><img class="helpTooltip" name="notes_url"> {$form.hg_notes_url.label}</td> | ||
<td class="FormRowValue"><p class="oreonbutton">{$form.hg_notes_url.html}</p></td> | ||
</tr> | ||
<tr class="list_one"> | ||
<td class="FormRowField"><img class="helpTooltip" name="action_url"> {$form.hg_action_url.label}</td> | ||
<td class="FormRowValue"><p class="oreonbutton">{$form.hg_action_url.html}</p></td> | ||
</tr> | ||
<tr class="list_two"> | ||
<td class="FormRowField"><img class="helpTooltip" name="icon_image"> {$form.hg_icon_image.label}</td> | ||
<td class="FormRowValue"><p class="oreonbutton">{$form.hg_icon_image.html} <img | ||
id='hg_icon_image_img' src='./img/blank.gif'></p></td> | ||
</tr> | ||
<tr class="list_one"> | ||
<td class="FormRowField"><img class="helpTooltip" name="statusmap_image"> | ||
{$form.hg_map_icon_image.label} | ||
</td> | ||
<td class="FormRowValue"><p class="oreonbutton">{$form.hg_map_icon_image.html} <img | ||
id='hg_map_icon_image' src='./img/blank.gif'></p></td> | ||
</tr> | ||
<tr class="list_two"> | ||
<td class="FormRowField"><img class="helpTooltip" name="geo_coords"> {$form.geo_coords.label}</td> | ||
<td class="FormRowValue">{$form.geo_coords.html}</td> | ||
</tr> | ||
|
||
<tr class="list_lvl_1"> | ||
<td class="ListColLvl1_name" colspan="2"> | ||
<h4>{$form.header.furtherInfos}</h4> | ||
</td> | ||
</tr> | ||
<tr class="list_one"> | ||
<td class="FormRowField"><img class="helpTooltip" name="hg_rrd_retention"> | ||
{$form.hg_rrd_retention.label} | ||
</td> | ||
<td class="FormRowValue">{$form.hg_rrd_retention.html} {$days}</td> | ||
</tr> | ||
<tr class="list_two"> | ||
<td class="FormRowField"><img class="helpTooltip" name="hg_comment"> {$form.hg_comment.label}</td> | ||
<td class="FormRowValue">{$form.hg_comment.html}</td> | ||
</tr> | ||
<tr class="list_one"> | ||
<td class="FormRowField"><img class="helpTooltip" name="hg_activate"> {$form.hg_activate.label}</td> | ||
<td class="FormRowValue">{$form.hg_activate.html}</td> | ||
</tr> | ||
{if $o == "a" || $o == "c"} | ||
<tr class="list_lvl_2"> | ||
<td class="ListColLvl2_name" colspan="2">{$form.required._note}</td> | ||
</tr> | ||
{/if} | ||
</table> | ||
</div> | ||
{if !$form.msgacl } | ||
<div id="validForm"> | ||
{if $o == "a" || $o == "c"} | ||
<p class="oreonbutton">{$form.submitC.html}{$form.submitA.html} {$form.reset.html}</p> | ||
{else if $o == "w"} | ||
<p class="oreonbutton">{$form.change.html}</p> | ||
{/if} | ||
</div> | ||
{/if} | ||
{$form.hidden} | ||
</form> | ||
{$helptext} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.