Skip to content

Commit

Permalink
Fixed: edit/detail url error
Browse files Browse the repository at this point in the history
  • Loading branch information
cg33 committed Jan 7, 2020
1 parent 487375f commit 0962873
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions adminlte/resource/pages/components/table.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,15 @@
<td>
{{$Action}}
{{if $EditUrl}}
<a href='{{$EditUrl}}&{{$PrimaryKey}}={{index $info $PrimaryKey}}'><i
<a href='{{$EditUrl}}&__goadmin_edit_pk={{index $info $PrimaryKey}}'><i
class="fa fa-edit"></i></a>
{{end}}
{{if $DeleteUrl}}
<a href="javascript:void(0);" data-id='{{index $info $PrimaryKey}}'
class="grid-row-delete"><i
class="fa fa-trash"></i></a>
{{end}}
<a href="{{$DetailUrl}}&{{$PrimaryKey}}={{index $info $PrimaryKey}}" class="grid-row-view">
<a href="{{$DetailUrl}}&__goadmin_detail_pk={{index $info $PrimaryKey}}" class="grid-row-view">
<i class="fa fa-eye"></i>
</a>
</td>
Expand Down
4 changes: 2 additions & 2 deletions adminlte/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -1239,15 +1239,15 @@ var TemplateList = map[string]string{"admin_panel":`{{define "admin_panel"}}
<td>
{{$Action}}
{{if $EditUrl}}
<a href='{{$EditUrl}}&{{$PrimaryKey}}={{index $info $PrimaryKey}}'><i
<a href='{{$EditUrl}}&__goadmin_edit_pk={{index $info $PrimaryKey}}'><i
class="fa fa-edit"></i></a>
{{end}}
{{if $DeleteUrl}}
<a href="javascript:void(0);" data-id='{{index $info $PrimaryKey}}'
class="grid-row-delete"><i
class="fa fa-trash"></i></a>
{{end}}
<a href="{{$DetailUrl}}&{{$PrimaryKey}}={{index $info $PrimaryKey}}" class="grid-row-view">
<a href="{{$DetailUrl}}&__goadmin_detail_pk={{index $info $PrimaryKey}}" class="grid-row-view">
<i class="fa fa-eye"></i>
</a>
</td>
Expand Down
4 changes: 2 additions & 2 deletions sword/resource/pages/components/table.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,14 @@
<td>
{{$Action}}
{{if $EditUrl}}
<a href='{{$EditUrl}}&{{$PrimaryKey}}={{index $info $PrimaryKey}}'><i class="fa fa-edit"></i></a>
<a href='{{$EditUrl}}&__goadmin_edit_pk={{index $info $PrimaryKey}}'><i class="fa fa-edit"></i></a>
{{end}}
{{if $DeleteUrl}}
<a href="javascript:void(0);" data-id='{{index $info $PrimaryKey}}'
class="grid-row-delete"><i
class="fa fa-trash"></i></a>
{{end}}
<a href="{{$DetailUrl}}&{{$PrimaryKey}}={{index $info $PrimaryKey}}" class="grid-row-view">
<a href="{{$DetailUrl}}&__goadmin_detail_pk={{index $info $PrimaryKey}}" class="grid-row-view">
<i class="fa fa-eye"></i>
</a>
</td>
Expand Down
4 changes: 2 additions & 2 deletions sword/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -1232,14 +1232,14 @@ var TemplateList = map[string]string{"admin_panel":`{{define "admin_panel"}}
<td>
{{$Action}}
{{if $EditUrl}}
<a href='{{$EditUrl}}&{{$PrimaryKey}}={{index $info $PrimaryKey}}'><i class="fa fa-edit"></i></a>
<a href='{{$EditUrl}}&__goadmin_edit_pk={{index $info $PrimaryKey}}'><i class="fa fa-edit"></i></a>
{{end}}
{{if $DeleteUrl}}
<a href="javascript:void(0);" data-id='{{index $info $PrimaryKey}}'
class="grid-row-delete"><i
class="fa fa-trash"></i></a>
{{end}}
<a href="{{$DetailUrl}}&{{$PrimaryKey}}={{index $info $PrimaryKey}}" class="grid-row-view">
<a href="{{$DetailUrl}}&__goadmin_detail_pk={{index $info $PrimaryKey}}" class="grid-row-view">
<i class="fa fa-eye"></i>
</a>
</td>
Expand Down

0 comments on commit 0962873

Please sign in to comment.