Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Styling Backend 3.0.6.1 / query-builder ^1.0 #1

Open
CharlyUnicorn opened this issue May 31, 2017 · 2 comments
Open

Styling Backend 3.0.6.1 / query-builder ^1.0 #1

CharlyUnicorn opened this issue May 31, 2017 · 2 comments

Comments

@CharlyUnicorn
Copy link

Element in the Backend looks wrong in the Mapbender3 after update to Version 3.0.6.1

  • in the composer.json from the old Mapbende3 we had this version: "mapbender/query-builder": "1.*"
  • in the composer.json from the new version we have this version: "mapbender/query-builder": "^1.0"

auswahl_048

@CharlyUnicorn
Copy link
Author

@eSlider: hier die Lösung von Sven:

in QueryBuilderElement.php:

public static function getType()
{
    return 'MapbenderQueryBuilderBundle:ElementAdmin:queryBuilder.html.twig';
}

/**
 * @inheritdoc
 */
public static function getFormTemplate()
{
    return 'QueryBuilderBundle:ElementAdmin:queryBuilder.html.twig';
}

und in wueryBuilder.html.twig

<style media="all"> .elementFormQueryBuilder label.labelInput { width:135px; } </style> {{ form_label(form.title) }}{{ form_widget(form.title) }}
{% for keyName, val in form.configuration %}
    {{ form_label(val) }}{{ form_widget(val) }}
    <div class="clearContainer"></div>
{% endfor %}

@werrolf
Copy link
Contributor

werrolf commented Nov 7, 2019

^1.0 is the correct semantic version pattern, and shouldn't make any difference here.
Form styling should be better in 1.0.4, even on older Mapbender versions, by using the wideLabelForm class (since Mapbender 3.0.5.0) and the extraWideLabelForm class (since Mapbender 3.0.8).
1.0.4 remains BC with Mapbender 3.0.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants