|
Hello,
Not shure if you got it working but this is the correct file
Sits in te map
Components/jom_jomestate/views/admin/tmpl/edit_form.tpl.php
#########
File
#########
<legend>{JText text='ADM_PROP_EDIT_FORMTITLE'}</legend>
<p><label for="Price">{JText text='ADM_PROP_TABLE_AD REF'}</label><strong>{if $data->ad_ref}{$data->ad_ref}{else}<input type="text" name="ad_ref" id="ad_ref" value="{$data->random_ref}" >{/if}</strong></p>
<p>
<label for="State">{JText text='ADM_PROP_TYPE'}</label>
{html_options options=$type name=type selected=$data->type}
</p>
<p><label for="Price">{JText text='ADM_PROP_TABLE_AD HEADLINE'} </label><input type="text" size="50" name="ad_headline" id="ad_headline" value="{$data->ad_headline}" {literal}class="required" minlength="2" maxlength="200"{/literal}></p>
<p><label for="Price">{JText text='ADM_PROP_EDIT_PRICE'}</label><input type="text" name="ad_price" id="ad_price" value="{$data->ad_price}" {literal}class="{required:true,number:true,nowhitespace:true}"{/literal}></p>
<p>
<label for="State">{JText text='ADM_PROP_EDIT_STATE'}</label>
<select name="ad_state">
{foreach from=$set1 item=item}
{html_options output=$item.set_name values=$item.id selected=$data->ad_state}
{/foreach}
</select>
</p>
<p><label for="Suburb">{JText text='ADM_PROP_EDIT_CITY'}</label><input type="text" name="ad_city" id="ad_city" class="required" maxlength="50" value="{$data->ad_city}"></p>
<p><label for="Suburb">{JText text='ADM_PROP_EDIT_POSTCODE'}:</label><input type="text" name="ad_suburb" id="ad_suburb" class="required" value="{$data->ad_suburb}" maxlength="8"></p>
<p><label for="Street">{JText text='ADM_PROP_EDIT_STREET'}:</label><input type="text" name="ad_street" id="ad_street" class="required" value="{$data->ad_street}" minlength="2"></p>
<p>
<label for="State">{JText text='ADM_PROP_EDIT_PTYPE'}</label>
<select name="ad_proptype">
{foreach from=$set2 item=item}
{html_options output=$item.set_name values=$item.id selected=$data->ad_proptype}
{/foreach}
</select>
</p>
<p>
<label for="Property Class">{JText text='ADM_PROP_EDIT_PCLASS'}</label>
<select name="ad_propclass">
{foreach from=$set3 item=item}
{html_options output=$item.set_name values=$item.id selected=$data->ad_propclass}
{/foreach}
</select>
</p>
<p><label for="Price">{JText text='ADM_PROP_EDIT_HOUSESIZE'}: </label><input type="text" size="3" name="ad_housesize" id="ad_housesize" value="{$data->ad_housesize}" class="required"> {$params->get(metric_units)}</p>
<p><label for="Price">{JText text='ADM_PROP_EDIT_NBEDROOMS'}:</label><input type="text" size="3" name="ad_numbed" id="ad_numbed" value="{$data->ad_numbed}" class="required"></p>
<p><label for="Price">{JText text='ADM_PROP_EDIT_LANDSIZE'}:</label><input type="text" size="3" name="ad_lsize" id="ad_lsize" value="{$data->ad_lsize}" class="required"> {$params->get(metric_units)}</p>
<p>
<label for="Property Class">{JText text='JE_REG_ADD_CARAC'}</label>
<select name="ad_caracc">
{foreach from=$set4 item=item}
{html_options output=$item.set_name values=$item.id selected=$data->ad_caracc}
{/foreach}
</select>
</p>
<p>
<label for="Property Class">{JText text='ADM_PROP_EDIT_FEATURES'}</label><br><br>
{foreach from=$set5 item=item}
{html_checkboxes name=ad_features output=$item.set_name values=$item.id selected=$data->ad_features|checkbox separator=' ' }
{/foreach}
</p>
<p>
<label for="Price">{JText text='JE_REG_ADD_DESCR'}</label>{ $editor->display('ad_description',$data->ad_description,'360','120','40','0','0',$editor_params) }
</p>
<br />
<p>
<label for="Price">{JText text='ADM_PROP_EDIT_IMG1'}:</label>
{if $data->img0}
<img src="{$JPATH_COMPONENT_IMG}thumb_{$data->img0}" class="image"><br />
{if $data->img1 or $data->img2 or $data->img3}<a href="javascript:alert('{JText text='ADM_PROP_EDIT_ALERT1'}')">delete</a>{else}<a href="index.php?option=com_jomestate&c={$CONTROLLER}&task=deleteSingleImage&column=img0&userid={$data->user_id}&cid={$data->id}">delete</a>{/if}
<br />
<input type="file" id="img[]" name="img[]" style="visibility: hidden;">
{/if}
<p><input type="file" id="img[]" name="img[]" class="{literal}{required: true,accept:'jpg|gif'}{/literal}" {if $data->img0}DISABLED{/if}></p>
</p>
<p>
<label for="Price">{JText text='ADM_PROP_EDIT_IMG2'}:</label>
{if $data->img1}
<img src="{$JPATH_COMPONENT_IMG}thumb_{$data->img1}" class="image"><br />
<a href="index.php?option=com_jomestate&c={$CONTROLLER}&task=deleteSingleImage&column=img1&userid={$data->user_id}&cid={$data->id}">delete</a>
<br />
<input type="file" id="img[]" name="img[]" style="visibility: hidden;">
{/if}
<p><input type="file" id="img[]" name="img[]" class="{literal}{accept:'jpg|gif'}{/literal}" {if $data->img1}DISABLED{/if}></p>
</p>
<p>
<label for="Price">{JText text='ADM_PROP_EDIT_IMG3'}:</label>
{if $data->img2}
<img src="{$JPATH_COMPONENT_IMG}thumb_{$data->img2}" class="image"><br />
<a href="index.php?option=com_jomestate&c={$CONTROLLER}&task=deleteSingleImage&column=img2&userid={$data->user_id}&cid={$data->id}">delete</a>
<br />
<input type="file" id="img[]" name="img[]" style="visibility: hidden;">
{/if}
<p><input type="file" id="img[]" name="img[]" class="{literal}{accept:'jpg|gif'}{/literal}" {if $data->img2}DISABLED{/if}></p>
</p>
<p>
<label for="Price">{JText text='ADM_PROP_EDIT_IMG4'}:</label>
{if $data->img3}
<img src="{$JPATH_COMPONENT_IMG}thumb_{$data->img3}" class="image"><br />
<a href="index.php?option=com_jomestate&c={$CONTROLLER}&task=deleteSingleImage&column=img3&userid={$data->user_id}&cid={$data->id}">delete</a>
<br />
<input type="file" id="img[]" name="img[]" style="visibility: hidden;">
{/if}
<p><input type="file" id="img[]" name="img[]" class="{literal}{accept:'jpg|gif'}{/literal}" {if $data->img3}DISABLED{/if}></p>
</p>
<input type="hidden" name="date_modified" value="{$smarty.now|date_format:'%Y-%m-%d %H:%M:%S'}">
|