Sort out text version of table etc
This commit is contained in:
@@ -4,6 +4,39 @@ Generated by: SM2Gen version:0.9(20Jan2025) Chameleon version:4.5.4 On Python:3.
|
||||
object {
|
||||
border: 1px,solid, darkgrey;
|
||||
}
|
||||
|
||||
.inline-buttons {
|
||||
display: flex; /* Use flexbox to arrange items horizontally */
|
||||
gap: 10px; /* Optional: Add space between buttons */
|
||||
}
|
||||
|
||||
.inline-buttons .link {
|
||||
/* Additional styling can be added here if needed */
|
||||
}
|
||||
|
||||
|
||||
.inline-buttons .link {
|
||||
display: inline-block; /* Keep links as inline-block for button shape */
|
||||
padding: 7px 14px; /* Adjusted padding to approximate 70% of the original */
|
||||
margin: 0; /* Remove margin */
|
||||
background-color: #efefef; /* Light gray background color */
|
||||
color: black; /* Text color */
|
||||
text-decoration: none; /* Remove underline */
|
||||
border: 2px solid #bbb; /* Thin, light gray border */
|
||||
border-radius: 3px; /* Slightly rounded corners */
|
||||
font-size: 11.2px; /* Adjusted font size to approximate 70% of the original */
|
||||
text-align: center; /* Center the text */
|
||||
cursor: pointer; /* Pointer cursor on hover */ }
|
||||
|
||||
/* Hover and active effects for better interaction */
|
||||
.inline-buttons .link:hover {
|
||||
background-color: #d9d9d9; /* Darker shade on hover */
|
||||
}
|
||||
|
||||
.inline-buttons .link:active {
|
||||
background-color: #c0c0c0; /* Even darker shade on click */
|
||||
}
|
||||
|
||||
.Mailstats-panel {}
|
||||
.name {}
|
||||
.rout {}
|
||||
|
@@ -66,6 +66,7 @@ function initializeSelects() {
|
||||
'mailstats_object' + selectId.replace('StatsDate_select', '');
|
||||
|
||||
const mailstatsObject = document.getElementById(objectId);
|
||||
const mailstatsfull = document.getElementById('mailstats-full-window');
|
||||
|
||||
// Check if elements exist before proceeding
|
||||
if (!dateSelect) {
|
||||
@@ -88,6 +89,7 @@ function initializeSelects() {
|
||||
|
||||
// Update the data attribute with the full URL
|
||||
mailstatsObject.setAttribute('data', fullUrl);
|
||||
mailstatsfull.setAttribute('href', fullUrl);
|
||||
|
||||
// Force a refresh of the object
|
||||
// [refresh code here]
|
||||
|
@@ -2,11 +2,7 @@
|
||||
%# Generated by SM2Gen version:0.9(20Jan2025) Chameleon version:4.5.4 On Python:3.12.3 at 2025-04-05 11:59:08
|
||||
%#
|
||||
<div id="Mailstats-TABLE" class="partial Mailstats-TABLE">
|
||||
<script>
|
||||
window.onload = function() {
|
||||
SelectInput();
|
||||
};
|
||||
</script>
|
||||
|
||||
% if (config->{debug} == 1) {
|
||||
<pre>
|
||||
%= dumper $mst_data
|
||||
@@ -17,23 +13,21 @@
|
||||
% param 'trt' => $mst_data->{trt} unless param 'trt';
|
||||
%= hidden_field 'trt' => $mst_data->{trt}
|
||||
%# Inputs etc in here.
|
||||
|
||||
<br>
|
||||
<div class=inline-buttons>
|
||||
|
||||
|
||||
<a href='mailstatsd?trt=CONFIG' class='link link1'>
|
||||
%= l('mst_Configure_Mailstats')
|
||||
</a>
|
||||
%#= link_to l('mst_Configure_Mailstats'), 'mailstatsd?trt=CONFIG' , class=>'link link1'
|
||||
|
||||
|
||||
<a href='mailstatsd?trt=CONFIG' class='link link1'>
|
||||
%= l('mst_Configure_Mailstats')
|
||||
</a>
|
||||
<a id='mailstats-full-window' href='' class='link link1'>
|
||||
%= l('mst_Full_Window')
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
<h2 class='subh1'><%=l('mst_Table_of_email_status')%></h2>
|
||||
|
||||
<p class='paragraph para1'>
|
||||
%=l('mst_Descriptive_paragraph')
|
||||
%= $c->render_to_string(inline=>$c->l('mst_Descriptive_paragraph'))
|
||||
</p>
|
||||
|
||||
<p><span class=label>
|
||||
@@ -42,8 +36,8 @@
|
||||
% my @StatsDate_options = $c->get_mailstat_dates();
|
||||
% param 'StatsDate' => $mst_data->{StatsDate} unless param 'StatsDate';
|
||||
%= select_field 'StatsDate' => @StatsDate_options, class => 'input', id => 'StatsDate_select'
|
||||
%=l('mst_Use_Cursor_keys')
|
||||
<br></span> </p>
|
||||
|
||||
<object id = 'mailstats_object' data="<%='' %>" title="<%= $c->stash('title') %>" type="text/html" height='600px' width='100%' ><%= $c->stash('title') %> not found</object>
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user