</label> </fieldset> <?php if ($tenant_mode == Site::MODE_MULTI) { ?> <h3>Twilio Connect Settings</h3> <fieldset class="vbx-input-container"> <p>This Sid identifies your install for the purposes of using<br />Twilio Connect to authorize your Tenant accounts.</p> <br /> <label for="site-twilio-connect-application-sid" class="field-label"> Twilio Connect Application SID <?php $params = array('id' => 'site-twilio-connect-application-sid', 'name' => 'site[connect_application_sid]', 'type' => 'text', 'class' => 'medium'); echo t_form_input($params, @$connect_application_sid['value']); ?> <p class="instruction">Leave blank to not use Twilio Connect. Changing an existing<br />Sid will invalidate any existing Connect authorizations.</p> <p class="instruction">The Connect Application will be checked and updated for the<br />proper callback urls on save.</p> </label> </fieldset> <?php } ?> </div> <button class="submit-button" type="submit"><span>Update</span></button> </form>
<div id="call-options-descriptions"> <p id="call-option-description-browser">Your call will be placed using the browserphone.</p> <p id="call-option-description-device">You will be called at <span class="device-number">(000) 000-0000</span> and then connected to your destination.</p> </div> <p>Your Caller ID will be <span id="call-option-description-caller-id" class="device-number"><?php echo $browserphone['caller_id']; ?> </span></p> </div> </div> <h2>Make a Call</h2> <fieldset> <?php echo t_form_input(array('name' => 'dial_phone_number', 'id' => 'dial-phone-number', 'placeholder' => '(555) 867 5309'), ''); $call_button_params = array('name' => 'dial_input_button', 'id' => 'dial-input-button', 'value' => '<span class="button-text">Call</span>'); if ($dial_disabled) { $call_button_params['disabled'] = 'disabled'; } echo t_form_button($call_button_params); ?> </fieldset> </form><!-- #make-call-form --> <?php if (count($users)) { /* user-list */ ?> <h2 style="text-align: center; color: white; margin: 30px 0 5px 0;">Quick Dial</h2>
#multi-tenant" method="POST" class="add-tenant-form vbx-form" autocomplete="off"> <div class="vbx-input-complex vbx-input-container"> <label for="tenant-admin-email" class="field-label">Adminstrator email: <?php $email_data = array('name' => 'tenant[admin_email]', 'id' => 'tenant-admin-email', 'class' => 'medium'); echo t_form_input($email_data, ''); ?> </label> </div> <div class="vbx-input-complex vbx-input-container"> <label for"tenant-url-prefix" class="field-label">Tenant Name: <?php $url_data = array('name' => 'tenant[url_prefix]', 'id' => 'tenant-url-prefix', 'class' => 'medium'); echo t_form_input($url_data, ''); ?> </label> </div> <div class="vbx-input-complex vbx-input-container"> <?php if (isset($connect_application_sid) && !empty($connect_application_sid['value'])) { ?> <label for="auth-type" class="field-label">Authentication Type: <?php $params = array('name' => 'auth_type', 'id' => 'auth-type', 'class' => 'medium'); $options = array('subaccount' => 'Sub-Account', 'connect' => 'Twilio Connect'); echo t_form_dropdown($params, $options); ?> </label>
<?php } elseif (!empty($callerid_numbers) && count($callerid_numbers > 1)) { /* callerid_numbers */ ?> <?php $c = $callerid_numbers[0]; ?> <?php if (isset($c->trial) && $c->trial == 1) { /* is-trail */ ?> <label class="field-label"><span class="label-text">From</span> <?php echo t_form_input(array('name' => 'callerid', 'class' => 'small')); ?> </label> <?php } else { /* is-trail */ ?> <?php echo form_hidden('callerid', $c->phone); ?> <?php } /* is-trail */ ?> <?php