email working - remove clients - preview polish
This commit is contained in:
1 parent
2b1424d127
commit
da83beaec3
19 files changed
+1342
-1060
No files matched your search
@@ -37,7 +37,7 @@ get_header(); ?>
|
||||
<span class="dashicons dashicons-admin-generic"></span>
|
||||
Admin
|
||||
</a>
|
||||
<a href="<?php echo home_url( '/slide-preview/' ); ?>" class="hssm-nav-btn hssm-nav-preview" target="_blank">
|
||||
<a href="<?php echo esc_url( hssm_get_page_url_by_template( 'page-slide-preview.php', '/slide-preview/' ) ); ?>" class="hssm-nav-btn hssm-nav-preview" target="_blank">
|
||||
<span class="dashicons dashicons-visibility"></span>
|
||||
Slide Preview
|
||||
</a>
|
||||
@@ -109,12 +109,6 @@ get_header(); ?>
|
||||
</div>
|
||||
|
||||
<div class="hssm-bulk-actions">
|
||||
<button id="save-all-slides" class="hssm-btn hssm-btn-success hssm-btn-large">
|
||||
<span class="dashicons dashicons-yes"></span> Save All Slides
|
||||
</button>
|
||||
<button id="save-draft-all" class="hssm-btn hssm-btn-secondary">
|
||||
<span class="dashicons dashicons-edit"></span> Save as Drafts
|
||||
</button>
|
||||
<button id="clear-all-forms" class="hssm-btn hssm-btn-outline">
|
||||
<span class="dashicons dashicons-trash"></span> Clear All Forms
|
||||
</button>
|
||||
@@ -128,22 +122,20 @@ get_header(); ?>
|
||||
<div class="hssm-filters">
|
||||
<select id="filter-site" class="hssm-select">
|
||||
<option value="">All Sites</option>
|
||||
<option value="hi-school">Hi-School Pharmacy</option>
|
||||
<option value="one-stop">One Stop Hardware</option>
|
||||
<option value="ace">Ace Hardware</option>
|
||||
</select>
|
||||
<select id="filter-client" class="hssm-select">
|
||||
<option value="">All Clients</option>
|
||||
</select>
|
||||
<select id="filter-status" class="hssm-select">
|
||||
<option value="">All Status</option>
|
||||
<option value="publish">Published</option>
|
||||
<option value="draft">Draft</option>
|
||||
<option value="pending">Pending Approval</option>
|
||||
<option value="scheduled">Scheduled</option>
|
||||
</select>
|
||||
<button id="apply-filters" class="hssm-btn hssm-btn-primary">
|
||||
<span class="dashicons dashicons-filter"></span> Apply Filters
|
||||
</button>
|
||||
<button id="clear-filters" class="hssm-btn hssm-btn-outline">
|
||||
Clear
|
||||
</button>
|
||||
<button id="export-slides" class="hssm-btn hssm-btn-secondary">
|
||||
<span class="dashicons dashicons-download"></span> Export
|
||||
</button>
|
||||
@@ -229,141 +221,4 @@ get_header(); ?>
|
||||
</div> <!-- .container-fluid -->
|
||||
</div> <!-- #main-content -->
|
||||
|
||||
<!-- Slide Form Template (Hidden) -->
|
||||
<script type="text/html" id="slide-form-template">
|
||||
<div class="hssm-slide-form" data-form-id="{{form_id}}">
|
||||
<div class="hssm-form-header">
|
||||
<h3><strong>New Slide #{{form_number}}</strong></h3>
|
||||
<button type="button" class="hssm-remove-form" aria-label="Remove this form">
|
||||
<span class="dashicons dashicons-no"> test</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="hssm-form-grid">
|
||||
<!-- Left Column: Basic Information -->
|
||||
<div class="hssm-form-section hssm-form-basic">
|
||||
<h4>Basic Information</h4>
|
||||
|
||||
<div class="hssm-field-row">
|
||||
<div class="hssm-field">
|
||||
<label for="title_{{form_id}}">Title *</label>
|
||||
<input type="text" id="title_{{form_id}}" name="title" class="hssm-input" required>
|
||||
</div>
|
||||
<div class="hssm-field">
|
||||
<label for="client_{{form_id}}">Client</label>
|
||||
<input type="text" id="client_{{form_id}}" name="client" class="hssm-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="hssm-field">
|
||||
<label for="subtitle_{{form_id}}">Subtitle</label>
|
||||
<input type="text" id="subtitle_{{form_id}}" name="subtitle" class="hssm-input">
|
||||
</div>
|
||||
|
||||
<div class="hssm-field">
|
||||
<label for="content_{{form_id}}">Content</label>
|
||||
<textarea id="content_{{form_id}}" name="content" class="hssm-textarea" rows="3"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Center Column: Image & Buttons -->
|
||||
<div class="hssm-form-section hssm-form-media">
|
||||
<h4>Background Image</h4>
|
||||
|
||||
<div class="hssm-image-upload-compact">
|
||||
<div class="hssm-image-preview-small" id="image_preview_{{form_id}}">
|
||||
<span class="hssm-placeholder">Click to upload</span>
|
||||
</div>
|
||||
<div class="hssm-image-controls">
|
||||
<input type="file" id="image_upload_{{form_id}}" name="background_image" accept="image/*" style="display: none;">
|
||||
<input type="hidden" id="image_id_{{form_id}}" name="featured_image_id" value="">
|
||||
<button type="button" class="hssm-btn hssm-btn-small hssm-upload-btn" data-target="{{form_id}}">
|
||||
Choose Image
|
||||
</button>
|
||||
<button type="button" class="hssm-btn hssm-btn-small hssm-btn-text hssm-remove-image" data-target="{{form_id}}" style="display: none;">
|
||||
Remove
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4>Call-to-Action Buttons</h4>
|
||||
<div class="hssm-buttons-container-compact" id="buttons_{{form_id}}">
|
||||
<div class="hssm-button-row-compact">
|
||||
<input type="text" name="buttons[0][text]" placeholder="Button Text" class="hssm-input-small">
|
||||
<input type="url" name="buttons[0][url]" placeholder="Button URL" class="hssm-input-small">
|
||||
<button type="button" class="hssm-btn hssm-btn-tiny hssm-remove-button">×</button>
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" class="hssm-btn hssm-btn-small hssm-add-button" data-form="{{form_id}}">
|
||||
<span class="dashicons dashicons-plus"></span> Add Button
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- Right Column: Targeting & Scheduling -->
|
||||
<div class="hssm-form-section hssm-form-targeting">
|
||||
<h4>Targeting & Scheduling</h4>
|
||||
|
||||
<div class="hssm-field">
|
||||
<label>Target Sites *</label>
|
||||
<div class="hssm-checkboxes-compact">
|
||||
<label class="hssm-checkbox-compact">
|
||||
<input type="checkbox" name="target_sites[]" value="hi-school">
|
||||
Hi-School Pharmacy
|
||||
</label>
|
||||
<label class="hssm-checkbox-compact">
|
||||
<input type="checkbox" name="target_sites[]" value="one-stop">
|
||||
One Stop Hardware
|
||||
</label>
|
||||
<label class="hssm-checkbox-compact">
|
||||
<input type="checkbox" name="target_sites[]" value="ace">
|
||||
Ace Hardware
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="hssm-field" style="margin-top: 15px;">
|
||||
<label class="hssm-checkbox-compact hssm-hide-text-option">
|
||||
<input type="checkbox" name="hide_all_text" value="1">
|
||||
Hide All Text (Image Only)
|
||||
<small style="display: block; color: #666; margin-top: 5px;">Check this to display only the image without any overlay text</small>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="hssm-field-row">
|
||||
<div class="hssm-field">
|
||||
<label for="start_date_{{form_id}}">Start Date</label>
|
||||
<input type="date" id="start_date_{{form_id}}" name="start_date" class="hssm-input">
|
||||
</div>
|
||||
<div class="hssm-field">
|
||||
<label for="end_date_{{form_id}}">End Date</label>
|
||||
<input type="date" id="end_date_{{form_id}}" name="end_date" class="hssm-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="hssm-field-row">
|
||||
<div class="hssm-field">
|
||||
<label for="order_{{form_id}}">Display Order</label>
|
||||
<input type="number" id="order_{{form_id}}" name="order" class="hssm-input" value="0" min="0">
|
||||
</div>
|
||||
<div class="hssm-field">
|
||||
<!-- Spacer for alignment -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="hssm-form-actions">
|
||||
<button type="button" class="hssm-btn hssm-btn-secondary hssm-schedule-slide" data-form="{{form_id}}">
|
||||
<span class="dashicons dashicons-calendar-alt"></span> Schedule for Approval
|
||||
</button>
|
||||
<button type="button" class="hssm-btn hssm-btn-primary hssm-publish-slide" data-form="{{form_id}}">
|
||||
<span class="dashicons dashicons-yes"></span> Publish Immediately
|
||||
</button>
|
||||
<button type="button" class="hssm-btn hssm-btn-outline hssm-preview-slide" data-form="{{form_id}}">
|
||||
<span class="dashicons dashicons-visibility"></span> Preview
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</script>
|
||||
|
||||
<?php get_footer(); ?>
|
||||
<?php get_footer(); ?>
|
||||
Reference in new issue
Block a user