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

Fixed references to _form partial #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion app/views_handlebars/users/add.html.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</ul>
</div>
{{/if}}
{{{ partial '_form' user=params }}}
{{{ partial 'form' user=params }}}
<div class="form-actions">
{{{ contentTag 'input' 'Add' type='submit' class='btn btn-primary' }}}
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views_handlebars/users/edit.html.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</ul>
</div>
{{/if}}
{{{ partial '_form' user=user }}}
{{{ partial 'form' user=user }}}
<div class="form-actions">
{{{ contentTag 'input' 'Save' type='submit' class='btn btn-primary' }}}
<button type="submit" formaction="{{{ userPath params.id }}}?_method=DELETE" formmethod='POST' class='btn btn-danger'>Remove</button>
Expand Down
2 changes: 1 addition & 1 deletion app/views_jade/users/add.html.jade
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
ul
each err in params.errors
li=err
= partial('_form', {user: params});
= partial('form', {user: params});
.form-actions
!= contentTag('input', 'Add', {type: 'submit', class: 'btn btn-primary'})
2 changes: 1 addition & 1 deletion app/views_jade/users/edit.html.jade
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
ul
each err in params.errors
li=err
= partial('_form', {user: user});
= partial('form', {user: user});
.form-actions
!= contentTag('input', 'Save', {type: 'submit', class: 'btn btn-primary'})
!= contentTag('button', 'Remove', {type: 'submit', formaction: userPath(params.id) + '?_method=DELETE', formmethod: 'POST', class: 'btn btn-danger'})
2 changes: 1 addition & 1 deletion app/views_mustache/users/add.html.ms
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</ul>
</div>
{{/if}}
{{{ partial '_form' user=params }}}
{{{ partial 'form' user=params }}}
<div class="form-actions">
{{{ contentTag 'input' 'Add' type='submit' class='btn btn-primary' }}}
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views_mustache/users/edit.html.ms
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</ul>
</div>
{{/if}}
{{{ partial '_form' user=user }}}
{{{ partial 'form' user=user }}}
<div class="form-actions">
{{{ contentTag 'input' 'Save' type='submit' class='btn btn-primary' }}}
<button type="submit" formaction="{{{ userPath params.id }}}?_method=DELETE" formmethod='POST' class='btn btn-danger'>Remove</button>
Expand Down
2 changes: 1 addition & 1 deletion app/views_swig/users/add.html.swig
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</ul>
</div>
{% endif %}
{% set formPath = [process.cwd(), 'app/views/users/_form.html.swig'] %}
{% set formPath = [process.cwd(), 'app/views/users/form.html.swig'] %}
{% set formPath = formPath|join('/') %}
{% include formPath %}
<div class="form-actions">
Expand Down
2 changes: 1 addition & 1 deletion app/views_swig/users/edit.html.swig
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</ul>
</div>
{% endif %}
{% set formPath = [process.cwd(), 'app/views/users/_form.html.swig'] %}
{% set formPath = [process.cwd(), 'app/views/users/form.html.swig'] %}
{% set formPath = formPath|join('/') %}
{% include formPath with user %}
<div class="form-actions">
Expand Down