Commit 99e59a04 by Julien Jorry

Issues #1 et #2 : delete <script type='text/javascript'> + add robots.txt

parent a863907e
User-agent: *
Disallow: /
\ No newline at end of file
......@@ -3,7 +3,7 @@
{{ parent() }}
{% if app.request.get('_route') == 'admin_app_user_edit' or app.request.get('_route') == 'admin_app_user_create' %}
<script type="text/javascript">
<script>
$(function () {
$("input[name='{{ admin.uniqid }}[groups][]']").each(function () {
$(this).on('ifChecked', function(event){
......
......@@ -442,7 +442,7 @@ Modified for MLC from Sonata package.
{% if sonata_config.getOption('use_bootlint') %}
{% block bootlint %}
{# Bootlint - https://github.com/twbs/bootlint#in-the-browser #}
<script type="text/javascript">
<script>
javascript:(function(){var s=document.createElement("script");s.onload=function(){bootlint.showLintReportForCurrentDocument([], {hasProblems: false, problemFree: false});};s.src="https://maxcdn.bootstrapcdn.com/bootlint/latest/bootlint.min.js";document.body.appendChild(s)})();
</script>
{% endblock %}
......@@ -451,7 +451,7 @@ Modified for MLC from Sonata package.
{# MLC : AJOUT POUR EDITABLE BOOLEAN #}
{% block js %}
{{ encore_entry_script_tags('admin') }}
<script type="text/javascript">
<script>
$('.viewChoiceGroup').on('click', function () {
$('#roleGroupeModal').modal('show');
});
......
......@@ -83,13 +83,13 @@
{# AFFICHAGE DE LA MODALE DE CHOIX DU RÔLE (groupe associé aux rôles) #}
{% if showModalGroupChoice() %}
<script type="text/javascript">
<script>
$(document).ready(function() {
$('#roleGroupeModal').modal('show');
});
</script>
{% endif %}
<script type="text/javascript">
<script>
$('.viewChoiceGroup').on('click', function () {
$('#roleGroupeModal').modal('show');
});
......
{% set idmap = id|default('mapid') %}
<script type="text/javascript">
<script>
$(function () {
$('[data-toggle="tooltip"]').tooltip()
if ($('#{{idmap}}').length) {
......
{% set idmap = id|default('mapid') %}
<script type="text/javascript">
<script>
$(function () {
$('[data-toggle="tooltip"]').tooltip()
if ($('#{{idmap}}').length) {
......
{% set idmap = id|default('mapid') %}
<script type="text/javascript">
<script>
$(function () {
$('[data-toggle="tooltip"]').tooltip()
if ($('#{{idmap}}').length) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment