Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 104 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
name: Bug Report
description: Create a report to help us improve advancedforms
body:
- type: markdown
attributes:
value: |

Dear GLPI plugin user.

**⚠️ Please never use standard issues to report security problems. See [security policy](https://github.com/pluginsGLPI/advancedforms/security/policy) for more details. ⚠️**

BEFORE SUBMITTING YOUR ISSUE, please make sure to read and follow these steps:

* We do not track feature requests nor enhancements here. Propose them on the [suggest dedicated site](https://suggest.glpi-project.org).
* Keep this tracker in ENGLISH. If you want support in your language, the [community forum](https://forum.glpi-project.org) is the best place.
* Always try to reproduce your issue at least on latest stable release.

The GLPI team.
- type: markdown
attributes:
value: |
## Professional Support

We do not guarantee any processing / resolution time for community issues.

If you need a quick fix or any guarantee, you should consider to buy a GLPI Network Subscription.

More information here: https://glpi-project.org/subscriptions/
- type: checkboxes
id: terms
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow hereinabove rules and [Contribution guide](https://github.com/glpi-project/glpi/blob/main/CONTRIBUTING.md)
options:
- label: I agree to follow this project's Code of Conduct
validations:
required: true
- type: checkboxes
attributes:
label: Is there an existing issue for this?
description: Please search to see if an issue already exists for the bug you encountered.
options:
- label: I have searched the existing issues
validations:
required: true
- type: input
id: glpi-version
attributes:
label: GLPI Version
description: What version of our GLPI are you running?
validations:
required: true
- type: input
id: plugin-version
attributes:
label: Plugin version
description: What version of `advancedforms` are you running?
validations:
required: true
- type: textarea
attributes:
label: Bug description
description: A concise description of the problem you are experiencing and what you expected to happen.
validations:
required: false
- type: textarea
id: logs
attributes:
label: Relevant log output
description: |
Please copy and paste any relevant log output. Find them in `*-error.log` files under `glpi/files/_log/`.

Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
render: shell
- type: input
id: url
attributes:
label: Page URL
description: If applicable, page URL where the bug happens.
validations:
required: false
- type: textarea
attributes:
label: Steps To reproduce
description: Steps to reproduce the behavior.
placeholder: |
1. With this config...
2. Go to...
3. Scroll down to...
4. See error...
validations:
required: false
- type: textarea
attributes:
label: Your GLPI setup information
description: Please copy and paste information you will find in GLPI in `Setup > General` menu, `System` tab.
validations:
required: false
- type: textarea
attributes:
label: Anything else?
description: Add any other context about the problem here.
validations:
required: false
20 changes: 20 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: 2
updates:
# Ensure GitHub Actions are used in their latest version
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"

# Strategy for composer dependencies
- package-ecosystem: "composer"
directory: "/"
schedule:
interval: "monthly"
allow:
- dependency-type: "direct"
open-pull-requests-limit: 100
versioning-strategy: "increase"
groups:
dev-dependencies:
dependency-type: "development"
15 changes: 15 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## Checklist before requesting a review

*Please delete options that are not relevant.*

- [ ] I have performed a self-review of my code.
- [ ] I have added tests (when available) that prove my fix is effective or that my feature works.
- [ ] I have updated the CHANGELOG with a short functional description of the fix or new feature.
- [ ] This change requires a documentation update.

## Description

- It fixes # (issue number, if applicable)
- Here is a brief description of what this PR does

## Screenshots (if appropriate):
17 changes: 17 additions & 0 deletions .twig_cs.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

declare(strict_types=1);

use FriendsOfTwig\Twigcs\Finder\TemplateFinder;
use FriendsOfTwig\Twigcs\Config\Config;
use Glpi\Tools\GlpiTwigRuleset;

$finder = TemplateFinder::create()
->in(__DIR__ . '/templates')
->name('*.html.twig')
->ignoreVCSIgnored(true);

return Config::create()
->setFinder($finder)
->setRuleSet(GlpiTwigRuleset::class)
;
2 changes: 1 addition & 1 deletion templates/configurable_item.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
unit tests so it need to call the same "source" method #}
{% set slug = call('Toolbox::Slugify', [
get_class(item)
] ) %}
]) %}

<div
class="col-12 col-lg-6 col-xxl-4 mb-2"
Expand Down
4 changes: 2 additions & 2 deletions templates/editor/question_types/ldap_select_config.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
'display_emptychoice': true,
'full_width' : true,
'disabled' : true,
'init' : question is not null ? true: false,
'init' : question is not null ? true : false,
}
) }}
</div>
Expand Down Expand Up @@ -89,7 +89,7 @@
__('Attribute'), {
'full_width' : true,
'is_horizontal': false,
'init' : question is not null ? true: false,
'init' : question is not null ? true : false,
}
) }}
</div>