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

add new post form in material header #1319

Merged
merged 1 commit into from
Aug 12, 2015
Merged

add new post form in material header #1319

merged 1 commit into from
Aug 12, 2015

Conversation

nicosomb
Copy link
Member

replaces #1307 (I had problems with merge, some files were deleted, I made so many mistakes I think)

@nicosomb nicosomb added this to the 2.0 milestone Aug 12, 2015
@@ -58,7 +58,7 @@
</div>
<div class="input-field nav-panel-buttom">
<ul>
<li class="bold"><a class="waves-effect" href="{{ path('new_entry') }}" id="nav-btn-add"><i class="mdi-content-add"></i></a></li>
<li class="bold"><a class="waves-effect" href="javascript: void(null);" id="nav-btn-add"><i class="mdi-content-add"></i></a></li>
Copy link
Member

Choose a reason for hiding this comment

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

I think you can let the url inside the href {{ path('new') }}. In that case, if every thing goes well, user will have js fully load and will have the js form poped. In any other case, bad network connection, js error, etc ... it will still be able to add an entry because it will be redirected to the new form page.

Copy link
Member Author

Choose a reason for hiding this comment

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

I will try it and will change it if it's good.

@nicosomb
Copy link
Member Author

@j0k3r I changed the href (your method works well 👍 )

@j0k3r
Copy link
Member

j0k3r commented Aug 12, 2015

You don't need to push force every time you udpate a PR :)

j0k3r added a commit that referenced this pull request Aug 12, 2015
add new post form in material header
@j0k3r j0k3r merged commit 496f21e into v2 Aug 12, 2015
@j0k3r j0k3r deleted the v2-form-header branch August 12, 2015 08:14
@nicosomb nicosomb modified the milestones: 2.0, 2.0.0-alpha Aug 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants