Skip to content

Commit

Permalink
Merge branch 'features-addition_date_desc_view_list_order'
Browse files Browse the repository at this point in the history
  • Loading branch information
justingit committed Sep 20, 2021
2 parents 5fba77d + 921d4b4 commit 1fbca8e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion dada/DADA/App.pm
Expand Up @@ -8600,7 +8600,7 @@ sub subscription_options {
-associate => $q,
-settings => {
view_list_subscriber_number => undef,
view_list_show_timestamp_col => 0,
#view_list_show_timestamp_col => 0,
view_list_order_by => undef,
view_list_order_by_direction => undef,
view_list_show_sub_confirm_list => 0,
Expand Down
4 changes: 2 additions & 2 deletions dada/DADA/Config.pm
Expand Up @@ -1455,8 +1455,8 @@ $MIME_TOOLS_PARAMS //= {
view_list_show_timestamp_col => 1,
view_list_show_sub_confirm_list => 1,
view_list_enable_delete_all_button => 0,
view_list_order_by => 'email',
view_list_order_by_direction => 'ASC',
view_list_order_by => 'timestamp',
view_list_order_by_direction => 'DESC',

# add list prefs
use_add_list_import_limit => 1,
Expand Down
20 changes: 12 additions & 8 deletions dada/templates/subscription_options_screen.tmpl
Expand Up @@ -55,15 +55,19 @@
</div>
<!-- tmpl_if can_have_subscriber_fields -->

<div class="row">
<div class="small-12 columns">
<input type="checkbox" name="view_list_show_timestamp_col" id="view_list_show_timestamp_col" value="1" <!-- tmpl_if list_settings.view_list_show_timestamp_col -->checked="checked"<!--/tmpl_if--> >
<label for="view_list_show_timestamp_col">
Show, &quot;Subscription Date&quot; column
</label>
</div>
</div>


<!-- tmpl_if comment -->
<!-- this is a feature that's basically removed - we always show the subscription date: -->
<div class="row">
<div class="small-12 columns">
<input type="checkbox" name="view_list_show_timestamp_col" id="view_list_show_timestamp_col" value="1" <!-- tmpl_if list_settings.view_list_show_timestamp_col -->checked="checked"<!--/tmpl_if--> >
<label for="view_list_show_timestamp_col">
Show, &quot;Subscription Date&quot; column
</label>
</div>
</div>
<!-- /tmpl_if -->

<div class="row">
<div class="small-12 columns">
Expand Down

0 comments on commit 1fbca8e

Please sign in to comment.