[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/layouts/vlayout/modules/Settings/SharingAccess/ -> EditRule.tpl (source)

   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      {assign var=RULE_MODEL_EXISTS value=true}
  14      {assign var=RULE_ID value=$RULE_MODEL->getId()}
  15      {if empty($RULE_ID)}
  16          {assign var=RULE_MODEL_EXISTS value=false}
  17      {/if}
  18      <div>
  19          <div class="modal-header contentsBackground">
  20              <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
  21              <h3>{vtranslate('LBL_ADD_CUSTOM_RULE_TO', $QUALIFIED_MODULE)}&nbsp;{vtranslate($MODULE_MODEL->get('name'), $MODULE)}</h3>
  22          </div>
  23          <form id="editCustomRule" class="form-horizontal" method="POST">
  24              <input type="hidden" name="for_module" value="{$MODULE_MODEL->get('name')}" />
  25              <input type="hidden" name="record" value="{$RULE_ID}" />
  26              <div class="modal-body">
  27                  <div class="row-fluid">
  28                      <div class="control-group">
  29                          <label class="control-label">{vtranslate($MODULE_MODEL->get('name'), $MODULE)}&nbsp;{vtranslate('LBL_OF', $MODULE)}</label>
  30                          <div class="controls">
  31                              <select class="chzn-select" name="source_id">
  32                                  {foreach from=$ALL_RULE_MEMBERS key=GROUP_LABEL item=ALL_GROUP_MEMBERS}
  33                                      <optgroup label="{vtranslate($GROUP_LABEL, $QUALIFIED_MODULE)}">
  34                                          {foreach from=$ALL_GROUP_MEMBERS item=MEMBER}
  35                                              <option value="{$MEMBER->getId()}"
  36                                          {if $RULE_MODEL_EXISTS} {if $RULE_MODEL->getSourceMember()->getId() == $MEMBER->getId()}selected{/if}{/if}>
  37                                          {$MEMBER->getName()}
  38                                      </option>
  39                                  {/foreach}
  40                              </optgroup>
  41                          {/foreach}
  42                      </select>
  43                  </div>    
  44              </div>
  45              <div class="control-group">
  46                  <label class="control-label">{vtranslate('LBL_CAN_ACCESSED_BY', $QUALIFIED_MODULE)}</label>
  47                  <div class="controls">
  48                      <select class="chzn-select" name="target_id">
  49                          {foreach from=$ALL_RULE_MEMBERS key=GROUP_LABEL item=ALL_GROUP_MEMBERS}
  50                              <optgroup label="{vtranslate($GROUP_LABEL, $QUALIFIED_MODULE)}">
  51                                  {foreach from=$ALL_GROUP_MEMBERS item=MEMBER}
  52                                      <option value="{$MEMBER->getId()}"
  53                                  {if $RULE_MODEL_EXISTS}{if $RULE_MODEL->getTargetMember()->getId() == $MEMBER->getId()}selected{/if}{/if}>
  54                                  {$MEMBER->getName()}
  55                              </option>
  56                          {/foreach}
  57                      </optgroup>
  58                  {/foreach}
  59              </select>
  60          </div>    
  61      </div>
  62      <div class="control-group">
  63          <label class="control-label">{vtranslate('LBL_WITH_PERMISSIONS', $QUALIFIED_MODULE)}</label>
  64          <div class="controls">
  65              <label class="radio">
  66                  <input type="radio" value="0" name="permission" {if $RULE_MODEL_EXISTS} {if $RULE_MODEL->isReadOnly()} checked {/if} {else} checked {/if}/>&nbsp;{vtranslate('LBL_READ', $QUALIFIED_MODULE)}&nbsp;
  67              </label>
  68              <label class="radio">
  69                  <input type="radio" value="1" name="permission" {if $RULE_MODEL->isReadWrite()} checked {/if} />&nbsp;{vtranslate('LBL_READ_WRITE', $QUALIFIED_MODULE)}&nbsp;
  70              </label>
  71          </div>    
  72      </div>
  73  </div>
  74  </div>
  75  {include file='ModalFooter.tpl'|@vtemplate_path:'Vtiger'}
  76  </form>
  77  </div>
  78  {/strip}


Generated: Fri Nov 28 20:08:37 2014 Cross-referenced by PHPXref 0.7.1