* @access public
*/
public $fields = false;
-
+
/**
* Constructor
*
/*
* Table Name
*/
-
+
$this->table = GLM_MEMBERS_TRAIL_REPORTS_PLUGIN_DB_PREFIX . 'reports';
// -- Conditions Table
'report_date' => array (
'field' => 'report_date',
'type' => 'date',
- 'default' => true,
+ 'default' => false,
'use' => 'a'
),
'report_notes' => array (
'field' => 'report_notes',
'type' => 'text',
- 'required' => true,
+ 'required' => false,
'use' => 'a'
),
'big_bay_cond' => array (
'field' => 'big_bay_cond',
'type' => 'text',
- 'required' => true,
+ 'required' => false,
'use' => 'a'
),
'big_bay_groom' => array (
'field' => 'big_bay_groom',
'type' => 'date',
- 'required' => true,
+ 'required' => false,
'use' => 'a'
),
'big_bay_base' => array (
'field' => 'big_bay_base',
'type' => 'text',
- 'required' => true,
+ 'required' => false,
'use' => 'a'
),
'big_bay_notes' => array (
'field' => 'big_bay_notes',
'type' => 'text',
- 'required' => true,
+ 'required' => false,
'use' => 'a'
),
'alston_cond' => array (
'field' => 'alston_cond',
'type' => 'text',
- 'required' => true,
+ 'required' => false,
'use' => 'a'
),
'alston_groom' => array (
'field' => 'alston_groom',
'type' => 'date',
- 'required' => true,
+ 'required' => false,
'use' => 'a'
),
'alston_base' => array (
'field' => 'alston_base',
'type' => 'text',
- 'required' => true,
+ 'required' => false,
'use' => 'a'
),
'alston_notes' => array (
'field' => 'alston_notes',
'type' => 'text',
- 'required' => true,
+ 'required' => false,
'use' => 'a'
),
'nestoria_cond' => array (
'field' => 'nestoria_cond',
'type' => 'text',
- 'required' => true,
+ 'required' => false,
'use' => 'a'
),
'nestoria_groom' => array (
'field' => 'nestoria_groom',
'type' => 'date',
- 'required' => true,
+ 'required' => false,
'use' => 'a'
),
'nestoria_base' => array (
'field' => 'nestoria_base',
'type' => 'text',
- 'required' => true,
+ 'required' => false,
'use' => 'a'
),
'nestoria_notes' => array (
'field' => 'nestoria_notes',
'type' => 'text',
- 'required' => true,
+ 'required' => false,
'use' => 'a'
),
'chassell_cond' => array (
'field' => 'chassell_cond',
'type' => 'text',
- 'required' => true,
+ 'required' => false,
'use' => 'a'
),
'chassell_groom' => array (
'field' => 'chassell_groom',
'type' => 'date',
- 'required' => true,
+ 'required' => false,
'use' => 'a'
),
'chassell_base' => array (
'field' => 'chassell_base',
'type' => 'text',
- 'required' => true,
+ 'required' => false,
'use' => 'a'
),
'chassell_notes' => array (
'field' => 'chassell_notes',
'type' => 'text',
- 'required' => true,
+ 'required' => false,
'use' => 'a'
),
'pinery_base' => array (
'field' => 'pinery_base',
'type' => 'text',
- 'required' => true,
+ 'required' => false,
'use' => 'a'
),
'pinery_notes' => array (
'field' => 'pinery_notes',
'type' => 'text',
- 'required' => true,
+ 'required' => false,
'use' => 'a'
),
'pinery_groom' => array (
'field' => 'pinery_groom',
'type' => 'date',
- 'required' => true,
+ 'required' => false,
'use' => 'a'
),
'report_blurb' => array (
'field' => 'report_blurb',
'type' => 'text',
- 'required' => true,
+ 'required' => false,
'use' => 'a'
),
--- /dev/null
+#report-tabs{
+ opacity: 0;
+ max-width: 725px;
+}
+.trail-notes{
+ height: 100px;
+}
+.trail-conditions{
+ margin-bottom: 20px;
+}
+.condition-label{
+ margin-bottom: 5px;
+}
+.ui-datepicker-trigger{
+ margin-left: 5px;
+ position: absolute;
+}
+.ui-tabs-panel .groom-date{
+ margin-bottom: 20px;
+}
+.ui-tabs-panel .snow-base{
+ margin-bottom: 20px;
+}
\ No newline at end of file
*/
public $config;
/**
- * Contact Info
+ * Report ID
*
- * @var $contactInfo
+ * @var $report ID
* @access public
*/
- public $contactInfo = false;
- /**
- * Member ID
- *
- * @var $memberID
- * @access public
- */
- public $memberID = false;
- /**
- * Contact ID
- *
- * @var $contactID
- * @access public
- */
- public $contactID = false;
-
+ public $report_id = false;
/*
* Constructor
* Note, the third parameter is a flag that indicates to the Contacts
* data class that it should flag a group of fields as 'view_only'.
*/
-// parent::__construct(false, false, true);
+ parent::__construct(false, false, true);
}
public function modelAction($actionData = false)
{
+ if( ! wp_script_is( 'jquery-ui', 'enqueued' ) ){
+ wp_enqueue_script('jquery-ui-datepicker', false, array('jquery'), false, true);
+ wp_enqueue_style('jquery-style', '//ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css');
+ wp_enqueue_script("jquery-ui-tabs");
+ }
$success_message = "";
+ $haveReport = false;
$option = false;
+ $report = false;
+ $reportUpdated = false;
+ $reportUpdateError = false;
+ $reportAdded = false;
+ $reportAddError = false;
+
+
if (isset($_REQUEST['option']) && trim($_REQUEST['option']) != '') {
$option = $_REQUEST['option'];
}
-
- $view_file = 'index';
+
+ // get the report id for use in the edit, add and delete options
+ $this->report_id = ( isset( $_REQUEST['report'] ) ? filter_var( $_REQUEST['report'], FILTER_SANITIZE_STRING) : '');
+
+ $trail_data = $this->getList();
+
switch ($option) {
- case "edit":
+ case 'add':
+
+ $report = $this->newEntry();
$view_file = 'edit';
break;
-
+
+ case 'insert':
+
+ $report = $this->insertEntry();
+// echo '<pre>', print_r($report), '</pre>';
+ $this->report_id = $report['fieldData']['id'];
+
+ if ($report['status']) {
+ $haveReport = true;
+ $reportAdded = true;
+
+ // Update created timestamp and name slug for URLs
+ //$this->updateSlug($this->reportID);
+
+ // Get this again so we have the created date
+ $report = $this->editEntry($this->report_id);
+
+ $option = 'edit';
+ $reportAdded = true;
+
+ } else {
+ $option = 'add';
+ $reportAddError = true;
+ }
+
+ $view_file = 'edit';
+
+ break;
+
+ case 'edit':
+
+
+
+ $report = $this->editEntry($this->report_id);
+
+ // If we have a good report
+ if ($report['status']) {
+ $haveReport = true;
+ }
+
+ $view_file = 'edit';
+ break;
+
+ case 'update':
+
+ // Try to update this report
+ $report = $this->updateEntry($this->report_id);
+
+ // Check if that was successful
+ if ($report['status']) {
+ $reportUpdated = true;
+
+ $report = $this->editEntry($this->report_id);
+ } else {
+ $reportUpdateError = true;
+ }
+
+ $haveReport = true;
+ $view_file = 'edit';
+
+ break;
+
+ case 'delete':
+
+ $report = $this->deleteObit($this->report_id);
+
+ if ($report) {
+ $reportDeleted = true;
+ } else {
+ $reportDeleteError = true;
+ }
+ break;
default:
-
+ $trail_data = $this->getList();
+ $view_file = 'index';
break;
}
// Compile template data
$templateData = array(
-
+ 'trailData' => $trail_data,
+ 'haveReport' => $haveReport,
+ 'reportUpdated' => $reportUpdated,
+ 'reportUpdateError' => $reportUpdateError,
+ 'reportAdded' => $reportAdded,
+ 'reportAddError' => $reportAddError,
+ 'option' => $option,
+ 'report' => $report,
+ 'assetsUrl' => GLM_MEMBERS_TRAIL_REPORTS_PLUGIN_URL . 'assets/',
+
);
// Return status, any suggested view, and any data to controller
--- /dev/null
+<?php
+
+/*
+ * To change this license header, choose License Headers in Project Properties.
+ * To change this template file, choose Tools | Templates
+ * and open the template in the editor.
+ */
+
* Note, the third parameter is a flag that indicates to the Contacts
* data class that it should flag a group of fields as 'view_only'.
*/
-// parent::__construct(false, false, true);
+ parent::__construct(false, false, true);
}
if (isset($_REQUEST['option']) && trim($_REQUEST['option']) != '') {
$option = $_REQUEST['option'];
}
+
+ $trail_data = $this->getList();
- $trails = $this->getList();
- print_r($trails);
$view_file = 'index';
switch ($option) {
// Compile template data
$templateData = array(
-
+ 'trailData' => $trail_data
);
// Return status, any suggested view, and any data to controller
-- Conditions Table
CREATE TABLE {prefix}reports (
id INT NOT NULL AUTO_INCREMENT,
- report_date DATE NULL,
- report_notes TEXT NULL,
- big_bay_cond TEXT NULL,
- big_bay_groom DATE NULL,
- big_bay_base TINYTEXT NULL,
- big_bay_notes TEXT NULL,
- alston_cond TEXT NULL,
- alston_groom DATE NULL,
- alston_base TINYTEXT NULL,
- alston_notes TEXT NULL,
- nestoria_cond TEXT NULL,
- nestoria_groom DATE NULL,
- nestoria_base TINYTEXT NULL,
- nestoria_notes TEXT NULL,
- chassell_cond TEXT NULL,
- chassell_groom DATE NULL,
- chassell_base TINYTEXT NULL,
- chassell_notes TEXT NULL,
- pinery_groom DATE NULL,
- pinery_base TINYTEXT NULL,
- pinery_notes TEXT NULL,
- report_blurb TEXT NULL,
+ report_date DATE NOT NULL,
+ report_notes TEXT NOT NULL,
+ big_bay_cond TEXT NOT NULL,
+ big_bay_groom DATE NOT NULL,
+ big_bay_base TINYTEXT NOT NULL,
+ big_bay_notes TEXT NOT NULL,
+ alston_cond TEXT NOT NULL,
+ alston_groom DATE NOT NULL,
+ alston_base TINYTEXT NOT NULL,
+ alston_notes TEXT NOT NULL,
+ nestoria_cond TEXT NOT NULL,
+ nestoria_groom DATE NOT NULL,
+ nestoria_base TINYTEXT NOT NULL,
+ nestoria_notes TEXT NOT NULL,
+ chassell_cond TEXT NOT NULL,
+ chassell_groom DATE NOT NULL,
+ chassell_base TINYTEXT NOT NULL,
+ chassell_notes TEXT NOT NULL,
+ pinery_groom DATE NOT NULL,
+ pinery_base TINYTEXT NOT NULL,
+ pinery_notes TEXT NOT NULL,
+ report_blurb TEXT NOT NULL,
PRIMARY KEY (id)
);
-- Trail Reports default entries in table
INSERT INTO {prefix}reports ( id,report_date,report_notes,big_bay_cond,big_bay_groom,big_bay_base,big_bay_notes,alston_cond,alston_groom,alston_base,alston_notes,nestoria_cond,nestoria_groom,nestoria_base,nestoria_notes,chassell_cond,chassell_groom,chassell_base,chassell_notes,pinery_groom,pinery_base,pinery_notes,report_blurb) VALUES
-(1,NOW(),'Trail Notes','Fair',NOW(),'8"-12"','Notes','Fair',NOW(),'8"-12"','Notes','Fair',NOW(),'8"-12"','Notes','Fair',NOW(),'8"-12"','Notes','Fair',NOW(),'Notes','Grooming');
\ No newline at end of file
+(1,NOW(),'Trail Notes','Fair',NOW(),'8"-12"','Notes','Fair',NOW(),'8"-12"','Notes','Fair',NOW(),'8"-12"','Notes','Fair',NOW(),'8"-12"','Notes',NOW(),'8"-12"','Notes','Grooming');
\ No newline at end of file
$glmMembersTrailReportsAddOnValidActions = array(
'adminActions' => array(
'trailreports' => array(
- 'index' => GLM_MEMBERS_TRAIL_REPORTS_PLUGIN_SLUG
+ 'index' => GLM_MEMBERS_TRAIL_REPORTS_PLUGIN_SLUG,
+ 'list' => GLM_MEMBERS_TRAIL_REPORTS_PLUGIN_SLUG,
),
),
'frontActions' => array(
--- /dev/null
+<div class="wrap">
+ <h2>Trail Report</h2>
+ <h2 class="nav-tab-wrapper">
+ <a href="{$thisUrl}?page={$thisPage}&glm_action=index" class="nav-tab{if $thisAction==index} nav-tab-active{/if}">Dashboard</a>
+ </h2>
+ <div id="glm-admin-content-container">
+
+
--- /dev/null
+{include file='admin/header.html'}
+
+{if ($option == 'add' || $haveReport)}
+
+ <a href="{$thisUrl}?page={$thisPage}&glm_action=index" class="button button-secondary glm-button glm-right">Return to Reports List</a>
+
+ {if $option == 'edit' || $option == 'update'}
+ <a href="{$thisUrl}?page={$thisPage}&glm_action=index&option=delete&report={$report.fieldData.id}" id="deleteObitButton" class="button button-secondary glm-button glm-right">Delete this Report</a>
+ <h2>Edit Trail Report
+ {else}
+ <h2>Add New Trail Report
+ {/if}
+
+ {if $reportUpdated}<span class="glm-notice glm-flash-updated">Obit Updated</span>{/if}
+ {if $reportUpdateError}<span class="glm-error glm-flash-updated">Obit Update Error</span>{/if}
+ {if $reportAdded}<span class="glm-notice glm-flash-updated">Obit Added</span>{/if}
+ {if $reportAddError}<span class="glm-error glm-flash-updated">Obit Add Error</span>{/if}
+ </h2>
+
+ {if $reportUpdateError || $reportAddError}
+ <h1 class="glm-error">NOTICE: Your report has not yet been submitted.<br>Please select the tabs indicating a problem, correct the indicated fields and resubmit.</h1>
+ {else}
+ {/if}
+
+ <form action="{$thisUrl}?page={$thisPage}" method="post" enctype="multipart/form-data">
+ <input type="hidden" name="glm_action" value="index">
+
+ {if $haveReport}
+ <input type="hidden" name="option" value="update">
+ <input type="hidden" name="report" value="{$report.fieldData.id}">
+ {else}
+ <input type="hidden" name="option" value="insert">
+ {/if}
+
+ <h2 class="nav-tab-wrapper" style="margin-bottom: 1em;">
+ <a id="glm-report-descr" data-show-table="glm-table-descr" class="glm-report-tab nav-tab nav-tab-active">Trail Report</a>
+ </h2>
+
+ <table id="glm-table-descr" class="glm-admin-table glm-report-table">
+ <tr>
+ <th {if $report.fieldRequired.report_date}class="glm-required"{/if}>Report Date:</th>
+ <td {if $report.fieldFail.report_date}class="glm-form-bad-input" data-tabid="glm-report-descr"{/if}>
+ <input type="text" name="report_date" value="{$report.fieldData.report_date.date}" class="glm-form-text-input-short groom-date">
+ {if $report.fieldFail.report_date.date}<p>{$report.fieldFail.report_date.date}</p>{/if}<br>
+ </td>
+ </tr>
+ <tr>
+ <th {if $report.fieldRequired.report_blurb}class="glm-required"{/if}>Report Blurb:</th>
+ <td {if $report.fieldFail.report_blurb}class="glm-form-bad-input" data-tabid="glm-report-descr"{/if}>
+ <input type="text" name="report_blurb" value="{$report.fieldData.report_blurb}" class="glm-form-text-input-short">
+ {if $report.fieldFail.report_blurb}<p>{$report.fieldFail.report_blurb}</p>{/if}<br>
+ </td>
+ </tr>
+ <tr>
+ <th {if $report.fieldRequired.report_notes}class="glm-required"{/if}>Report Notes:</th>
+ <td {if $report.fieldFail.report_notes}class="glm-form-bad-input" data-tabid="glm-report-descr"{/if}>
+ <textarea name="report_notes" class="glm-form-text-input-medium trail-notes"> {$report.fieldData.report_notes}</textarea>
+ {if $report.fieldFail.report_notes}<p>{$report.fieldFail.report_notes}</p>{/if}<br>
+ </td>
+ </tr>
+ </table>
+ <div id="report-tabs">
+ <ul>
+ <li><a href="#tabs-1">Big Bay Trail</a></li>
+ <li><a href="#tabs-2">Alston Trail</a></li>
+ <li><a href="#tabs-3">Nestoria Trail</a></li>
+ <li><a href="#tabs-4">Chassell Trail</a></li>
+ <li><a href="#tabs-5">Pinery lakes CC Ski Trail</a></li>
+ </ul>
+ {include file='admin/trailreports/parts/bigBay.html'}
+ {include file='admin/trailreports/parts/alston.html'}
+ {include file='admin/trailreports/parts/nestoria.html'}
+ {include file='admin/trailreports/parts/chassell.html'}
+ {include file='admin/trailreports/parts/pinery.html'}
+ </div>
+ <input id="updateReport" type="submit" value="{if $haveReport}Update Report{else}Save New Report{/if}">
+ </form>
+
+{else} <!-- Can just display -->
+
+ <h3>Sorry, no report found or permission not granted.</h3>
+
+{/if}
+
+ <!-- Delete Obit Dialog Box -->
+
+ <div id="deleteReportDialog" class="glm-dialog-box" title="Delete Obit">
+ <center>
+ <p><a id="deleteReportCancel" class="button button-primary">Cancel</a></p>
+ <p><input id="deleteObitSubmit" type="submit" value="Delete this report"></p>
+ </center>
+ <div class="glm-item-container">
+ <p><center><span class="glm-error">WARNING:</span></center></p>
+ <p>
+ <span class="glm-warning">Clicking the "Delete this Obit" button above will
+ delete all of the data and images associated with this report.
+ </span>
+ </p>
+ <p>
+ <span class="glm-error">
+ Once deleted, this information will no longer be available and cannot be retrieved!
+ If you are unsure that you want to completely remove this data, consider changing the status
+ of this report to "Archived" instead.
+ </span>
+ </p>
+ </div>
+ </div>
+ <script type="text/javascript">
+ jQuery(document).ready(function($) {
+ $("#report-tabs").fadeTo("600", 1);
+ $('#report-tabs').tabs();
+ $('.groom-date').datepicker({
+ showOn: "both",
+ buttonImage: '{$assetsUrl}' + "/calIcon.png",
+ buttonImageOnly: true
+ });
+ {if $haveReport}
+ // Delete Report dialog
+ $("#deleteReportDialog").dialog({
+ autoOpen: false,
+ minWidth: 400,
+ dialogClass: "glm-dialog-no-close"
+ });
+ $('#deleteReportButton').click( function() {
+ $('#deleteReportDialog').dialog('open');
+ });
+ $('#deleteReportCancel').click( function() {
+ $("#deleteReportDialog").dialog("close");
+ });
+ $('#deleteReportSubmit').click( function() {
+ window.location.replace("{$thisUrl}?page={$thisPage}&glm_action=list&option=delete&report={$report.fieldData.id}");
+ });
+ {/if}
+
+ // Flash certain elements for a short time after display
+ $(".glm-flash-updated").fadeOut(500).fadeIn(500).fadeOut(500).fadeIn(500).fadeOut(500).fadeIn(500).fadeOut(500).fadeIn(500).fadeOut(500);
+
+ });
+ </script>
+
+
+{include file='admin/footer.html'}
+{include file='admin/header.html'}
+
+ <table class="glm-admin-table">
+
+ <tr><td colspan="2"> </td></tr>
+ <tr>
+ <td class="add-report"><a href="{$thisUrl}?page={$thisPage}&glm_action=index&option=add">New Report</a></td>
+ </tr>
+
+ </table>
+ {if $trailData}
+
+ <table class="glm-admin-table">
+ <tr>
+ <th>Report Date</th>
+ <th>Report Blurb</th>
+ <th>Report Notes</th>
+ </tr>
+ {foreach $trailData as $record=>$data}
+ <tr>
+ <td>{$data.report_date.date}</td>
+ <td>{$data.report_blurb}</td>
+ <td>{$data.report_notes}</td>
+ <td><a href="{$thisUrl}?page={$thisPage}&glm_action=index&option=edit&report={$data.id}">Edit</a><a href="{$thisUrl}?page={$thisPage}&glm_action=index&option=delete&report={$data.id}">Delete</a></td>
+ </tr>
+ {/foreach}
+ </table>
+
+ <script>
+ jQuery(document).ready(function($) {
+ console.log("test");
+ });
+ </script>
+ {else if}
+ <div class="no-trail-data"> No Trail Information </div>
+ {/if}
+{include file='admin/footer.html'}
+
--- /dev/null
+<div id="tabs-2">
+ <div id="alston-conditions" class="trail-conditions">
+ {$a_con = $report.fieldData.alston_cond}
+ <div class="condition-label"> Conditions</div>
+ <input type="radio" name="alston_cond" value="Poor" {if $a_con == "Poor"} checked {/if}> Poor
+ <input type="radio" name="alston_cond" value="Fair" {if $a_con == "Fair"} checked {/if}> Fair
+ <input type="radio" name="alston_cond" value="Good" {if $a_con == "Good"} checked {/if}> Good
+ <input type="radio" name="alston_cond" value="Very Good" {if $a_con == "Very Good"} checked {/if}> Very Good
+ </div>
+ <div class="groom-date-label">Date Groomed</div>
+ <input type="text" class="groom-date" name="alston_groom" value="{$report.fieldData.alston_groom.date}">
+ <div class="snow-base-label">Snow Base</div>
+ <input type="text" class="snow-base" name="alston_base" value="{$report.fieldData.alston_base|escape:html}">
+ <div class="notes-label">Trail Notes</div>
+ <textarea class="glm-form-text-input-medium trail-notes" name="alston_notes">{$report.fieldData.alston_notes}</textarea>
+</div>
\ No newline at end of file
--- /dev/null
+<div id="tabs-1">
+ <div id="bay-conditions trail-conditions" class="trail-conditions">
+ <div class="condition-label"> Conditions</div>
+ {$b_con = $report.fieldData.big_bay_cond}
+ <input type="radio" name="big_bay_cond" value="Poor" {if $b_con == "Poor"} checked {/if} > Poor
+ <input type="radio" name="big_bay_cond" value="Fair" {if $b_con == "Fair"} checked {/if}> Fair
+ <input type="radio" name="big_bay_cond" value="Good" {if $b_con == "Good"} checked {/if}> Good
+ <input type="radio" name="big_bay_cond" value="Very Good" {if $b_con == "Very Good"} checked {/if}> Very Good
+ </div>
+ <div class="groom-date-label">Date Groomed</div>
+ <input type="text" class="groom-date" name="big_bay_groom" value="{$report.fieldData.big_bay_groom.date}">
+ <div class="snow-base-label">Snow Base</div>
+ <input type="text" class="snow-base" name="big_bay_base" value="{$report.fieldData.big_bay_base|escape:html}">
+ <div class="notes-label">Trail Notes</div>
+ <textarea class="glm-form-text-input-medium trail-notes" name="big_bay_notes">{$report.fieldData.big_bay_notes}</textarea>
+</div>
\ No newline at end of file
--- /dev/null
+<div id="tabs-4">
+ <div id="chassell-conditions" class="trail-conditions">
+ {$c_con = $report.fieldData.chassell_cond}
+ <div class="condition-label"> Conditions</div>
+ <input type="radio" name="chassell_cond" value="Poor" {if $c_con == "Poor"} checked {/if}> Poor
+ <input type="radio" name="chassell_cond" value="Fair"{if $c_con == "Fair"} checked {/if}> Fair
+ <input type="radio" name="chassell_cond" value="Good" {if $c_con == "Good"} checked {/if}> Good
+ <input type="radio" name="chassell_cond" value="Very Good" {if $c_con == "Very Good"} checked {/if}> Very Good
+ </div>
+ <div class="groom-date-label">Date Groomed</div>
+ <input type="text" class="groom-date" name="chassell_groom" value="{$report.fieldData.chassell_groom.date}">
+ <div class="snow-base-label">Snow Base</div>
+ <input type="text" class="snow-base" name="chassell_base" value="{$report.fieldData.chassell_base|escape:html}">
+ <div class="notes-label">Trail Notes</div>
+ <textarea class="glm-form-text-input-medium trail-notes" name="chassell_notes">{$report.fieldData.chassell_notes}</textarea>
+</div>
\ No newline at end of file
--- /dev/null
+<div id="tabs-3">
+ <div id="nestoria-conditions" class="trail-conditions">
+ <div class="condition-label"> Conditions</div>
+ {$n_con = $report.fieldData.nestoria_cond}
+ <input type="radio" name="nestoria_cond" value="Poor"{if $n_con == "Poor"} checked {/if} > Poor
+ <input type="radio" name="nestoria_cond" value="Fair" {if $n_con == "Fair"} checked {/if}> Fair
+ <input type="radio" name="nestoria_cond" value="Good" {if $n_con == "Good"} checked {/if}> Good
+ <input type="radio" name="nestoria_cond" value="Very Good" {if $n_con == "Very Good"} checked {/if}> Very Good
+ </div>
+ <div class="groom-date-label">Date Groomed</div>
+ <input type="text" class="groom-date" name="nestoria_groom" value="{$report.fieldData.nestoria_groom.date}">
+ <div class="snow-base-label">Snow Base</div>
+ <input type="text" class="snow-base" name="nestoria_base" value="{$report.fieldData.nestoria_base|escape:html}">
+ <div class="notes-label">Trail Notes</div>
+ <textarea class="glm-form-text-input-medium trail-notes" name="nestoria_notes">{$report.fieldData.nestoria_notes}</textarea>
+</div>
\ No newline at end of file
--- /dev/null
+<div id="tabs-5">
+<!-- <div id="pinery-conditions">
+ <div class="condition-label"> Conditions</div>
+ {$p_con = $report.fieldData.pinery_cond}
+ <input type="radio" name="pinery_cond" value="Poor" > Poor
+ <input type="radio" name="pinery_cond" value="Fair"> Fair
+ <input type="radio" name="pinery_cond" value="Good"> Good
+ <input type="radio" name="pinery_cond" value="Very Good"> Very Good
+ </div>-->
+<div class="groom-date-label">Date Groomed</div>
+ <input type="text" class="groom-date" name="pinery_groom" value="{$report.fieldData.pinery_groom.date}">
+ <div class="snow-base-label">Snow Base</div>
+ <input type="text" class="snow-base" name="pinery_base" value="{$report.fieldData.pinery_base|escape:html}">
+ <div class="notes-label">Trail Notes</div>
+ <textarea class="glm-form-text-input-medium trail-notes" name="pinery_notes">{$report.fieldData.pinery_notes}</textarea>
+</div>
\ No newline at end of file