Skip to content

Commit

Permalink
Use dot notation in code generator
Browse files Browse the repository at this point in the history
  • Loading branch information
mpscholten committed Aug 30, 2022
1 parent 03d6e23 commit 90b52b3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions IHP/IDE/CodeGen/ViewGenerator.hs
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,9 @@ buildPlan' schema config =
render${singularName} ${singularVariableName} = [hsx|
<tr>
<td>{${singularVariableName}}</td>
<td><a href={Show${singularName}Action (get #id ${singularVariableName})}>Show</a></td>
<td><a href={Edit${singularName}Action (get #id ${singularVariableName})} class="text-muted">Edit</a></td>
<td><a href={Delete${singularName}Action (get #id ${singularVariableName})} class="js-delete text-muted">Delete</a></td>
<td><a href={Show${singularName}Action ${singularVariableName}.id}>Show</a></td>
<td><a href={Edit${singularName}Action ${singularVariableName}.id} class="text-muted">Edit</a></td>
<td><a href={Delete${singularName}Action ${singularVariableName}.id} class="js-delete text-muted">Delete</a></td>
</tr>
${qqClose}
|]
Expand Down
Loading

0 comments on commit 90b52b3

Please sign in to comment.