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

Feature/1.5 load widget entities form in ajax #385

Conversation

Charlie-Lucas
Copy link
Contributor

No description provided.

@Charlie-Lucas Charlie-Lucas force-pushed the feature/1.5-load-widget-entities-form-in-ajax branch from 5da88ba to 4c61d14 Compare April 20, 2016 13:51
@Charlie-Lucas Charlie-Lucas force-pushed the feature/1.5-load-widget-entities-form-in-ajax branch 11 times, most recently from 112061b to 202446c Compare April 21, 2016 12:02
@Charlie-Lucas Charlie-Lucas force-pushed the feature/1.5-load-widget-entities-form-in-ajax branch from aec6aeb to fb81b45 Compare April 21, 2016 12:23

//if the form is posted
if ($requestMethod === 'POST') {
//the widget view
$widgetView = WidgetMapHelper::getWidgetMapByWidgetAndView($widget, $currentView)->getView();

//var_dump($widgetView->getId());die();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Charlie-Lucas please remove this line

<li class="{% if not loop.last %}vic-seperate{% endif %}{% if widget.businessEntityId == class|lower %} vic-active{% endif %}"><a href="#picker-{{ class|lower }}" data-toggle="vic-tab">{{ ('form.widget.tab.' ~ class|lower ~ '.label')|trans({}, 'victoire') }}</a></li>

<li class="{% if not loop.last %}vic-seperate{% endif %}{% if widget.businessEntityId == class|lower and entityForms %} vic-active{% endif %}">
{% set keyToEntity = widget.id ? 'victoire_core_widget_entity_edit' : 'victoire_core_widget_entity_create' %}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please rename into routeName

@paulandrieux paulandrieux merged commit 9733801 into Victoire:1.5 May 4, 2016
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

Successfully merging this pull request may close these issues.

3 participants