preview_announce.html

 1   <div class="row">
 2   	<div class="col-xs-12 col-sm-12 col-md-12">
 3   		<div class="box box-primary">
 4   			<div class="box-header">
 5   				<h3 class="box-title">#i18n{announce.preview_announce.pageTitle}</h3>
 6   				<div class="box-tools pull-right">
 7   					<#if announce.published>
 8   						<form method="post" action="jsp/admin/plugins/announce/DoUnPublishAnnounce.jsp" class="form-inline">
 9   							<input type="hidden" name="announce_id" value="${announce.id}">
 10   							<a class="btn btn-xs btn-primary btn-flat" href="javascript:history.go(-1);" title="#i18n{portal.util.labelBack}" >
 11   								<i class="fa fa-remove">&nbsp;</i>&nbsp;#i18n{portal.util.labelBack}
 12   							</a>
 13   							<button class="btn btn-danger btn-xs btn-flat" name="unpublish" value="unpublish" title="#i18n{announce.announce.actions.unpublish}">
 14   								<i class="fa fa-toggle-off">&nbsp;</i>&nbsp;#i18n{announce.announce.actions.unpublish}
 15   							</button>
 16   						</form>
 17   					<#else>
 18   						<form method="post" action="jsp/admin/plugins/announce/DoPublishAnnounce.jsp" class="form-inline pull-right">
 19   							<input type="hidden" name="announce_id" value="${announce.id}">
 20   							<a class="btn btn-xs btn-primary btn-flat" href="javascript:history.go(-1);" title="#i18n{portal.util.labelBack}" >
 21   								<i class="fa fa-remove">&nbsp;</i>&nbsp;#i18n{portal.util.labelBack}
 22   							</a>
 23   							<button class="btn btn-success btn-xs btn-flat" name="publish" value="publish" title="#i18n{announce.announce.actions.publish}">
 24   								<i class="fa fa-toggle-on">&nbsp;</i>&nbsp;#i18n{announce.announce.actions.publish}
 25   							</button>
 26   						</form>
 27   					</#if>
 28   				</div>
 29   			</div>
 30   			<div  class="box-body">
 31   				<h3>#i18n{announce.preview_announce.title}</h3>
 32   				${announce.title}
 33   				<#if announce.category.displayPrice>
 34   					<h3>#i18n{announce.preview_announce.price}</h3>
 35   					${announce.price}
 36   				</#if>
 37   				<h3>#i18n{announce.preview_announce.contactInformation}</h3>
 38   				${announce.contactInformation}
 39   				<h3>#i18n{announce.preview_announce.description.title}</h3>
 40   				${announce.description}
 41   				<#list list_responses as response>
 42   					<#if response.toStringValueResponse?has_content || response.file??>
 43   						<#if entrySave?exists && entrySave.idEntry!=response.entry.idEntry>
 44   							<#if isImage?? && isImage>
 45   								</ul>
 46   								<#assign isImage = false>
 47   							</#if>
 48   						</#if>
 49   						<#if response.field?? && response.field.title??>
 50   							<#if response.field.title == "X">
 51   								<#assign lat = response.toStringValueResponse>
 52   							<#elseif response.field.title == "Y">
 53   								<#assign lon = response.toStringValueResponse>
 54   							<#elseif response.field.title == "idAddress">				
 55   							<#elseif response.field.title == "address">
 56   								<#assign addressAnnounce = response.toStringValueResponse>
 57   									<h3 for="response">${response.entry.title}</h3>
 58   									<div class="col-xs-12 col-sm-12 col-md-6">
 59   										<#list admList_entryTypeGeolocation as entry>
 60   								
 61   											<#if entry.mapProvider?has_content && entry.idEntry == response.entry.idEntry >
 62   												${addressAnnounce}
 63   												<#include entry.mapProvider.htmlRecapCode />
 64   											</#if>	
 65   									
 66   										</#list>
 67   									</div>			
 68   							</#if>
 69   						<#elseif !entrySave?exists || entrySave.idEntry!=response.entry.idEntry>
 70   						<#assign entrySave=response.entry>
 71                   		    <h3>${response.entry.title}</h3>
 72                               <div class="col-xs-12 col-sm-12 col-md-6">
 73                               <#if response.file?? && response.file.idFile &gt; 0>
 74                               	<#assign isImage = true>
 75                               	<ul id="slideshow">
 76   									<li>
 77   										<a class="pirobox_gall" title="#i18n{announce.view_announce.imagesCaption}" href="image?resource_type=announce_img&id=${response.idResponse}">
 78   											<img height="80px" src="image?resource_type=announce_img&id=${response.idResponse}" />
 79   										</a>
 80   									</li>
 81   							<#elseif response.entry.entryType.beanName?? && response.entry.entryType.beanName=="announce.entryTypeDate">
 82   								<#assign dateval = response.responseValue?number?number_to_date?iso_local>
 83   								${dateval}
 84                               <#else>
 85                               	${response.toStringValueResponse}
 86                               </#if>
 87   							</div>
 88                     		<#else>
 89   	                    	<#if isImage?? && isImage>
 90   	                    		<li>
 91   									<a class="pirobox_gall" title="#i18n{announce.view_announce.imagesCaption}" href="image?resource_type=announce_img&id=${response.idResponse}">
 92   										<img height="80px" src="image?resource_type=announce_img&id=${response.idResponse}" />
 93   									</a>
 94   								</li>
 95   	                    	<#else>
 96   	                    		<br />${response.toStringValueResponse}
 97   	                    	</#if>
 98   	                 	</#if>
 99   					</#if>
 100   				</#list>
 101   			<#if resource_history?? && resource_history != ''>
 102   				<div class="well">
 103   					${resource_history}
 104   				</div> 
 105   			</#if>
 106   			</div>
 107   		</div>
 108   	</div>
 109   </div>
 110   <link rel="stylesheet" type="text/css" href="css/plugins/announce/pirobox/white/style.css">
 111   <link rel="stylesheet" type="text/css" href="css/plugins/announce/announce.css">
 112   <script src="js/plugins/announce/pirobox/piroBox.1_2_min.js" type="text/javascript" ></script>
 113   <script src="js/plugins/announce/announce.js" type="text/javascript" ></script>