e2066462 by Kevin Burton

Refs #986

1 parent f1320cca
......@@ -30,7 +30,6 @@ print "</pre>";
<th scope="col" width="200" class="manage-column">Send To</th>
<th scope="col" width="60" class="manage-column">Email</th>
<th scope="col" width="60" class="manage-column">System</th>
<th scope="col" width="60" class="manage-column">SMS</th>
<th scope="col" width="200" class="manage-column">&nbsp;</th>
</tr>
</thead>
......@@ -51,7 +50,6 @@ print "</pre>";
<td><?php echo $sendto; ?></td>
<td><?php if ($entry->is_email): ?><img src="<?php echo Tools\url('assets/images/accept.png', __FILE__)?>" /><?php endif;?></td>
<td><?php if ($entry->is_system): ?><img src="<?php echo Tools\url('assets/images/accept.png', __FILE__)?>" /><?php endif;?></td>
<td><?php if ($entry->is_sms): ?><img src="<?php echo Tools\url('assets/images/accept.png', __FILE__)?>" /><?php endif;?></td>
<td>
<?php if (strtotime($entry->execute_date) > time()):?>
......@@ -78,7 +76,6 @@ print "</pre>";
<th scope="col" width="60" class="manage-column">Email</th>
<th scope="col" width="60" class="manage-column">System</th>
<th scope="col" width="60" class="manage-column">SMS</th>
<th scope="col" width="200" class="manage-column">&nbsp;</th>
</tr>
</thead>
......@@ -92,7 +89,7 @@ print "</pre>";
<td><?php if ($entry->is_email): ?><img src="<?php echo Tools\url('assets/images/accept.png', __FILE__)?>" /><?php endif;?></td>
<td><?php if ($entry->is_system): ?><img src="<?php echo Tools\url('assets/images/accept.png', __FILE__)?>" /><?php endif;?></td>
<td><?php if ($entry->is_sms): ?><img src="<?php echo Tools\url('assets/images/accept.png', __FILE__)?>" /><?php endif;?></td>
<td><a href="/wp-admin/admin.php?page=notifications&action=edit&page_id=<?php echo $entry->ID; ?>">edit</a>
<?php if (current_user_can(Settings\MANAGE_SYSTEM_NOTIFICATIONS)): ?>
| <a href="/wp-admin/admin.php?page=notifications&action=delete&page_id=<?php echo $entry->ID; ?>" onclick="return confirm('Are you sure?');">delete</a>
......
......@@ -150,20 +150,7 @@ use Tz\WordPress\Tools;
</tbody>
</table>
<table cellspacing="0" class="widefat post fixed expandable" style="margin-top:15px;">
<thead>
<tr>
<th width="150" class="toggle"><h6>SMS</h6></th>
<th class="action-bar">&nbsp;</th>
</tr>
</thead>
<tbody style="<?php echo ($validation->set_value('sms')=="") ? "display:none" : "";?>;">
<tr>
<td>Text Only!</td>
<td><textarea name="sms" class="wide-input-field" rows="4" style="width:100%;" ><?php echo $validation->set_value('sms');?></textarea><?php echo $validation->form_error('sms');?></td>
</tr>
</tbody>
</table>
<p>
......
......@@ -157,20 +157,6 @@ use Tz\WordPress\Tools;
</tbody>
</table>
<table cellspacing="0" class="widefat post fixed expandable" style="margin-top:15px;">
<thead>
<tr>
<th width="150" class="toggle"><h6>SMS</h6></th>
<th class="action-bar">&nbsp;</th>
</tr>
</thead>
<tbody style="<?php echo ($validation->set_value('sms',$entry->sms['message'])=="") ? "display:none" : "";?>;">
<tr>
<td>Text Only!</td>
<td><textarea name="sms" class="wide-input-field" rows="4" style="width:100%;" ><?php echo $validation->set_value('sms',isset($entry->sms['message']) ? $entry->sms['message'] : "");?></textarea><?php echo $validation->form_error('sms');?></td>
</tr>
</tbody>
</table>
<p>
......