Added Vodia Identity Switcher for Xinon Users
This commit is contained in:
@@ -103,20 +103,44 @@ $siteTitle = "Benutzer";
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group <?=(!isset($user) || !$user->is("employee")) ? "hidden" : ""?>"
|
||||
id="employee-number-container">
|
||||
<label for="employee_number"><?=TT_SYSOWNER_NAME_HTML?> Mitarbeiternummer:</label>
|
||||
<input type="text" id="employee_number" name="employee_number" class="form-control"
|
||||
value="<?=(isset($user)) ? (new WorkerFlag($user->id, "employee_number"))->value() : ""?>"/>
|
||||
</div>
|
||||
<div class="form-group <?=(!isset($user) || !$user->is("employee")) ? "hidden" : ""?>"
|
||||
id="project-api-key-container">
|
||||
<label for="project_api_key">OpenProject API Key:</label>
|
||||
<input type="text" id="project_api_key" name="project_api_key" class="form-control"
|
||||
value="<?=(isset($user)) ? (new WorkerFlag($user->id, "project_api_key"))->value() : ""?>"/>
|
||||
|
||||
<div id="employee-container" <?=(!isset($user) || !$user->is("employee")) ? "hidden" : ""?>>
|
||||
<div class="form-group">
|
||||
<label for="employee_number"><?=TT_SYSOWNER_NAME_HTML?> Mitarbeiternummer:</label>
|
||||
<input type="text" id="employee_number" name="employee_number" class="form-control"
|
||||
value="<?=(isset($user)) ? (new WorkerFlag($user->id, "employee_number"))->value() : ""?>" />
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="employee_number">Vodia Outbound Identity - Domain:</label>
|
||||
<input type="text" id="vodia_identity_domain" name="vodia_identity_domain" class="form-control"
|
||||
value="<?=(isset($user)) ? (new WorkerFlag($user->id, "vodia_identity_domain"))->value() : ""?>" />
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="employee_number">Vodia Outbound Identity - Username (Extension):</label>
|
||||
<input type="text" id="vodia_identity_username" name="vodia_identity_username" class="form-control"
|
||||
value="<?=(isset($user)) ? (new WorkerFlag($user->id, "vodia_identity_username"))->value() : ""?>" />
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="employee_number">Vodia Outbound Identity - Standard Identität:</label>
|
||||
<input type="text" id="vodia_identity_default" name="vodia_identity_default" class="form-control"
|
||||
value="<?=(isset($user)) ? (new WorkerFlag($user->id, "vodia_identity_default"))->value() : ""?>" />
|
||||
<small>+43 720 123456</small>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="project_api_key">OpenProject API Key:</label>
|
||||
<input type="text" id="project_api_key" name="project_api_key" class="form-control"
|
||||
value="<?=(isset($user)) ? (new WorkerFlag($user->id, "project_api_key"))->value() : ""?>" />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<hr />
|
||||
|
||||
<div class="form-group">
|
||||
<label for="password">Password:</label>
|
||||
<input type="password" id="password" name="password" class="form-control" value=""/>
|
||||
@@ -557,9 +581,9 @@ $siteTitle = "Benutzer";
|
||||
|
||||
$("#employee").change(function () {
|
||||
if ($("#employee").val() == "true") {
|
||||
$("#employee-number-container").show(400);
|
||||
$("#employee-container").show(400);
|
||||
} else {
|
||||
$("#employee-number-container").hide(400);
|
||||
$("#employee-container").hide(400);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -16,6 +16,11 @@
|
||||
<!-- end Footer -->
|
||||
|
||||
<!--<script type="text/javascript" src="<?=self::getResourcePath()?>assets/js/vendor.min.js"></script>-->
|
||||
|
||||
<?php if(defined("ENABLE_VODIA_IDENTITY_SWITCHER") && ENABLE_VODIA_IDENTITY_SWITCHER && $me->is("employee")): ?>
|
||||
<script type="text/javascript" src="<?=self::getResourcePath()?>assets/js/xinon-vodia-identity.js"></script>
|
||||
<?php endif; ?>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(".selectpicker").selectpicker({
|
||||
iconBase: "fas",
|
||||
@@ -36,7 +41,7 @@
|
||||
$(this).parent('li').toggleClass('open').find('.submenu:first').toggleClass('open');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
<?php if($me->can("Superexpert")): ?>
|
||||
$(".secondO").addClass("pointer");
|
||||
|
||||
|
||||
@@ -59,6 +59,8 @@
|
||||
<script type="text/javascript" src="<?=self::getResourcePath()?>plugins/bookstack/bookstackIntegration.js"></script>
|
||||
<script type="text/javascript" src="<?=self::getResourcePath()?>assets/libs/switchery/switchery.min.js"></script>
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
window.mfNotify = <?=isset($mfNotify) ? json_encode($mfNotify) : "null"; ?>;
|
||||
window.TT_CONFIG = {};
|
||||
@@ -93,9 +95,11 @@
|
||||
|
||||
<body>
|
||||
<script type="text/javascript">
|
||||
baseurl = '<?=self::getResourcePath()?>';
|
||||
var baseurl = '<?=self::getResourcePath()?>';
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
<!-- Navigation Bar-->
|
||||
<header id="topnav">
|
||||
<?php include(realpath(dirname(__FILE__)."/")."/topbar.php"); ?>
|
||||
|
||||
@@ -15,6 +15,43 @@
|
||||
<!-- End mobile menu toggle-->
|
||||
</li>
|
||||
|
||||
<li id="vodia-identity-container" class="dropdown notification-list hidden" >
|
||||
<a href="#" id="vodia-identity-switcher" class="nav-link nav-user dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
|
||||
<i class="phone-icon fas fa-phone text-success"></i>
|
||||
<span class="pro-user-name ml-1">
|
||||
Ausgehende Identität: <strong id="vodia-identity-current-text"></strong>
|
||||
<strong id="vodia-identity-current-number"></strong>
|
||||
<i class="far fa-chevron-down"></i>
|
||||
</span>
|
||||
</a>
|
||||
<div id="vodia-identity-switcher-dropdown-menu" class="dropdown-menu dropdown-menu-right">
|
||||
<div class="dropdown-item noti-title">
|
||||
<h6 class="m-0">
|
||||
Ausgehende Telefonidentität umschalten:
|
||||
</h6>
|
||||
</div>
|
||||
<ul class="list-group" id="vodia-identities-list" style="min-width: 512px;">
|
||||
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<template id="vodia-identity-list-item-template">
|
||||
<li class="list-group-item pointer">
|
||||
<table class="table table-borderless mb-0">
|
||||
<tr>
|
||||
<td class="color-block"><i class="fas fa-phone"></i></td>
|
||||
<td class="text-block" style="vertical-align: middle">
|
||||
<span class="name"></span>
|
||||
<span class="number"></span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</li>
|
||||
</template>
|
||||
|
||||
<li id="bookstackLink" class="dropdown notification-list" style="display: none">
|
||||
<a class="nav-link dropdown-toggle" href="" target="_blank">
|
||||
<i class="fas fa-book"></i>
|
||||
|
||||
Reference in New Issue
Block a user