diff options
Diffstat (limited to 'modules-available/eventlog/templates')
-rw-r--r-- | modules-available/eventlog/templates/page-filters-edit-rule.html | 12 | ||||
-rw-r--r-- | modules-available/eventlog/templates/page-filters-rules.html | 36 |
2 files changed, 30 insertions, 18 deletions
diff --git a/modules-available/eventlog/templates/page-filters-edit-rule.html b/modules-available/eventlog/templates/page-filters-edit-rule.html index 0678dd97..318a8656 100644 --- a/modules-available/eventlog/templates/page-filters-edit-rule.html +++ b/modules-available/eventlog/templates/page-filters-edit-rule.html @@ -1,4 +1,12 @@ -<h2>{{lang_editFilter}} {{#title}}–{{/title}} {{title}}</h2> +<h2> + {{#ruleid}} + {{lang_editFilter}} + {{/ruleid}} + {{^ruleid}} + {{lang_createFilter}} + {{/ruleid}} +</h2> +<h3>{{title}}</h3> <p>{{lang_filterExampleHelpText}}</p> @@ -199,7 +207,7 @@ } }); }; - $fkInputs.on('input', chFn).change(chFn); + $fkInputs.on('input', chFn).change(chFn).each(chFn); typeFieldChangeUpdate(); }); </script> diff --git a/modules-available/eventlog/templates/page-filters-rules.html b/modules-available/eventlog/templates/page-filters-rules.html index 524e71b2..56bf0871 100644 --- a/modules-available/eventlog/templates/page-filters-rules.html +++ b/modules-available/eventlog/templates/page-filters-rules.html @@ -14,22 +14,26 @@ </thead> <tbody> {{#filters}} - <tr> - <td>{{ruleid}}</td> - <td>{{type}}</td> - <td class="text-nowrap">{{title}}</td> - <!--td class="small">{.{datafilter}.}</td--> - <td><span class="badge">{{useCount}}</span></td> - <td class="slx-smallcol"> - <a class="btn btn-xs btn-default" href="?do=eventlog&show=rules&id={{ruleid}}"> + <tr> + <td>{{ruleid}}</td> + <td>{{type}}</td> + <td class="text-nowrap">{{title}}</td> + <td><span class="badge">{{useCount}}</span></td> + <td class="slx-smallcol"> + <a class="btn btn-xs btn-default {{perms.filter.rules.edit.disabled}}" + href="?do=eventlog&show=rules&id={{ruleid}}" title="{{lang_edit}}"> <span class="glyphicon glyphicon-edit" aria-label="{{lang_edit}}"></span> - </a> - <button class="btn btn-xs btn-danger" type="submit" name="id" value="{{ruleid}}" - data-confirm="{{lang_reallyDelete}}"> - <span class="glyphicon glyphicon-trash"></span> - </button> - </td> - </tr> + </a> + <a class="btn btn-xs btn-default {{perms.filter.rules.edit.disabled}}" + href="?do=eventlog&show=rules&id={{ruleid}}&copy=1" title="{{lang_copy}}"> + <span class="glyphicon glyphicon-duplicate" aria-label="{{lang_copy}}"></span> + </a> + <button class="btn btn-xs btn-danger" type="submit" name="id" value="{{ruleid}}" title="{{lang_delete}}" + data-confirm="{{lang_reallyDelete}}" {{perms.filter.rules.edit.disabled}}> + <span class="glyphicon glyphicon-trash"></span> + </button> + </td> + </tr> {{/filters}} </tbody> </table> @@ -37,7 +41,7 @@ </form> <div class="buttonbar text-right"> - <a class="btn btn-success" href="?do=eventlog&show=rules&id=0"> + <a class="btn btn-success {{perms.filter.rules.edit.disabled}}" href="?do=eventlog&show=rules&id=0"> <span class="glyphicon glyphicon-plus"></span> {{lang_add}} </a> |