[ Index ] |
PHP Cross Reference of vtigercrm-6.1.0 |
[Summary view] [Print] [Text view]
1 {*<!-- 2 /********************************************************************************* 3 ** The contents of this file are subject to the vtiger CRM Public License Version 1.0 4 * ("License"); You may not use this file except in compliance with the License 5 * The Original Code is: vtiger CRM Open Source 6 * The Initial Developer of the Original Code is vtiger. 7 * Portions created by vtiger are Copyright (C) vtiger. 8 * All Rights Reserved. 9 * 10 ********************************************************************************/ 11 -->*} 12 {strip} 13 {foreach key=index item=jsModel from=$SCRIPTS} 14 <script type="{$jsModel->getType()}" src="{$jsModel->getSrc()}"></script> 15 {/foreach} 16 17 <div class="modelContainer"> 18 <div class="modal-header contentsBackground"> 19 <button class="close" aria-hidden="true" data-dismiss="modal" type="button" title="{vtranslate('LBL_CLOSE')}">x</button> 20 <h3>{vtranslate('LBL_QUICK_CREATE', $MODULE)} {vtranslate($SINGLE_MODULE, $MODULE)}</h3> 21 </div> 22 <form class="form-horizontal recordEditView" name="QuickCreate" method="post" action="index.php"> 23 {if !empty($PICKIST_DEPENDENCY_DATASOURCE)} 24 <input type="hidden" name="picklistDependency" value='{Vtiger_Util_Helper::toSafeHTML($PICKIST_DEPENDENCY_DATASOURCE)}' /> 25 {/if} 26 <input type="hidden" name="module" value="{$MODULE}"> 27 <input type="hidden" name="action" value="SaveAjax"> 28 <div class="quickCreateContent"> 29 <div class="modal-body"> 30 <table class="massEditTable table table-bordered"> 31 <tr> 32 {assign var=COUNTER value=0} 33 {foreach key=FIELD_NAME item=FIELD_MODEL from=$RECORD_STRUCTURE name=blockfields} 34 {assign var="isReferenceField" value=$FIELD_MODEL->getFieldDataType()} 35 {assign var="refrenceList" value=$FIELD_MODEL->getReferenceList()} 36 {assign var="refrenceListCount" value=count($refrenceList)} 37 {if $FIELD_MODEL->get('uitype') eq "19"} 38 {if $COUNTER eq '1'} 39 <td></td><td></td></tr><tr> 40 {assign var=COUNTER value=0} 41 {/if} 42 {/if} 43 {if $COUNTER eq 2} 44 </tr><tr> 45 {assign var=COUNTER value=1} 46 {else} 47 {assign var=COUNTER value=$COUNTER+1} 48 {/if} 49 <td class='fieldLabel'> 50 {if $isReferenceField neq "reference"}<label class="muted pull-right">{/if} 51 {if $FIELD_MODEL->isMandatory() eq true && $isReferenceField neq "reference"} <span class="redColor">*</span> {/if} 52 {if $isReferenceField eq "reference"} 53 {if $refrenceListCount > 1} 54 {assign var="DISPLAYID" value=$FIELD_MODEL->get('fieldvalue')} 55 {assign var="REFERENCED_MODULE_STRUCT" value=$FIELD_MODEL->getUITypeModel()->getReferenceModule($DISPLAYID)} 56 {if !empty($REFERENCED_MODULE_STRUCT)} 57 {assign var="REFERENCED_MODULE_NAME" value=$REFERENCED_MODULE_STRUCT->get('name')} 58 {/if} 59 <span class="pull-right"> 60 {if $FIELD_MODEL->isMandatory() eq true} <span class="redColor">*</span> {/if} 61 <select style="width: 150px;" class="chzn-select referenceModulesList" id="referenceModulesList"> 62 <optgroup> 63 {foreach key=index item=value from=$refrenceList} 64 <option value="{$value}" {if $value eq $REFERENCED_MODULE_NAME} selected {/if} >{vtranslate($value, $value)}</option> 65 {/foreach} 66 </optgroup> 67 </select> 68 </span> 69 {else} 70 <label class="muted pull-right">{if $FIELD_MODEL->isMandatory() eq true} <span class="redColor">*</span> {/if}{vtranslate($FIELD_MODEL->get('label'), $MODULE)}</label> 71 {/if} 72 {else} 73 {vtranslate($FIELD_MODEL->get('label'), $MODULE)} 74 {/if} 75 {if $isReferenceField neq "reference"}</label>{/if} 76 </td> 77 <td class="fieldValue" {if $FIELD_MODEL->get('uitype') eq '19'} colspan="3" {assign var=COUNTER value=$COUNTER+1} {/if}> 78 {include file=vtemplate_path($FIELD_MODEL->getUITypeModel()->getTemplateName(),$MODULE)} 79 </td> 80 {/foreach} 81 </tr> 82 </table> 83 </div> 84 </div> 85 <div class="modal-footer quickCreateActions"> 86 {assign var="EDIT_VIEW_URL" value=$MODULE_MODEL->getCreateRecordUrl()} 87 <a class="cancelLink cancelLinkContainer pull-right" type="reset" data-dismiss="modal">{vtranslate('LBL_CANCEL', $MODULE)}</a> 88 <button class="btn btn-success" type="submit"><strong>{vtranslate('LBL_SAVE', $MODULE)}</strong></button> 89 <button class="btn" id="goToFullForm" data-edit-view-url="{$EDIT_VIEW_URL}" type="button"><strong>{vtranslate('LBL_GO_TO_FULL_FORM', $MODULE)}</strong></button> 90 </div> 91 </form> 92 </div> 93 {/strip}
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:08:37 2014 | Cross-referenced by PHPXref 0.7.1 |