Skip to content

Commit 3654d42

Browse files
Updated class settings in table.handlebars so that action buttons are centered, and _col_{name} is included in new rows.
1 parent be67d3e commit 3654d42

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

sqlpage/templates/table.handlebars

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,16 @@
5353
</th>
5454
{{/if}}
5555
{{/each}}
56-
{{#if ../edit_url}}<th class="_col_edit">Edit</th>{{/if}}
57-
{{#if ../delete_url}}<th class="_col_delete">Delete</th>{{/if}}
56+
{{#if ../edit_url}}<th class="_col_edit text-center">Edit</th>{{/if}}
57+
{{#if ../delete_url}}<th class="_col_delete text-center">Delete</th>{{/if}}
5858
{{#if ../custom_actions}}
5959
{{#each ../custom_actions}}
60-
<th class="_col_custom">{{this.name}}</th>
60+
<th class="_col_custom text-center">{{this.name}}</th>
6161
{{/each}}
6262
{{/if}}
6363
{{#if _sqlpage_actions}}
6464
{{#each _sqlpage_actions}}
65-
<th class="_col_action">{{this.name}}</th>
65+
<th class="_col_action text-center">{{this.name}}</th>
6666
{{/each}}
6767
{{/if}}
6868
</tr>
@@ -92,32 +92,32 @@
9292
{{/if~}}
9393
{{~/each~}}
9494
{{#if ../edit_url}}
95-
<td class="col-auto fs-2">
95+
<td class="align-middle _col_edit">
9696
<a href="{{replace ../edit_url '{id}' _sqlpage_id}}" class="align-middle link-secondary _col_edit" data-action="edit" title="Edit">
9797
{{~icon_img 'edit'~}}
9898
</a>
9999
</td>
100100
{{/if}}
101101
{{#if ../delete_url}}
102-
<td class="col-auto fs-2">
102+
<td class="align-middle _col_delete text-center">
103103
<a href="{{replace ../delete_url '{id}' _sqlpage_id}}" class="align-middle link-secondary _col_delete" data-action="delete" title="Delete">
104104
{{~icon_img 'trash'~}}
105105
</a>
106106
</td>
107107
{{/if}}
108108
{{#if ../custom_actions}}
109109
{{#each ../custom_actions}}
110-
<td class="col-auto fs-2">
111-
<a href="{{replace this.link '{id}' ../_sqlpage_id}}" class="align-middle link-secondary" data-action="{{this.name}}" title="{{default this.tooltip this.name}}">{{!Title property sets the tooltip text}}
110+
<td class="align-middle _col_{{this.name}} text-center">
111+
<a href="{{replace this.link '{id}' ../_sqlpage_id}}" class="align-middle link-secondary _col_{{this.name}}" data-action="{{this.name}}" title="{{default this.tooltip this.name}}">{{!Title property sets the tooltip text}}
112112
{{~icon_img this.icon~}}
113113
</a>
114114
</td>
115115
{{/each}}
116116
{{/if}}
117117
{{#if _sqlpage_actions}}
118118
{{#each _sqlpage_actions}}
119-
<td class="col-auto fs-2">
120-
<a href="{{replace this.link '{id}' ../_sqlpage_id}}" class="align-middle link-secondary" data-action="{{this.name}}" title="{{default this.tooltip this.name}}">
119+
<td class="align-middle _col_{{this.name}} text-center">
120+
<a href="{{replace this.link '{id}' ../_sqlpage_id}}" class="align-middle link-secondary _col_{{this.name}}" data-action="{{this.name}}" title="{{default this.tooltip this.name}}">
121121
{{~icon_img this.icon~}}
122122
</a>
123123
</td>

0 commit comments

Comments
 (0)