Skip to content

Commit

Permalink
Merge pull request #111 from scottnath/feature/checkboxes
Browse files Browse the repository at this point in the history
🐛 bad url and action
  • Loading branch information
ayush2k authored Jul 12, 2016
2 parents efeb971 + bc1d950 commit f0d3f48
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/routes/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ const routes = application => {
return content.form(merged, errors).then(form => {
res.render('content/add', {
form,
action: `/${config.content.base}/:type/${config.content.actions.save}`,
action: `/${config.content.base}/${req.params.type}/${config.content.actions.save}`,
type,
config: config.content,
});
Expand Down
2 changes: 1 addition & 1 deletion views/content/landing.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h2 class="base--h2">Content</h2>
{% if c.value %}
<tr class="table--tr">
<td class="table--td">{{c.value[type.primary]}}</td>
<td class="table--td"><a href="/{{config.base}}/{{type.id}}/{{c.id}}/{{c.revision}}/{{config.actions.edit}}" class="table--a">{{config.actions.edit}}</a></td>
<td class="table--td"><a href="/{{config.base}}/{{type.id}}/{{c.id}}/{{c.type}}/{{c.revision}}/{{config.actions.edit}}" class="table--a">{{config.actions.edit}}</a></td>
<td class="table--td">{{c.created}}</td>
</tr>
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion views/content/revision.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h2 class="base--h2">Revisions</h2>
<tr class="table--tr">
<td class="table--td">{{c.revision}}</td>
<td class="table--td">{{c.value[type.primary]}}</td>
<td class="table--td"><a href="/{{config.base}}/{{type.id}}/{{c.id}}/{{c.revision}}/{{config.actions.edit}}" class="table--a">{{config.actions.edit}}</a></td>
<td class="table--td"><a href="/{{config.base}}/{{type.id}}/{{c.id}}/{{c.type}}/{{c.revision}}/{{config.actions.edit}}" class="table--a">{{config.actions.edit}}</a></td>
<td class="table--td">{{c.created}}</td>
</tr>
{% endif %}
Expand Down

0 comments on commit f0d3f48

Please sign in to comment.