summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorLester Caine <lsces@lsces.co.uk>2011-03-10 16:39:11 +0000
committerLester Caine <lsces@lsces.co.uk>2011-03-10 16:39:11 +0000
commite4c5beec0137771344a68d19811d7461055c38ed (patch)
tree15628a4dc9eec8ff3eaa87839eb2fe1b43b09a83 /templates
parent8b27646b88819ec59d544cfd54076eeaf87ed034 (diff)
downloadcontact-e4c5beec0137771344a68d19811d7461055c38ed.tar.gz
contact-e4c5beec0137771344a68d19811d7461055c38ed.tar.bz2
contact-e4c5beec0137771344a68d19811d7461055c38ed.zip
Templates for geographic coordinate locations
Diffstat (limited to 'templates')
-rw-r--r--templates/edit_xref_locate.tpl85
-rw-r--r--templates/view_xref_locate.tpl78
2 files changed, 163 insertions, 0 deletions
diff --git a/templates/edit_xref_locate.tpl b/templates/edit_xref_locate.tpl
new file mode 100644
index 0000000..aefb5d7
--- /dev/null
+++ b/templates/edit_xref_locate.tpl
@@ -0,0 +1,85 @@
+{strip}
+<div class="floaticon">{bithelp}</div>
+<div class="edit contact_xref">
+ <div class="header">
+ <h1>{tr}Edit Location{/tr}: {$title|escape}-{$xref_title|escape}</h1>
+ </div>
+
+ {formfeedback hash=$feedback}
+ {formfeedback warning=`$errors.title`}
+
+ <div class="body">
+ {form enctype="multipart/form-data" id="writexref"}
+ <input type="hidden" name="content_id" value="{$xrefInfo.content_id}" />
+ <input type="hidden" name="xref_id" value="{$xrefInfo.xref_id}" />
+
+ {jstabs}
+ {jstab title="Location Details"}
+ {legend legend="Contents"}
+ <div class="row">
+ {formlabel label="Geographic Location" for="xref"}
+ {forminput}
+ <a class="item" href="http://www.openstreetmap.org/?lat={$xrefInfo.xkey_ext}&lon={$xrefInfo.xkey}&zoom=15&layers=MN" target="_blank">{tr}OpenStreetMap Link{/tr}</a>
+ {formhelp note="Use one of the graphical tools like multimap or google maps to identify actual co-ordinates."}
+ {/forminput}
+ </div>
+
+ <div class="row">
+ {formlabel label="Easting/Longitude" for="xkey"}
+ {forminput}
+ <input type="text" name="xkey" id="xkey" value="{$xrefInfo.xkey|escape}" />
+ {formhelp note="Longitude for the location."}
+ {/forminput}
+ </div>
+
+ <div class="row">
+ {formlabel label="Northing/Latitude" for="xkey_ext"}
+ {forminput}
+ <input type="text" name="xkey_ext" id="xkey_ext" value="{$xrefInfo.xkey_ext|escape}" />
+ {formhelp note="Latitude for the location."}
+ {/forminput}
+ </div>
+
+ {formlabel label="Location Directions" for="data"}
+ {capture assign=textarea_help}
+ {tr}Directions to assist finding the actual location where site is not accessable via the postcode.{/tr}
+ {/capture}
+ {textarea rows=5 noformat=1}{$xrefInfo.data}{/textarea}
+ {/legend}
+ {/jstab}
+
+ {jstab title="Time period"}
+ {legend legend="Start and Stop Dates"}
+ <div class="row">
+ <input type="hidden" name="startDateInput" value="1" />
+ &nbsp;Ignore Date <input type="checkbox" name="ignore_start_date" {if $xrefInfo.ignore_start_date eq "y"}checked{/if} />
+ {formlabel label="Start Date" for=""}
+ {forminput}
+ {html_select_date prefix="start_" time=$xrefInfo.start_date start_year="-5" end_year="+10"} {tr}at{/tr}&nbsp;
+ <span dir="ltr">{html_select_time prefix="start_" time=$xrefInfo.start_date display_seconds=false}&nbsp;{$siteTimeZone}</span>
+ {formhelp note="This address becomes valid on this date."}
+ {/forminput}
+ </div>
+
+ <div class="row">
+ <input type="hidden" name="endDateInput" value="1" />
+ &nbsp;Ignore Date <input type="checkbox" name="ignore_end_date" {if $xrefInfo.ignore_end_date eq "y"}checked{/if} />
+ {formlabel label="End Date" for=""}
+ {forminput}
+ {html_select_date prefix="end_" time=$xrefInfo.end_date start_year="-5" end_year="+10"} {tr}at{/tr}&nbsp;
+ <span dir="ltr">{html_select_time prefix="end_" time=$xrefInfo.end_date display_seconds=false}&nbsp;{$siteTimeZone}</span>
+ {formhelp note="This address finishes on this date."}
+ {/forminput}
+ </div>
+ {/legend}
+ {/jstab}
+
+ <div class="row submit">
+ <input type="submit" name="fCancel" value="{tr}Cancel{/tr}" />&nbsp;
+ <input type="submit" name="fSaveXref" value="{tr}Save{/tr}" />
+ </div>
+ {/jstabs}
+ {/form}
+ </div><!-- end .body -->
+</div><!-- end .article -->
+{/strip}
diff --git a/templates/view_xref_locate.tpl b/templates/view_xref_locate.tpl
new file mode 100644
index 0000000..d96b4e3
--- /dev/null
+++ b/templates/view_xref_locate.tpl
@@ -0,0 +1,78 @@
+{strip}
+<div class="view contact_xref">
+ <div class="header">
+ <h1>{tr}Location{/tr}: {$xref_title|escape} for {$title|escape}</h1>
+ </div>
+
+ <div class="body">
+ {legend legend="Contents"}
+ <div class="row">
+ {formlabel label="Geographic Location" for="xref"}
+ {forminput}
+ <a class="item" href="http://www.openstreetmap.org/?lat={$xrefInfo.xkey_ext}&lon={$xrefInfo.xkey}&zoom=15&layers=MN" target="_blank">{tr}OpenStreetMap Link{/tr}</a>
+ {formhelp note="Use one of the graphical tools like multimap or google maps to identify actual co-ordinates."}
+ {/forminput}
+ </div>
+
+ <div class="row">
+ {formlabel label="Easting" for="xkey"}
+ {forminput}
+ {if $xrefInfo.xkey }
+ {$xrefInfo.xkey|escape}
+ {else}
+ Not yet set
+ {/if}
+ {formhelp note="Easting for location (x_coord - longitude)."}
+ {/forminput}
+ </div>
+
+ <div class="row">
+ {formlabel label="Northing" for="xkey_ext"}
+ {forminput}
+ {if $xrefInfo.xkey_ext }
+ {$xrefInfo.xkey_ext|escape}
+ {else}
+ Not yet set
+ {/if}
+ {formhelp note="Northing for location (y_coord - latitude)."}
+ {/forminput}
+ </div>
+
+ <div class="row">
+ {formlabel label="Location Directions" for="data"}
+ {forminput}
+ {$xrefInfo.data|escape}
+ {formhelp note="Directions to assist finding the actual location where site is not accessable via the postcode."}
+ {/forminput}
+ </div>
+ {/legend}
+
+ {legend legend="Start and Stop Dates"}
+ <div class="row">
+ {formlabel label="Start Date" for=""}
+ {forminput}
+ {if $xrefInfo.ignore_start_date eq "y"}
+ No start date set
+ {else}
+ {$xrefInfo.start_date|bit_long_datetime}
+ {/if}
+ {formhelp note="This address record becomes valid on this date."}
+ {/forminput}
+ </div>
+
+ <div class="row">
+ {formlabel label="End Date" for=""}
+ {forminput}
+ {if $xrefInfo.ignore_end_date eq "y"}
+ No end date set
+ {else}
+ {$xrefInfo.end_date|bit_long_datetime}
+ {/if}
+ {formhelp note="This address record finishes on this date."}
+ {/forminput}
+ </div>
+ {/legend}
+ <a class="item" href="{$smarty.const.CONTACT_PKG_URL}index.php?content_id={$xrefInfo.content_id}">{tr}Return{/tr}</a>
+ </div><!-- end .body -->
+</div><!-- end .article -->
+{/strip}