Skip to content

Commit 35454de

Browse files
Show if field is required in Lists overview table
1 parent 7a91e4e commit 35454de

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

assets/css/admin.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,10 @@ table.mc4wp-help tr:hover {
158158
background-color: #ddd;
159159
}
160160

161+
#mc4wp .wp-list-table code {
162+
float:right;
163+
}
164+
161165
@media(max-width: 1279px) {
162166

163167
#mc4wp-sidebar,
@@ -174,6 +178,9 @@ table.mc4wp-help tr:hover {
174178
margin-top:25px;
175179
padding-top: 25px;
176180
}
181+
#mc4wp .wp-list-table code {
182+
float: none;
183+
}
177184

178185
}
179186

includes/views/api-settings.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
<tr>
6161
<th class="mc4wp-hide-smallscreens" scope="col">List ID</th>
6262
<th scope="col">List Name</th>
63-
<th scope="col">Merge Fields</th>
63+
<th scope="col">Merge Fields <code>TAG</code></th>
6464
<th scope="col">Groupings</th>
6565
<th class="mc4wp-hide-smallscreens" scope="col">Subscribers</th>
6666
</tr>
@@ -78,7 +78,7 @@
7878
<?php if( ! empty( $list->merge_vars ) && is_array( $list->merge_vars ) ) { ?>
7979
<ul class="ul-square" style="margin-top: 0;">
8080
<?php foreach( $list->merge_vars as $merge_var ) { ?>
81-
<li><?php echo esc_html( $merge_var->name ); ?> <code><?php echo esc_html( $merge_var->tag ); ?></code></li>
81+
<li><?php echo esc_html( $merge_var->name ); if( $merge_var->req ) echo '<span style="color:red;">*</span>'; ?> <code><?php echo esc_html( $merge_var->tag ); ?></code></li>
8282
<?php } ?>
8383
</ul>
8484
<?php } ?>

0 commit comments

Comments
 (0)