diff --git a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/UI/general.html b/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/UI/general.html deleted file mode 100644 index f3658b7..0000000 --- a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/UI/general.html +++ /dev/null @@ -1,1898 +0,0 @@ - - - - - - AdminLTE 4 | General UI Elements - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - -
- -
- -
- -
-

General UI Elements

-
- -
-
- -
- -
- - -
- -
- -
- -
-
- For detailed documentation of Components visit - - Bootstrap Components - -
-
- - -
- -
- -
Accordion
- - -
-
-
-

- -

-
-
- This is the first item's accordion body. It is shown by - default, until the collapse plugin adds the appropriate classes that we - use to style each element. These classes control the overall appearance, - as well as the showing and hiding via CSS transitions. You can modify - any of this with custom CSS or overriding our default variables. It's - also worth noting that just about any HTML can go within the - .accordion-body, though the transition does limit overflow. -
-
-
-
-

- -

-
-
- This is the second item's accordion body. It is hidden - by default, until the collapse plugin adds the appropriate classes that - we use to style each element. These classes control the overall - appearance, as well as the showing and hiding via CSS transitions. You - can modify any of this with custom CSS or overriding our default - variables. It's also worth noting that just about any HTML can go within - the .accordion-body, though the transition does limit - overflow. -
-
-
-
-

- -

-
-
- This is the third item's accordion body. It is hidden - by default, until the collapse plugin adds the appropriate classes that - we use to style each element. These classes control the overall - appearance, as well as the showing and hiding via CSS transitions. You - can modify any of this with custom CSS or overriding our default - variables. It's also worth noting that just about any HTML can go within - the .accordion-body, though the transition does limit - overflow. -
-
-
-
-
- -
- - -
- -
Alert
- - -
- - - - - - - - -
- -
- - -
- -
Badge
- - -
-

Example heading New

-

Example heading New

-

Example heading New

-

Example heading New

-
Example heading New
-
Example heading New
-
- -
- -
- -
- Primary - Secondary - Success - Danger - Warning - Info - Light - Dark -
- Primary - Secondary - Success - Danger - Warning - Info - Light - Dark -
- -
- - -
- -
Button
- - -
- - - - - - - - - -
- - - - - - -
- - - - - - - - -
- - - -
- -
- -
- - -
- -
- -
Button Group
- - -
-
- - - -
-
- - - -
-
- - - -
-
-
- - - - - - -
-
- - - - - - -
-
-
- - -
- - -
-
-
- -
- - -
- -
Collapse
- - -
-

- - -

-
-
- Some placeholder content for the collapse component. This panel is hidden by - default but revealed when the user activates the relevant trigger. -
-
-
- -
- - -
- -
Dropdowns
- - -
- -
- - -
-
-
- - - -
-
- - - -
-
- -
- - - - - -
- -
Navbar
- - -
- -
- -
- - -
- -
Pagination
- - -
- -
- -
- -
- -
- - -
- -
Placeholder
- - -
- -
- -
- - -
- -
Progress
- - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
- - -
- -
Toast
- - -
- -
- - - - - - - - -
- - - - - - - - - -
-
- -
- - -
- -
Tooltip
- - -
-

- Placeholder text to demonstrate some - inline links - with tooltips. This is now just filler, no killer. Content placed here just to - mimic the presence of - real text. And all that just to give you an idea of how tooltips would look when used - in real-world situations. So hopefully you've now seen how - these tooltips on links - can work in practice, once you use them on - your own - site or project. -

-
- -
- - -
- -
Spinner
- - -
-
- Loading... -
-
- Loading... -
-
- Loading... -
-
- Loading... -
-
- Loading... -
-
- Loading... -
-
- Loading... -
-
- Loading... -
-
- -
- -
- -
- -
- -
- -
- - - - -
- - - - - - - - - - - - - - - - - - - - - - - diff --git a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/UI/icons.html b/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/UI/icons.html deleted file mode 100644 index fcdcdfc..0000000 --- a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/UI/icons.html +++ /dev/null @@ -1,818 +0,0 @@ - - - - - - AdminLTE 4 | Icons - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - -
- -
- -
- -
-

Icons

-
- -
-
- -
- -
- - -
- -
- -
-
- -
-
-

Icons

-
-

You can use any font library you like with AdminLTE 4.

- Recommendations - -
-
-
-
- -
- -
- -
- -
- - - - -
- - - - - - - - - - - - - - - - - diff --git a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/UI/timeline.html b/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/UI/timeline.html deleted file mode 100644 index c1c53b8..0000000 --- a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/UI/timeline.html +++ /dev/null @@ -1,896 +0,0 @@ - - - - - - AdminLTE 4 | Timeline Elements - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - -
- -
- -
- -
-

Timeline

-
- -
-
- -
- -
- - -
- -
- -
-
- -
- -
10 Feb. 2023
- - -
- -
- 12:05 -

- Support Team sent you an email -

-
- Etsy doostang zoodles disqus groupon greplin oooj voxy zoodles, weebly ning - heekya handango imeem plugg dopplr jibjab, movity jajah plickers sifteo - edmodo ifttt zimbra. Babblely odeo kaboodle quora plaxo ideeli hulu weebly - balihoo... -
- -
-
- - -
- -
- 5 mins ago -

- Sarah Young accepted your friend request -

-
-
- - -
- -
- 27 mins ago -

- Jay White commented on your post -

-
- Take me to your leader! Switzerland is small and neutral! We are more like - Germany, ambitious and misunderstood! -
- -
-
- - -
3 Jan. 2023
- - -
- -
- 2 days ago -

Mina Lee uploaded new photos

-
- ... - ... - ... - ... -
-
-
- - -
- -
- 5 days ago -

Mr. Doe shared a video

-
-
- -
-
- -
-
- -
-
-
- -
- -
- -
- -
- - - - -
- - - - - - - - - - - - - - - - - diff --git a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/docs/browser-support.html b/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/docs/browser-support.html deleted file mode 100644 index 4b42c6f..0000000 --- a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/docs/browser-support.html +++ /dev/null @@ -1,851 +0,0 @@ - - - - - - Browser Support | AdminLTE 4 - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - -
- -
- -
- -
-

Browser Support

-
- -
-
- -
- -
- - -
- -
-

AdminLTE comes with the same browser support as Bootstrap 5.

-
-
- Excerpt from Bootstrap’s official Documentation! -
-

- Bootstrap supports the latest, stable releases of all major - browsers and platforms. -

-

- For more details - look here. -

-
-

- You can find our supported range of browsers and their versions in - our .browserslistrc file: -

-
# https://github.com/browserslist/browserslist#readme
-
->= 0.5%
-last 2 major versions
-not dead
-Chrome >= 60
-Firefox >= 60
-Firefox ESR
-iOS >= 12
-Safari >= 12
-not Explorer <= 11
-
-
- -
- -
- - - - -
- - - - - - - - - - - - - - - - - diff --git a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/docs/color-mode.html b/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/docs/color-mode.html deleted file mode 100644 index 41bccda..0000000 --- a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/docs/color-mode.html +++ /dev/null @@ -1,1168 +0,0 @@ - - - - - - Color Mode | AdminLTE 4 - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - -
- -
- -
- -
-

Color Mode Toggle

-
- -
-
- -
- -
- - -
- -
- -
-
-
-
Tips
-

- - Color modes in Bootstrap - - allow you to switch between light and dark modes. You can do this using the - data-bs-theme attribute. You can also create your own custom color modes. -

-
-
- -
- - - -
- -
-
<!--begin::Header-->
-<nav class="navbar navbar-expand bg-body">
-  <!--begin::Container-->
-  <div class="container-fluid">
-    <!--begin::Start Navbar links-->
-    <ul class="navbar-nav">
-      <li class="nav-item">
-        <a class="nav-link" data-lte-toggle="sidebar" href="#" role="button"
-          ><i class="bi bi-list"></i
-        ></a>
-      </li>
-      <li class="nav-item d-none d-md-block">
-        <a href="#" class="nav-link">Home</a>
-      </li>
-      <li class="nav-item d-none d-md-block">
-        <a href="#" class="nav-link">Contact</a>
-      </li>
-    </ul>
-    <!--end::Start Navbar links-->
-    <!--begin::End Navbar links-->
-    <ul class="navbar-nav ms-auto">
-      <li class="nav-item dropdown">
-        <button
-          class="btn btn-link nav-link py-2 px-0 px-lg-2 dropdown-toggle d-flex align-items-center"
-          id="bd-theme"
-          type="button"
-          aria-expanded="false"
-          data-bs-toggle="dropdown"
-          data-bs-display="static"
-        >
-          <span class="theme-icon-active">
-            <i class="my-1"></i>
-          </span>
-          <span class="d-lg-none ms-2" id="bd-theme-text">Toggle theme</span>
-        </button>
-        <ul
-          class="dropdown-menu dropdown-menu-end"
-          aria-labelledby="bd-theme-text"
-          style="--bs-dropdown-min-width: 8rem;"
-        >
-          <li>
-            <button
-              type="button"
-              class="dropdown-item d-flex align-items-center active"
-              data-bs-theme-value="light"
-              aria-pressed="false"
-            >
-              <i class="bi bi-sun-fill me-2"></i>
-              Light
-              <i class="bi bi-check-lg ms-auto d-none"></i>
-            </button>
-          </li>
-          <li>
-            <button
-              type="button"
-              class="dropdown-item d-flex align-items-center"
-              data-bs-theme-value="dark"
-              aria-pressed="false"
-            >
-              <i class="bi bi-moon-fill me-2"></i>
-              Dark
-              <i class="bi bi-check-lg ms-auto d-none"></i>
-            </button>
-          </li>
-          <li>
-            <button
-              type="button"
-              class="dropdown-item d-flex align-items-center"
-              data-bs-theme-value="auto"
-              aria-pressed="true"
-            >
-              <i class="bi bi-circle-fill-half-stroke me-2"></i>
-              Auto
-              <i class="bi bi-check-lg ms-auto d-none"></i>
-            </button>
-          </li>
-        </ul>
-      </li>
-    </ul>
-    <!--end::End Navbar links-->
-  </div>
-  <!--end::Container-->
-</nav>
-<!--end::Header-->
-
-
// Color Mode Toggler
-(() => {
-  "use strict";
-
-  const storedTheme = localStorage.getItem("theme");
-
-  const getPreferredTheme = () => {
-    if (storedTheme) {
-      return storedTheme;
-    }
-
-    return window.matchMedia("(prefers-color-scheme: dark)").matches
-      ? "dark"
-      : "light";
-  };
-
-  const setTheme = function (theme) {
-    if (
-      theme === "auto" &&
-      window.matchMedia("(prefers-color-scheme: dark)").matches
-    ) {
-      document.documentElement.setAttribute("data-bs-theme", "dark");
-    } else {
-      document.documentElement.setAttribute("data-bs-theme", theme);
-    }
-  };
-
-  setTheme(getPreferredTheme());
-
-  const showActiveTheme = (theme, focus = false) => {
-    const themeSwitcher = document.querySelector("#bd-theme");
-
-    if (!themeSwitcher) {
-      return;
-    }
-
-    const themeSwitcherText = document.querySelector("#bd-theme-text");
-    const activeThemeIcon = document.querySelector(".theme-icon-active i");
-    const btnToActive = document.querySelector(
-      `[data-bs-theme-value="${theme}"]`
-    );
-    const svgOfActiveBtn = btnToActive.querySelector("i").getAttribute("class");
-
-    for (const element of document.querySelectorAll("[data-bs-theme-value]")) {
-      element.classList.remove("active");
-      element.setAttribute("aria-pressed", "false");
-    }
-
-    btnToActive.classList.add("active");
-    btnToActive.setAttribute("aria-pressed", "true");
-    activeThemeIcon.setAttribute("class", svgOfActiveBtn);
-    const themeSwitcherLabel = `${themeSwitcherText.textContent} (${btnToActive.dataset.bsThemeValue})`;
-    themeSwitcher.setAttribute("aria-label", themeSwitcherLabel);
-
-    if (focus) {
-      themeSwitcher.focus();
-    }
-  };
-
-  window
-    .matchMedia("(prefers-color-scheme: dark)")
-    .addEventListener("change", () => {
-      if (storedTheme !== "light" || storedTheme !== "dark") {
-        setTheme(getPreferredTheme());
-      }
-    });
-
-  window.addEventListener("DOMContentLoaded", () => {
-    showActiveTheme(getPreferredTheme());
-
-    for (const toggle of document.querySelectorAll("[data-bs-theme-value]")) {
-      toggle.addEventListener("click", () => {
-        const theme = toggle.getAttribute("data-bs-theme-value");
-        localStorage.setItem("theme", theme);
-        setTheme(theme);
-        showActiveTheme(theme, true);
-      });
-    }
-  });
-})();
-
-
-
- -
- -
- -
- - - - -
- - - - - - - - - - - - - - - - - diff --git a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/docs/components/main-header.html b/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/docs/components/main-header.html deleted file mode 100644 index 7a21323..0000000 --- a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/docs/components/main-header.html +++ /dev/null @@ -1,1220 +0,0 @@ - - - - - - Main Header Component | AdminLTE 4 - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - -
- -
- -
- -
-

Main Header Component

-
- -
-
- -
- -
- - -
- -
-
-
Reminder!
-

- AdminLTE uses all of Bootstrap 5 components. It's a good start to review the - - Bootstrap documentation - - to get an idea of the various components that this documentation - does not cover. -

-
-
-
Tips!
-

- If you go through the example pages and would like to copy a component, right-click - on the component and choose “inspect element” to get to the HTML quicker than - scanning the HTML page. -

-
- - - -
<!-- Navbar -->
-<nav class="app-header navbar navbar-expand bg-body">
-  <!--begin::Container-->
-  <div class="container-fluid">
-    <!-- Start navbar links -->
-    <ul class="navbar-nav">
-      <li class="nav-item">
-        <a class="nav-link" data-lte-toggle="sidebar" href="#" role="button">
-          <i class="bi bi-list"></i>
-        </a>
-      </li>
-      <li class="nav-item d-none d-md-block">
-        <a href="#" class="nav-link">Home</a>
-      </li>
-      <li class="nav-item d-none d-md-block">
-        <a href="#" class="nav-link">Contact</a>
-      </li>
-    </ul>
-    <!-- End navbar links -->
-
-    <ul class="navbar-nav ms-auto">
-      <!-- Navbar Search -->
-      <li class="nav-item">
-        <a class="nav-link" data-widget="navbar-search" href="#" role="button">
-          <i class="bi bi-search"></i>
-        </a>
-      </li>
-
-      <!-- Messages Dropdown Menu -->
-      <li class="nav-item dropdown">
-        <a class="nav-link" data-bs-toggle="dropdown" href="#">
-          <i class="bi bi-chat-text"></i>
-          <span class="navbar-badge badge text-bg-danger">3</span>
-        </a>
-        <div class="dropdown-menu dropdown-menu-lg dropdown-menu-end">
-          <a href="#" class="dropdown-item">
-            <!-- Message Start -->
-            <div class="d-flex">
-              <div class="flex-shrink-0">
-                <img
-                  src="../../../dist/assets/img/user1-128x128.jpg"
-                  alt="User Avatar"
-                  class="img-size-50 rounded-circle me-3"
-                />
-              </div>
-              <div class="flex-grow-1">
-                <h3 class="dropdown-item-title">
-                  Brad Diesel
-                  <span class="float-end fs-7 text-danger">
-                    <i class="bi bi-star-fill"></i>
-                  </span>
-                </h3>
-                <p class="fs-7">Call me whenever you can...</p>
-                <p class="fs-7 text-secondary">
-                  <i class="bi bi-clock-fill me-1"></i> 4 Hours Ago
-                </p>
-              </div>
-            </div>
-            <!-- Message End -->
-          </a>
-          <div class="dropdown-divider"></div>
-          <a href="#" class="dropdown-item">
-            <!-- Message Start -->
-            <div class="d-flex">
-              <div class="flex-shrink-0">
-                <img
-                  src="../../../dist/assets/img/user8-128x128.jpg"
-                  alt="User Avatar"
-                  class="img-size-50 rounded-circle me-3"
-                />
-              </div>
-              <div class="flex-grow-1">
-                <h3 class="dropdown-item-title">
-                  John Pierce
-                  <span class="float-end fs-7 text-secondary">
-                    <i class="bi bi-star-fill"></i>
-                  </span>
-                </h3>
-                <p class="fs-7">I got your message bro</p>
-                <p class="fs-7 text-secondary">
-                  <i class="bi bi-clock-fill me-1"></i> 4 Hours Ago
-                </p>
-              </div>
-            </div>
-            <!-- Message End -->
-          </a>
-          <div class="dropdown-divider"></div>
-          <a href="#" class="dropdown-item">
-            <!-- Message Start -->
-            <div class="d-flex">
-              <div class="flex-shrink-0">
-                <img
-                  src="../../../dist/assets/img/user3-128x128.jpg"
-                  alt="User Avatar"
-                  class="img-size-50 rounded-circle me-3"
-                />
-              </div>
-              <div class="flex-grow-1">
-                <h3 class="dropdown-item-title">
-                  Nora Silvester
-                  <span class="float-end fs-7 text-warning">
-                    <i class="bi bi-star-fill"></i>
-                  </span>
-                </h3>
-                <p class="fs-7">The subject goes here</p>
-                <p class="fs-7 text-secondary">
-                  <i class="bi bi-clock-fill me-1"></i> 4 Hours Ago
-                </p>
-              </div>
-            </div>
-            <!-- Message End -->
-          </a>
-          <div class="dropdown-divider"></div>
-          <a href="#" class="dropdown-item dropdown-footer">See All Messages</a>
-        </div>
-      </li>
-      <!-- Notifications Dropdown Menu -->
-      <li class="nav-item dropdown">
-        <a class="nav-link" data-bs-toggle="dropdown" href="#">
-          <i class="bi bi-bell-fill"></i>
-          <span class="navbar-badge badge text-bg-warning">15</span>
-        </a>
-        <div class="dropdown-menu dropdown-menu-lg dropdown-menu-end">
-          <span class="dropdown-item dropdown-header">15 Notifications</span>
-          <div class="dropdown-divider"></div>
-          <a href="#" class="dropdown-item">
-            <i class="bi bi-envelope me-2"></i> 4 new messages
-            <span class="float-end text-secondary fs-7">3 mins</span>
-          </a>
-          <div class="dropdown-divider"></div>
-          <a href="#" class="dropdown-item">
-            <i class="bi bi-people-fill me-2"></i> 8 friend requests
-            <span class="float-end text-secondary fs-7">12 hours</span>
-          </a>
-          <div class="dropdown-divider"></div>
-          <a href="#" class="dropdown-item">
-            <i class="bi bi-file-earmark-fill me-2"></i> 3 new reports
-            <span class="float-end text-secondary fs-7">2 days</span>
-          </a>
-          <div class="dropdown-divider"></div>
-          <a href="#" class="dropdown-item dropdown-footer">
-            See All Notifications
-          </a>
-        </div>
-      </li>
-      <li class="nav-item dropdown user-menu">
-        <a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown">
-          <img
-            src="../../../dist/assets/img/user2-160x160.jpg"
-            class="user-image rounded-circle shadow"
-            alt="User Image"
-          />
-          <span class="d-none d-md-inline">Alexander Pierce</span>
-        </a>
-        <ul class="dropdown-menu dropdown-menu-lg dropdown-menu-end">
-          <!-- User image -->
-          <li class="user-header text-bg-primary">
-            <img
-              src="../../../dist/assets/img/user2-160x160.jpg"
-              class="rounded-circle shadow"
-              alt="User Image"
-            />
-
-            <p>
-              Alexander Pierce - Web Developer
-              <small>Member since Nov. 2023</small>
-            </p>
-          </li>
-          <!-- Menu Body -->
-          <li class="user-body">
-            <!--begin::Row-->
-            <div class="row">
-              <div class="col-4 text-center">
-                <a href="#">Followers</a>
-              </div>
-              <div class="col-4 text-center">
-                <a href="#">Sales</a>
-              </div>
-              <div class="col-4 text-center">
-                <a href="#">Friends</a>
-              </div>
-            </div>
-            <!--end::Row-->
-          </li>
-          <!-- Menu Footer-->
-          <li class="user-footer">
-            <a href="#" class="btn btn-default btn-flat">Profile</a>
-            <a href="#" class="btn btn-default btn-flat float-end">Sign out</a>
-          </li>
-        </ul>
-      </li>
-    </ul>
-  </div>
-  <!--end::Container-->
-</nav>
-<!-- /.navbar -->
-
-
- -
- -
- - - - -
- - - - - - - - - - - - - - - - - diff --git a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/docs/components/main-sidebar.html b/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/docs/components/main-sidebar.html deleted file mode 100644 index 1bfdd64..0000000 --- a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/docs/components/main-sidebar.html +++ /dev/null @@ -1,950 +0,0 @@ - - - - - - Main Sidebar Component | AdminLTE 4 - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - -
- -
- -
- -
-

Main Sidebar Component

-
- -
-
- -
- -
- - -
- -
-

- The sidebar used in this page to the left provides an example of what your sidebar - would look like. Construction of a sidebar: -

-
<!--begin::Sidebar-->
-<aside class="app-sidebar bg-body-secondary shadow" data-bs-theme="dark">
-  <!--begin::Sidebar Brand-->
-  <div class="sidebar-brand">
-    <!--begin::Brand Link-->
-    <a href="./index.html" class="brand-link">
-      <!--begin::Brand Image-->
-      <img
-        src="./assets/img/AdminLTELogo.png"
-        alt="AdminLTE Logo"
-        class="brand-image opacity-75 shadow"
-      />
-      <!--end::Brand Image-->
-      <!--begin::Brand Text-->
-      <span class="brand-text fw-light">AdminLTE 4</span>
-      <!--end::Brand Text-->
-    </a>
-    <!--end::Brand Link-->
-  </div>
-  <!--end::Sidebar Brand-->
-  <!--begin::Sidebar Wrapper-->
-  <div class="sidebar-wrapper">
-    <nav class="mt-2">
-      <!--begin::Sidebar Menu-->
-      <ul
-        class="nav sidebar-menu flex-column"
-        data-lte-toggle="treeview"
-        role="menu"
-        data-accordion="false"
-      >
-        <li class="nav-header">Nav Header</li>
-        <li class="nav-item">
-          <a href="./index.html" class="nav-link">
-            <i class="nav-icon bi bi-circle-fill"></i>
-            <p>Level 1</p>
-          </a>
-        </li>
-        <li class="nav-item">
-          <a href="#" class="nav-link">
-            <i class="nav-icon bi bi-circle-fill"></i>
-            <p>
-              Treeview
-              <i class="nav-arrow bi bi-chevron-right"></i>
-            </p>
-          </a>
-          <ul class="nav nav-treeview">
-            <li class="nav-item">
-              <a href="./index.html" class="nav-link">
-                <i class="nav-icon bi bi-circle"></i>
-                <p>
-                  Level 2 (Badge)
-                  <span
-                    class="nav-badge badge text-bg-secondary me-3"
-                  >
-                    6
-                  </span>
-                </p>
-              </a>
-            </li>
-            <li class="nav-item">
-              <a href="./index.html" class="nav-link">
-                <i class="nav-icon bi bi-circle"></i>
-                <p>Level 2</p>
-              </a>
-            </li>
-          </ul>
-        </li>
-        <li class="nav-item">
-          <a href="./index.html" class="nav-link active">
-            <i class="nav-icon bi bi-circle-fill"></i>
-            <p>Level 1 Active</p>
-          </a>
-        </li>
-
-        <li class="nav-item menu-open">
-          <a href="#" class="nav-link active">
-            <i class="nav-icon bi bi-circle-fill"></i>
-            <p>
-              Treeview Menu Open
-              <i class="nav-arrow bi bi-chevron-right"></i>
-            </p>
-          </a>
-          <ul class="nav nav-treeview">
-            <li class="nav-item">
-              <a href="./index.html" class="nav-link active">
-                <i class="nav-icon bi bi-circle"></i>
-                <p>Level 2 Active</p>
-              </a>
-            </li>
-            <li class="nav-item">
-              <a href="./index.html" class="nav-link">
-                <i class="nav-icon bi bi-circle"></i>
-                <p>Level 2</p>
-              </a>
-            </li>
-          </ul>
-        </li>
-      </ul>
-      <!--end::Sidebar Menu-->
-    </nav>
-  </div>
-  <!--end::Sidebar Wrapper-->
-</aside>
-<!--end::Sidebar-->
-
- -

- You can use two logo images instead of logo with text, you only need to change the - markup to this: -

-
<div class="sidebar-brand">
-  <a href="./index.html" class="brand-link logo-switch">
-    <img
-      src="./assets/img/AdminLTELogo.png"
-      alt="AdminLTE Logo Small"
-      class="brand-image-xl logo-xs opacity-75 shadow"
-    />
-    <img
-      src="./assets/img/AdminLTEFullLogo.png"
-      alt="AdminLTE Logo Large"
-      class="brand-image-xs logo-xl opacity-75"
-    />
-  </a>
-</div>
-
-
- -
- -
- - - - -
- - - - - - - - - - - - - - - - - diff --git a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/docs/faq.html b/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/docs/faq.html deleted file mode 100644 index 1c3baf3..0000000 --- a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/docs/faq.html +++ /dev/null @@ -1,832 +0,0 @@ - - - - - - FAQ | AdminLTE 4 - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - -
- -
- -
- -
-

FAQ

-
- -
-
- -
- -
- - -
- -
-

Can AdminLTE be used with WordPress?

-

- AdminLTE is an HTML template that can be used for any purpose. However, it is not made - to be easily installed on WordPress. It will require some effort and enough knowledge - of the WordPress script to do so. -

-

- Is there an integration guide for PHP frameworks such as Yii or Symfony? -

-

- Short answer, no. However, there are forks and tutorials around the web that provide - info on how to integrate with many different frameworks. There are even versions of - AdminLTE that are integrated with jQuery ajax, AngularJS and/or MVC5 ASP .NET. -

-

- How do I get notified of new AdminLTE versions? -

-

- You may watch the - releases on GitHub. -

-
- -
- -
- - - - -
- - - - - - - - - - - - - - - - - diff --git a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/docs/how-to-contribute.html b/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/docs/how-to-contribute.html deleted file mode 100644 index 88bd9e4..0000000 --- a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/docs/how-to-contribute.html +++ /dev/null @@ -1,906 +0,0 @@ - - - - - - How To Contribute | AdminLTE 4 - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - -
- -
- -
- -
-

How To Contribute

-
- -
-
- -
- -
- - -
- -
-

Contributing to AdminLTE

-

- Contributions are always welcome and recommended! Here is how for - beginner’s: - Get started with open source click here -

-
    -
  1. -

    Contribution Requirements :

    -
      -
    • - When you contribute, you agree to give a non-exclusive license to AdminLTE.io to - use that contribution in any context as we (AdminLTE.io) see appropriate. -
    • -
    • - If you use content provided by another party, it must be appropriately licensed - using an open source license. -
    • -
    • Contributions are only accepted through GitHub pull requests.
    • -
    • - Finally, contributed code must work in all supported browsers (see above for - browser support). -
    • -
    -
  2. -
  3. -

    Installation :

    - -
    git clone https://github.com/YOUR_USERNAME/AdminLTE.git
    -
    -
      -
    • Create a new branch from master
    • -
    -
  4. -
  5. -

    Compile dist files (Development) :

    -
      -
    • - To compile the dist files you need Node.js 18 or higher/npm (node package - manager) -
    • -
    • npm install (install npm deps)
    • -
    • - npm run dev (developer mode, autocompile with browsersync support - for live demo) -
    • -
    • - Make your changes only in ./src Folder OR - package.json in any files which are necessary for contribution -
    • -
    • - Do not make changes in ./dist/** Because it contains compiled files - and do not include in PR (Pull Request) -
    • -
    • - npm run production (compile css/js files and test all pages are - perfectly working fine, before creating a pull request) -
    • -
    -
  6. -
  7. -

    Create a pull request to master branch

    -
  8. -
-

- Online one-click setup for contributing -

-

- You can use Codespace an online - IDE which is free for Open Source for working on issues or making PRs (Pull Requests). - With a single click it will launch a workspace and automatically: -

-
    -
  • clone the AdminLTE repo.
  • -
  • - Open with Codespace or - Open in Gitpod -
  • -
  • install the dependencies.
  • -
  • run npm run dev to start the server.
  • -
-
- -
- -
- - - - -
- - - - - - - - - - - - - - - - - diff --git a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/docs/introduction.html b/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/docs/introduction.html deleted file mode 100644 index 8a75e15..0000000 --- a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/docs/introduction.html +++ /dev/null @@ -1,895 +0,0 @@ - - - - - - Introduction | AdminLTE 4 - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - -
- -
- -
- -
-

Introduction

-
- -
-
- -
- -
- - -
- -
-

Quick start

-

There are multiple ways to install AdminLTE.

-

Download & Changelog:

-

- Always Recommended to download from GitHub latest release - AdminLTE 4 for - bug free and latest features.
- Visit the releases page - to view the changelog.
- Legacy Releases are - AdminLTE 3 / - AdminLTE 2 / - AdminLTE 1. -

-

Stable release

-

- Grab from jsdelivr CDN: -

-

- Important Note: You needed to add separately cdn links for plugins - in your project. -

-
<script
-  src="https://cdn.jsdelivr.net/npm/admin-lte@4.0.0-beta3/dist/js/adminlte.min.js"
-  crossorigin="anonymous"
-></script>
-
-
<link
-  rel="stylesheet"
-  href="https://cdn.jsdelivr.net/npm/admin-lte@4.0.0-beta3/dist/css/adminlte.min.css"
-  crossorigin="anonymous"
-/>
-
-

Using The Command Line:

-

- Important Note: To install it via npm/Yarn, you need at least - Node.js 14 or higher. -

-

Via npm

-
npm install admin-lte@4.0.0-beta3 --save
-
-

Via Yarn

-
yarn add admin-lte@4.0.0-beta3
-
-

Via Composer

-
composer require "almasaeed2010/adminlte=4.0.0-beta3"
-
-

Via Git

-
git clone https://github.com/ColorlibHQ/AdminLTE.git
-
-
- -
- -
- - - - -
- - - - - - - - - - - - - - - - - diff --git a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/docs/javascript/treeview.html b/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/docs/javascript/treeview.html deleted file mode 100644 index 95c87b2..0000000 --- a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/docs/javascript/treeview.html +++ /dev/null @@ -1,847 +0,0 @@ - - - - - - Treeview Plugin | AdminLTE 4 - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - -
- -
- -
- -
-

Treeview Plugin

-
- -
-
- -
- -
- - -
- -
-

- The Treeview plugin converts a nested list into a tree view where sub menus can be - expanded. -

-
Usage
-

This plugin can be used as the data api.

-

Data API

-

- Add data-lte-toggle="treeview" to any ul or ol element to - activate the plugin. -

-
<ul data-lte-toggle="treeview">
-  <li><a href="#">One Level</a></li>
-  <li class="nav-item menu-open">
-    <a class="nav-link" href="#">Multilevel</a>
-    <ul class="nav-treeview">
-      <li><a href="#">Level 2</a></li>
-    </ul>
-  </li>
-</ul>
-
-
Example
- -
- -
- -
- - - - -
- - - - - - - - - - - - - - - - - diff --git a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/docs/layout.html b/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/docs/layout.html deleted file mode 100644 index 3c068ed..0000000 --- a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/docs/layout.html +++ /dev/null @@ -1,839 +0,0 @@ - - - - - - Layout | AdminLTE 4 - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - -
- -
- -
- -
-

Layout

-
- -
-
- -
- -
- - -
-
-
-
Tips
-

- The - - starter page - - is a good place to start building your app if you’d like to start from scratch. -

-
-

The layout consists of five major parts:

-
    -
  • Wrapper .app-wrapper . A div that wraps the whole site.
  • -
  • Main Header .app-header . Contains the logo and navbar.
  • -
  • - Main Sidebar .app-sidebar . Contains the sidebar user panel and menu. -
  • -
  • Content .app-main . Contains the page header and content.
  • -
  • Main Footer .app-footer . Contains the footer.
  • -
-

Layout Options

-

- AdminLTE v4 provides a set of options to apply to your main layout. Each one of these - classes can be added to the - body tag to get the desired goal. -

-
    -
  • - Fixed Sidebar: use the class .layout-fixed to get a fixed sidebar. -
  • -
  • - Mini Sidebar on Toggle: use the class - .sidebar-expand-* .sidebar-mini - to have a collapsed sidebar upon loading. -
  • -
  • - Collapsed Sidebar: use the class - .sidebar-expand-* .sidebar-mini .sidebar-collapse to have a collapsed - sidebar upon loading. -
  • -
-
- -
- -
- - - - -
- - - - - - - - - - - - - - - - - diff --git a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/docs/license.html b/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/docs/license.html deleted file mode 100644 index b8e56d8..0000000 --- a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/docs/license.html +++ /dev/null @@ -1,830 +0,0 @@ - - - - - - License | AdminLTE 4 - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - -
- -
- -
- -
-

License

-
- -
-
- -
- -
- - -
- -
-

- AdminLTE is an open source project that is licensed under the - MIT license. This allows you to do - pretty much anything you want as long as you include the copyright in “all copies or - substantial portions of the Software.” Attribution is not required (though very much - appreciated). -

-
- What You Are Allowed To Do With AdminLTE -
-
    -
  • Use in commercial projects.
  • -
  • Use in personal/private projects.
  • -
  • Modify and change the work.
  • -
  • Distribute the code.
  • -
  • - Sublicense: incorporate the work into something that has a more restrictive license. -
  • -
-
- -
- -
- - - - -
- - - - - - - - - - - - - - - - - diff --git a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/examples/lockscreen.html b/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/examples/lockscreen.html deleted file mode 100644 index afed6ce..0000000 --- a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/examples/lockscreen.html +++ /dev/null @@ -1,132 +0,0 @@ - - - - - - AdminLTE 4 | Lockscreen - - - - - - - - - - - - - - - - - - - - - - - -
- -
John Doe
-
-
- User Image -
-
-
- -
- -
-
-
-
-
Enter your password to retrieve your session
-
- Or sign in as a different user -
- -
- - - - - - - - - - - - - - diff --git a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/examples/login-v2.html b/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/examples/login-v2.html deleted file mode 100644 index a9cd781..0000000 --- a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/examples/login-v2.html +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - AdminLTE 4 | Login Page v2 - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
-
- - - - - - - - - - - - - - - - diff --git a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/examples/login.html b/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/examples/login.html deleted file mode 100644 index 32dad77..0000000 --- a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/examples/login.html +++ /dev/null @@ -1,150 +0,0 @@ - - - - - - AdminLTE 4 | Login Page - - - - - - - - - - - - - - - - - - - - - - - -
- - -
- - -
-
- - - - - - - - - - - - - - - - diff --git a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/examples/register-v2.html b/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/examples/register-v2.html deleted file mode 100644 index ac05e3f..0000000 --- a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/examples/register-v2.html +++ /dev/null @@ -1,169 +0,0 @@ - - - - - - AdminLTE 4 | Register Page v2 - - - - - - - - - - - - - - - - - - - - - - - -
- -
- -
-

Register a new membership

-
-
-
- - -
-
-
-
-
- - -
-
-
-
-
- - -
-
-
- -
-
-
- - -
-
- -
-
- -
-
- -
- -
- - -

- I already have a membership -

-
- -
-
- - - - - - - - - - - - - - - - diff --git a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/examples/register.html b/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/examples/register.html deleted file mode 100644 index f6a803e..0000000 --- a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/examples/register.html +++ /dev/null @@ -1,155 +0,0 @@ - - - - - - AdminLTE 4 | Register Page - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
-

Register a new membership

-
-
- -
-
-
- -
-
-
- -
-
- -
-
-
- - -
-
- -
-
- -
-
- -
- -
- - -

- I already have a membership -

-
- -
-
- - - - - - - - - - - - - - - - diff --git a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/forms/general.html b/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/forms/general.html deleted file mode 100644 index f8727ca..0000000 --- a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/forms/general.html +++ /dev/null @@ -1,1233 +0,0 @@ - - - - - - AdminLTE 4 | General Form Elements - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - -
- -
- -
- -
-

General Form

-
- -
-
- -
- -
- - -
- -
- -
- -
-
- For detailed documentation of Form visit - - Bootstrap Form - -
-
- - -
- -
- -
Quick Example
- - -
- -
-
- - -
- We'll never share your email with anyone else. -
-
-
- - -
-
- - -
-
- - -
-
- - - - -
- -
- - -
- -
Input Group
- - -
-
- @ - -
-
- - @example.com -
-
- -
- https://example.com/users/ - -
-
- Example help text goes outside the input group. -
-
-
- $ - - .00 -
-
- - @ - -
-
- With textarea - -
-
- - - - -
- - -
- -
Horizontal Form
- - -
- -
-
- -
- -
-
-
- -
- -
-
-
- Radios -
-
- - -
-
- - -
-
- - -
-
-
-
-
-
- - -
-
-
-
- - - - -
- -
- -
- - -
- -
- -
Different Height
- - -
- -
- -
- -
- -
- - -
- -
Different Width
- - -
- -
- -
- -
- - -
- -
- - -
- -
- -
- -
- -
- - -
- -
Form Validation
- - -
- -
- -
- -
- - -
Looks good!
-
- - -
- - -
Looks good!
-
- - -
- -
- @ - -
Please choose a username.
-
-
- - -
- - -
Please provide a valid city.
-
- - -
- - -
Please select a valid state.
-
- - -
- - -
Please provide a valid zip.
-
- - -
-
- - -
You must agree before submitting.
-
-
- -
- -
- - - - -
- - - - -
- -
- -
- -
- -
- -
- - - - -
- - - - - - - - - - - - - - - - - diff --git a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/generate/theme.html b/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/generate/theme.html deleted file mode 100644 index 0f4b27f..0000000 --- a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/generate/theme.html +++ /dev/null @@ -1,737 +0,0 @@ - - - - - - AdminLTE 4 | Theme Customize - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - -
- -
- -
- -
- -

Theme Customize

- - -
- -
- -
- -
- -
- - -
- -
- -
- -
- -
- -
- -

Sidebar Theme

- - -
- - -
- -
- - -
- -
- -
- -
- - -
- -
- - -
- -
- -
- - - - -
- - -
- -
- -

Navbar Theme

- - -
- - -
- -
- - -
- -
- -
- -
- - -
- -
- - -
- -
- -
- - - - -
- -
- -
- -
- -
- -
- - - - -
- - - - - - - - - - - - - - - - - - diff --git a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/index.html b/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/index.html deleted file mode 100644 index fe84a97..0000000 --- a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/index.html +++ /dev/null @@ -1,1424 +0,0 @@ - - - - - - AdminLTE v4 | Dashboard - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - -
- -
- -
- -
-

Dashboard

-
- -
-
- -
- -
- - -
- -
- -
- -
- -
-
-

150

-

New Orders

-
- - - More info - -
- -
- -
- -
-
-

53%

-

Bounce Rate

-
- - - More info - -
- -
- -
- -
-
-

44

-

User Registrations

-
- - - More info - -
- -
- -
- -
-
-

65

-

Unique Visitors

-
- - - More info - -
- -
- -
- - -
- -
-
-

Sales Value

-
-
- - -
-
-

Direct Chat

-
- 3 - - - -
-
- -
- -
- -
-
- Alexander Pierce - 23 Jan 2:00 pm -
- - message user image - -
- Is this template really for free? That's unbelievable! -
- -
- - -
-
- Sarah Bullock - 23 Jan 2:05 pm -
- - message user image - -
You better believe it!
- -
- - -
-
- Alexander Pierce - 23 Jan 5:37 pm -
- - message user image - -
- Working with AdminLTE on a great new app! Wanna join? -
- -
- - -
-
- Sarah Bullock - 23 Jan 6:10 pm -
- - message user image - -
I would love to.
- -
- -
- - - - -
- - - -
- -
- - -
-
-
-

Sales Value

-
- -
-
-
- -
-
- -
- -
- -
- -
- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/index2.html b/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/index2.html deleted file mode 100644 index 541e05b..0000000 --- a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/index2.html +++ /dev/null @@ -1,1884 +0,0 @@ - - - - - - AdminLTE | Dashboard v2 - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - -
- -
- -
- -
-

Dashboard v2

-
- -
-
- -
- -
-
- -
- -
-
-
- - - -
- CPU Traffic - - 10 - % - -
- -
- -
- -
-
- - - -
- Likes - 41,410 -
- -
- -
- - - -
-
- - - -
- Sales - 760 -
- -
- -
- -
-
- - - -
- New Members - 2,000 -
- -
- -
- -
- - -
-
-
-
-
Monthly Recap Report
-
- - - -
-
- -
- -
-
-

- Sales: 1 Jan, 2023 - 30 Jul, 2023 -

-
-
- -
-

Goal Completion

-
- Add Products to Cart - 160/200 -
-
-
-
- -
- Complete Purchase - 310/400 -
-
-
-
- -
- Visit Premium Page - 480/800 -
-
-
-
- -
- Send Inquiries - 250/500 -
-
-
-
- -
- -
- -
- - - -
- -
- -
- - -
- -
- -
-
- -
-
-

Direct Chat

-
- 3 - - - -
-
- -
- -
- -
-
- Alexander Pierce - 23 Jan 2:00 pm -
- - message user image - -
- Is this template really for free? That's unbelievable! -
- -
- - -
-
- Sarah Bullock - - 23 Jan 2:05 pm - -
- - message user image - -
You better believe it!
- -
- - -
-
- Alexander Pierce - 23 Jan 5:37 pm -
- - message user image - -
- Working with AdminLTE on a great new app! Wanna join? -
- -
- - -
-
- Sarah Bullock - - 23 Jan 6:10 pm - -
- - message user image - -
I would love to.
- -
- -
- - - - -
- - - -
- -
- -
- -
-
-

Latest Members

-
- 8 New Members - - -
-
- -
-
- -
- User Image - - Norman - -
Yesterday
-
-
- User Image - - Jane - -
12 Jan
-
-
- User Image - - John - -
12 Jan
-
-
- User Image - - Alexander - -
13 Jan
-
-
- User Image - - Sarah - -
14 Jan
-
-
- User Image - - Nora - -
15 Jan
-
-
- User Image - - Nadia - -
15 Jan
-
-
- -
- - - -
- -
- -
- - -
-
-

Latest Orders

-
- - -
-
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Order IDItemStatusPopularity
- OR9842 - Call of Duty IV Shipped
- OR1848 - Samsung Smart TVPending
- OR7429 - iPhone 6 Plus Delivered
- OR7429 - Samsung Smart TVProcessing
- OR1848 - Samsung Smart TVPending
- OR7429 - iPhone 6 Plus Delivered
- OR9842 - Call of Duty IVShipped
-
- -
- - - -
- -
- -
- -
- -
- Inventory - 5,200 -
- -
- -
- -
- Mentions - 92,050 -
- -
- -
- -
- Downloads - 114,381 -
- -
- -
- -
- Direct Messages - 163,921 -
- -
- -
-
-

Browser Usage

-
- - -
-
- -
- -
-
- -
- -
- - - -
- - -
-
-

Recently Added Products

-
- - -
-
- -
-
-
-
- Product Image -
-
- - Samsung TV - $1800 - -
Samsung 32" 1080p 60Hz LED Smart HDTV.
-
-
- -
-
- Product Image -
-
- - Bicycle - $700 - -
- 26" Mongoose Dolomite Men's 7-speed, Navy Blue. -
-
-
- -
-
- Product Image -
-
- - Xbox One - $350 - -
- Xbox One Console Bundle with Halo Master Chief Collection. -
-
-
- -
-
- Product Image -
-
- - PlayStation 4 - $399 - -
PlayStation 4 500GB Console (PS4)
-
-
- -
-
- - - -
- -
- -
- -
- -
- -
- - - - -
- - - - - - - - - - - - - - - - - - - - - diff --git a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/index3.html b/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/index3.html deleted file mode 100644 index 357849f..0000000 --- a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/index3.html +++ /dev/null @@ -1,1191 +0,0 @@ - - - - - - AdminLTE | Dashboard v3 - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - -
- -
- -
- -
-

Dashboard v3

-
- -
-
- -
- -
-
- -
- -
-
-
-
-
-

Online Store Visitors

- View Report -
-
-
-
-

- 820 Visitors Over Time -

-

- 12.5% - Since last week -

-
- -
-
- - This Week - - Last Week -
-
-
- -
-
-

Products

-
- - -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ProductPriceSalesMore
- Product 1 - Some Product - $13 USD - - - 12% - - 12,000 Sold - - -
- Product 1 - Another Product - $29 USD - - - 0.5% - - 123,234 Sold - - -
- Product 1 - Amazing Product - $1,230 USD - - - 3% - - 198 Sold - - -
- Product 1 - Perfect Item - NEW - $199 USD - - - 63% - - 87 Sold - - -
-
-
- -
- -
-
-
-
-

Sales

- View Report -
-
-
-
-

- $18,230.00 Sales Over Time -

-

- 33.1% - Since Past Year -

-
- -
-
- - This year - - Last year -
-
-
- -
-
-

Online Store Overview

-
- - -
-
-
-
-

- -

-

- - 12% - - CONVERSION RATE -

-
- -
-

- -

-

- - 0.8% - - SALES RATE -

-
- -
-

- -

-

- - - 1% - - REGISTRATION RATE -

-
- -
-
-
- -
- -
- -
- -
- - - - -
- - - - - - - - - - - - - - - - - - - - - diff --git a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/layout/collapsed-sidebar.html b/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/layout/collapsed-sidebar.html deleted file mode 100644 index 38e8240..0000000 --- a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/layout/collapsed-sidebar.html +++ /dev/null @@ -1,830 +0,0 @@ - - - - - - AdminLTE 4 | Sidebar Mini - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - -
- -
- -
- -
-

Collapsed Sidebar

-
- -
-
- -
- -
- - -
- -
- -
-
- -
-
-

Title

-
- - -
-
-
Start creating your amazing application!
- - - -
- -
-
- -
- -
- -
- - - - -
- - - - - - - - - - - - - - - - - diff --git a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/layout/fixed-sidebar.html b/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/layout/fixed-sidebar.html deleted file mode 100644 index 7d60e96..0000000 --- a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/layout/fixed-sidebar.html +++ /dev/null @@ -1,830 +0,0 @@ - - - - - - AdminLTE 4 | Fixed Sidebar - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - -
- -
- -
- -
-

Fixed Layout

-
- -
-
- -
- -
- - -
- -
- -
-
- -
-
-

Title

-
- - -
-
-
Start creating your amazing application!
- - - -
- -
-
- -
- -
- -
- - - - -
- - - - - - - - - - - - - - - - - diff --git a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/layout/layout-custom-area.html b/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/layout/layout-custom-area.html deleted file mode 100644 index 6205f0a..0000000 --- a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/layout/layout-custom-area.html +++ /dev/null @@ -1,862 +0,0 @@ - - - - - - AdminLTE 4 | Layout Custom Area - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - -
- -
- -
-
-
App Content Top Area
-
- -
-
-
- -
- - -
- -
- -
-

Layout Custom Area

-
- -
-
- -
- -
- - -
- -
- -
-
- -
-
-

Title

-
- - -
-
-
Start creating your amazing application!
- - - -
- -
-
- -
- -
- - -
- -
-
-
App Content Bottom Area
-
- -
-
-
- -
- -
- - - - -
- - - - - - - - - - - - - - - - - diff --git a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/layout/layout-rtl.html b/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/layout/layout-rtl.html deleted file mode 100644 index 1f7a6b9..0000000 --- a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/layout/layout-rtl.html +++ /dev/null @@ -1,830 +0,0 @@ - - - - - - AdminLTE 4 | Layout RTL - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - -
- -
- -
- -
-

Layout RTL

-
- -
-
- -
- -
- - -
- -
- -
-
- -
-
-

Title

-
- - -
-
-
Start creating your amazing application!
- - - -
- -
-
- -
- -
- -
- - - - -
- - - - - - - - - - - - - - - - - diff --git a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/layout/logo-switch.html b/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/layout/logo-switch.html deleted file mode 100644 index 3fce1f4..0000000 --- a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/layout/logo-switch.html +++ /dev/null @@ -1,487 +0,0 @@ - - - - - - AdminLTE 4 | Sidebar Mini - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - -
- -
- -
- -
-

Logo Switch

-
- -
-
- -
- -
- - -
- -
- -
-
- -
-
-

Title

-
- - -
-
-
Start creating your amazing application!
- - - -
- -
-
- -
- -
- -
- - - - -
- - - - - - - - - - - - - - - - - diff --git a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/layout/sidebar-mini.html b/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/layout/sidebar-mini.html deleted file mode 100644 index c882eac..0000000 --- a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/layout/sidebar-mini.html +++ /dev/null @@ -1,830 +0,0 @@ - - - - - - AdminLTE 4 | Sidebar Mini - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - -
- -
- -
- -
-

Sidebar Mini

-
- -
-
- -
- -
- - -
- -
- -
-
- -
-
-

Title

-
- - -
-
-
Start creating your amazing application!
- - - -
- -
-
- -
- -
- -
- - - - -
- - - - - - - - - - - - - - - - - diff --git a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/layout/unfixed-sidebar.html b/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/layout/unfixed-sidebar.html deleted file mode 100644 index 83d8911..0000000 --- a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/layout/unfixed-sidebar.html +++ /dev/null @@ -1,829 +0,0 @@ - - - - - - AdminLTE 4 | Unfixed Sidebar - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - -
- -
- -
- -
-

Unfixed Layout

-
- -
-
- -
- -
- - -
- -
- -
-
- -
-
-

Title

-
- - -
-
-
Start creating your amazing application!
- - - -
- -
-
- -
-
- -
- - - - -
- - - - - - - - - - - - - - - - - diff --git a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/tables/simple.html b/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/tables/simple.html deleted file mode 100644 index f69c142..0000000 --- a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/tables/simple.html +++ /dev/null @@ -1,1080 +0,0 @@ - - - - - - AdminLTE 4 | Simple Tables - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - -
- -
- -
- -
-

Simple Tables

-
- -
-
- -
- -
- - -
- -
- -
-
-
-

Bordered Table

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#TaskProgressLabel
1.Update software -
-
-
-
55%
2.Clean database -
-
-
-
70%
3.Cron job running -
-
-
-
30%
4.Fix and squish bugs -
-
-
-
90%
-
- - -
- -
-
-

Condensed Full Width Table

-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#TaskProgressLabel
1.Update software -
-
-
-
55%
2.Clean database -
-
-
-
70%
3.Cron job running -
-
-
-
30%
4.Fix and squish bugs -
-
-
-
90%
-
- -
- -
- -
-
-
-

Simple Full Width Table

-
- -
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#TaskProgressLabel
1.Update software -
-
-
-
55%
2.Clean database -
-
-
-
70%
3.Cron job running -
-
-
-
30%
4.Fix and squish bugs -
-
-
-
90%
-
- -
- -
-
-

Striped Full Width Table

-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#TaskProgressLabel
1.Update software -
-
-
-
55%
2.Clean database -
-
-
-
70%
3.Cron job running -
-
-
-
30%
4.Fix and squish bugs -
-
-
-
90%
-
- -
- -
- -
- -
- -
- -
- - - - -
- - - - - - - - - - - - - - - - - diff --git a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/widgets/cards.html b/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/widgets/cards.html deleted file mode 100644 index 0b3c1f3..0000000 --- a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/widgets/cards.html +++ /dev/null @@ -1,1035 +0,0 @@ - - - - - - AdminLTE 4 | Widgets - Cards - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - -
- -
- -
- -
-

Cards

-
- -
-
- -
- -
- - -
- -
-

Cards

-
Abilities
- -
-
-
-
-

Expandable

-
- -
- -
- -
The body of the card
- -
- -
- -
-
-
-

Collapsable

-
- -
- -
- -
The body of the card
- -
- -
- -
-
-
-

Removable

-
- -
- -
- -
The body of the card
- -
- -
- -
-
-
-

Maximizable

-
- -
- -
- -
The body of the card
- -
- -
- -
- -
Card Outlined
- -
-
-
-
-

Expandable

-
- -
- -
- -
The body of the card
- -
- -
- -
-
-
-

Collapsable

-
- -
- -
- -
The body of the card
- -
- -
- -
-
-
-

Removable

-
- -
- -
- -
The body of the card
- -
- -
- -
-
-
-

Maximizable

-
- -
- -
- -
The body of the card
- -
- -
- -
- -
Card with .text-bg-*
- -
-
-
-
-

Expandable

-
- -
- -
- -
The body of the card
- -
- -
- -
-
-
-

Collapsable

-
- -
- -
- -
The body of the card
- -
- -
- -
-
-
-

Removable

-
- -
- -
- -
The body of the card
- -
- -
- -
-
-
-

Maximizable

-
- -
- -
- -
The body of the card
- -
- -
- -
- -
- -
- -
- - - - -
- - - - - - - - - - - - - - - - - diff --git a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/widgets/info-box.html b/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/widgets/info-box.html deleted file mode 100644 index 4245b12..0000000 --- a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/widgets/info-box.html +++ /dev/null @@ -1,1053 +0,0 @@ - - - - - - AdminLTE 4 | Widgets - Info Box - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - -
- -
- -
- -
-

Info Box

-
- -
-
- -
- -
- - -
- -
-
Info Box
- -
-
-
- - - -
- CPU Traffic - - 10 - % - -
- -
- -
- -
-
- - - -
- Sales - 760 -
- -
- -
- - - -
-
- - - -
- New Members - 2,000 -
- -
- -
- -
-
- - - -
- Likes - 41,410 -
- -
- -
- -
- - -
- Info Box With Custom Shadows Using Bootstrap's Shadow Utility -
- -
-
-
- - - -
- CPU Traffic - - 10 - % - -
- -
- -
- -
-
- - - -
- Sales - 760 -
- -
- -
- - - -
-
- - - -
- New Members - 2,000 -
- -
- -
- -
-
- - - -
- Likes - 41,410 -
- -
- -
- -
- - -
Info Box With bg-*
- -
-
-
- -
- Bookmarks - 41,410 -
- 70% Increase in 30 Days -
- -
- -
- -
-
- -
- Likes - 41,410 -
- 70% Increase in 30 Days -
- -
- -
- -
-
- -
- Events - 41,410 -
- 70% Increase in 30 Days -
- -
- -
- -
-
- -
- Comments - 41,410 -
- 70% Increase in 30 Days -
- -
- -
- -
- - -
Info Box With bg-gradient
- -
-
-
- -
- Bookmarks - 41,410 -
- 70% Increase in 30 Days -
- -
- -
- -
-
- -
- Likes - 41,410 -
- 70% Increase in 30 Days -
- -
- -
- -
-
- -
- Events - 41,410 -
- 70% Increase in 30 Days -
- -
- -
- -
-
- -
- Comments - 41,410 -
- 70% Increase in 30 Days -
- -
- -
- -
- -
- -
- -
- - - - -
- - - - - - - - - - - - - - - - - diff --git a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/widgets/small-box.html b/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/widgets/small-box.html deleted file mode 100644 index e2d8369..0000000 --- a/root/usr/share/smanager/themes/AdminLTE/public/dist/pages/widgets/small-box.html +++ /dev/null @@ -1,915 +0,0 @@ - - - - - - AdminLTE 4 | Widgets - Small Box - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - -
- -
- -
- -
-

Small Box

-
- -
-
- -
- -
- - -
- -
- -
Small Box
- -
-
- -
-
-

150

-

New Orders

-
- - - More info - -
-
- -
- -
-
-

53%

-

Bounce Rate

-
- - - More info - -
-
- -
- -
-
-

44

-

User Registrations

-
- - - More info - -
-
- -
- -
-
-

65

-

Unique Visitors

-
- - - More info - -
-
- -
- -
- -
- -
- - - - -
- - - - - - - - - - - - - - - - - diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/back_tape_configure.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/back_tape_configure.html.ep index b31d374..b5daaf1 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/back_tape_configure.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/back_tape_configure.html.ep @@ -1,19 +1,19 @@ -% layout 'default', title => "Sme server 2 - backup"; +% layout 'AdminLTE', title => "Sme server 2 - backup"; % content_for 'module' => begin
% if (config->{debug} == 1) { -

- %= dumper $c->current_route - %= dumper $bac_datas -

+

+ %= dumper $c->current_route + %= dumper $bac_datas +

% } % if ( stash 'error' ) { -
- %= $c->render_to_string(inline => stash 'error') -
+
+ %= $c->render_to_string(inline => stash 'error') +
%}

<%= $title%>

@@ -26,55 +26,55 @@ %= form_for '/backupd' => (method => 'POST') => begin -

- - %=l 'bac_ENABLE_TAPE_BACKUP' - +

+ + %=l 'bac_ENABLE_TAPE_BACKUP' + % if ( $bac_datas->{status} eq 'checked' ) { - + %} else { - %= check_box 'Tapebackup' + %= check_box 'Tapebackup' %} - -

+ +

-

- - %=l 'bac_TAPE_BACKUP_TIME' - - % param 'BackupHour' => $bac_datas->{backupHour} unless param 'BackupHour'; - %= text_field 'BackupHour', size => '2' - % param 'BackupMin' => $bac_datas->{backupMin} unless param 'BackupMin'; - %= text_field 'BackupMin', size => '2' - - - % param 'BackupAMPM' => $bac_datas->{backupAMPM} unless param 'BackupAMPM'; - %= select_field 'BackupAMPM' => ['AM', 'PM'], class => "" - -

+

+ + %=l 'bac_TAPE_BACKUP_TIME' + + % param 'BackupHour' => $bac_datas->{backupHour} unless param 'BackupHour'; + %= text_field 'BackupHour', size => '2' + % param 'BackupMin' => $bac_datas->{backupMin} unless param 'BackupMin'; + %= text_field 'BackupMin', size => '2' + + + % param 'BackupAMPM' => $bac_datas->{backupAMPM} unless param 'BackupAMPM'; + %= select_field 'BackupAMPM' => ['AM', 'PM'], class => "" + +

-

- - %=l 'bac_LOAD_TAPE_REMINDER_TIME' - - % param 'ReminderHour' => $bac_datas->{reminderHour} unless param 'ReminderHour'; - %= text_field 'ReminderHour', size => '2' - % param 'ReminderMin' => $bac_datas->{reminderMin} unless param 'ReminderMin'; - %= text_field 'ReminderMin', size => '2' - - - % param 'ReminderAMPM' => $bac_datas->{reminderAMPM} unless param 'ReminderAMPM'; - %= select_field 'ReminderAMPM' => ['AM', 'PM'], class => "" - -


+

+ + %=l 'bac_LOAD_TAPE_REMINDER_TIME' + + % param 'ReminderHour' => $bac_datas->{reminderHour} unless param 'ReminderHour'; + %= text_field 'ReminderHour', size => '2' + % param 'ReminderMin' => $bac_datas->{reminderMin} unless param 'ReminderMin'; + %= text_field 'ReminderMin', size => '2' + + + % param 'ReminderAMPM' => $bac_datas->{reminderAMPM} unless param 'ReminderAMPM'; + %= select_field 'ReminderAMPM' => ['AM', 'PM'], class => "" + +


- %= hidden_field 'Function' => $bac_datas->{'function'} - %= submit_button $c->l('bac_UPDATE_CONF'), class => "" + %= hidden_field 'Function' => $bac_datas->{'function'} + %= submit_button $c->l('bac_UPDATE_CONF'), class => "" % end
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/back_tape_restore.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/back_tape_restore.html.ep index ed9d6fb..06770e6 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/back_tape_restore.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/back_tape_restore.html.ep @@ -1,36 +1,36 @@ -% layout 'default', title => "Sme server 2 - backup"; +% layout 'AdminLTE', title => "Sme server 2 - backup"; % content_for 'module' => begin
% if (config->{debug} == 1) { -

- %= dumper $c->current_route - %= dumper $bac_datas -

+

+ %= dumper $c->current_route + %= dumper $bac_datas +

% } % if ( stash 'error' ) { -
- %= $c->render_to_string(inline => stash 'error') -
+
+ %= $c->render_to_string(inline => stash 'error') +
%}

<%= $title%>

%= form_for '/backupd' => (method => 'POST') => begin -

- %=l 'bac_RESTORE_CONF_FROM_TAPE' -

+

+ %=l 'bac_RESTORE_CONF_FROM_TAPE' +

- %= $c->render_to_string(inline => (l 'bac_RESTORE_CONF_FROM_TAPE_DESC')) + %= $c->render_to_string(inline => (l 'bac_RESTORE_CONF_FROM_TAPE_DESC')) -
+
- %= hidden_field 'Function' => $bac_datas->{'function'} + %= hidden_field 'Function' => $bac_datas->{'function'} - %= submit_button $c->l('bac_RESTORE_FROM_TAPE'), class => "" + %= submit_button $c->l('bac_RESTORE_FROM_TAPE'), class => "" % end
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/back_workstn_configure.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/back_workstn_configure.html.ep index 23f75de..0c4e887 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/back_workstn_configure.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/back_workstn_configure.html.ep @@ -1,50 +1,50 @@ -% layout 'default', title => "Sme server 2 - backup"; +% layout 'AdminLTE', title => "Sme server 2 - backup"; % content_for 'module' => begin
% if (config->{debug} == 1) { -

- %= dumper $c->current_route - %= dumper $bac_datas -

+

+ %= dumper $c->current_route + %= dumper $bac_datas +

% } % if ( stash 'error' ) { -
- %= $c->render_to_string(inline => stash 'error') -
+
+ %= $c->render_to_string(inline => stash 'error') +
%}

<%= $title%>

%= form_for '/backup' => (method => 'POST') => begin -

- %=l 'bac_CONFIGURE_WORKSTN_BACKUP' -

+

+ %=l 'bac_CONFIGURE_WORKSTN_BACKUP' +

- %= $c->render_to_string(inline => (l 'bac_WORKSTN_BACKUP_DESC')) + %= $c->render_to_string(inline => (l 'bac_WORKSTN_BACKUP_DESC')) - %=l 'bac_WORKSTN_BACKUP_ENABLED' - - %= $bac_datas->{status} -
+ %=l 'bac_WORKSTN_BACKUP_ENABLED' + + %= $bac_datas->{status} +
- %= $c->render_to_string(inline => $c->workstnBackupConfig()) + %= $c->render_to_string(inline => $c->workstnBackupConfig()) -

- %= l 'bac_WORKSTATION_BACKUP_SETCONF' -


- - %=l 'bac_SELECT_VFS_TYPE' - - % param 'VFSType' => $bac_datas->{vfstype} unless param 'VFSType'; - %= select_field 'VFSType' => $c->get_VFSType_options(), class => "" -

+

+ %= l 'bac_WORKSTATION_BACKUP_SETCONF' +


+ + %=l 'bac_SELECT_VFS_TYPE' + + % param 'VFSType' => $bac_datas->{vfstype} unless param 'VFSType'; + %= select_field 'VFSType' => $c->get_VFSType_options(), class => "" +

- %= hidden_field 'Function' => $bac_datas->{'function'} . '1' - %= submit_button $c->l('NEXT'), class => "" + %= hidden_field 'Function' => $bac_datas->{'function'} . '1' + %= submit_button $c->l('NEXT'), class => "" % end diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/back_workstn_configure1.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/back_workstn_configure1.html.ep index f81d250..e62bd11 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/back_workstn_configure1.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/back_workstn_configure1.html.ep @@ -1,154 +1,154 @@ -% layout 'default', title => "Sme server 2 - backup - conf"; +% layout 'AdminLTE', title => "Sme server 2 - backup - conf"; % content_for 'module' => begin
% if (config->{debug} == 1) { -

- %= dumper $c->current_route - %= dumper $bac_datas -

+

+ %= dumper $c->current_route + %= dumper $bac_datas +

% } % if ( stash 'error' ) { -
- %= $c->render_to_string(inline => stash 'error') -
+
+ %= $c->render_to_string(inline => stash 'error') +
%}

<%= $title%>

-

- %=l 'bac_CONFIGURE_WORKSTN_BACKUP' -

+

+ %=l 'bac_CONFIGURE_WORKSTN_BACKUP' +

- %= $c->render_to_string(inline => (l 'bac_CONFIGURE_WORKSTN_BACKUP_DESC')) + %= $c->render_to_string(inline => (l 'bac_CONFIGURE_WORKSTN_BACKUP_DESC')) %= form_for '/backupd' => (method => 'POST') => begin -

- - %=l 'bac_ENABLE_WORKSTN_BACKUP' - +

+ + %=l 'bac_ENABLE_WORKSTN_BACKUP' + % if ( $bac_datas->{status} eq 'checked' ) { - + %} else { - %= check_box 'Workstnbackup' + %= check_box 'Workstnbackup' %} - + -

-

- %= l 'bac_WORKSTATION_BACKUP_DEST' -


+

+

+ %= l 'bac_WORKSTATION_BACKUP_DEST' +


% if ( $bac_datas->{vfstype} =~ m/cifs|nfs/s ) { - - %=l 'bac_WORKSTN_NAME' - - % param 'BackupwkStation' => $bac_datas->{station} unless param 'BackupwkStation'; - %= text_field 'BackupwkStation', size => 20, class => "" -
+ + %=l 'bac_WORKSTN_NAME' + + % param 'BackupwkStation' => $bac_datas->{station} unless param 'BackupwkStation'; + %= text_field 'BackupwkStation', size => 20, class => "" +
%} % if ( $bac_datas->{vfstype} eq 'usb' ) { - - %=l 'bac_local removable disk' - - % param 'BackupwkFolder' => $bac_datas->{mount} unless param 'BackupwkFolder'; - %= select_field 'BackupwkFolder' => $c->get_BackupwkDest_options( $bac_datas->{vfstype}), class => "" -
+ + %=l 'bac_local removable disk' + + % param 'BackupwkFolder' => $bac_datas->{mount} unless param 'BackupwkFolder'; + %= select_field 'BackupwkFolder' => $c->get_BackupwkDest_options( $bac_datas->{vfstype}), class => "" +
% } elsif ( $bac_datas->{vfstype} eq 'mnt') { - - %=l 'bac_Mounted disk' - - % param 'BackupwkFolder' => $bac_datas->{folder} unless param 'BackupwkFolder'; - %= select_field 'BackupwkFolder' => $c->get_BackupwkDest_options( $bac_datas->{vfstype}), class => "" -
+ + %=l 'bac_Mounted disk' + + % param 'BackupwkFolder' => $bac_datas->{folder} unless param 'BackupwkFolder'; + %= select_field 'BackupwkFolder' => $c->get_BackupwkDest_options( $bac_datas->{vfstype}), class => "" +
% } else { - - %=l 'bac_SHARED_FOLDER_NAME' - - % param 'BackupwkFolder' => $bac_datas->{folder} unless param 'BackupwkFolder'; - %= text_field 'BackupwkFolder', size => 20, class => "" -
+ + %=l 'bac_SHARED_FOLDER_NAME' + + % param 'BackupwkFolder' => $bac_datas->{folder} unless param 'BackupwkFolder'; + %= text_field 'BackupwkFolder', size => 20, class => "" +
%} % if ( $bac_datas->{vfstype} eq 'cifs' ) { - - %=l 'bac_WORKSTN_LOGIN' - - % param 'BackupwkLogin' => $bac_datas->{login} unless param 'BackupwkLogin'; - %= text_field 'BackupwkLogin', size => 12, class => "" -
- %=l 'bac_PASSWORD' - - % param 'BackupwkPassword' => $bac_datas->{password} unless param 'BackupwkPassword'; - %= password_field 'BackupwkPassword', size => 12, class => "" - + + %=l 'bac_WORKSTN_LOGIN' + + % param 'BackupwkLogin' => $bac_datas->{login} unless param 'BackupwkLogin'; + %= text_field 'BackupwkLogin', size => 12, class => "" +
+ %=l 'bac_PASSWORD' + + % param 'BackupwkPassword' => $bac_datas->{password} unless param 'BackupwkPassword'; + %= password_field 'BackupwkPassword', size => 12, class => "" + %} -


- %= l 'bac_WORKSTN_BACKUP_SETTINGS' -


+


+ %= l 'bac_WORKSTN_BACKUP_SETTINGS' +


-

- %=l 'bac_NUMBER_OF_SETS' - - % param 'SetsNumber' => $bac_datas->{setsNumber} unless param 'SetsNumber'; - %= text_field 'SetsNumber', size => '3' - - %=l 'bac_NUMBER_OF_FILES_IN_SET' - - % param 'Filesinset' => $bac_datas->{filesinset} unless param 'Filesinset'; - %= text_field 'Filesinset', size => '3' -

+

+ %=l 'bac_NUMBER_OF_SETS' + + % param 'SetsNumber' => $bac_datas->{setsNumber} unless param 'SetsNumber'; + %= text_field 'SetsNumber', size => '3' + + %=l 'bac_NUMBER_OF_FILES_IN_SET' + + % param 'Filesinset' => $bac_datas->{filesinset} unless param 'Filesinset'; + %= text_field 'Filesinset', size => '3' +

-

- - %=l 'bac_WORKSTN_BACKUP_TIME' - - % param 'BackupwkHour' => $bac_datas->{hour} unless param 'BackupwkHour'; - %= text_field 'BackupwkHour', size => '2' - % param 'BackupwkMin' => $bac_datas->{min} unless param 'BackupwkMin'; - %= text_field 'BackupwkMin', size => '2' - - %=l 'AM/PM:' - - % param 'BackupwkAMPM' => $bac_datas->{ampm} unless param 'BackupwkAMPM'; - %= select_field 'BackupwkAMPM' => ['AM', 'PM'], class => "" - -

+

+ + %=l 'bac_WORKSTN_BACKUP_TIME' + + % param 'BackupwkHour' => $bac_datas->{hour} unless param 'BackupwkHour'; + %= text_field 'BackupwkHour', size => '2' + % param 'BackupwkMin' => $bac_datas->{min} unless param 'BackupwkMin'; + %= text_field 'BackupwkMin', size => '2' + + %=l 'AM/PM:' + + % param 'BackupwkAMPM' => $bac_datas->{ampm} unless param 'BackupwkAMPM'; + %= select_field 'BackupwkAMPM' => ['AM', 'PM'], class => "" + +

-

- %=l 'bac_WORKSTN_TIMEOUT' - - % param 'BackupwkTimeout' => $bac_datas->{timeout} unless param 'BackupwkTimeout'; - %= text_field 'BackupwkTimeout', size => '2' - - %=l 'bac_INC_ONLY_TIMEOUT' - +

+ %=l 'bac_WORKSTN_TIMEOUT' + + % param 'BackupwkTimeout' => $bac_datas->{timeout} unless param 'BackupwkTimeout'; + %= text_field 'BackupwkTimeout', size => '2' + + %=l 'bac_INC_ONLY_TIMEOUT' + % if ( $bac_datas->{incOnlyTimeout} eq 'checked' ) { - + %} else { - %= check_box 'IncOnlyTimeout' + %= check_box 'IncOnlyTimeout' %} -

+

-

- - %=l 'bac_COMPRESSION_LEVEL' - - % param 'Compression' => $bac_datas->{compression} unless param 'Compression'; - %= text_field 'Compression', size => '1' - - %=l 'bac_FULL_ONLY_ON' - - % param 'Dof' => $bac_datas->{dof} unless param 'Dof'; - %= select_field 'Dof' => $c->get_dow_list(), class => "" -


+

+ + %=l 'bac_COMPRESSION_LEVEL' + + % param 'Compression' => $bac_datas->{compression} unless param 'Compression'; + %= text_field 'Compression', size => '1' + + %=l 'bac_FULL_ONLY_ON' + + % param 'Dof' => $bac_datas->{dof} unless param 'Dof'; + %= select_field 'Dof' => $c->get_dow_list(), class => "" +


- %= hidden_field 'Function' => $bac_datas->{function} - %= hidden_field 'VFSType' => $bac_datas->{vfstype} - %= submit_button $c->l('bac_UPDATE_CONF'), class => "" + %= hidden_field 'Function' => $bac_datas->{function} + %= hidden_field 'VFSType' => $bac_datas->{vfstype} + %= submit_button $c->l('bac_UPDATE_CONF'), class => "" % end
% end \ No newline at end of file diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/back_workstn_restore.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/back_workstn_restore.html.ep index 0ae600d..e72e977 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/back_workstn_restore.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/back_workstn_restore.html.ep @@ -1,44 +1,44 @@ -% layout 'default', title => "Sme server 2 - restore"; +% layout 'AdminLTE', title => "Sme server 2 - restore"; % content_for 'module' => begin
% if (config->{debug} == 1) { -

- %= dumper $c->current_route - %= dumper $bac_datas -

+

+ %= dumper $c->current_route + %= dumper $bac_datas +

% } % if ( stash 'error' ) { -
- %= $c->render_to_string(inline => stash 'error') -
+
+ %= $c->render_to_string(inline => stash 'error') +
%}

<%= $title%>

%= form_for '/backupd' => (method => 'POST') => begin -

- %=l 'bac_WORKSTN_RESTORE' -

+

+ %=l 'bac_WORKSTN_RESTORE' +

-

+

% if ($bac_datas->{status} ne 'enabled') { - %= $c->render_to_string(inline => (l 'bac_CONFIGURATION_TO_BE_DONE')) + %= $c->render_to_string(inline => (l 'bac_CONFIGURATION_TO_BE_DONE')) % } else { - %= $c->render_to_string(inline => (l 'bac_RESTORE_CONF_FROM_WORKSTN_DESC') . ' ' . $c->get_shared_folder_to_verify()) + %= $c->render_to_string(inline => (l 'bac_RESTORE_CONF_FROM_WORKSTN_DESC') . ' ' . $c->get_shared_folder_to_verify()) %} -

- %=l 'bac_SELECT_BACKUP_FILE' - - %= select_field 'Backupset' => $c->get_Backupset_options(), class => "" -

+

+ %=l 'bac_SELECT_BACKUP_FILE' + + %= select_field 'Backupset' => $c->get_Backupset_options(), class => "" +

- %= hidden_field 'Function' => $bac_datas->{'function'} - %= submit_button $c->l('bac_RESTORE_FROM_WORKSTN'), class => "" + %= hidden_field 'Function' => $bac_datas->{'function'} + %= submit_button $c->l('bac_RESTORE_FROM_WORKSTN'), class => "" % end
% end \ No newline at end of file diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/back_workstn_restore1.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/back_workstn_restore1.html.ep index 4e16937..073191a 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/back_workstn_restore1.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/back_workstn_restore1.html.ep @@ -1,35 +1,35 @@ -% layout 'default', title => "Sme server 2 - restore"; +% layout 'AdminLTE', title => "Sme server 2 - restore"; % content_for 'module' => begin
% if (config->{debug} == 1) { -

- %= dumper $c->current_route - %= dumper $bac_datas -

+

+ %= dumper $c->current_route + %= dumper $bac_datas +

% } % if ( stash 'error' ) { -
- %= $c->render_to_string(inline => stash 'error') -
+
+ %= $c->render_to_string(inline => stash 'error') +
%}

<%= $title%>

%= form_for '/backupd' => (method => 'POST') => begin -

- %=l 'bac_WORKSTN_RESTORE' -

-

- %= $c->render_to_string(inline => $bac_datas->{restore_log}) -

- %=l 'bac_YOU_MUST_REBOOT' -

- %= hidden_field 'Function' => $bac_datas->{'function'} - %= submit_button $c->l('bac_REBOOT'), class => "" +

+ %=l 'bac_WORKSTN_RESTORE' +

+

+ %= $c->render_to_string(inline => $bac_datas->{restore_log}) +

+ %=l 'bac_YOU_MUST_REBOOT' +

+ %= hidden_field 'Function' => $bac_datas->{'function'} + %= submit_button $c->l('bac_REBOOT'), class => "" % end
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/back_workstn_sel_restore.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/back_workstn_sel_restore.html.ep index a028d6b..43835f4 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/back_workstn_sel_restore.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/back_workstn_sel_restore.html.ep @@ -1,19 +1,19 @@ -% layout 'default', title => "Sme server 2 - backup"; +% layout 'AdminLTE', title => "Sme server 2 - backup"; % content_for 'module' => begin
% if (config->{debug} == 1) { -

- %= dumper $c->current_route - %= dumper $bac_datas -

+

+ %= dumper $c->current_route + %= dumper $bac_datas +

% } % if ( stash 'error' ) { -
- %= $c->render_to_string(inline => stash 'error') -
+
+ %= $c->render_to_string(inline => stash 'error') +
%}

<%= $title%>

@@ -26,20 +26,20 @@

<%=l 'bac_BACKUP_CHOICE' %>

-
- %=l 'bac_SELECT_BACKUP_FILE' - - %= select_field 'Backupset' => $c->get_Restoreset_options(), class => "" -
+
+ %=l 'bac_SELECT_BACKUP_FILE' + + %= select_field 'Backupset' => $c->get_Restoreset_options(), class => "" +
-
- %=l 'bac_FILTER_EXPRESSION' - - %= text_field 'Filterexp', size => 32, class => "" -
-
- %= hidden_field 'Function' => $bac_datas->{'function'} - %= submit_button $c->l('PERFORM'), class => "" +
+ %=l 'bac_FILTER_EXPRESSION' + + %= text_field 'Filterexp', size => 32, class => "" +
+
+ %= hidden_field 'Function' => $bac_datas->{'function'} + %= submit_button $c->l('PERFORM'), class => "" % end diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/back_workstn_sel_restore1.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/back_workstn_sel_restore1.html.ep index c9b9760..e25e520 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/back_workstn_sel_restore1.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/back_workstn_sel_restore1.html.ep @@ -1,19 +1,19 @@ -% layout 'default', title => "Sme server 2 - backup"; +% layout 'AdminLTE', title => "Sme server 2 - backup"; % content_for 'module' => begin
% if (config->{debug} == 1) { -

- %= dumper $c->current_route - %= dumper $bac_datas -

+

+ %= dumper $c->current_route + %= dumper $bac_datas +

% } % if ( stash 'error' ) { -
- %= $c->render_to_string(inline => stash 'error') -
+
+ %= $c->render_to_string(inline => stash 'error') +
%}

<%= $title%>

@@ -25,23 +25,23 @@ %= form_for '/backupd' => (method => 'POST') => begin -
- %=l 'bac_SELECT_FILES_TO_RESTORE' - - %= select_field 'Restorefiles' => $c->get_Restorefiles_options($bac_datas->{'filterexp'},$bac_datas->{'backupset'}), class => "", multiple => 1, size => 15 -
+
+ %=l 'bac_SELECT_FILES_TO_RESTORE' + + %= select_field 'Restorefiles' => $c->get_Restorefiles_options($bac_datas->{'filterexp'},$bac_datas->{'backupset'}), class => "", multiple => 1, size => 15 +
-
- %=l 'bac_SELECT_DATE_BEFORE' - - %= text_field 'Seldatebefore', size => 32, class => "" -
-
- %= hidden_field 'Function' => $bac_datas->{'function'} - %= hidden_field 'Backupset' => $bac_datas->{'backupset'} - %= hidden_field 'Filterexp' => $bac_datas->{'filterexp'} +
+ %=l 'bac_SELECT_DATE_BEFORE' + + %= text_field 'Seldatebefore', size => 32, class => "" +
+
+ %= hidden_field 'Function' => $bac_datas->{'function'} + %= hidden_field 'Backupset' => $bac_datas->{'backupset'} + %= hidden_field 'Filterexp' => $bac_datas->{'filterexp'} - %= submit_button $c->l('PERFORM'), class => "" + %= submit_button $c->l('PERFORM'), class => "" % end diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/back_workstn_sel_restore2.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/back_workstn_sel_restore2.html.ep index 660d2a9..db78741 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/back_workstn_sel_restore2.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/back_workstn_sel_restore2.html.ep @@ -1,19 +1,19 @@ -% layout 'default', title => "Sme server 2 - backup"; +% layout 'AdminLTE', title => "Sme server 2 - backup"; % content_for 'module' => begin
% if (config->{debug} == 1) { -

- %= dumper $c->current_route - %= dumper $bac_datas -

+

+ %= dumper $c->current_route + %= dumper $bac_datas +

% } % if ( stash 'error' ) { -
- %= $c->render_to_string(inline => stash 'error') -
+
+ %= $c->render_to_string(inline => stash 'error') +
%}

<%= $title%>

@@ -23,8 +23,8 @@
%= form_for '/backupd' => (method => 'POST') => begin - %= hidden_field 'Function' => $bac_datas->{'function'} - %= submit_button $c->l('NEXT'), class => "" + %= hidden_field 'Function' => $bac_datas->{'function'} + %= submit_button $c->l('NEXT'), class => "" % end diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/back_workstn_verify.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/back_workstn_verify.html.ep index 048562b..94f8427 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/back_workstn_verify.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/back_workstn_verify.html.ep @@ -1,50 +1,50 @@ -% layout 'default', title => "Sme server 2 - backup - verify"; +% layout 'AdminLTE', title => "Sme server 2 - backup - verify"; % content_for 'module' => begin
% if (config->{debug} == 1) { -

- %= dumper $c->current_route - %= dumper $bac_datas -

+

+ %= dumper $c->current_route + %= dumper $bac_datas +

% } % if ( stash 'error' ) { -
- %= $c->render_to_string(inline => stash 'error') -
+
+ %= $c->render_to_string(inline => stash 'error') +
%}

<%= $title%>

-

- %=l 'bac_VERIFY_WORKSTN_BACKUP_FILE' -

+

+ %=l 'bac_VERIFY_WORKSTN_BACKUP_FILE' +

%= form_for '/backup' => (method => 'POST') => begin % if ($bac_datas->{status} ne 'enabled') { - %= $c->render_to_string(inline => (l 'bac_CONFIGURATION_TO_BE_DONE')) + %= $c->render_to_string(inline => (l 'bac_CONFIGURATION_TO_BE_DONE')) % } else { - %= $c->render_to_string(inline => (l 'bac_VERIFY_WORKSTN_BACKUP_DESC') . ' ' . $c->get_shared_folder_to_verify()) + %= $c->render_to_string(inline => (l 'bac_VERIFY_WORKSTN_BACKUP_DESC') . ' ' . $c->get_shared_folder_to_verify()) %} -

- %=l 'bac_SELECT_BACKUP_FILE' - - %= select_field 'Backupset' => $c->get_Backupset_options(), class => "" -
+

+ %=l 'bac_SELECT_BACKUP_FILE' + + %= select_field 'Backupset' => $c->get_Backupset_options(), class => "" +
-

- %=l 'bac_CHECK_TO_VERIFY_FULL_RESTORE' - - %= check_box 'Verifyall' -


+

+ %=l 'bac_CHECK_TO_VERIFY_FULL_RESTORE' + + %= check_box 'Verifyall' +


- %=l 'bac_CHECK_INTEGRITY_WARNING' + %=l 'bac_CHECK_INTEGRITY_WARNING' -

- %= hidden_field 'Function' => $bac_datas->{'function'} . '1' - %= submit_button $c->l('bac_VERIFY'), class => "" +

+ %= hidden_field 'Function' => $bac_datas->{'function'} . '1' + %= submit_button $c->l('bac_VERIFY'), class => "" % end
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/back_workstn_verify1.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/back_workstn_verify1.html.ep index c49906a..ea9f07e 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/back_workstn_verify1.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/back_workstn_verify1.html.ep @@ -1,19 +1,19 @@ -% layout 'default', title => "Sme server 2 - backup - verify"; +% layout 'AdminLTE', title => "Sme server 2 - backup - verify"; % content_for 'module' => begin
% if (config->{debug} == 1) { -

- %= dumper $c->current_route - %= dumper $bac_datas->{function} - -

+

+ %= dumper $c->current_route + %= dumper $bac_datas->{function} + +

% } % if ( stash 'error' ) { -
- %= $c->render_to_string(inline => stash 'error') -
+
+ %= $c->render_to_string(inline => stash 'error') +
%}

<%= $title%>

diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/backdown.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/backdown.html.ep index b8bbd85..7f1a076 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/backdown.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/backdown.html.ep @@ -3,16 +3,16 @@ my $backups = esmith::BackupHistoryDB->open; my $now = time(); my $backup_rec = $backups->new_record($now, { - type => 'backup_record', BackupType => 'desktop', - StartEpochTime => $now, - }); + type => 'backup_record', BackupType => 'desktop', + StartEpochTime => $now, + }); # Dump the current mysql tables so that they are part of the image. # The events handle cases where mysqld is not enabled, and/or is not running. my $status = system("/sbin/e-smith/signal-event", "pre-backup", "desktop"); if ($status) { - $c->desktopBackupRecordStatus($backup_rec, 'pre-backup', $status); - return ($c->l('bac_OPERATION_STATUS_REPORT').$c->l('bac_ERR_PRE_BACKUP')); + $c->desktopBackupRecordStatus($backup_rec, 'pre-backup', $status); + return ($c->l('bac_OPERATION_STATUS_REPORT').$c->l('bac_ERR_PRE_BACKUP')); } my $clvl = $c->stash('compressionlevel'); @@ -22,41 +22,41 @@ my $success = open my $fh, '-|', $cmd; #unless ($success) { return "Error download command."; }; if ($success) { - # Try with download plugin - seems to fail to complete download and also - # name of file deposited is not as required. - #my $output = do { local $/; <$fh> }; - #close $fh; - #$c->render_file( - #data => $output, - #filename => 'output.txt', - #content_type => 'text/plain' - #); - # So organise it ourselves. - $c->res->headers->content_type('application/x-tar'); - $c->res->headers->content_disposition(qq/attachment; filename="smeserver.tgz"/); - my $cb; - $cb = sub { - my $c = shift; - my $size = 500 * 1024; - my $length = sysread($fh, my $buffer, $size); - unless ($length) { - close $fh; - undef $cb; - $c->finish; - return; - } - $c->write_chunk($buffer, $cb); - }; - $c->$cb; - } else { - $c->render(text => "Failed to execute command: $!", status => 500); - } + # Try with download plugin - seems to fail to complete download and also + # name of file deposited is not as required. + #my $output = do { local $/; <$fh> }; + #close $fh; + #$c->render_file( + #data => $output, + #filename => 'output.txt', + #content_type => 'text/plain' + #); + # So organise it ourselves. + $c->res->headers->content_type('application/x-tar'); + $c->res->headers->content_disposition(qq/attachment; filename="smeserver.tgz"/); + my $cb; + $cb = sub { + my $c = shift; + my $size = 500 * 1024; + my $length = sysread($fh, my $buffer, $size); + unless ($length) { + close $fh; + undef $cb; + $c->finish; + return; + } + $c->write_chunk($buffer, $cb); + }; + $c->$cb; + } else { + $c->render(text => "Failed to execute command: $!", status => 500); + } # Remove the dumped tables. $status = system("/sbin/e-smith/signal-event", "post-backup", "desktop"); if ($status) { - $c->desktopBackupRecordStatus($backup_rec, 'post-backup', $status); - die ($c->l('bac_ERR_POST_BACKUP'),"\n"); + $c->desktopBackupRecordStatus($backup_rec, 'post-backup', $status); + die ($c->l('bac_ERR_POST_BACKUP'),"\n"); } $now = time(); diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/backup.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/backup.html.ep index 8196ac9..99a728d 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/backup.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/backup.html.ep @@ -1,76 +1,76 @@ -% layout 'default', title => "Sme server 2 - backup"; +% layout 'AdminLTE', title => "Sme server 2 - backup"; % content_for 'module' => begin
% if (config->{debug} == 1) { -

- %= dumper $c->current_route - %= dumper $bac_datas -

+

+ %= dumper $c->current_route + %= dumper $bac_datas +

% } % if ( stash 'warning' ) { -
- %= $c->render_to_string(inline => stash 'warning') -
+
+ %= $c->render_to_string(inline => stash 'warning') +
%} % if ( stash 'error' ) { -
- %= $c->render_to_string(inline => stash 'error') -
+
+ %= $c->render_to_string(inline => stash 'error') +
%}

<%= $title%>

- <%= $c->render_to_string(inline => (l 'bac_BACKUP_DESC_DAR', $bac_datas->{module}, - $bac_datas->{dumpsize}, $bac_datas->{tarsize})) %> + <%= $c->render_to_string(inline => (l 'bac_BACKUP_DESC_DAR', $bac_datas->{module}, + $bac_datas->{dumpsize}, $bac_datas->{tarsize})) %> %= form_for '/backup' => (method => 'POST') => begin -

- %=l 'bac_BACKUP_CONFIG_STATUS' -

+

+ %=l 'bac_BACKUP_CONFIG_STATUS' +

-

- %=l 'bac_TAPE_BACKUPS', - - %= $c->l(uc($bac_datas->{'backupStatus'})).'.' - +

+ %=l 'bac_TAPE_BACKUPS', + + %= $c->l(uc($bac_datas->{'backupStatus'})).'.' + % if ( $bac_datas->{'backupStatus'} eq 'enabled' ) { - %= $c->l('bac_BACKUPS_RUN_AT') - - %= $bac_datas->{'backupTime'} - - %= $c->l('bac_REMINDER_MESSAGE_AT') - - %= $bac_datas->{'reminderTime'} - + %= $c->l('bac_BACKUPS_RUN_AT') + + %= $bac_datas->{'backupTime'} + + %= $c->l('bac_REMINDER_MESSAGE_AT') + + %= $bac_datas->{'reminderTime'} + %} -

- %=l 'bac_WORKSTN_BACKUPS', - - %= $c->l(uc($bac_datas->{'backupwkStatus'})).'.' - +

+ %=l 'bac_WORKSTN_BACKUPS', + + %= $c->l(uc($bac_datas->{'backupwkStatus'})).'.' + % if ( $bac_datas->{'backupwkStatus'} eq 'enabled' ) { - %= $c->l('bac_WKBACKUPS_RUN_AT') - - %= $bac_datas->{'backupwkTime'} - + %= $c->l('bac_WKBACKUPS_RUN_AT') + + %= $bac_datas->{'backupwkTime'} + %} -

- %=l 'bac_SELECT_AN_ACTION' - - % param 'Function' => $bac_datas->{function} unless param 'Function'; - %= select_field 'Function' => $c->get_function_options(), class => "" -

+

+ %=l 'bac_SELECT_AN_ACTION' + + % param 'Function' => $bac_datas->{function} unless param 'Function'; + %= select_field 'Function' => $c->get_function_options(), class => "" +

-
- %= submit_button $c->l('PERFORM'), class => "" +
+ %= submit_button $c->l('PERFORM'), class => "" % end diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/bugreport.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/bugreport.html.ep index 192d89f..eed997f 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/bugreport.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/bugreport.html.ep @@ -1,14 +1,14 @@ -% layout 'default', title => 'Sme server 2 - Bug report'; +% layout 'AdminLTE', title => 'Sme server 2 - Bug report'; % content_for 'module' => begin
% if (config->{debug} == 1) { -

- (DBG)route: <%= $c->current_route %>
- (DBG)trt: <%= $bugr_datas->{trt} %>
-

+

+ (DBG)route: <%= $c->current_route %>
+ (DBG)trt: <%= $bugr_datas->{trt} %>
+

% }

<%= $title %>

@@ -68,7 +68,7 @@

%= link_to 'https://wiki.koozali.org/Donate' => begin - %= image '/images/btn_donateCC_LG.gif' + %= image '/images/btn_donateCC_LG.gif' %= hidden_field 'trt' => $bugr_datas->{trt} diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/bugreport2.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/bugreport2.html.ep index 2893837..88f5577 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/bugreport2.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/bugreport2.html.ep @@ -1,14 +1,14 @@ -% layout 'default', title => 'Sme server 2 - Bug report 2'; +% layout 'AdminLTE', title => 'Sme server 2 - Bug report 2'; % content_for 'module' => begin
% if (config->{debug} == 1) { -

- (DBG)route: <%= $c->current_route %>
- (DBG)trt: <%= $bugr_datas->{trt} %>
-

+

+ (DBG)route: <%= $c->current_route %>
+ (DBG)trt: <%= $bugr_datas->{trt} %>
+

% }

<%= $title %>

@@ -18,8 +18,8 @@ <% my $btn = l('bugr_Download this report'); %> %= form_for 'bugreportD' => (method => 'POST') => begin - %= submit_button "$btn", class => "" - %= hidden_field 'trt' => $bugr_datas->{trt} + %= submit_button "$btn", class => "" + %= hidden_field 'trt' => $bugr_datas->{trt} % end % my $out = "==================
"; diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/clamav.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/clamav.html.ep index 924c2e8..23e9688 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/clamav.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/clamav.html.ep @@ -1,45 +1,45 @@ -% layout 'default', title => "Sme server 2 - clamav"; +% layout 'AdminLTE', title => "Sme server 2 - clamav"; % content_for 'module' => begin
%if (config->{debug} == 1) { -

(DBG)route: <%= $c->current_route %>
- (DBG)FsS stat: <%= $clm_datas->{FilesystemScan}%>
- (DBG)Quar stat: <%=$clm_datas->{Quarantine} %> -

+

(DBG)route: <%= $c->current_route %>
+ (DBG)FsS stat: <%= $clm_datas->{FilesystemScan}%>
+ (DBG)Quar stat: <%=$clm_datas->{Quarantine} %> +

%}

<%= $title %>


<%= $modul %> - <% my $btn = l('SAVE'); %> + <% my $btn = l('SAVE'); %> %= form_for 'clamav' => (method => 'POST') => begin -

- - %=l 'clm_LABEL_FILESYSTEM_SCAN_PERIOD' - - % param 'FilesystemScan' => $clm_datas->{FilesystemScan} unless param 'FilesystemScan'; - %= select_field 'FilesystemScan' => [[ (l 'clm_DAILY') => 'daily'], [ (l 'clm_NEVER') => 'disabled'], [ (l 'clm_WEEKLY') => 'weekly']], class => "" - -

-

- - %=l 'clm_LABEL_QUARANTINE' - - % param 'Quarantine' => $clm_datas->{Quarantine} unless param 'Quarantine'; - %= select_field 'Quarantine' => [[ (l 'ENABLED') => 'enabled'], [ (l 'DISABLED') => 'disabled']], class => "" -
-
-

-

- - %=l 'clm_LABEL_CLAM_VERSIONS' - - %= $clm_datas->{clam_versions} -
-
-

- %= submit_button "$btn", class => "" +

+ + %=l 'clm_LABEL_FILESYSTEM_SCAN_PERIOD' + + % param 'FilesystemScan' => $clm_datas->{FilesystemScan} unless param 'FilesystemScan'; + %= select_field 'FilesystemScan' => [[ (l 'clm_DAILY') => 'daily'], [ (l 'clm_NEVER') => 'disabled'], [ (l 'clm_WEEKLY') => 'weekly']], class => "" + +

+

+ + %=l 'clm_LABEL_QUARANTINE' + + % param 'Quarantine' => $clm_datas->{Quarantine} unless param 'Quarantine'; + %= select_field 'Quarantine' => [[ (l 'ENABLED') => 'enabled'], [ (l 'DISABLED') => 'disabled']], class => "" +
+
+

+

+ + %=l 'clm_LABEL_CLAM_VERSIONS' + + %= $clm_datas->{clam_versions} +
+
+

+ %= submit_button "$btn", class => "" % end
%end diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/common_js.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/common_js.html.ep index f1c3e01..5a0e508 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/common_js.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/common_js.html.ep @@ -1 +1,6 @@ - + +%= javascript 'js/jquery.min.js' +%= javascript 'dist/js/adminlte.min.js' + +%= javascript '/js/flag-by-locale.js' +%= javascript '/js/sme-password.js' diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/csrf_400.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/csrf_400.html.ep index 7796a95..4b57377 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/csrf_400.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/csrf_400.html.ep @@ -1,4 +1,4 @@ -% layout 'default', title => "Sme server 2 - err 400"; +% layout 'AdminLTE', title => "Sme server 2 - err 400"; % content_for 'module' => begin
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/datetime.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/datetime.html.ep index e723f12..ddcfc40 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/datetime.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/datetime.html.ep @@ -1,19 +1,19 @@ -% layout 'default', title => "Sme server 2 - datetime"; +% layout 'AdminLTE', title => "Sme server 2 - datetime"; % content_for 'module' => begin
% if (config->{debug} == 1) { -

- %= dumper $c->current_route - %= dumper $dat_datas -

+

+ %= dumper $c->current_route + %= dumper $dat_datas +

% } % if ( stash 'error' ) { -
- %= $c->render_to_string(inline => stash 'error') -
+
+ %= $c->render_to_string(inline => stash 'error') +
%}

<%= $title %>


@@ -21,103 +21,103 @@ <% my $btn = l('SAVE'); %> %= form_for '/datetime' => (method => 'POST') => begin -

- %= hidden_field 'Old_ntpstatus' => $dat_datas->{ntpstatus}; +

+ %= hidden_field 'Old_ntpstatus' => $dat_datas->{ntpstatus}; - % param 'Ntpstatus' => $dat_datas->{ntpstatus} unless param 'Ntpstatus'; - %= radio_button Ntpstatus => 'enabled' - - %=l 'dat_NTP_CONFIGURE_TITLE' - -
+ % param 'Ntpstatus' => $dat_datas->{ntpstatus} unless param 'Ntpstatus'; + %= radio_button Ntpstatus => 'enabled' + + %=l 'dat_NTP_CONFIGURE_TITLE' + +
% if ($dat_datas->{ntpstatus} eq 'disabled') { -

- %=l 'dat_NTP_ENABLE_DESC' -
-
+
+ %=l 'dat_NTP_ENABLE_DESC' +
+
% } else { -
- %=l 'dat_NTP_CONFIGURE_DESC' -

-

- %=l 'dat_CURRENT_SETTING' - - %= $dat_datas->{now_string} - -

-

-
- - %=l 'dat_NTP_SERVER' - - %= text_field 'Ntpserver' => $dat_datas->{ntpserver}, class => "" - -

-
- % } - %= radio_button Ntpstatus => 'disabled' - - %=l 'dat_NTP_DISABLE_TITLE' - +
+ %=l 'dat_NTP_CONFIGURE_DESC' +

+

+ %=l 'dat_CURRENT_SETTING' + + %= $dat_datas->{now_string} + +

+

+
+ + %=l 'dat_NTP_SERVER' + + %= text_field 'Ntpserver' => $dat_datas->{ntpserver}, class => "" + +

+
+ % } + %= radio_button Ntpstatus => 'disabled' + + %=l 'dat_NTP_DISABLE_TITLE' + % if ($dat_datas->{ntpstatus} eq 'enabled') { -

-
- %=l 'dat_NTP_DISABLE_DESC' -
- % } else { -
-
-

-

- %=l 'dat_CURRENT_SETTING' - - %= $dat_datas->{now_string} - -
- - %=l 'dat_NEW_M/D/Y' - - % param 'Month' => $dat_datas->{month} unless param 'Month'; - %= select_field 'Month' => $c->getMonth_list(), class => "" - - % param 'Day' => $dat_datas->{day} unless param 'Day'; - %= text_field 'Day', size => '2', class => "" - - % param 'Year' => $dat_datas->{year} unless param 'Year'; - %= text_field 'Year', size => '4', class => "" - -
- - %=l 'dat_NEW_H/M/S' - - % param 'Hour' => $dat_datas->{hour} unless param 'Hour'; - %= text_field 'Hour', size => '2', class => "" - - % param 'Minute' => $dat_datas->{minute} unless param 'Minute'; - %= text_field 'Minute', size => '2', class => "" - - % param 'Second' => $dat_datas->{second} unless param 'Second'; - %= text_field 'Second', size => '2', class => "" - -
- - %=l 'dat_AM/PM_AND_TZ' - - % param 'Ampm' => $dat_datas->{ampm} unless param 'Ampm'; - %= select_field 'Ampm' => ['AM', 'PM'], class => "" - - % param 'Timezone' => $c->getTimezone() unless param 'Timezone'; - %= select_field 'Timezone' => $c->getZone_list(), class => "" - -

-
+

+
+ %=l 'dat_NTP_DISABLE_DESC' +
+ % } else { +
+
+

+

+ %=l 'dat_CURRENT_SETTING' + + %= $dat_datas->{now_string} + +
+ + %=l 'dat_NEW_M/D/Y' + + % param 'Month' => $dat_datas->{month} unless param 'Month'; + %= select_field 'Month' => $c->getMonth_list(), class => "" + + % param 'Day' => $dat_datas->{day} unless param 'Day'; + %= text_field 'Day', size => '2', class => "" + + % param 'Year' => $dat_datas->{year} unless param 'Year'; + %= text_field 'Year', size => '4', class => "" + +
+ + %=l 'dat_NEW_H/M/S' + + % param 'Hour' => $dat_datas->{hour} unless param 'Hour'; + %= text_field 'Hour', size => '2', class => "" + + % param 'Minute' => $dat_datas->{minute} unless param 'Minute'; + %= text_field 'Minute', size => '2', class => "" + + % param 'Second' => $dat_datas->{second} unless param 'Second'; + %= text_field 'Second', size => '2', class => "" + +
+ + %=l 'dat_AM/PM_AND_TZ' + + % param 'Ampm' => $dat_datas->{ampm} unless param 'Ampm'; + %= select_field 'Ampm' => ['AM', 'PM'], class => "" + + % param 'Timezone' => $c->getTimezone() unless param 'Timezone'; + %= select_field 'Timezone' => $c->getZone_list(), class => "" + +

+
% } -

-
- %= submit_button "$btn", class => "" -

+

+
+ %= submit_button "$btn", class => "" +

% end diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/default.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/default.html.ep index ccae21e..07d4e65 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/default.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/default.html.ep @@ -1,4 +1,4 @@ -% layout 'default', title => 'Sme server 2 - Support'; +% layout 'AdminLTE', title => 'Sme server 2 - Support'; % content_for 'module' => begin @@ -6,7 +6,7 @@

<%= $title %>

<%= $modul %>

- %= link_to Initial => '/' + %= link_to Initial => '/'

diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/directory.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/directory.html.ep index b56c9d7..67f08f3 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/directory.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/directory.html.ep @@ -1,87 +1,89 @@ -% layout 'default', title => "Sme server 2 - directory"; +% layout 'AdminLTE', title => "Sme server 2 - directory"; % content_for 'module' => begin -
+
%if (config->{debug} == 1) { -

- (DBG)route: <%= $c->current_route %>
- (DBG)dir. access: <%= $dir_datas->{access}%>
-

+

+ (DBG)route: <%= $c->current_route %>
+ (DBG)dir. access: <%= $dir_datas->{access}%>
+

%}

<%= $title %>


<%= $modul %> - <% my $btn = l('SAVE'); + <% my $btn = l('SAVE'); %> %= form_for 'directory' => (method => 'POST') => begin -
-

- - %= l('dir_LABEL_ROOT'), class => "" - - %= $dir_datas->{root}, class => "" - -

-

- %=l 'dir_DESC_DIRECTORY_ACCESS', class => "" -
- - %=l 'dir_DIRECTORY_ACCESS', class => "" - - % param 'access' => $dir_datas->{access} unless param 'access'; - %= select_field 'access' => [[ (l 'NETWORKS_ALLOW_LOCAL') => 'private'], [ (l 'NETWORKS_ALLOW_PUBLIC') => 'public']], class => "", id => "" - -

-

- %=l 'dir_DESC_DEPARTMENT', class => "" -

- - %=l 'dir_DEPARTMENT', class => "" - - %= text_field 'department' => $dir_datas->{department}, class => "" - -

- - %=l 'dir_COMPANY', class => "" - - %= text_field 'company', $dir_datas->{company}, class => "" - -

- - %=l 'dir_STREET', class => "" - - %= text_field 'street' => $dir_datas->{street}, class => "" - -

- - %=l 'dir_CITY', class => "" - - %= text_field 'city', $dir_datas->{city}, class => "" - -

- - %=l 'dir_PHONENUMBER', class => "" - - %= text_field 'phonenumber', $dir_datas->{phonenumber}, class => "" - -

-

- %=l 'dir_DESC_EXISTING', class => "" -

- - %=l 'dir_EXISTING', class => "" - - %= select_field 'existing'=> [[ (l 'dir_LEAVE') => 'leave'], [ (l 'dir_UPDATE') => 'update' ]], class => "" - -

-

-
- %= submit_button "$btn", class => "" -

+
+

+ + %= l('dir_LABEL_ROOT'), class => "" + + + %= $dir_datas->{root}, class => "" + +

+

+ %=l 'dir_DESC_DIRECTORY_ACCESS', class => "" +
+ + %=l 'dir_DIRECTORY_ACCESS', class => "" + + + % param 'access' => $dir_datas->{access} unless param 'access'; + %= select_field 'access' => [[ (l 'NETWORKS_ALLOW_LOCAL') => 'private'], [ (l 'NETWORKS_ALLOW_PUBLIC') => 'public']], class => "", id => "" + +

+

+ %=l 'dir_DESC_DEPARTMENT', class => "" +

+ + %=l 'dir_DEPARTMENT', class => "" + + %= text_field 'department' => $dir_datas->{department}, class => "" + +

+ + %=l 'dir_COMPANY', class => "" + + %= text_field 'company', $dir_datas->{company}, class => "" + +

+ + %=l 'dir_STREET', class => "" + + %= text_field 'street' => $dir_datas->{street}, class => "" + +

+ + %=l 'dir_CITY', class => "" + + %= text_field 'city', $dir_datas->{city}, class => "" + +

+ + %=l 'dir_PHONENUMBER', class => "" + + %= text_field 'phonenumber', $dir_datas->{phonenumber}, class => "" + +

+

+ %=l 'dir_DESC_EXISTING', class => "" +

+ + %=l 'dir_EXISTING', class => "" + + %= select_field 'existing'=> [[ (l 'dir_LEAVE') => 'leave'], [ (l 'dir_UPDATE') => 'update' ]], class => "" + +

+

+
+ %= submit_button "$btn", class => "" +

% end
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/domains.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/domains.html.ep index 00680c6..1cd2da6 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/domains.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/domains.html.ep @@ -1,29 +1,29 @@ -% layout 'default', title => "Sme server 2 - domains"; +% layout 'AdminLTE', title => "Sme server 2 - domains"; % content_for 'module' => begin -
+
% if (config->{debug} == 1) { -

- %= dumper $c->current_route - %= dumper $dom_datas -

+

+ %= dumper $c->current_route + %= dumper $dom_datas +

% } - + % if ( stash 'error' ) { -
- %= $c->render_to_string(inline => stash 'error') -
+
+ %= $c->render_to_string(inline => stash 'error') +
%}

<%= $title%>

% if ($dom_datas->{trt} eq 'ADD' or $dom_datas->{trt} eq 'UPD') { - %= include 'partials/_dom_upd' + %= include 'partials/_dom_upd' %} elsif ($dom_datas->{trt} eq 'DEL') { - %= include 'partials/_dom_del' + %= include 'partials/_dom_del' %} elsif ($dom_datas->{trt} eq 'UP2') { - %= include 'partials/_dom_up2' + %= include 'partials/_dom_up2' %} else { %= include 'partials/_dom_list' %} diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/emailaccess.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/emailaccess.html.ep index ed7bf09..a3150e7 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/emailaccess.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/emailaccess.html.ep @@ -1,56 +1,56 @@ -% layout 'default', title => "Sme server 2 - emailaccess"; +% layout 'AdminLTE', title => "Sme server 2 - emailaccess"; % content_for 'module' => begin
% if (config->{debug} == 1) { -

- %= dumper $c->current_route - %= dumper $mai_datas -

+

+ %= dumper $c->current_route + %= dumper $mai_datas +

% } % if ( stash 'error' ) { -
- %= $c->render_to_string(inline => stash 'error') -
+
+ %= $c->render_to_string(inline => stash 'error') +
%}

<%= $title%>

%= form_for '/emailsettingd' => (method => 'POST') => begin - %=l 'mai_DESC_POP_ACCESS_CONTROL' + %=l 'mai_DESC_POP_ACCESS_CONTROL' -

- %=l 'mai_LABEL_POP_ACCESS_CONTROL' - - % param 'POPAccess' => $c->get_current_pop3_access() unless param 'POPAccess'; - %= select_field 'POPAccess' => $c->get_pop_opt(), class => "" -

+

+ %=l 'mai_LABEL_POP_ACCESS_CONTROL' + + % param 'POPAccess' => $c->get_current_pop3_access() unless param 'POPAccess'; + %= select_field 'POPAccess' => $c->get_pop_opt(), class => "" +

- %=l 'mai_DESC_IMAP_ACCESS_CONTROL' + %=l 'mai_DESC_IMAP_ACCESS_CONTROL' -

- %=l 'mai_LABEL_IMAP_ACCESS_CONTROL' - - % param 'IMAPAccess' => $c->get_current_imap_access() unless param 'IMAPAccess'; - %= select_field 'IMAPAccess' => $c->get_imap_opt(), class => "" -

+

+ %=l 'mai_LABEL_IMAP_ACCESS_CONTROL' + + % param 'IMAPAccess' => $c->get_current_imap_access() unless param 'IMAPAccess'; + %= select_field 'IMAPAccess' => $c->get_imap_opt(), class => "" +

- %=l 'mai_DESC_WEBMAIL' + %=l 'mai_DESC_WEBMAIL' -

- %=l 'mai_LABEL_WEBMAIL' - - % param 'WebMail' => $c->get_current_webmail_status() unless param 'WebMail'; - %= select_field 'WebMail' => $c->get_webmail_opt(), class => "" -

+

+ %=l 'mai_LABEL_WEBMAIL' + + % param 'WebMail' => $c->get_current_webmail_status() unless param 'WebMail'; + %= select_field 'WebMail' => $c->get_webmail_opt(), class => "" +

- % my $btn = l('SAVE'); - %= submit_button "$btn", class => "" + % my $btn = l('SAVE'); + %= submit_button "$btn", class => "" - %= hidden_field 'trt' => 'ACC' + %= hidden_field 'trt' => 'ACC' % end
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/emaildeliver.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/emaildeliver.html.ep index 086e206..1b769b2 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/emaildeliver.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/emaildeliver.html.ep @@ -1,91 +1,91 @@ -% layout 'default', title => "Sme server 2 - emaildeliver"; +% layout 'AdminLTE', title => "Sme server 2 - emaildeliver"; % content_for 'module' => begin
% if (config->{debug} == 1) { -

- %= dumper $c->current_route - %= dumper $mai_datas -

+

+ %= dumper $c->current_route + %= dumper $mai_datas +

% } % if ( stash 'error' ) { -
- %= $c->render_to_string(inline => stash 'error') -
+
+ %= $c->render_to_string(inline => stash 'error') +
%}

<%= $title%>

%= form_for '/emailsettingd' => (method => 'POST') => begin -

- %=l 'mai_TITLE_UNKNOWN' -

+

+ %=l 'mai_TITLE_UNKNOWN' +

- %=l 'mai_DESC_UNKNOWN' + %=l 'mai_DESC_UNKNOWN' -

- %=l 'mai_LABEL_UNKNOWN' - - % param 'EmailUnknownUser' => $mai_datas->{emailunknownuser} unless param 'EmailUnknownUser'; - %= select_field 'EmailUnknownUser' => $c->get_emailunknownuser_opt(), class => "" -

+

+ %=l 'mai_LABEL_UNKNOWN' + + % param 'EmailUnknownUser' => $mai_datas->{emailunknownuser} unless param 'EmailUnknownUser'; + %= select_field 'EmailUnknownUser' => $c->get_emailunknownuser_opt(), class => "" +

- -

- %=l 'mai_TITLE_DELEGATE' -

+ +

+ %=l 'mai_TITLE_DELEGATE' +

- %=l 'mai_DESC_DELEGATE' + %=l 'mai_DESC_DELEGATE' -

- %=l 'mai_LABEL_DELEGATE' - - % param 'DelegateMailServer' => $mai_datas->{delegatemailserver} unless param 'DelegateMailServer'; - %= text_field 'DelegateMailServer', class => "" -

+

+ %=l 'mai_LABEL_DELEGATE' + + % param 'DelegateMailServer' => $mai_datas->{delegatemailserver} unless param 'DelegateMailServer'; + %= text_field 'DelegateMailServer', class => "" +

- -

- %=l 'mai_TITLE_SMARTHOST' -

+ +

+ %=l 'mai_TITLE_SMARTHOST' +

- %=l 'mai_DESC_SMARTHOST' + %=l 'mai_DESC_SMARTHOST' -

- %=l 'mai_LABEL_SMARTHOST' - - % param 'SMTPSmartHost' => $mai_datas->{smtpsmarthost} unless param 'SMTPSmartHost'; - %= text_field 'SMTPSmartHost', class => "" -

+

+ %=l 'mai_LABEL_SMARTHOST' + + % param 'SMTPSmartHost' => $mai_datas->{smtpsmarthost} unless param 'SMTPSmartHost'; + %= text_field 'SMTPSmartHost', class => "" +

-

- %=l 'mai_LABEL_SMARTHOST_SMTPAUTH_STATUS' - - % param 'SMTPAUTHPROXY_status' => $mai_datas->{smtpauthproxystatus} unless param 'SMTPAUTHPROXY_status'; - %= select_field 'SMTPAUTHPROXY_status' => [[(l 'DISABLED') => 'disabled'], [(l 'ENABLED') => 'enabled']], class => "" -

+

+ %=l 'mai_LABEL_SMARTHOST_SMTPAUTH_STATUS' + + % param 'SMTPAUTHPROXY_status' => $mai_datas->{smtpauthproxystatus} unless param 'SMTPAUTHPROXY_status'; + %= select_field 'SMTPAUTHPROXY_status' => [[(l 'DISABLED') => 'disabled'], [(l 'ENABLED') => 'enabled']], class => "" +

-

- %=l 'mai_LABEL_SMARTHOST_SMTPAUTH_USERID' - - % param 'SMTPAUTHPROXY_Userid' => $mai_datas->{smtpauthproxyuserid} unless param 'SMTPAUTHPROXY_Userid'; - %= text_field 'SMTPAUTHPROXY_Userid', class => "" -

+

+ %=l 'mai_LABEL_SMARTHOST_SMTPAUTH_USERID' + + % param 'SMTPAUTHPROXY_Userid' => $mai_datas->{smtpauthproxyuserid} unless param 'SMTPAUTHPROXY_Userid'; + %= text_field 'SMTPAUTHPROXY_Userid', class => "" +

-

- %=l 'mai_LABEL_SMARTHOST_SMTPAUTH_PASSWD' - - % param 'SMTPAUTHPROXY_Passwd' => $mai_datas->{smtpauthproxypassword} unless param 'SMTPAUTHPROXY_Passwd'; - %= password_field 'SMTPAUTHPROXY_Passwd', class => "" -

+

+ %=l 'mai_LABEL_SMARTHOST_SMTPAUTH_PASSWD' + + % param 'SMTPAUTHPROXY_Passwd' => $mai_datas->{smtpauthproxypassword} unless param 'SMTPAUTHPROXY_Passwd'; + %= password_field 'SMTPAUTHPROXY_Passwd', class => "" +

- % my $btn = l('SAVE'); - %= submit_button "$btn", class => "" + % my $btn = l('SAVE'); + %= submit_button "$btn", class => "" - %= hidden_field 'trt' => 'DEL' + %= hidden_field 'trt' => 'DEL' % end
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/emailfilter.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/emailfilter.html.ep index cb0050d..d61308a 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/emailfilter.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/emailfilter.html.ep @@ -1,100 +1,100 @@ -% layout 'default', title => "Sme server 2 - emailfilter"; +% layout 'AdminLTE', title => "Sme server 2 - emailfilter"; % content_for 'module' => begin
% if (config->{debug} == 1) { -

- %= dumper $c->current_route - %= dumper $mai_datas -

+

+ %= dumper $c->current_route + %= dumper $mai_datas +

% } % if ( stash 'error' ) { -
- %= $c->render_to_string(inline => stash 'error') -
+
+ %= $c->render_to_string(inline => stash 'error') +
%}

<%= $title%>

%= form_for '/emailsettingd' => (method => 'POST') => begin - %=l 'mai_DESC_VIRUS_SCAN' + %=l 'mai_DESC_VIRUS_SCAN' -

- %=l 'mai_LABEL_VIRUS_SCAN' - - % param 'VirusStatus' => $mai_datas->{virusstatus} unless param 'VirusStatus'; - %= select_field 'VirusStatus' => [[(l 'DISABLED') => 'disabled'], [ (l 'ENABLED') => 'enabled']], class => "" -

+

+ %=l 'mai_LABEL_VIRUS_SCAN' + + % param 'VirusStatus' => $mai_datas->{virusstatus} unless param 'VirusStatus'; + %= select_field 'VirusStatus' => [[(l 'DISABLED') => 'disabled'], [ (l 'ENABLED') => 'enabled']], class => "" +

- %=l 'mai_DESC_SPAM_SCAN' + %=l 'mai_DESC_SPAM_SCAN' -

- %=l 'mai_LABEL_SPAM_SCAN' - - % param 'Spamstatus' => $mai_datas->{spamstatus} unless param 'Spamstatus'; - %= select_field 'Spamstatus' => [[(l 'DISABLED') => 'disabled'], [ (l 'ENABLED') => 'enabled']], class => "" -

+

+ %=l 'mai_LABEL_SPAM_SCAN' + + % param 'Spamstatus' => $mai_datas->{spamstatus} unless param 'Spamstatus'; + %= select_field 'Spamstatus' => [[(l 'DISABLED') => 'disabled'], [ (l 'ENABLED') => 'enabled']], class => "" +

-

- %=l 'mai_LABEL_SPAM_SENSITIVITY' - - % param 'SpamSensitivity' => $mai_datas->{spamsensitivity} unless param 'SpamSensitivity'; - %= select_field 'SpamSensitivity' => $c->get_spam_sensitivity_opt(), class => "" -

+

+ %=l 'mai_LABEL_SPAM_SENSITIVITY' + + % param 'SpamSensitivity' => $mai_datas->{spamsensitivity} unless param 'SpamSensitivity'; + %= select_field 'SpamSensitivity' => $c->get_spam_sensitivity_opt(), class => "" +

-

- %=l 'mai_LABEL_SPAM_TAGLEVEL' - - % param 'SpamTagLevel' => $mai_datas->{spamtaglevel} unless param 'SpamTagLevel'; - %= select_field 'SpamTagLevel' => $c->get_spam_level_options(), class => "" -

+

+ %=l 'mai_LABEL_SPAM_TAGLEVEL' + + % param 'SpamTagLevel' => $mai_datas->{spamtaglevel} unless param 'SpamTagLevel'; + %= select_field 'SpamTagLevel' => $c->get_spam_level_options(), class => "" +

-

- %=l 'mai_LABEL_SPAM_REJECTLEVEL' - - % param 'SpamRejectLevel' => $mai_datas->{spamrejectlevel} unless param 'SpamRejectLevel'; - %= select_field 'SpamRejectLevel' => $c->get_spam_level_options(), class => "" -

+

+ %=l 'mai_LABEL_SPAM_REJECTLEVEL' + + % param 'SpamRejectLevel' => $mai_datas->{spamrejectlevel} unless param 'SpamRejectLevel'; + %= select_field 'SpamRejectLevel' => $c->get_spam_level_options(), class => "" +

-

- %=l 'mai_LABEL_SORTSPAM' - - % param 'SpamSortSpam' => $mai_datas->{spamsortspam} unless param 'SpamSortSpam'; - %= select_field 'SpamSortSpam' => [[(l 'DISABLED') => 'disabled'], [ (l 'ENABLED') => 'enabled']], class => "" -

+

+ %=l 'mai_LABEL_SORTSPAM' + + % param 'SpamSortSpam' => $mai_datas->{spamsortspam} unless param 'SpamSortSpam'; + %= select_field 'SpamSortSpam' => [[(l 'DISABLED') => 'disabled'], [ (l 'ENABLED') => 'enabled']], class => "" +

- %=l 'mai_DESC_SPAM_SUBJECT' + %=l 'mai_DESC_SPAM_SUBJECT' -

- %=l 'mai_LABEL_SPAM_SUBJECTTAG' - - % param 'SpamSubjectTag' => $mai_datas->{spamsubjecttag} unless param 'SpamSubjectTag'; - %= select_field 'SpamSubjectTag' => [[(l 'DISABLED') => 'disabled'], [ (l 'ENABLED') => 'enabled']], class => "" -

+

+ %=l 'mai_LABEL_SPAM_SUBJECTTAG' + + % param 'SpamSubjectTag' => $mai_datas->{spamsubjecttag} unless param 'SpamSubjectTag'; + %= select_field 'SpamSubjectTag' => [[(l 'DISABLED') => 'disabled'], [ (l 'ENABLED') => 'enabled']], class => "" +

-

- %=l 'mai_LABEL_SPAM_SUBJECT' - - % param 'SpamSubject' => $mai_datas->{spamsubject} unless param 'SpamSubject'; - %= text_field 'SpamSubject' => class => "" -

+

+ %=l 'mai_LABEL_SPAM_SUBJECT' + + % param 'SpamSubject' => $mai_datas->{spamsubject} unless param 'SpamSubject'; + %= text_field 'SpamSubject' => class => "" +

- %=l 'mai_DESC_BLOCK_EXECUTABLE_CONTENT' + %=l 'mai_DESC_BLOCK_EXECUTABLE_CONTENT' -

- %=l 'mai_LABEL_CONTENT_TO_BLOCK' - - % param 'BlockExecutableContent' => $c->get_patterns_current_opt() unless param 'BlockExecutableContent'; - %= select_field 'BlockExecutableContent' => $c->get_patterns_opt(), class => "", multiple => "1" -

+

+ %=l 'mai_LABEL_CONTENT_TO_BLOCK' + + % param 'BlockExecutableContent' => $c->get_patterns_current_opt() unless param 'BlockExecutableContent'; + %= select_field 'BlockExecutableContent' => $c->get_patterns_opt(), class => "", multiple => "1" +

- % my $btn = l('SAVE'); - %= submit_button "$btn", class => "" + % my $btn = l('SAVE'); + %= submit_button "$btn", class => "" - %= hidden_field 'trt' => 'FIL' + %= hidden_field 'trt' => 'FIL' % end
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/emailreceive.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/emailreceive.html.ep index 3f250dc..6cb71a1 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/emailreceive.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/emailreceive.html.ep @@ -1,4 +1,4 @@ -% layout 'default', title => "Sme server 2 - emailreceive"; +% layout 'AdminLTE', title => "Sme server 2 - emailreceive"; % content_for 'module' => begin @@ -8,159 +8,159 @@
% if (config->{debug} == 1) { -

- %= dumper $c->current_route - %= dumper $mai_datas - %= dumper $c->param('SMTPAuth') -

+

+ %= dumper $c->current_route + %= dumper $mai_datas + %= dumper $c->param('SMTPAuth') +

% } % if ( stash 'error' ) { -
- %= $c->render_to_string(inline => stash 'error') -
+
+ %= $c->render_to_string(inline => stash 'error') +
%}

<%= $title%>

%= form_for '/emailsettingd' => (method => 'POST') => begin - %=l 'mai_DESC_MODE' + %=l 'mai_DESC_MODE' -

- %=l 'mai_LABEL_MODE' - - % param 'FetchmailMethod' => $mai_datas->{fetchmailmethod} unless param 'FetchmailMethod'; +

+ %=l 'mai_LABEL_MODE' + + % param 'FetchmailMethod' => $mai_datas->{fetchmailmethod} unless param 'FetchmailMethod'; - %= select_field 'FetchmailMethod' => $c->get_retrieval_opt(), class => "" -

+ %= select_field 'FetchmailMethod' => $c->get_retrieval_opt(), class => "" +

- %#=l 'mai_DESC_SMTP_AUTH_CONTROL' -
- %= l "SMTP port (25) main purpose is to receive emails from another server, STARTTLS is always offered, but auth if offered is only if STARTTLS is also used by client." -
- %= l "SMTPS port (465) will require implicit SSL/TLS then authenticate to send." -
- %= l "SMTP Submission port (587) will require STARTTLS, then authenticate to send." -
+ %#=l 'mai_DESC_SMTP_AUTH_CONTROL' +
+ %= l "SMTP port (25) main purpose is to receive emails from another server, STARTTLS is always offered, but auth if offered is only if STARTTLS is also used by client." +
+ %= l "SMTPS port (465) will require implicit SSL/TLS then authenticate to send." +
+ %= l "SMTP Submission port (587) will require STARTTLS, then authenticate to send." +
- % my $smtp_mesg=l('SMTP port %u allow client to authenticate:'); -

- %= sprintf($smtp_mesg,$c->get_db_prop('qpsmtpd','TCPPort',25)); - - % param 'SMTPAuth' => $c->get_current_smtp_auth( FALSE ) unless param 'SMTPAuth'; + % my $smtp_mesg=l('SMTP port %u allow client to authenticate:'); +

+ %= sprintf($smtp_mesg,$c->get_db_prop('qpsmtpd','TCPPort',25)); + + % param 'SMTPAuth' => $c->get_current_smtp_auth( FALSE ) unless param 'SMTPAuth'; - %= select_field 'SMTPAuth' => $c->get_smtp_auth_opt(), class => "" -

+ %= select_field 'SMTPAuth' => $c->get_smtp_auth_opt(), class => "" +

- % my $smtp_mesg=l('SMTPS SSL/TLS auth: port %u status:'); -

- %= sprintf($smtp_mesg,$c->get_db_prop('sqpsmtpd','TCPPort',465)); - - % param 'sSMTPAuth' => $c->get_current_smtp_ssl_auth(FALSE,'s', TRUE) unless param 'sSMTPAuth'; - - %= select_field 'sSMTPAuth' => $c->get_smtp_ssl_auth_opt(), class => "" -

+ % my $smtp_mesg=l('SMTPS SSL/TLS auth: port %u status:'); +

+ %= sprintf($smtp_mesg,$c->get_db_prop('sqpsmtpd','TCPPort',465)); + + % param 'sSMTPAuth' => $c->get_current_smtp_ssl_auth(FALSE,'s', TRUE) unless param 'sSMTPAuth'; + + %= select_field 'sSMTPAuth' => $c->get_smtp_ssl_auth_opt(), class => "" +

- %my $smtp_mesg=l('Submission port %u status:'); -

- %= sprintf($smtp_mesg,$c->get_db_prop('uqpsmtpd','TCPPort',587)); - - % param 'uSMTPAuth' => $c->get_current_smtp_ssl_auth(FALSE,'u', TRUE) unless param 'uSMTPAuth'; + %my $smtp_mesg=l('Submission port %u status:'); +

+ %= sprintf($smtp_mesg,$c->get_db_prop('uqpsmtpd','TCPPort',587)); + + % param 'uSMTPAuth' => $c->get_current_smtp_ssl_auth(FALSE,'u', TRUE) unless param 'uSMTPAuth'; - %= select_field 'uSMTPAuth' => $c->get_smtp_ssl_auth_opt(), class => "" -

+ %= select_field 'uSMTPAuth' => $c->get_smtp_ssl_auth_opt(), class => "" +

- -

- %=l 'mai_TITLE_SECONDARY' -

+ +

+ %=l 'mai_TITLE_SECONDARY' +

- %=l 'mai_DESC_SECONDARY' + %=l 'mai_DESC_SECONDARY' -

- %=l 'mai_LABEL_SECONDARY' - - % param 'SecondaryMailServer' => $mai_datas->{secondarymailserver} unless param 'SecondaryMailServer'; - %= text_field 'SecondaryMailServer', class => "" -

+

+ %=l 'mai_LABEL_SECONDARY' + + % param 'SecondaryMailServer' => $mai_datas->{secondarymailserver} unless param 'SecondaryMailServer'; + %= text_field 'SecondaryMailServer', class => "" +

- %=l 'mai_DESC_FETCH_PERIOD' + %=l 'mai_DESC_FETCH_PERIOD' -

- %=l 'mai_LABEL_FETCH_PERIOD' - - % param 'FreqOffice' => $mai_datas->{freqoffice} unless param 'FreqOffice'; - %= select_field 'FreqOffice' => $c->fetchmail_freq(), class => "" -

+

+ %=l 'mai_LABEL_FETCH_PERIOD' + + % param 'FreqOffice' => $mai_datas->{freqoffice} unless param 'FreqOffice'; + %= select_field 'FreqOffice' => $c->fetchmail_freq(), class => "" +

-

- %=l 'mai_LABEL_FETCH_PERIOD_NIGHTS' - - % param 'FreqOutside' => $mai_datas->{freqoutside} unless param 'FreqOutside'; - %= select_field 'FreqOutside' => $c->fetchmail_freq(), class => "" -

+

+ %=l 'mai_LABEL_FETCH_PERIOD_NIGHTS' + + % param 'FreqOutside' => $mai_datas->{freqoutside} unless param 'FreqOutside'; + %= select_field 'FreqOutside' => $c->fetchmail_freq(), class => "" +

-

- %=l 'mai_LABEL_FETCH_PERIOD_WEEKENDS' - - % param 'FreqWeekend' => $mai_datas->{freqweekend} unless param 'FreqWeekend'; - %= select_field 'FreqWeekend' => $c->fetchmail_freq(), class => "" -

+

+ %=l 'mai_LABEL_FETCH_PERIOD_WEEKENDS' + + % param 'FreqWeekend' => $mai_datas->{freqweekend} unless param 'FreqWeekend'; + %= select_field 'FreqWeekend' => $c->fetchmail_freq(), class => "" +

-

- %=l 'mai_LABEL_POP_ACCOUNT' - - % param 'SecondaryMailAccount' => $mai_datas->{secondarymailaccount} unless param 'SecondaryMailAccount'; - %= text_field 'SecondaryMailAccount', class => "" -

+

+ %=l 'mai_LABEL_POP_ACCOUNT' + + % param 'SecondaryMailAccount' => $mai_datas->{secondarymailaccount} unless param 'SecondaryMailAccount'; + %= text_field 'SecondaryMailAccount', class => "" +

-

- %=l 'mai_LABEL_POP_PASS' - - % param 'SecondaryMailPassword' => $mai_datas->{secondarymailpassword} unless param 'SecondaryMailPassword'; - %= password_field 'SecondaryMailPassword', class => "" -

+

+ %=l 'mai_LABEL_POP_PASS' + + % param 'SecondaryMailPassword' => $mai_datas->{secondarymailpassword} unless param 'SecondaryMailPassword'; + %= password_field 'SecondaryMailPassword', class => "" +

-

- %=l 'mai_LABEL_SORT_METHOD' - - % param 'SpecifyHeader' => $mai_datas->{specifyheader} unless param 'SpecifyHeader'; - %= select_field 'SpecifyHeader' => [[(l 'mai_DEFAULT') => 'off'], [(l 'mai_SPECIFY_BELOW') => 'on']], class => "" -

+

+ %=l 'mai_LABEL_SORT_METHOD' + + % param 'SpecifyHeader' => $mai_datas->{specifyheader} unless param 'SpecifyHeader'; + %= select_field 'SpecifyHeader' => [[(l 'mai_DEFAULT') => 'off'], [(l 'mai_SPECIFY_BELOW') => 'on']], class => "" +

-

- %=l 'mai_LABEL_SORT_HEADER' - - % param 'SecondaryMailEnvelope' => $mai_datas->{secondarymailenvelope} unless param 'SecondaryMailEnvelope'; - %= text_field 'SecondaryMailEnvelope', class => "" -

+

+ %=l 'mai_LABEL_SORT_HEADER' + + % param 'SecondaryMailEnvelope' => $mai_datas->{secondarymailenvelope} unless param 'SecondaryMailEnvelope'; + %= text_field 'SecondaryMailEnvelope', class => "" +

- % my $btn = l('SAVE'); - %= submit_button "$btn", class => "" + % my $btn = l('SAVE'); + %= submit_button "$btn", class => "" - %= hidden_field 'trt' => 'REC' + %= hidden_field 'trt' => 'REC' % end
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/emailsettings.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/emailsettings.html.ep index af95ab7..3ab57dd 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/emailsettings.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/emailsettings.html.ep @@ -1,4 +1,4 @@ -% layout 'default', title => "Sme server 2 - emailsettings"; +% layout 'AdminLTE', title => "Sme server 2 - emailsettings"; % content_for 'module' => begin @@ -8,147 +8,147 @@
% if (config->{debug} == TRUE) { -

- %= dumper $c->current_route - %= dumper $mai_datas -

+

+ %= dumper $c->current_route + %= dumper $mai_datas +

% } % if ( stash 'error' ) { -
- %= $c->render_to_string(inline => stash 'error') -
+
+ %= $c->render_to_string(inline => stash 'error') +
%}

<%= $title%>

%= form_for 'emailsettings' => (method => 'POST') => begin -

- %=l 'mai_LABEL_POP_ACCESS_CONTROL' - - %= $c->get_current_pop3_access( TRUE ) -

+

+ %=l 'mai_LABEL_POP_ACCESS_CONTROL' + + %= $c->get_current_pop3_access( TRUE ) +

-

- %=l 'mai_LABEL_IMAP_ACCESS_CONTROL' - - %= $c->get_current_imap_access( TRUE ) -

+

+ %=l 'mai_LABEL_IMAP_ACCESS_CONTROL' + + %= $c->get_current_imap_access( TRUE ) +

-

- %=l 'mai_LABEL_WEBMAIL' - - %= $c->get_current_webmail_status( TRUE ) -

+

+ %=l 'mai_LABEL_WEBMAIL' + + %= $c->get_current_webmail_status( TRUE ) +

- % my $btn = l('mai_DESC_STATE_ACCESS_BUTTON'); + % my $btn = l('mai_DESC_STATE_ACCESS_BUTTON');
- %= submit_button "$btn", class => "" + %= submit_button "$btn", class => ""
- %= hidden_field 'trt' => 'ACC' + %= hidden_field 'trt' => 'ACC' % end
%= form_for 'emailsettings' => (method => 'POST') => begin -

- %=l 'mai_LABEL_VIRUS_SCAN' - - %= $c->get_virus_status(TRUE) -

+

+ %=l 'mai_LABEL_VIRUS_SCAN' + + %= $c->get_virus_status(TRUE) +

-

- %=l 'mai_LABEL_SPAM_SCAN' - - %= $c->get_spam_status(TRUE) -

+

+ %=l 'mai_LABEL_SPAM_SCAN' + + %= $c->get_spam_status(TRUE) +

-

- %=l 'mai_LABEL_BLOCK_EXECUTABLE_CONTENT' - - %= $c->get_patterns_status(TRUE) -

+

+ %=l 'mai_LABEL_BLOCK_EXECUTABLE_CONTENT' + + %= $c->get_patterns_status(TRUE) +

- % my $btn = l('mai_DESC_STATE_FILTERING_BUTTON'); + % my $btn = l('mai_DESC_STATE_FILTERING_BUTTON');
- %= submit_button "$btn", class => "" + %= submit_button "$btn", class => ""
- %= hidden_field 'trt' => 'FIL' + %= hidden_field 'trt' => 'FIL' % end
%= form_for 'emailsettings' => (method => 'POST') => begin -

- %=l 'mai_LABEL_MODE' - - %= $mai_datas->{fetchmailmethod} -

- - % my $smtp_mesg; +

+ %=l 'mai_LABEL_MODE' + + %= $mai_datas->{fetchmailmethod} +

+ + % my $smtp_mesg; - % $smtp_mesg=l('SMTP port %u allow client to authenticate:'); -

- %= sprintf($smtp_mesg,$c->get_db_prop('qpsmtpd','TCPPort',25)); - - %= $c->get_current_smtp_auth( TRUE ) -

+ % $smtp_mesg=l('SMTP port %u allow client to authenticate:'); +

+ %= sprintf($smtp_mesg,$c->get_db_prop('qpsmtpd','TCPPort',25)); + + %= $c->get_current_smtp_auth( TRUE ) +

- % $smtp_mesg=l('SMTPS SSL/TLS auth: port %u status:'); -

- %= sprintf($smtp_mesg,$c->get_db_prop('sqpsmtpd','TCPPort',465)); - - %= $c->get_current_smtp_ssl_auth( TRUE, 's', FALSE ) -

+ % $smtp_mesg=l('SMTPS SSL/TLS auth: port %u status:'); +

+ %= sprintf($smtp_mesg,$c->get_db_prop('sqpsmtpd','TCPPort',465)); + + %= $c->get_current_smtp_ssl_auth( TRUE, 's', FALSE ) +

- % $smtp_mesg=l 'Submission port %u status:'; -

- %= sprintf($smtp_mesg,$c->get_db_prop('uqpsmtpd','TCPPort',587)); - - %= $c->get_current_smtp_ssl_auth( TRUE,'u', FALSE ) -

-
+ % $smtp_mesg=l 'Submission port %u status:'; +

+ %= sprintf($smtp_mesg,$c->get_db_prop('uqpsmtpd','TCPPort',587)); + + %= $c->get_current_smtp_ssl_auth( TRUE,'u', FALSE ) +

+
% my $btn = l('mai_DESC_STATE_RECEPTION_BUTTON');
- %= submit_button "$btn", class => "" + %= submit_button "$btn", class => ""
- %= hidden_field 'trt' => 'REC' + %= hidden_field 'trt' => 'REC' % end
%= form_for 'emailsettings' => (method => 'POST') => begin -

- %=l 'mai_LABEL_UNKNOWN' - - %= $c->get_emailunknownuser_status( TRUE ) -

+

+ %=l 'mai_LABEL_UNKNOWN' + + %= $c->get_emailunknownuser_status( TRUE ) +

-

- %=l 'mai_LABEL_DELEGATE' - - %= $c->get_value('DelegateMailServer') -

+

+ %=l 'mai_LABEL_DELEGATE' + + %= $c->get_value('DelegateMailServer') +

-

- %=l 'mai_LABEL_SMARTHOST' - - %= $c->get_value('SMTPSmartHost') -

+

+ %=l 'mai_LABEL_SMARTHOST' + + %= $c->get_value('SMTPSmartHost') +

- % my $btn = l('mai_DESC_STATE_DELIVERY_BUTTON'); + % my $btn = l('mai_DESC_STATE_DELIVERY_BUTTON');
- %= submit_button "$btn", class => "" + %= submit_button "$btn", class => ""
- %= hidden_field 'trt' => 'DEL' + %= hidden_field 'trt' => 'DEL' % end
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/embedded.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/embedded.html.ep index 5a58323..e15dd10 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/embedded.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/embedded.html.ep @@ -1,23 +1,23 @@ -% layout 'default', title => "Sme server 2 - embedded"; +% layout 'AdminLTE', title => "Sme server 2 - embedded"; % content_for 'module' => begin
% if (config->{debug} == 1) { -

- %= dumper $c->current_route -

+

+ %= dumper $c->current_route +

% } % if ( stash 'error' ) { -
- %= $c->render_to_string(inline => stash 'error') -
+
+ %= $c->render_to_string(inline => stash 'error') +
%}

Embedded - <%=$title %>


If the legacy panel does not appear, then you may not be logged into the original Server manager.
You can log in by clicking here. Or by clicking on the "Legacy SM" button at the top of the window.

% my $height = $c->stash('height') | '600px'; % if ($height !~ /px$/) { $height = $height.'px';} - <%= $c->stash('title') %> not found + <%= $c->stash('title') %> not found
%end diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/exception_development.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/exception_development.html.ep index 13f6288..866589b 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/exception_development.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/exception_development.html.ep @@ -1,16 +1,18 @@ -% layout 'default', title => 'Sme server 2 - Error D'; +% layout 'AdminLTE', title => 'Sme server 2 - Error D'; % content_for 'module' => begin -
-


dev
Oups !!! +

+

+
dev
+ Oups !!! The page you were requesting "<%= $self->req->url->path || '/' %>" caused en exception !!
dev

- %= link_to Back => '/' + %= link_to Back => '/'

diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/groups.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/groups.html.ep index c7d7d93..f44aa3c 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/groups.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/groups.html.ep @@ -1,32 +1,32 @@ -% layout 'default', title => "Sme server 2 - groups"; +% layout 'AdminLTE', title => "Sme server 2 - groups"; % content_for 'module' => begin -
+
% if (config->{debug} == 1) { -

- %= dumper $c->current_route - %= dumper $grp_datas -

+

+ %= dumper $c->current_route + %= dumper $grp_datas +

% } % if ( stash 'error' ) { -
- %= $c->render_to_string(inline => stash 'error') -
+
+ %= $c->render_to_string(inline => stash 'error') +
%}

<%= $title%>

% if ($grp_datas->{trt} eq 'ADD') { - %= include 'partials/_grp_add' + %= include 'partials/_grp_add' %} elsif ($grp_datas->{trt} eq 'DEL') { - %= include 'partials/_grp_del' - %} elsif ($grp_datas->{trt} eq 'UPD') { - %= include 'partials/_grp_upd' - %} else { - %= include 'partials/_grp_list' - %} + %= include 'partials/_grp_del' + %} elsif ($grp_datas->{trt} eq 'UPD') { + %= include 'partials/_grp_upd' + %} else { + %= include 'partials/_grp_list' + %}
%end diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/hostentries.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/hostentries.html.ep index 7ed5160..8fba3f5 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/hostentries.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/hostentries.html.ep @@ -1,34 +1,34 @@ -% layout 'default', title => "Sme server 2 - hostentries"; +% layout 'AdminLTE', title => "Sme server 2 - hostentries"; % content_for 'module' => begin -
+
% if (config->{debug} == 1) { -

- %= dumper $c->current_route - %= dumper $hos_datas -

+

+ %= dumper $c->current_route + %= dumper $hos_datas +

% }

<%= $title%>

% if ( $notif ) { -
- - <%= $c->render_to_string(inline => $notif) %> - +
+ + <%= $c->render_to_string(inline => $notif) %> + %} % if ($hos_datas->{trt} eq 'ADD' or $hos_datas->{trt} eq 'UPD') { - %= include 'partials/_hos_upd' + %= include 'partials/_hos_upd' %} elsif ($hos_datas->{trt} eq 'DEL') { - %= include 'partials/_hos_del' + %= include 'partials/_hos_del' %} elsif ( $hos_datas->{trt} eq 'ALC' or $hos_datas->{trt} eq 'ULC') { - %= include 'partials/_hos_ulc' + %= include 'partials/_hos_ulc' %} elsif ( $hos_datas->{trt} eq 'ARM' or $hos_datas->{trt} eq 'URM') { - %= include 'partials/_hos_urm' + %= include 'partials/_hos_urm' %} else { - %= include 'partials/_hos_list' + %= include 'partials/_hos_list' %}
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/ibays.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/ibays.html.ep index 2b5af36..4cfa958 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/ibays.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/ibays.html.ep @@ -1,38 +1,38 @@ -% layout 'default', title => "Sme server 2 - ibays"; +% layout 'AdminLTE', title => "Sme server 2 - ibays"; % content_for 'module' => begin -
+
% if (config->{debug} == 1) { -

- %= dumper $c->current_route - %= dumper $iba_datas -

+

+ %= dumper $c->current_route + %= dumper $iba_datas +

% } % if ( stash 'error' ) { -
- %= $c->render_to_string(inline => stash 'error') -
+
+ %= $c->render_to_string(inline => stash 'error') +
%}

<%= $title%>

% if ( stash 'modul' ) { - %= $c->render_to_string(inline => stash 'modul' ); + %= $c->render_to_string(inline => stash 'modul' ); % } % if ($iba_datas->{trt} eq 'ADD') { - %= include 'partials/_iba_upd' + %= include 'partials/_iba_upd' %} elsif ($iba_datas->{trt} eq 'DEL') { - %= include 'partials/_iba_del' - %} elsif ($iba_datas->{trt} eq 'UPD') { - %= include 'partials/_iba_upd' - %} elsif ($iba_datas->{trt} eq 'PWD') { - %= include 'partials/_iba_pwd' - %} else { - %= include 'partials/_iba_list' - %} + %= include 'partials/_iba_del' + %} elsif ($iba_datas->{trt} eq 'UPD') { + %= include 'partials/_iba_upd' + %} elsif ($iba_datas->{trt} eq 'PWD') { + %= include 'partials/_iba_pwd' + %} else { + %= include 'partials/_iba_list' + %}
%end diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/initial.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/initial.html.ep index c13d2aa..f543499 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/initial.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/initial.html.ep @@ -1,28 +1,29 @@ -% layout 'default', title => 'Sme server 2 - Initial'; +% layout 'AdminLTE', title => 'Sme server 2 - Initial'; % content_for 'module' => begin % if (config->{debug} == 1) { -

- %= dumper $c->current_route -

+

+ %= dumper $c->current_route +

% } -
+
% if ( stash 'error' ) { -
- %= $c->render_to_string(inline => stash 'error') -
- %} +
+
+ %= $c->render_to_string(inline => stash 'error') +
+ % } -

- %= $title -

-
+

<%= $title %>

+ +

%= $modul

+
% end \ No newline at end of file diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/layouts/default.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/layouts/default.html.ep deleted file mode 100644 index 9090c59..0000000 --- a/root/usr/share/smanager/themes/AdminLTE/templates/layouts/default.html.ep +++ /dev/null @@ -1,151 +0,0 @@ - - - - -<%= $title %> - - - - %#= stylesheet '/css/new_sme.css' - %#= stylesheet '/css/new-sme-main.css' - - - - - - %= content_for 'head_contrib' - % if (config 'hasJquery') { - %= include 'partials/_js_imports' - %= include 'common_js' - % } - %= content_for 'refresh' - - %#= stylesheet '/js/datatables.min.css' - %#= javascript '/js/datatables.min.js' - %#= stylesheet '/js/jquery-ui.min.css' - %#= javascript '/js/jquery-ui.min.js' - %#= javascript '/js/dataTables.buttons.min.js' - %#= javascript '/js/jszip.min.js' - %#= javascript '/js/pdfmake.min.js' - %#= javascript '/js/vfs_fonts.js' - %#= javascript '/js/buttons.html5.min.js' - %#= javascript '/js/buttons.print.min.js' - - %= javascript '/js/flag-by-locale.js' - %= javascript '/js/sme-password.js' - - - %= stylesheet '/css/sme-jquery-overrides.css' - - - - - - - -% if ( not defined $c->session->{lang} ) { -% SrvMngr::init_session ( $c ); -% } -
- %= include 'partials/_header' - % if ($c->is_logged_in && scalar @{SrvMngr::theme_list( $c )} > 1) { - %= include 'partials/_swt_theme' - % } -
- -
- - % if (config 'hasJquery') { - %= content 'js_toggleMenu' - % } - -
- %= include 'partials/_nav_menu' -% if ( $c->is_logged_in ) { - %= include 'partials/_user_menu' -% } -% if ( $c->is_admin ) { - %= include 'partials/_navig2' -% } -
-
- - %= include 'partials/_info' - - % if (flash 'success') { -
- %= $c->render_to_string(inline => flash 'success') -
- % } - % if ( flash 'warning' ) { -
- %= $c->render_to_string(inline => flash 'warning') -
- %} - % if ( flash 'error' ) { -
- %= $c->render_to_string(inline => flash 'error') -
- %} - %= content 'module' - %= include 'partials/_footer' -
-
- - % if (config 'hasJquery') { - %= content 'js_swapClass' - %= content 'js_togglePassword' - % } - -%= javascript '/js/sme-dataTable-setup.js' - - - - -
- - - - - \ No newline at end of file diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/letsencrypt.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/letsencrypt.html.ep index 4937ab5..edb0177 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/letsencrypt.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/letsencrypt.html.ep @@ -1,68 +1,71 @@ %# %# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-12-01 15:22:43 %# -% layout 'default', title => "Sme server 2 - Letsencrypt certificate", share_dir => './'; +% layout 'AdminLTE', title => "Sme server 2 - Letsencrypt certificate", share_dir => './'; %# css specific to this panel: + % content_for 'module' => begin + %= stylesheet '/css/letsencrypt.css' -
+ +
% if (config->{debug} == 1) { -
-		%= dumper $c->current_route
-		%= dumper $lets_data->{trt}
-	
+
+        %= dumper $c->current_route
+        %= dumper $lets_data->{trt}
+    
% }

<%=$title%>

% if ( stash('modul')) { - %= $c->render_to_string(inline => stash('modul') ); + %= $c->render_to_string(inline => stash('modul') ); % } - %if ($c->stash('first')) { -

- %=$c->render_to_string(inline =>$c->l($c->stash('first'))) -

+ %if ($c->stash('first')) { +

+ %=$c->render_to_string(inline =>$c->l($c->stash('first'))) +

- %} elsif ($c->stash('success')) { -
-

<%=$c->l('lets_Status_Report') %>

- %= $c->l($c->stash('success')); -

-
+ %} elsif ($c->stash('success')) { +
+

<%=$c->l('lets_Status_Report') %>

+ %= $c->l($c->stash('success')); +

+
- %} elsif ($c->stash('error')) { -
-

<%=$c->l('lets_Error_Status_Report') %>

- %= $c->l($c->stash('error')); -

-
- %} + %} elsif ($c->stash('error')) { +
+

<%=$c->l('lets_Error_Status_Report') %>

+ %= $c->l($c->stash('error')); +

+
+ %} + + %#Routing to partials according to trt parameter. + %#This ought to be cascading if/then/elsif, but is easier to just stack the if/then's rather like a case statement' + + % if ($lets_data->{trt} eq "LIST") { + %= include 'partials/_lets_LIST' + %} + + % if ($lets_data->{trt} eq "PARAMS") { + %= include 'partials/_lets_PARAMS' + %} + + % if ($lets_data->{trt} eq "CHECKALLDOMAINS") { + %= include 'partials/_lets_CHECKALLDOMAINS' + %} + + % if ($lets_data->{trt} eq "CHECKALLENABLEDDOMAINS") { + %= include 'partials/_lets_CHECKALLENABLEDDOMAINS' + %} + + % if ($lets_data->{trt} eq "CHECKONEDOMAIN") { + %= include 'partials/_lets_CHECKONEDOMAIN' + %} - %#Routing to partials according to trt parameter. - %#This ought to be cascading if/then/elsif, but is easier to just stack the if/then's rather like a case statement' - - % if ($lets_data->{trt} eq "LIST") { - %= include 'partials/_lets_LIST' - %} - - % if ($lets_data->{trt} eq "PARAMS") { - %= include 'partials/_lets_PARAMS' - %} - - % if ($lets_data->{trt} eq "CHECKALLDOMAINS") { - %= include 'partials/_lets_CHECKALLDOMAINS' - %} - - % if ($lets_data->{trt} eq "CHECKALLENABLEDDOMAINS") { - %= include 'partials/_lets_CHECKALLENABLEDDOMAINS' - %} - - % if ($lets_data->{trt} eq "CHECKONEDOMAIN") { - %= include 'partials/_lets_CHECKONEDOMAIN' - %} -
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/localnetworks.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/localnetworks.html.ep index d49b0d0..88936c9 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/localnetworks.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/localnetworks.html.ep @@ -1,32 +1,32 @@ -% layout 'default', title => "Sme server 2 - localnetworks"; +% layout 'AdminLTE', title => "Sme server 2 - localnetworks"; % content_for 'module' => begin -
+
% if (config->{debug} == 1) { -

- %= dumper $c->current_route - %= dumper $c->stash("ret") +

+ %= dumper $c->current_route + %= dumper $c->stash("ret") %= dumper $c->param("localnetwork"); %= dumper $c->stash("ln_datas"); %= dumper $c->param("deletehost"); -

+

% }

<%= $title%>

%= $modul % if ($ln_datas->{trt} eq 'ADD') { - %= include 'partials/_ln_add' + %= include 'partials/_ln_add' %} elsif ($ln_datas->{trt} eq 'ADD1') { - %= include 'partials/_ln_add' + %= include 'partials/_ln_add' %} elsif ($ln_datas->{trt} eq 'DEL') { - %= include 'partials/_ln_del' - %} elsif ($ln_datas->{trt} eq 'DEL1'){ - %= include 'partials/_ln_list' - %} else { - %= include 'partials/_ln_list' - %} + %= include 'partials/_ln_del' + %} elsif ($ln_datas->{trt} eq 'DEL1'){ + %= include 'partials/_ln_list' + %} else { + %= include 'partials/_ln_list' + %}
%end diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/login.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/login.html.ep index 118a222..c81aa15 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/login.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/login.html.ep @@ -1,69 +1,95 @@ -% layout 'default', title => "Sme server 2 - login"; +% layout 'AdminLTE' , title => "Sme server 2 - login"; % content_for 'module' => begin -
- - %if ( config 'debug' ) { -

- %= dumper $c->current_route - %if ( stash 'trt' ) { - %= dumper stash 'trt' - %} -

+ %if ( config 'debug' ) { +

+ + %if ( stash 'trt' ) { + %= dumper stash 'trt' + %} +

%} % if ( stash 'error' ) { -
- %= $c->render_to_string(inline => stash 'error') -
+
+ %= $c->render_to_string(inline => stash 'error') +
%} % my $btn = l('use_SIGNIN'); % if ( $trt eq 'RESET' ) { -

- %= $c->render_to_string(inline => l 'use_DESC_RESET') -

- % $btn = l('use_RESET'); +

+ %= $c->render_to_string(inline => l 'use_DESC_RESET') +

+ % $btn = l('use_RESET'); %} -

- %=l 'use_TITLE' -

+ diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/not_found.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/not_found.html.ep index 6b70694..4c72b9d 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/not_found.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/not_found.html.ep @@ -1,10 +1,10 @@ -% layout 'defaultlight', title => 'Sme server 2 - Error P'; +% layout 'AdminLTE', title => 'Sme server 2 - Error P';



The page you were requesting "<%= $self->req->url->path || '/' %>" could not be found.

- %= link_to Welcome => '/' + %= link_to Welcome => '/'

\ No newline at end of file diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/nutups.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/nutups.html.ep index a4dcf38..8656adf 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/nutups.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/nutups.html.ep @@ -1,59 +1,59 @@ %# %# Generated by SM2Gen version:0.9(20Jan2025) Chameleon version:4.5.4 On Python:3.12.3 at 2025-01-20 16:21:33 %# -% layout 'default', title => "Sme server 2 - NutUPS configuration", share_dir => './'; +% layout 'AdminLTE', title => "Sme server 2 - NutUPS configuration", share_dir => './'; %# css specific to this panel: + % content_for 'module' => begin -%= stylesheet '/css/nutups.css' -%= javascript '/js/nutups.js' -
+ +
% if (config->{debug} == 1) { -
-		%= dumper $c->current_route
-		%= dumper $nut_data->{trt}
-	
+
+        %= dumper $c->current_route
+        %= dumper $nut_data->{trt}
+    
% }

<%=$title%>

% if ( stash('modul')) { - %= $c->render_to_string(inline => stash('modul') ); + %= $c->render_to_string(inline => stash('modul') ); % } - %if ($c->stash('first')) { -

- %=$c->render_to_string(inline =>$c->l($c->stash('first'))) -

+ %if ($c->stash('first')) { +

+ %=$c->render_to_string(inline =>$c->l($c->stash('first'))) +

- %} elsif ($c->stash('success')) { -
-

<%=$c->l('nut_Status_Report') %>

- %= $c->l($c->stash('success')); -

-
-
+ %} elsif ($c->stash('success')) { +
+

<%=$c->l('nut_Status_Report') %>

+ %= $c->l($c->stash('success')); +

+
+
- %} elsif ($c->stash('error')) { -
-

<%=$c->l('nut_Error_Status_Report') %>

- %= $c->l($c->stash('error')); -

-
-
- %} + %} elsif ($c->stash('error')) { +
+

<%=$c->l('nut_Error_Status_Report') %>

+ %= $c->l($c->stash('error')); +

+
+
+ %} - %#Routing to partials according to trt parameter. - %#This ought to be cascading if/then/elsif, but is easier to just stack the if/then's rather like a case statement' - - % if ($nut_data->{trt} eq "STATUS") { - %= include 'partials/_nut_STATUS' - %} - - % if ($nut_data->{trt} eq "CONFIG") { - %= include 'partials/_nut_CONFIG' - %} - + %#Routing to partials according to trt parameter. + %#This ought to be cascading if/then/elsif, but is easier to just stack the if/then's rather like a case statement' + + % if ($nut_data->{trt} eq "STATUS") { + %= include 'partials/_nut_STATUS' + %} + + % if ($nut_data->{trt} eq "CONFIG") { + %= include 'partials/_nut_CONFIG' + %} +
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_dom_del.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_dom_del.html.ep index cdbc206..438db31 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_dom_del.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_dom_del.html.ep @@ -1,25 +1,25 @@ -
+
- % my $btn = l('REMOVE'); + % my $btn = l('REMOVE'); %= form_for '/domains2' => (method => 'POST') => begin -

-

- %=l 'dom_REMOVE_TITLE' -

-

+

+

+ %=l 'dom_REMOVE_TITLE' +

+

-

- %= $c->l('dom_REMOVE_DESCRIPTION', $dom_datas->{domain}, $dom_datas->{description}); -

- -

- %= l('dom_ABOUT_TO_REMOVE') -

+

+ %= $c->l('dom_REMOVE_DESCRIPTION', $dom_datas->{domain}, $dom_datas->{description}); +

+ +

+ %= l('dom_ABOUT_TO_REMOVE') +

-

-
- %= submit_button "$btn", class => "" -

+

+
+ %= submit_button "$btn", class => "" +

%= hidden_field 'trt' => $dom_datas->{trt} %= hidden_field 'Domain' => $dom_datas->{domain} diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_dom_list.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_dom_list.html.ep index d39ad97..449dee1 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_dom_list.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_dom_list.html.ep @@ -1,43 +1,45 @@ -
+
% my $btn = l('dom_ADD_DOMAIN'); %= form_for '/domains' => (method => 'POST') => begin - %= l('dom_FORM_DESCRIPTION'); - -

-
- %= submit_button "$btn", class => "" -

+ %= l('dom_FORM_DESCRIPTION'); + +

+
+ %= submit_button "$btn", class => "" +

- %= hidden_field 'trt' => 'ADD' - + %= hidden_field 'trt' => 'ADD' + % end -

- %=l 'dom_CURRENT_DOMAINS' -

- - - - - - - - - +

+ %=l 'dom_CURRENT_DOMAINS' +

+
- %=l 'DOMAIN_NAME' - - %=l 'DESCRIPTION_BRIEF' - - %=l 'dom_CONTENT' - - %=l 'dom_LABEL_NAMESERVERS' - - %=l 'ACTION' -
+ + + + + + + + + + % foreach my $domain ( @$domains ) { @@ -46,76 +48,78 @@ %= t td => (class => "") => $domain->{'Content'} %= t td => (class => "") => l('dom_' . $domain->{'Nameservers'}) - %# my $actionModify = "" . "" . ""; - %my $modify_text = l('MODIFY'); # Localized text - %my $csrf_token = "TOKEN"; # CSRF token for security - %my $domain_name = $domain->{Domain}; # Domain name extracted from the data structure - %my $actionModify = qq{ + %# my $actionModify = "" . "" . ""; + %my $modify_text = l('MODIFY'); # Localized text + %my $csrf_token = "TOKEN"; # CSRF token for security + %my $domain_name = $domain->{Domain}; # Domain name extracted from the data structure + %my $actionModify = qq{ % - % + % % - %}; - %my $removable = ($domain->{Removable} || 'yes'); - %my $actionRemove = ' '; - %if ($removable eq 'yes') { - %my $remove_text = l('REMOVE'); # Localized text - %my $csrf_token = "TOKEN"; # CSRF token for security - %my $domain_name = $domain->{Domain}; # Domain name extracted from the data structure - %$actionRemove = qq{ + %}; + %my $removable = ($domain->{Removable} || 'yes'); + %my $actionRemove = ' '; + %if ($removable eq 'yes') { + %my $remove_text = l('REMOVE'); # Localized text + %my $csrf_token = "TOKEN"; # CSRF token for security + %my $domain_name = $domain->{Domain}; # Domain name extracted from the data structure + %$actionRemove = qq{ % - % + % % - %}; - %# $actionRemove = "" . "" . ""; - %}; - - - % } + %}; + %# $actionRemove = "" . "" . ""; + %}; + + + % } - -
+ %=l 'DOMAIN_NAME' + + %=l 'DESCRIPTION_BRIEF' + + %=l 'dom_CONTENT' + + %=l 'dom_LABEL_NAMESERVERS' + + %=l 'ACTION' +
- <%= $c->render_to_string(inline => $actionModify) %> <%= $c->render_to_string(inline => $actionRemove) %> -
+ <%= $c->render_to_string(inline => $actionModify) %> <%= $c->render_to_string(inline => $actionRemove) %> +
+ + %= hidden_field 'trt' => 'ADD' %= form_for '/domains' => (method => 'POST') => begin - -
+ +
- % my $btn2 = l('dom_DOMAINS_PAGE_CORPORATE_DNS'); + % my $btn2 = l('dom_DOMAINS_PAGE_CORPORATE_DNS'); -

- %= l 'dom_DESC_CORPORATE_DNS_CURRENT' -

+

+ %= l 'dom_DESC_CORPORATE_DNS_CURRENT' +

-

- - %=l 'dom_LABEL_CORPORATE_DNS_PRIMARY' - - %= $dom_datas->{forwarder} - -

+

+ + %=l 'dom_LABEL_CORPORATE_DNS_PRIMARY' + + + %= $dom_datas->{forwarder} + +

- % if ($dom_datas->{forwarder2}) { -

- - %=l 'dom_LABEL_CORPORATE_DNS_SECONDARY' - - %= $dom_datas->{forwarder2} - -

- % } + % if ($dom_datas->{forwarder2}) { +

+ + %=l 'dom_LABEL_CORPORATE_DNS_SECONDARY' + + + %= $dom_datas->{forwarder2} + +

+ % } -

- %= submit_button "$btn2", class => "" -

- %= hidden_field 'trt' => 'UP2' +

+ %= submit_button "$btn2", class => "" +

+ %= hidden_field 'trt' => 'UP2' % end diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_dom_up2.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_dom_up2.html.ep index df64dff..2c56544 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_dom_up2.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_dom_up2.html.ep @@ -1,37 +1,39 @@ -
+
- % my $btn = l('SAVE'); + % my $btn = l('SAVE'); %= form_for '/domains2' => (method => 'POST') => begin -


- %=l 'dom_DESC_CORPORATE_DNS' -

+


+ %=l 'dom_DESC_CORPORATE_DNS' +

-

- - %=l 'dom_LABEL_CORPORATE_DNS_PRIMARY' - - % param 'Forwarder' => $dom_datas->{forwarder} unless param 'Forwarder'; - %= text_field 'Forwarder', class => "" - -

+

+ + %=l 'dom_LABEL_CORPORATE_DNS_PRIMARY' + + + % param 'Forwarder' => $dom_datas->{forwarder} unless param 'Forwarder'; + %= text_field 'Forwarder', class => "" + +

-

- - %=l 'dom_LABEL_CORPORATE_DNS_SECONDARY', class => "" - - % param 'Forwarder2' => $dom_datas->{forwarder2} unless param 'Forwarder2'; - %= text_field 'Forwarder2', class => "" - -

+

+ + %=l 'dom_LABEL_CORPORATE_DNS_SECONDARY', class => "" + + + % param 'Forwarder2' => $dom_datas->{forwarder2} unless param 'Forwarder2'; + %= text_field 'Forwarder2', class => "" + +

-

- %= submit_button "$btn", class => "" -

+

+ %= submit_button "$btn", class => "" +

- %= hidden_field 'trt' => $dom_datas->{trt} - + %= hidden_field 'trt' => $dom_datas->{trt} + %end
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_dom_upd.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_dom_upd.html.ep index c0f5bd7..4952983 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_dom_upd.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_dom_upd.html.ep @@ -1,70 +1,74 @@ -
+
- % my $btn = l('ADD'); + % my $btn = l('ADD'); %= form_for '/domains2' => (method => 'POST') => begin -

-

+

+

% if ( $dom_datas->{trt} eq "ADD" ) { - %=l 'dom_CREATE_TITLE' + %=l 'dom_CREATE_TITLE' % } else { - %=l 'dom_MODIFY_TITLE' - % $btn = l('MODIFY'); + %=l 'dom_MODIFY_TITLE' + % $btn = l('MODIFY'); % } -

-

+ +

-


- - %=l 'DOMAIN_NAME', class => "" - +


+ + %=l 'DOMAIN_NAME', class => "" + + % if ( $dom_datas->{trt} eq "ADD" ) { - % param 'Domain' => $dom_datas->{domain} unless param 'Domain'; - %= text_field 'Domain', class => "" + % param 'Domain' => $dom_datas->{domain} unless param 'Domain'; + %= text_field 'Domain', class => "" % } else { %= hidden_field 'Domain' => $dom_datas->{domain} - %= $dom_datas->{domain}, class => "" + %= $dom_datas->{domain}, class => "" % } - -

+ +

-


- - %=l 'DESCRIPTION_BRIEF', class => "" - - % param 'Description' => $dom_datas->{description} unless param 'Description'; - %= text_field 'Description', class => "" - -

+


+ + %=l 'DESCRIPTION_BRIEF', class => "" + + + % param 'Description' => $dom_datas->{description} unless param 'Description'; + %= text_field 'Description', class => "" + +

-


- %=l 'dom_CONTENT_FIELD_DESCRIPTION' -
- - %= $c->l('dom_CONTENT', ''); - - % param 'Content' => $dom_datas->{content} unless param 'Content'; - %= select_field 'Content', $c->content_options_list(), class => "" - -

+


+ %=l 'dom_CONTENT_FIELD_DESCRIPTION' +
+ + %= $c->l('dom_CONTENT', ''); + + + % param 'Content' => $dom_datas->{content} unless param 'Content'; + %= select_field 'Content', $c->content_options_list(), class => "" + +

-


- %=l 'dom_DESC_NAMESERVERS' -
- - %=l 'dom_LABEL_NAMESERVERS', class => "" - - % param 'Nameservers' => $dom_datas->{nameservers} unless param 'Nameservers'; - %= select_field 'Nameservers', $c->nameserver_options_list(), class => "" - -

+


+ %=l 'dom_DESC_NAMESERVERS' +
+ + %=l 'dom_LABEL_NAMESERVERS', class => "" + + + % param 'Nameservers' => $dom_datas->{nameservers} unless param 'Nameservers'; + %= select_field 'Nameservers', $c->nameserver_options_list(), class => "" + +

-


- %= submit_button "$btn", class => "" -

+


+ %= submit_button "$btn", class => "" +

+ + %= hidden_field 'trt' => $dom_datas->{trt} - %= hidden_field 'trt' => $dom_datas->{trt} - %end
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_footer.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_footer.html.ep index 035ddd5..87f0ce4 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_footer.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_footer.html.ep @@ -2,11 +2,11 @@ -% if ( $c->is_logged_in && $c->is_admin) { - SME Server <%= session 'releaseVersion' %>-<%= $c->app->VERSION %> Manager II - % my $mode; - % if (config->{mode} eq 'development'){ $mode = '-dev';} else { $mode = '';} - (Mojo:<%= Mojolicious->VERSION %><%= $mode %>) +% if ( $c->is_logged_in && $c->is_admin) { + SME Server <%= session 'releaseVersion' %>-<%= $c->app->VERSION %> Manager II + % my $mode; + % if (config->{mode} eq 'development'){ $mode = '-dev';} else { $mode = '';} + (Mojo:<%= Mojolicious->VERSION %><%= $mode %>) % }
Copyright 1999-2006 Mitel Corporation
%= session 'copyRight' diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_grp_add.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_grp_add.html.ep index bcc8a1a..3e90c99 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_grp_add.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_grp_add.html.ep @@ -1,18 +1,20 @@ -
+
% my $btn = l('ADD'); %= form_for '/groups2' => (method => 'POST') => begin

%=l 'CREATE_GROUP' -



+ +

%=l 'grp_GROUP_NAMING'

%=l 'GROUP_NAME', class => "" - + + %= text_field 'groupName', class => ""

@@ -22,7 +24,8 @@

%=l 'grp_GROUP_DESC', class => "" - + + %= text_field 'groupDesc', class => ""

diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_grp_del.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_grp_del.html.ep index ff65d78..6382e9b 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_grp_del.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_grp_del.html.ep @@ -1,4 +1,4 @@ -
+
% my $btn = l('REMOVE'); %= form_for '/groups2' => (method => 'POST') => begin diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_grp_list.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_grp_list.html.ep index a66a5ed..48b6efe 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_grp_list.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_grp_list.html.ep @@ -1,4 +1,4 @@ -
+
% my $btn = l('GROUP_ADD'); @@ -19,7 +19,8 @@ % if ($numGroups == 0){ %=l 'ACCOUNT_GROUP_NONE' % } else { - +
+ - + + % foreach my $group ( @$groups ) % { diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_grp_upd.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_grp_upd.html.ep index 8106b85..c1ada15 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_grp_upd.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_grp_upd.html.ep @@ -1,4 +1,4 @@ -
+
% my $btn = l('SAVE'); @@ -11,7 +11,8 @@

%=l 'GROUP_NAME', class => "" - + + %= $grp_datas->{group}, class => ""

@@ -21,7 +22,8 @@

%=l 'grp_GROUP_DESC', class => "" - + + % param 'groupDesc' => $grp_datas->{description} unless param 'groupDesc'; %= text_field 'groupDesc', class => "" diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_header.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_header.html.ep index a30ce3d..4b8890c 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_header.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_header.html.ep @@ -1,12 +1,23 @@ -
- Koozali Logo - % if ( not defined $c->session->{username} ) { - - % } else { - - % } -
- -
-
\ No newline at end of file + + +
+ +
+ +
+
+ +
+
+ + +
+ +
+ + +
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_hos_del.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_hos_del.html.ep index f82a48a..779c21d 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_hos_del.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_hos_del.html.ep @@ -1,25 +1,25 @@ -
+
- % my $btn = l('REMOVE'); + % my $btn = l('REMOVE'); %= form_for '/hostentriesd' => (method => 'POST') => begin -

-

- %=l 'hos_REMOVE_TITLE' -

-

+

+

+ %=l 'hos_REMOVE_TITLE' +

+

-

- %= $c->l('hos_REMOVE_PAGE_DESCRIPTION', $hos_datas->{hostname}); -

- -

- %=l 'hos_ABOUT_TO_REMOVE' -

+

+ %= $c->l('hos_REMOVE_PAGE_DESCRIPTION', $hos_datas->{hostname}); +

+ +

+ %=l 'hos_ABOUT_TO_REMOVE' +

-

-
- %= submit_button "$btn", class => "" -

+

+
+ %= submit_button "$btn", class => "" +

%= hidden_field 'trt' => $hos_datas->{trt} %= hidden_field 'Hostname' => $hos_datas->{hostname} diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_hos_list.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_hos_list.html.ep index 6dfb6d5..b7ead6a 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_hos_list.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_hos_list.html.ep @@ -1,46 +1,48 @@ -
+
% my $btn = l('hos_ADD_HOSTNAME'); %= form_for '/hostentries' => (method => 'POST') => begin -

- %= submit_button "$btn", class => "" -

+

+ %= submit_button "$btn", class => "" +

%= hidden_field 'trt' => $hos_datas->{trt} % end - % my %dom_hos = %{$dom_hosts}; + % my %dom_hos = %{$dom_hosts}; % foreach my $domain ( sort ( keys %dom_hos ) ) { -


- %= $c->l('hos_CURRENT_HOSTNAMES_FOR_LOCAL_DOMAIN', $domain); -

- -
%=l 'GROUP' @@ -28,10 +29,11 @@ %=l 'DESCRIPTION' - %=l 'ACTION' + %=l 'ACTION'
- - - - - - - - - +


+ %= $c->l('hos_CURRENT_HOSTNAMES_FOR_LOCAL_DOMAIN', $domain); +

+ +
- %=l 'hos_HOSTNAME' - - %=l 'hos_HOSTTYPE' - - %=l 'IP_ADDRESS_OR_FQDN' - - %=l 'hos_ETHERNET_ADDRESS' - - %=l 'COMMENT' - - %=l 'ACTION' -
+ + + + + + + + + + + % foreach (@{$dom_hos{$domain}{'HOSTS'}}) { @@ -49,36 +51,36 @@ %= t td => (class => "") => $_->{'IP'}; %= t td => (class => "") => $_->{'MACAddress'}; %= t td => (class => "") => $_->{'Comment'}; - - - % } - -
+ %=l 'hos_HOSTNAME' + + %=l 'hos_HOSTTYPE' + + %=l 'IP_ADDRESS_OR_FQDN' + + %=l 'hos_ETHERNET_ADDRESS' + + %=l 'COMMENT' + + %=l 'ACTION' +
- %my ($actionModify, $actionRemove) = ' '; - %my $static = $_->{'static'} || "no"; - %if ($static ne 'yes') { - %my $modify_text = l('MODIFY'); # Localized text - %my $csrf_token = "TOKEN"; # CSRF token for security - %my $hostentries_name = $_->{'HostName'}; # hostentries name extracted from the data structure - %$actionModify = qq{ + + %my ($actionModify, $actionRemove) = ' '; + %my $static = $_->{'static'} || "no"; + %if ($static ne 'yes') { + %my $modify_text = l('MODIFY'); # Localized text + %my $csrf_token = "TOKEN"; # CSRF token for security + %my $hostentries_name = $_->{'HostName'}; # hostentries name extracted from the data structure + %$actionModify = qq{ % - % + % % - %}; - %my $remove_text = l('REMOVE'); # Localized text - %$csrf_token = "TOKEN"; # CSRF token for security - %#my $hostentries_name = $_->{'HostName'}; # hostentries name extracted from the data structure - %$actionRemove = qq{ + %}; + %my $remove_text = l('REMOVE'); # Localized text + %$csrf_token = "TOKEN"; # CSRF token for security + %#my $hostentries_name = $_->{'HostName'}; # hostentries name extracted from the data structure + %$actionRemove = qq{ % - % + % % - %}; - %} - <%= $c->render_to_string(inline => $actionModify) %> <%= $c->render_to_string(inline => $actionRemove) %> -
- % } + %}; + %} + <%= $c->render_to_string(inline => $actionModify) %> <%= $c->render_to_string(inline => $actionRemove) %> + + + % } + + + % }
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_hos_ulc.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_hos_ulc.html.ep index 75ea1fe..aaade76 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_hos_ulc.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_hos_ulc.html.ep @@ -1,60 +1,62 @@ -
- +
+ - % my $btn = l('NEXT'); + % my $btn = l('NEXT'); %= form_for '/hostentriesd' => (method => 'POST') => begin -

+

% if ( $hos_datas->{trt} eq "ALC" ) { - %=l 'hos_CREATE_TYPE' + %=l 'hos_CREATE_TYPE' % } else { - %=l 'hos_MODIFY_TYPE' - % $btn = l('MODIFY'); + %=l 'hos_MODIFY_TYPE' + % $btn = l('MODIFY'); % } -

+

-

- %=l 'hos_LOCAL_PAGE_DESCRIPTION' -

+

+ %=l 'hos_LOCAL_PAGE_DESCRIPTION' +

-

- %=l 'hos_LOCAL_IP_DESCRIPTION' -

+

+ %=l 'hos_LOCAL_IP_DESCRIPTION' +

-

- - %=l 'hos_LOCAL_IP', class => "" - - % param 'Internalip' => $hos_datas->{internalip} unless param 'Internalip'; - %= text_field 'Internalip', class => "" - -

+

+ + %=l 'hos_LOCAL_IP', class => "" + + + % param 'Internalip' => $hos_datas->{internalip} unless param 'Internalip'; + %= text_field 'Internalip', class => "" + +

-

- %=l 'hos_ETHERNET_ADDRESS_DESCRIPTION' -

+

+ %=l 'hos_ETHERNET_ADDRESS_DESCRIPTION' +

-

- - %=l 'hos_ETHERNET_ADDRESS', class => "" - - % param 'Macaddress' => $hos_datas->{macaddress} unless param 'Macaddress'; - %= text_field 'Macaddress', class => "" - -

+

+ + %=l 'hos_ETHERNET_ADDRESS', class => "" + + + % param 'Macaddress' => $hos_datas->{macaddress} unless param 'Macaddress'; + %= text_field 'Macaddress', class => "" + +

-


- %= submit_button "$btn", class => "" -

+


+ %= submit_button "$btn", class => "" +

- %= hidden_field 'trt' => $hos_datas->{trt} - %= hidden_field 'Hostname' => $hos_datas->{hostname} + %= hidden_field 'trt' => $hos_datas->{trt} + %= hidden_field 'Hostname' => $hos_datas->{hostname} %= hidden_field 'Name' => $hos_datas->{name} %= hidden_field 'Domain' => $hos_datas->{domain} - %= hidden_field 'Comment'=> $hos_datas->{comment} - %= hidden_field 'Hosttype'=> $hos_datas->{hosttype} - %= hidden_field 'Externalip' => $hos_datas->{externalip} - + %= hidden_field 'Comment'=> $hos_datas->{comment} + %= hidden_field 'Hosttype'=> $hos_datas->{hosttype} + %= hidden_field 'Externalip' => $hos_datas->{externalip} + %end
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_hos_upd.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_hos_upd.html.ep index 6b87329..25c4455 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_hos_upd.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_hos_upd.html.ep @@ -1,76 +1,80 @@ -
+
- % my $btn = l('NEXT'); + % my $btn = l('NEXT'); %= form_for '/hostentriesd' => (method => 'POST') => begin -

+

% if ( $hos_datas->{trt} eq "ADD" ) { - %=l 'hos_CREATE_TITLE' + %=l 'hos_CREATE_TITLE' % } else { - %=l 'hos_MODIFY_TITLE' - % $btn = l('MODIFY'); + %=l 'hos_MODIFY_TITLE' + % $btn = l('MODIFY'); % } -

+

-

- %=l 'hos_HOSTNAME_DESCRIPTION' -

+

+ %=l 'hos_HOSTNAME_DESCRIPTION' +

-

- - %=l 'hos_HOSTNAME', class => "" - +

+ + %=l 'hos_HOSTNAME', class => "" + + % if ( $hos_datas->{trt} eq "ADD" ) { - % param 'Name' => $hos_datas->{name} unless param 'Name'; - %= text_field 'Name', class => "" + % param 'Name' => $hos_datas->{name} unless param 'Name'; + %= text_field 'Name', class => "" % } else { %= hidden_field 'Name' => $hos_datas->{name} - %= $hos_datas->{name}, class => "" + %= $hos_datas->{name}, class => "" % } - -

+ +

-

- - %=l 'DOMAIN', class => "" - +

+ + %=l 'DOMAIN', class => "" + + % if ( $hos_datas->{trt} eq "ADD" ) { - % param 'Domain' => $hos_datas->{domain} unless param 'Domain'; - %= select_field 'Domain', $c->domains_list(), class => "" + % param 'Domain' => $hos_datas->{domain} unless param 'Domain'; + %= select_field 'Domain', $c->domains_list(), class => "" % } else { %= hidden_field 'Domain' => $hos_datas->{domain} - %= $hos_datas->{domain}, class => "" + %= $hos_datas->{domain}, class => "" % } - -

+ +

-

- - %= $c->l('COMMENT', ''); - - % param 'Comment' => $hos_datas->{comment} unless param 'Comment'; - %= text_field 'Comment', class => "" - -

+

+ + %= $c->l('COMMENT', ''); + + + % param 'Comment' => $hos_datas->{comment} unless param 'Comment'; + %= text_field 'Comment', class => "" + +

-

- - %=l 'LOCATION', class => "" - - % param 'Hosttype' => $hos_datas->{hosttype} unless param 'Hosttype'; - %= select_field 'Hosttype', $c->hosttype_list(), class => "" - -

+

+ + %=l 'LOCATION', class => "" + + + % param 'Hosttype' => $hos_datas->{hosttype} unless param 'Hosttype'; + %= select_field 'Hosttype', $c->hosttype_list(), class => "" + +

-


- %= submit_button "$btn", class => "" -

+


+ %= submit_button "$btn", class => "" +

- %= hidden_field 'trt' => $hos_datas->{trt} - %= hidden_field 'Hostname' => $hos_datas->{hostname} - %= hidden_field 'Internalip' => $hos_datas->{internalip} - %= hidden_field 'Externalip' => $hos_datas->{externalip} - %= hidden_field 'Macaddress' => $hos_datas->{macaddress} + %= hidden_field 'trt' => $hos_datas->{trt} + %= hidden_field 'Hostname' => $hos_datas->{hostname} + %= hidden_field 'Internalip' => $hos_datas->{internalip} + %= hidden_field 'Externalip' => $hos_datas->{externalip} + %= hidden_field 'Macaddress' => $hos_datas->{macaddress} %end diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_hos_urm.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_hos_urm.html.ep index d7d11fb..0f7f737 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_hos_urm.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_hos_urm.html.ep @@ -1,37 +1,38 @@ -
- +
+ - % my $btn = l('MODIFY'); + % my $btn = l('MODIFY'); %= form_for '/hostentriesd' => (method => 'POST') => begin -

- %=l 'hos_REMOTE_PAGE_DESCRIPTION' -

+

+ %=l 'hos_REMOTE_PAGE_DESCRIPTION' +

-

- - %=l 'IP_ADDRESS_OR_FQDN', class => "" - - % param 'Externalip' => $hos_datas->{externalip} unless param 'Externalip'; - %= text_field 'Externalip', class => "" - -

+

+ + %=l 'IP_ADDRESS_OR_FQDN', class => "" + + + % param 'Externalip' => $hos_datas->{externalip} unless param 'Externalip'; + %= text_field 'Externalip', class => "" + +

-


- %= submit_button "$btn", class => "" -

+


+ %= submit_button "$btn", class => "" +

- %= hidden_field 'trt' => $hos_datas->{trt} - %= hidden_field 'Hostname' => $hos_datas->{hostname} + %= hidden_field 'trt' => $hos_datas->{trt} + %= hidden_field 'Hostname' => $hos_datas->{hostname} %= hidden_field 'Name' => $hos_datas->{name} %= hidden_field 'Domain' => $hos_datas->{domain} - %= hidden_field 'Comment'=> $hos_datas->{comment} - %= hidden_field 'Hosttype'=> $hos_datas->{hosttype} - %= hidden_field 'Internalip' => $hos_datas->{internalip} - %= hidden_field 'Macaddress' => $hos_datas->{macaddress} - + %= hidden_field 'Comment'=> $hos_datas->{comment} + %= hidden_field 'Hosttype'=> $hos_datas->{hosttype} + %= hidden_field 'Internalip' => $hos_datas->{internalip} + %= hidden_field 'Macaddress' => $hos_datas->{macaddress} + %end
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_iba_del.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_iba_del.html.ep index 53b2e05..29db2c0 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_iba_del.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_iba_del.html.ep @@ -1,22 +1,22 @@ -
+
- % my $btn = l('REMOVE'); + % my $btn = l('REMOVE'); %= form_for '/ibaysd' => (method => 'POST') => begin -

-

- %=l 'iba_REMOVE_TITLE' -

-
- %= $c->render_to_string(inline => l('iba_REMOVE_DESC', $iba_datas->{ibay}, $iba_datas->{description})); -
-

-

- %= submit_button "$btn", class => "" -

+

+

+ %=l 'iba_REMOVE_TITLE' +

+
+ %= $c->render_to_string(inline => l('iba_REMOVE_DESC', $iba_datas->{ibay}, $iba_datas->{description})); +
+

+

+ %= submit_button "$btn", class => "" +

%= hidden_field 'trt' => $iba_datas->{trt} %= hidden_field 'ibay' => $iba_datas->{ibay} - % end + % end
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_iba_list.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_iba_list.html.ep index 337bc39..98ea6ae 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_iba_list.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_iba_list.html.ep @@ -1,111 +1,113 @@ -
+
% my $btn = l('iba_ADD_IBAY'); %= form_for '/ibays' => (method => 'POST') => begin -

-
- %= submit_button "$btn", class => "" -

+

+
+ %= submit_button "$btn", class => "" +

%= hidden_field 'trt' => 'ADD'; % end -

- %=l 'iba_FIRSTPAGE_DESC' -

-

- - % my $numIbays = @$ibays; - % if ($numIbays == 0){ +

+ %=l 'iba_FIRSTPAGE_DESC' +

+

+ + % my $numIbays = @$ibays; + % if ($numIbays == 0){ %=l 'iba_NO_IBAYS' - % } else { - - - - - - - + % } else { +
- %=l 'NAME' - - %=l 'DESCRIPTION' - - %=l 'ACTION' -
+ + + + + + + + % foreach my $ibay (@$ibays) % { - % my $modifiable = $ibay->prop('Modifiable') || 'yes'; - % my $passwordable = $ibay->prop('Passwordable') || 'yes'; - % my $removable = $ibay->prop('Removable') || 'yes'; - % my $needPassword = grep { $_ eq $ibay->prop('PublicAccess') } + % my $modifiable = $ibay->prop('Modifiable') || 'yes'; + % my $passwordable = $ibay->prop('Passwordable') || 'yes'; + % my $removable = $ibay->prop('Removable') || 'yes'; + % my $needPassword = grep { $_ eq $ibay->prop('PublicAccess') } % qw(local-pw global-pw global-pw-remote); %= t td => (class => "") => $ibay->key %= t td => (class => "") => $ibay->prop('Name') - - + %}; + %} + <%= $c->render_to_string(inline => $actionModify) %> + <%= $c->render_to_string(inline => $actionResetPw)%> + <%= $c->render_to_string(inline => $actionRemove) %> + + % } - -
+ %=l 'NAME' + + %=l 'DESCRIPTION' + + %=l 'ACTION' +
- %my ($actionModify, $actionResetPw, $actionRemove) = ' '; - %if ($modifiable eq 'yes') { - %my $modify_text = l('MODIFY'); # Localized text - %my $csrf_token = "TOKEN"; # CSRF token for security - %my $ibays_entry_name = $ibay->key; # ibays_entry name extracted from the data structure - %$actionModify = qq{ + + %my ($actionModify, $actionResetPw, $actionRemove) = ' '; + %if ($modifiable eq 'yes') { + %my $modify_text = l('MODIFY'); # Localized text + %my $csrf_token = "TOKEN"; # CSRF token for security + %my $ibays_entry_name = $ibay->key; # ibays_entry name extracted from the data structure + %$actionModify = qq{ % - % + % % - %}; - %} - - %if ($passwordable eq 'yes') { - %my $password_text = l('PASSWORD_RESET'); # Localized text - %my $csrf_token = "TOKEN"; # CSRF token for security - %my $ibays_entry_name = $ibay->key; # ibays_entry name extracted from the data structure - %if ($ibay->prop('PasswordSet') ne 'yes' && $needPassword) { - %$actionResetPw = qq{ + %}; + %} + + %if ($passwordable eq 'yes') { + %my $password_text = l('PASSWORD_RESET'); # Localized text + %my $csrf_token = "TOKEN"; # CSRF token for security + %my $ibays_entry_name = $ibay->key; # ibays_entry name extracted from the data structure + %if ($ibay->prop('PasswordSet') ne 'yes' && $needPassword) { + %$actionResetPw = qq{ % - % + % % - %}; - %} else { - %$actionResetPw = qq{ + %}; + %} else { + %$actionResetPw = qq{ % - % + % % - %}; - %} - - %} + %}; + %} + + %} - %if ($removable eq 'yes') { - %my $remove_text = l('REMOVE'); # Localized text - %my $csrf_token = "TOKEN"; # CSRF token for security - %my $ibays_entry_name = $ibay->key; # ibays_entry name extracted from the data structure - %$actionRemove = qq{ + %if ($removable eq 'yes') { + %my $remove_text = l('REMOVE'); # Localized text + %my $csrf_token = "TOKEN"; # CSRF token for security + %my $ibays_entry_name = $ibay->key; # ibays_entry name extracted from the data structure + %$actionRemove = qq{ % - % + % % - %}; - %} - <%= $c->render_to_string(inline => $actionModify) %> - <%= $c->render_to_string(inline => $actionResetPw)%> - <%= $c->render_to_string(inline => $actionRemove) %> -
- <%} %> + + + <%} %>
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_iba_pwd.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_iba_pwd.html.ep index a6669c9..206c08e 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_iba_pwd.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_iba_pwd.html.ep @@ -1,42 +1,44 @@ -
+
- % my $btn = l('SAVE'); + % my $btn = l('SAVE'); %= form_for '/ibaysd' => (method => 'POST') => begin -

-

- %=l 'PASSWORD_RESET' -

- -

- %=l 'iba_PASSWORD_DESC' - %= $iba_datas->{ibay} -

- -

- - %=l 'PASSWORD_NEW', class => "" - - %= password_field 'newPass', class => "" , class="">'sme-password' - -

+

+

+ %=l 'PASSWORD_RESET' +

+ +

+ %=l 'iba_PASSWORD_DESC' + %= $iba_datas->{ibay} +

+ +

+ + %=l 'PASSWORD_NEW', class => "" + + + %= password_field 'newPass', class => "" , class="">'sme-password' + +

-

- - %=l 'PASSWORD_VERIFY_NEW', class => "" - - %= password_field 'newPassVerify', class => "", class="">'sme-password' - -

+

+ + %=l 'PASSWORD_VERIFY_NEW', class => "" + + + %= password_field 'newPassVerify', class => "", class="">'sme-password' + +

-

-

- %= submit_button "$btn", class => "" -

+

+

+ %= submit_button "$btn", class => "" +

- %= hidden_field 'trt' => $iba_datas->{trt} - %= hidden_field 'ibay' => $iba_datas->{ibay} - + %= hidden_field 'trt' => $iba_datas->{trt} + %= hidden_field 'ibay' => $iba_datas->{ibay} + % end
\ No newline at end of file diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_iba_upd.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_iba_upd.html.ep index c875251..472fb6f 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_iba_upd.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_iba_upd.html.ep @@ -1,101 +1,108 @@ -
+
- % my $btn = l('ADD'); + % my $btn = l('ADD'); %= form_for '/ibaysd' => (method => 'POST') => begin -

-

- %=l 'iba_ADD_TITLE' -

-
- %=l 'iba_NAME_FIELD_DESC' -

+

+

+ %=l 'iba_ADD_TITLE' +

+
+ %=l 'iba_NAME_FIELD_DESC' +

-

- - %=l 'iba_NAME_LABEL', class => "" - - % if ( $iba_datas->{trt} eq 'ADD' ) { - % param 'ibay' => $iba_datas->{ibay} unless param 'ibay'; - %= text_field 'ibay', class => "" - % } else { - % $btn = l('SAVE'); - %= $iba_datas->{ibay}, class => "" - % } - -

+

+ + %=l 'iba_NAME_LABEL', class => "" + + + % if ( $iba_datas->{trt} eq 'ADD' ) { + % param 'ibay' => $iba_datas->{ibay} unless param 'ibay'; + %= text_field 'ibay', class => "" + % } else { + % $btn = l('SAVE'); + %= $iba_datas->{ibay}, class => "" + % } + +

-

- - %=l 'DESCRIPTION', class => "" - - % param 'ibayDesc' => $iba_datas->{description} unless param 'ibayDesc'; - %= text_field 'ibayDesc', class => "" - -

+

+ + %=l 'DESCRIPTION', class => "" + + + % param 'ibayDesc' => $iba_datas->{description} unless param 'ibayDesc'; + %= text_field 'ibayDesc', class => "" + +

-

- - %=l 'GROUP' - - % param 'group' => $iba_datas->{group} unless param 'group'; - %= select_field 'group' => $c->group_list_m(), class => "" -
-
-

+

+ + %=l 'GROUP' + + + % param 'group' => $iba_datas->{group} unless param 'group'; + %= select_field 'group' => $c->group_list_m(), class => "" +
+
+

-

- - %=l 'iba_USER_ACCESS' - - % param 'userAccess' => $iba_datas->{userAccess} unless param 'userAccess'; - %= select_field 'userAccess' => $c->userAccess_list_m(), class => "" - -
-
-

+

+ + %=l 'iba_USER_ACCESS' + + + % param 'userAccess' => $iba_datas->{userAccess} unless param 'userAccess'; + %= select_field 'userAccess' => $c->userAccess_list_m(), class => "" + +
+
+

-

- - %=l 'iba_PUBLIC_ACCESS' - - % param 'publicAccess' => $iba_datas->{publicAccess} unless param 'publicAccess'; - %= select_field 'publicAccess' => $c->publicAccess_list_m(), class => "" -
-
-

+

+ + %=l 'iba_PUBLIC_ACCESS' + + + % param 'publicAccess' => $iba_datas->{publicAccess} unless param 'publicAccess'; + %= select_field 'publicAccess' => $c->publicAccess_list_m(), class => "" +
+
+

-

- - %=l 'iba_ALLOW_DYNAMIC_CONTENT' - - % param 'CgiBin' => $iba_datas->{CgiBin} unless param 'CgiBin'; - %= select_field 'CgiBin' => [[ (l 'DISABLED') => 'disabled'], [ (l 'ENABLED') => 'enabled']], class => "" -
-
-

+

+ + %=l 'iba_ALLOW_DYNAMIC_CONTENT' + + + % param 'CgiBin' => $iba_datas->{CgiBin} unless param 'CgiBin'; + %= select_field 'CgiBin' => [[ (l 'DISABLED') => 'disabled'], [ (l 'ENABLED') => 'enabled']], class => "" +
+
+

-

- - %=l 'iba_HTTPS_Only' - - % param 'SSL' => $iba_datas->{SSL} unless param 'SSL'; - %= select_field 'SSL' => [[ (l 'DISABLED') => 'disabled'], [ (l 'ENABLED') => 'enabled']], class => "" -
-
-

+

+ + %=l 'iba_HTTPS_Only' + + + % param 'SSL' => $iba_datas->{SSL} unless param 'SSL'; + %= select_field 'SSL' => [[ (l 'DISABLED') => 'disabled'], [ (l 'ENABLED') => 'enabled']], class => "" +
+
+

-

-

- %= submit_button $btn, class => "" -

+

+

+ %= submit_button $btn, class => "" +

- %= hidden_field 'trt' => $iba_datas->{trt} - % if ( $iba_datas->{trt} eq 'UPD' ) { - %= hidden_field 'ibay' => $iba_datas->{ibay} - % } - + %= hidden_field 'trt' => $iba_datas->{trt} + % if ( $iba_datas->{trt} eq 'UPD' ) { + %= hidden_field 'ibay' => $iba_datas->{ibay} + % } + % end
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_info.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_info.html.ep index e57606e..eacf529 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_info.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_info.html.ep @@ -1,25 +1,25 @@ <% use POSIX qw(strftime); %>
<% if (! $c->session->{PwdSet} ) { %> -
+
Warning: you have not yet changed the default system password.
<% } %> <% if ( $c->is_unsafe ) { %> -
+
Warning: a reconfigure and reboot is required before proceeding! Failure to do so now may leave your system in an unknown state!
<% } %> <% if ( $c->session->{Access} eq 'public' && ((config->{debug} ne '0') || (config->{mode} ne 'production')) ) { %> -
+
Warning: Development or debug mode enabled AND public access is offered !
<% } %> <% my $curdate = strftime '%Y%m%d', localtime; %> <% if ( "$curdate" >= "20290531" ) { %> -
+
URGENT NOTICE: As per May 31st 2029, SME Server 11 is obsolete, and potentially INSECURE. NO support will be offered for any issue found with this installed version. Please migrate IMMEDIATELY to Koozali SME Server 12 or higher version. Failure to upgrade may lead to the compromise of this server. -
Please, consult https://wiki.koozali.org/SME_Server:Download to get the latest version +
Please, consult https://wiki.koozali.org/SME_Server:Download to get the latest version
<% } %>
\ No newline at end of file diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_js_imports.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_js_imports.html.ep index d5c2054..10fad95 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_js_imports.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_js_imports.html.ep @@ -1,6 +1,11 @@ - + + + + + % content_for 'js_toggleMenu' => begin + %= javascript begin $(document).ready(function() { @@ -98,4 +104,6 @@ }); % end -% end \ No newline at end of file +% end + + \ No newline at end of file diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_lets_CHECKALLDOMAINS.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_lets_CHECKALLDOMAINS.html.ep index 7a86b29..776a530 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_lets_CHECKALLDOMAINS.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_lets_CHECKALLDOMAINS.html.ep @@ -1,17 +1,19 @@ %# %# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-12-01 15:22:43 %# -
+
+ % if (config->{debug} == 1) {
 			%= dumper $lets_data
 		
% } + % my $btn = l('lets_APPLY'); %= form_for "letsencryptu" => (method => 'POST') => begin % param 'trt' => $lets_data->{trt} unless param 'trt'; @@ -24,7 +26,8 @@ %=l('lets_All_domains_check_result') - + + % param 'AllDomainsCheck' => $lets_data->{AllDomainsCheck} unless param 'AllDomainsCheck'; %= text_area 'AllDomainsCheck', cols=>40, rows=>10, Readonly=>'true'
@@ -38,8 +41,7 @@ %}; <%= $c->render_to_string(inline => $actionBack) %> - - + %# Probably finally by a submit. %end
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_lets_CHECKALLENABLEDDOMAINS.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_lets_CHECKALLENABLEDDOMAINS.html.ep index b163e2c..c629b14 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_lets_CHECKALLENABLEDDOMAINS.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_lets_CHECKALLENABLEDDOMAINS.html.ep @@ -1,17 +1,19 @@ %# %# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-12-01 15:22:43 %# -
+
+ % if (config->{debug} == 1) {
 			%= dumper $lets_data
 		
% } + % my $btn = l('lets_APPLY'); %= form_for "letsencryptu" => (method => 'POST') => begin % param 'trt' => $lets_data->{trt} unless param 'trt'; @@ -24,11 +26,13 @@ %=l('lets_Enabled_domains_check_result') - + + % param 'EnabledDomainsCheck' => $lets_data->{EnabledDomainsCheck} unless param 'EnabledDomainsCheck'; %= text_area 'EnabledDomainsCheck', cols=>40, rows=>10, Readonly=>'true' -
- + +
+ %my $back_text = l('lets_Back'); # Localized text %my $actionBack = qq{ diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_lets_CHECKONEDOMAIN.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_lets_CHECKONEDOMAIN.html.ep index 92a0ca1..bdc86a7 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_lets_CHECKONEDOMAIN.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_lets_CHECKONEDOMAIN.html.ep @@ -1,17 +1,19 @@ %# %# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-12-01 15:22:43 %# -
+
+ % if (config->{debug} == 1) {
 			%= dumper $lets_data
 		
% } + % my $btn = l('lets_APPLY'); %= form_for "letsencryptu" => (method => 'POST') => begin % param 'trt' => $lets_data->{trt} unless param 'trt'; @@ -24,17 +26,22 @@

%=l('lets_Domains_name') - + + % param 'OneDomainToCheck' => $lets_data->{OneDomainToCheck} unless param 'OneDomainToCheck'; %= text_field 'OneDomainToCheck', size => '50', class => "" , pattern=>'.*' , placeholder=>'OneDomainToCheck', Readonly=>'true' -

+
+ +

%=l('lets_One_domain_check_result') - + + % param 'OneDomainsCheck' => $lets_data->{OneDomainsCheck} unless param 'OneDomainsCheck'; %= text_area 'OneDomainsCheck', cols=>40, rows=>10, Readonly=>'true' -
+ +
%my $back_text = l('lets_Back'); # Localized text diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_lets_LIST.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_lets_LIST.html.ep index 47d0586..13e8b4a 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_lets_LIST.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_lets_LIST.html.ep @@ -1,26 +1,27 @@ %# %# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-12-01 15:22:43 %# -
+
+ % if (config->{debug} == 1) {
 			%= dumper $lets_data
 		
% } + % my $btn = l('lets_APPLY'); %= form_for "letsencryptu" => (method => 'POST') => begin % param 'trt' => $lets_data->{trt} unless param 'trt'; %= hidden_field 'trt' => $lets_data->{trt} %# Inputs etc in here. -
- - +
+ %= l('lets_CONFIG') @@ -44,53 +45,77 @@

<%=l('lets_For_this_Server')%>

-

+

+ %=l('lets_Internal_IP') - + + % param 'InternalIP' => $lets_data->{InternalIP} unless param 'InternalIP'; %= text_field 'InternalIP', size => '50', class => "" , pattern=>'.*' , placeholder=>'InternalIP', Readonly=>'true' -

+
+ +

-

+

+ %=l('lets_External_Interface_IP') - + + % param 'ExternalIP' => $lets_data->{ExternalIP} unless param 'ExternalIP'; %= text_field 'ExternalIP', size => '50', class => "" , pattern=>'.*' , placeholder=>'ExternalIP', Readonly=>'true' -

+
+ +

-

+

+ %=l('lets_Internet_IP') - + + % param 'InternetIP' => $lets_data->{InternetIP} unless param 'InternetIP'; %= text_field 'InternetIP', size => '50', class => "" , pattern=>'.*' , placeholder=>'InternetIP', Readonly=>'true' -

+
+ +

<%=l('lets_Current_certificate_details')%>

-

+

+ %=l('lets_Issuer') - + + % param 'Issuer' => $lets_data->{Issuer} unless param 'Issuer'; %= text_field 'Issuer', size => '50', class => "" , pattern=>'.*' , placeholder=>'Issuer', Readonly=>'true' -

+
+ +

-

+

+ %=l('lets_Expiry') - + + % param 'Expiry' => $lets_data->{Expiry} unless param 'Expiry'; %= text_field 'Expiry', size => '50', class => "" , pattern=>'.*' , placeholder=>'Expiry', Readonly=>'true' -

+
+ +

-

+

+ %=l('lets_Not_Before') % param 'NotBefore' => $lets_data->{NotBefore} unless param 'NotBefore'; %= text_field 'NotBefore', size => '50', class => "" , pattern=>'.*' , placeholder=>'NotBefore', Readonly=>'true' -

+
+ +

<%=l('lets_List_of_Domains_and_Hosts')%>

-
+
+
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_lets_PARAMS.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_lets_PARAMS.html.ep index babcd71..76cf3de 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_lets_PARAMS.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_lets_PARAMS.html.ep @@ -1,17 +1,19 @@ %# %# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-12-01 15:22:43 %# -
+
+ % if (config->{debug} == 1) {
 			%= dumper $lets_data
 		
% } + % my $btn = l('lets_APPLY'); %= form_for "letsencryptu" => (method => 'POST') => begin % param 'trt' => $lets_data->{trt} unless param 'trt'; @@ -24,75 +26,103 @@ %=l('lets_CONFIG_LETSENCRYPT')

-

+

+ %=l('lets_SERVICE_STATUS') %# my @status_options = [['Disabled' => 'disabled'], ['Enabled' => 'enabled'], ['TEST' => 'test']]; % my @status_options = selected_field([['Disabled' => 'disabled'], ['Enabled' => 'enabled'], ['TEST' => 'test']], $lets_data->{status}); %# param 'status' => $lets_data->{status} unless param 'status'; %= select_field 'status' => @status_options, class => "" -

+
+ +

-

+

+ %=l('lets_HOOKSCRIPT_STATUS') - + + % my @hookScript_options = [['Disabled' => 'disabled'], ['Enabled' => 'enabled']]; % param 'hookScript' => $lets_data->{hookScript} unless param 'hookScript'; %= select_field 'hookScript' => @hookScript_options, class => "" -

+
+ +

-

+

+ %=l('lets_HOSTOVERRIDE_STATUS') - + + % my @hostOverride_options = [['Disabled' => 'disabled'], ['Yes' => 'yes']]; % param 'hostOverride' => $lets_data->{hostOverride} unless param 'hostOverride'; %= select_field 'hostOverride' => @hostOverride_options, class => "" -

+
+ +

-

+

+ %=l('lets_ACCEPT_TERMS_STATUS') - + + % my @ACCEPT_TERMS_options = [['Disabled' => 'disabled'], ['Yes' => 'yes']]; % param 'ACCEPT_TERMS' => $lets_data->{ACCEPT_TERMS} unless param 'ACCEPT_TERMS'; %= select_field 'ACCEPT_TERMS' => @ACCEPT_TERMS_options, class => "" -

- -

+
+
+

+ +

+ %=l('lets_API_STATUS') % my @API_options = [['2' => '2']]; % param 'API' => $lets_data->{API} unless param 'API'; %= select_field 'API' => @API_options, class => "" -

- -

+
+
+

+ +

+ %=l('lets_KEYSIZE_STATUS') - + + % my @keysize_options = [['2048' => '2048'], ['3072' => '3072'], ['4096' => '4096']]; % param 'keysize' => $lets_data->{keysize} unless param 'keysize'; %= select_field 'keysize' => @keysize_options, class => "" -

- -

+
+
+

+ +

+ %=l('lets_CONFIGUREMODE_STATUS') - + + % my @configure_options = [['ALL' => 'all'], ['Domains' => 'domains'], ['HOSTS' => 'hosts'], ['NONE' => 'none']]; % param 'configure' => $lets_data->{configure} unless param 'configure'; %= select_field 'configure' => @configure_options, class => "" -

- -

+
+
+

+ +

+ %=l('lets_EMAIL') - + + % param 'email' => $lets_data->{email} unless param 'email'; %=email_field 'email', class => "" -

- - + +

+ %= submit_button l('lets_Save'), class => "" - + %# Probably finally by a submit. %end
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_ln_add.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_ln_add.html.ep index 97fbd39..d79b539 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_ln_add.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_ln_add.html.ep @@ -1,4 +1,4 @@ -
+
% my $retref= $c->stash("ret"); % my %ret; @@ -43,23 +43,29 @@

%= $c->render_to_string(inline => l('ln_ADD_DESC')); -


+

+
%=l "NETWORK" - + + %=text_field 'networkAddress' -

+ +

%=l "ln_SUBNET_MASK" - + + %=text_field 'networkMask' -

+ +

%=l "ROUTER" %=text_field 'networkRouter' -

+ +


%= submit_button "$btn", class => "" diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_ln_del.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_ln_del.html.ep index fff19aa..aa2573e 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_ln_del.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_ln_del.html.ep @@ -1,4 +1,4 @@ -

+
% my $btn = l('REMOVE'); % my $deletehosts = $ln_datas->{deletehosts}; @@ -13,30 +13,36 @@ %= dumper $deletehosts

% } - + %= form_for '/localnetworkse' => (method => 'POST') => begin

%=l "ln_REMOVE_TITLE"

- %=l "ln_REMOVE_DESC" -


+ %=l "ln_REMOVE_DESC" +

+
%=l "NETWORK" - + + %=$localnetwork -

+ +

%=l "ln_SUBNET_MASK" - + + %= $subnet -

+ +

%=l "ROUTER" %= $router -

+ +

% if($deletehosts) {
%=$c->l("ln_REMOVE_HOSTS_DESC") @@ -46,14 +52,14 @@ %=check_box deletehost=>1, checked=>1 -

+ +

%} %= hidden_field localnetwork=>$localnetwork


%= submit_button "$btn", class => ""

- %end
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_ln_list.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_ln_list.html.ep index 5e5aff0..91d007e 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_ln_list.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_ln_list.html.ep @@ -1,4 +1,4 @@ -
+
% my $btn = l('ln_LOCALNETWORK_ADD'); %= form_for '/localnetworksa' => (method => 'POST') => begin @@ -50,7 +50,8 @@ %=l 'ln_LOCAL_NETWORK_NONE' % } else {
-
<%=l('lets_Domain_name_/_HOSTNAME')%>
+
+ - + + % foreach my $localnetwork (@$localnetworks ) % { % my ($num_hosts) = esmith::util::computeHostRange( $localnetwork->key, $localnetwork->prop('Mask') ); @@ -101,6 +103,6 @@ % }
%=l 'NETWORK' @@ -71,7 +72,8 @@ %=l 'ACTION'
- %= hidden_field 'trt' => $ln_datas->{trt} + %= hidden_field 'trt' => $ln_datas->{trt} %}
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_module.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_module.html.ep index eca49ff..8996176 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_module.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_module.html.ep @@ -1,4 +1,4 @@ -% layout 'default', title => 'Sme server 2 - Support'; +% layout 'AdminLTE', title => 'Sme server 2 - Support'; % content_for 'head' => begin %= include 'partials/_head' @@ -23,7 +23,7 @@ % content_for 'end' => begin
- content_end + content_end
% end @@ -37,6 +37,6 @@ Dignissim dolus loquor lucidus probo proprius tation torqueo. Abluo luptatum qui Aliquam autem blandit decet in jus loquor quidne saluto te. Eu meus voco wisi. Abico defui euismod huic jumentum lobortis mos vulpes. Causa eros feugiat hendrerit illum luctus nimis quidem valetudo. Elit ex obruo tation usitas vero. Abigo dolus hendrerit huic iriure jumentum letalis lobortis melior nulla. Blandit causa immitto iriure metuo nutus pagus ut voco.

- %= link_to Welcome => '/' + %= link_to Welcome => '/'

diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_nav_menu.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_nav_menu.html.ep deleted file mode 100644 index a501919..0000000 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_nav_menu.html.ep +++ /dev/null @@ -1,35 +0,0 @@ -% use SrvMngr qw( getNavigation ); -% my %nav = %{SrvMngr->getNavigation( $c->languages(), 'N' )}; - -
- -
- -% my $cc = 200; -% foreach my $h (sort { ($nav{$a}{'WEIGHT'}/$nav{$a}{'COUNT'}) -% <=> ($nav{$b}{'WEIGHT'}/$nav{$b}{'COUNT'}) } keys %nav) { -% - - -
-% my ($classNew, $target, $href) = ''; -% foreach (sort { $a->{'WEIGHT'} <=> $b->{'WEIGHT'} } @{$nav{$h}{'DESCRIPTIONS'}}) { - -% next if ($_->{'MENUCAT'} ne 'N' ); # menu Navigation - -% if ( $_->{'FILENAME'} =~ m/^2\// ) { -% $target = '_self'; -% (my $file2 = $_->{'FILENAME'}) =~ s|^2/||; -% $href = '/smanager/' . $file2; -% } else { -% $target = 'main'; -% $href = '/server-manager' . $_->{'FILENAME'}; -% } - -% $cc++; -% } -
- -% } -
-
\ No newline at end of file diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_navig2.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_navig2.html.ep deleted file mode 100644 index 8bc9963..0000000 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_navig2.html.ep +++ /dev/null @@ -1,37 +0,0 @@ -% use SrvMngr qw( getNavigation ); -% my %nav = %{SrvMngr->getNavigation( $c->languages(), 'A' )}; - -
- -
- -% my $cc = 100; -% foreach my $h (sort { ($nav{$a}{'WEIGHT'}/$nav{$a}{'COUNT'}) -% <=> ($nav{$b}{'WEIGHT'}/$nav{$b}{'COUNT'}) } keys %nav) { - -
-% my ($classNew, $target, $href) = ''; -% foreach (sort { $a->{'WEIGHT'} <=> $b->{'WEIGHT'} } @{$nav{$h}{'DESCRIPTIONS'}}) { - -% next if ($_->{'MENUCAT'} ne 'A' ); # menu Admin - -% if ( $_->{'FILENAME'} =~ m/^2\// ) { -% $target = '_self'; -% (my $file2 = $_->{'FILENAME'}) =~ s|^2/||; -% $href = '/smanager/' . $file2; -% } else { -% $target = 'main'; -%# $href = '/server-manager' . $_->{'FILENAME'}; -%# $href = $c->getlegacyurl($c,'/server-manager' . $_->{'FILENAME'}); -% my $host = $c->req->url->to_abs->host; -% $href = "/smanager/legacypanel?url=https://$host/server-manager" . $_->{'FILENAME'}; -% -% } - -% $cc++; -% } -
-% } - -
-
\ No newline at end of file diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_nut_CONFIG.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_nut_CONFIG.html.ep index 8db798e..f4663d3 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_nut_CONFIG.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_nut_CONFIG.html.ep @@ -1,17 +1,19 @@ %# %# Generated by SM2Gen version:0.9(20Jan2025) Chameleon version:4.5.4 On Python:3.12.3 at 2025-01-20 16:21:33 %# -
+
% if (config->{debug} == 1) {
 			%= dumper $nut_data
 		
% } + % my $btn = l('nut_APPLY'); %= form_for "nutupsu" => (method => 'POST') => begin % param 'trt' => $nut_data->{trt} unless param 'trt'; @@ -20,49 +22,67 @@

<%=l('nut_Manage_Nutups-config_settings:')%>

-

+

+ %=l('nut_Nut_status') - + + %# my @status_options = [['Disabled' => 'disabled'], ['Enabled' => 'enabled']]; %# param 'status' => $nut_data->{status} unless param 'status'; % my @status_options = selected_field([['Disabled' => 'disabled'], ['Enabled' => 'enabled']], $nut_data->{status}); %= select_field 'status' => @status_options, class => "", id => "" -

+
+ +

-

+

+ %=l('nut_Nut_mode') - + + % my @Nutmode_options = [['Standalone' => 'standalone'], ['Net Server' => 'netserver'], ['Net Client ' => 'netclient']]; % param 'Nutmode' => $nut_data->{Nutmode} unless param 'Nutmode'; %= select_field 'Nutmode' => @Nutmode_options, class => "", id => "" -

+
+ +

<%=l('nut_if_Net_Server')%>

-

+

+ %=l('nut_MasterUPS_UPSNAME@IP') - + + % param 'MasterUPS_Name' => $nut_data->{MasterUPS_Name} unless param 'MasterUPS_Name'; %= text_field 'MasterUPS_Name', size => '50', class => "" , pattern=>'.*' , placeholder=>'ups@localhost' -

- -

+
+
+

+ +

+ %=l('nut_MasterUPS_Password') - + + % param 'MasterUPS_Password' => $nut_data->{MasterUPS_Password} unless param 'MasterUPS_Password'; %=password_field 'MasterUPS_Password', class => "" -

- -

+ +

+ +

+ %=l('nut_UPS_Model') - + + % my @UPS_Model_options = $c->get_model_options(); % param 'UPS_Model' => $nut_data->{UPS_Model} unless param 'UPS_Model'; %= select_field 'UPS_Model' => \@UPS_Model_options, class => "", id => "" -

- +
+

+

%=l('nut_UPS_Device') @@ -73,43 +93,62 @@

<%=l('nut_if_Net_Client')%>

-

+

+ %=l('nut_SlaveUPS_UPSNAME@IP') - + + % param 'SlaveUPS_Name' => $nut_data->{SlaveUPS_Name} unless param 'SlaveUPS_Name'; %= text_field 'SlaveUPS_Name', size => '50', class => "" , pattern=>'.*' , placeholder=>'upsname@IP' -

+
+ +

-

+

+ %=l('nut_SlaveUPS_Password') - + + % param 'SlaveUPS_Password' => $nut_data->{SlaveUPS_Password} unless param 'SlaveUPS_Password'; %=password_field 'SlaveUPS_Password', class => "" -

+ +

`

<%=l('nut_if_genericups')%>

-

+

+ %=l('nut_UPS_Generic_Type') - + + % param 'UPS_gen_Type' => $nut_data->{UPS_gen_Type} unless param 'UPS_gen_Type'; %= text_field 'UPS_gen_Type', size => '50', class => "" , pattern=>'.*' , placeholder=>'UPS_gen_Type' -

+
+ +

-

+

+ %=l('nut_UPS_Generic_Manufacturer') - + + % param 'UPS_gen_Mfr' => $nut_data->{UPS_gen_Mfr} unless param 'UPS_gen_Mfr'; %= text_field 'UPS_gen_Mfr', size => '50', class => "" , pattern=>'.*' , placeholder=>'UPS_gen_Mfr' -

+
+ +

-

+

+ %=l('nut_UPS_Generic_Model') - + + % param 'UPS_gen_Model' => $nut_data->{UPS_gen_Model} unless param 'UPS_gen_Model'; %= text_field 'UPS_gen_Model', size => '50', class => "" , pattern=>'.*' , placeholder=>'UPS_gen_Model' -

+
+ +

`
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_nut_STATUS.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_nut_STATUS.html.ep index 0fc2c22..ccc4250 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_nut_STATUS.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_nut_STATUS.html.ep @@ -1,17 +1,19 @@ %# %# Generated by SM2Gen version:0.9(20Jan2025) Chameleon version:4.5.4 On Python:3.12.3 at 2025-01-20 16:21:33 %# -
+
% if (config->{debug} == 1) {
 			%= dumper $nut_data
 		
% } + % my $btn = l('nut_APPLY'); %= form_for "nutupsu" => (method => 'POST') => begin % param 'trt' => $nut_data->{trt} unless param 'trt'; @@ -39,10 +41,12 @@ %= include 'partials/_nut_UPS_STATUS' diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_nut_UPS_STATUS.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_nut_UPS_STATUS.html.ep index 95c3997..756e8d0 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_nut_UPS_STATUS.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_nut_UPS_STATUS.html.ep @@ -1,10 +1,9 @@

UPS Status

%= stylesheet '/css/nut_ups-status-page.css' -
-
-
+
+

Device Information

- +
@@ -12,9 +11,9 @@
Manufacturer:<%= $nut_data->{'ups_data'}->{'device.mfr'} %>
Model:<%= $nut_data->{'ups_data'}->{'device.model'} %>
Serial:<%= $nut_data->{'ups_data'}->{'device.serial'} %>
-
+

Battery Status

- +
@@ -22,9 +21,9 @@
Charge:<%= $nut_data->{'ups_data'}->{'battery.charge'} %>%
Runtime:<%= sprintf("%.2f", $nut_data->{'ups_data'}->{'battery.runtime'} / 60) %> minutes
Voltage:<%= $nut_data->{'ups_data'}->{'battery.voltage'} %>V
-
+

Input Power

- +
@@ -33,9 +32,9 @@
Voltage:<%= $nut_data->{'ups_data'}->{'input.voltage'} %>V
Nominal Voltage:<%= $nut_data->{'ups_data'}->{'input.voltage.nominal'} %>V
Sensitivity:<%= $nut_data->{'ups_data'}->{'input.sensitivity'} %>
-
+

UPS Status

- +
@@ -43,5 +42,4 @@
Status:<%= $nut_data->{'ups_data'}->{'ups.status'} %>
Load:<%= $nut_data->{'ups_data'}->{'ups.load'} %>%
Beeper:<%= $nut_data->{'ups_data'}->{'ups.beeper.status'} %>
Test Result:<%= $nut_data->{'ups_data'}->{'ups.test.result'} %>
-
\ No newline at end of file diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_pf_add.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_pf_add.html.ep index 8caef72..eac15b4 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_pf_add.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_pf_add.html.ep @@ -1,4 +1,4 @@ -
+
% my $retref= $c->stash("ret"); % my %ret; @@ -42,42 +42,49 @@ %=l "pf_CREATE_RULE"

- %=l "pf_SUMMARY_ADD_DESC" + %=l "pf_SUMMARY_ADD_DESC"


- %=l "pf_LABEL_PROTOCOL" - + %=l "pf_LABEL_PROTOCOL" + + %=select_field 'proto'=>["TCP","UDP"]

%=l "pf_LABEL_SOURCE_PORT" - + + %=text_field 'sport' -

+ +

%=l "pf_LABEL_DESTINATION_PORT" %=text_field 'dport' -

+ +

%=l "pf_LABEL_DESTINATION_HOST" %=text_field 'dhost' -

+ +

%=l "pf_ALLOW_HOSTS" %=text_field 'allow' -

+ +

%=l "pf_RULE_COMMENT" %=text_field 'cmmnt' -

+ +


%= submit_button "$btn", class => "" diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_pf_del.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_pf_del.html.ep index 589b527..b2c5c92 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_pf_del.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_pf_del.html.ep @@ -1,4 +1,4 @@ -

+
% my $btn = l('REMOVE'); % my $proto = $pf_datas->{proto}; @@ -22,38 +22,45 @@


%=l "pf_LABEL_PROTOCOL" - + + %=$proto

%=l "pf_LABEL_SOURCE_PORT" - + + %=$sport -

+ +

%=l "pf_LABEL_DESTINATION_HOST" %=$dport -

+ +

%=l "pf_LABEL_DESTINATION_PORT" %=$dhost -

+ +

%=l "pf_RULE_COMMENT" %=$cmmnt -

+ +

%=l "pf_ALLOW_HOSTS" %=$allow -

+ +

%#} %= hidden_field sport=>$sport %= hidden_field proto=>$proto diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_pf_list.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_pf_list.html.ep index 7525f1b..8766f8d 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_pf_list.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_pf_list.html.ep @@ -1,4 +1,4 @@ -
+
% my $btn = l('pf_CREATE_RULE'); %= form_for '/portforwardinga' => (method => 'POST') => begin @@ -49,7 +49,8 @@
%=l 'pf_SHOW_FORWARDS'

- +
+ - + + % my %forwards = (); % $forwards{TCP} = $tcpforwards; % $forwards{UDP} = $udpforwards; @@ -115,4 +117,4 @@
%=l 'pf_LABEL_PROTOCOL' @@ -73,7 +74,8 @@ %=l 'ACTION'
%= hidden_field 'trt' => $pf_datas->{trt} -
\ No newline at end of file +
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_prt_add.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_prt_add.html.ep index 5c15814..6e94535 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_prt_add.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_prt_add.html.ep @@ -1,4 +1,4 @@ -
+
% my $btn = l('ADD'); @@ -6,14 +6,17 @@

%=l 'prt_CREATE_NEW_PRINTER' -


+
+
%=l 'prt_CREATE_NEW_DESC' -


+

+

%=l 'prt_PRINTER_NAME', class => "" - + + %= text_field 'Name', class => ""

@@ -21,7 +24,8 @@

%=l 'DESCRIPTION_BRIEF', class => "" - + + %= text_field 'Description', class => ""

@@ -29,7 +33,8 @@

%=l 'LOCATION', class => "" - + + %= select_field 'Location' => $c->printerLocation_list(), class => ""

diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_prt_del.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_prt_del.html.ep index 664741a..95f0842 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_prt_del.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_prt_del.html.ep @@ -1,6 +1,4 @@ -
- - +
% my $btn = l('REMOVE'); %= form_for '/printers2' => (method => 'POST') => begin

diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_prt_list.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_prt_list.html.ep index 8166868..438d4eb 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_prt_list.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_prt_list.html.ep @@ -1,5 +1,4 @@ -

- +
% my $btn = l('prt_INITIAL_BTN'); @@ -11,7 +10,7 @@
%= submit_button "$btn", class => ""

- % end + % end

@@ -22,7 +21,8 @@ % if ($numPrinters == 0){ %=l 'prt_NO_PRINTERS' % } else { - +
+ - + + % foreach my $printer (@$printerDrivers) % { % my $address = ($printer->prop('Location') eq 'remote') diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_prt_net.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_prt_net.html.ep index 32078fd..d738f4b 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_prt_net.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_prt_net.html.ep @@ -1,4 +1,4 @@ -
+
% my $btn = l('ADD'); @@ -15,7 +15,8 @@

%=l 'prt_HOSTNAME_OR_IP', class => "" - + + %= text_field 'Address', class => ""

@@ -23,7 +24,8 @@

%=l 'prt_REMOTE_NAME_DESC', class => "" - + + %= text_field 'RemoteName' => 'raw', class => ""

diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_pse_add.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_pse_add.html.ep index 0f047e3..c8c9ae6 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_pse_add.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_pse_add.html.ep @@ -1,39 +1,41 @@ -
+
- % my $btn = l('ADD'); + % my $btn = l('ADD'); %= form_for '/pseudonyms2' => (method => 'POST') => begin -

-

- %=l 'pse_TITLE_CREATE' -

-
- %= $c->render_to_string(inline => l('pse_VALID_PSEUDONYM_NAMES')); -

+

+

+ %=l 'pse_TITLE_CREATE' +

+
+ %= $c->render_to_string(inline => l('pse_VALID_PSEUDONYM_NAMES')); +

-

- - %=l 'pse_PSEUDONYM_NAME', class => "" - - %= text_field 'Pseudonym', class => "" - -

+

+ + %=l 'pse_PSEUDONYM_NAME', class => "" + + + %= text_field 'Pseudonym', class => "" + +

-

- - %=l 'pse_SELECT_ACCOUNT', class => "" - - %= select_field 'Account' => $c->existing_accounts_list(), class => "" - -

+

+ + %=l 'pse_SELECT_ACCOUNT', class => "" + + + %= select_field 'Account' => $c->existing_accounts_list(), class => "" + +

-

-

- %= submit_button "$btn", class => "" -

+

+

+ %= submit_button "$btn", class => "" +

- %= hidden_field 'trt' => $pse_datas->{trt} - + %= hidden_field 'trt' => $pse_datas->{trt} + % end
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_pse_del.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_pse_del.html.ep index 5ff26cc..8776a92 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_pse_del.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_pse_del.html.ep @@ -1,21 +1,21 @@ -
+
- % my $btn = l('REMOVE'); + % my $btn = l('REMOVE'); %= form_for '/pseudonyms2' => (method => 'POST') => begin -

-

- %=l 'pse_REMOVE_PSEUDONYM' -

+

+

+ %=l 'pse_REMOVE_PSEUDONYM' +

-

- %= $c->render_to_string(inline => l('pse_ABOUT_TO_REMOVE', $pse_datas->{pseudonym})); +

+ %= $c->render_to_string(inline => l('pse_ABOUT_TO_REMOVE', $pse_datas->{pseudonym})); -

+

-

-
- %= submit_button "$btn", class => "" -

+

+
+ %= submit_button "$btn", class => "" +

%= hidden_field 'trt' => $pse_datas->{trt} %= hidden_field 'Pseudonym' => $pse_datas->{pseudonym} diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_pse_list.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_pse_list.html.ep index 4cba687..58971ee 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_pse_list.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_pse_list.html.ep @@ -1,4 +1,4 @@ -
+
% my $btn = l('pse_CLICK_TO_CREATE'); @@ -8,89 +8,91 @@ %= hidden_field 'trt' => 'ADD' -


- %= submit_button "$btn", class => "" -

- +


+ %= submit_button "$btn", class => "" +

+ % end -

- %=l 'pse_CURRENT_PSEUDONYMS' -


- % my $numPseudonyms = @$pseudonyms; - % if ($numPseudonyms == 0){ +

+ %=l 'pse_CURRENT_PSEUDONYMS' +


+ % my $numPseudonyms = @$pseudonyms; + % if ($numPseudonyms == 0){ %=l 'pse_ACCOUNT_PSEUDONYM_NONE' - % } else { -
%=l 'NAME' @@ -43,7 +43,8 @@ %=l 'ACTION'
- - - - - - - + % } else { +
- %=l 'pse_PSEUDONYM' - - %=l 'pse_USER_OR_GROUP' - - %=l 'ACTION' -
+ + + + + + + + + + % foreach my $pseudonym ( @$pseudonyms ) % { - % my $modifiable = $pseudonym->prop('Changeable') || 'yes'; - % my $removable = $pseudonym->prop('Removable') || 'yes'; + % my $modifiable = $pseudonym->prop('Changeable') || 'yes'; + % my $removable = $pseudonym->prop('Removable') || 'yes'; % my $account = $pseudonym->prop('Account'); % $account = "Administrator" if ($account eq "admin"); - % $account = $c->l("pse_EVERYONE") if ($account eq "shared"); + % $account = $c->l("pse_EVERYONE") if ($account eq "shared"); - % my $visible = $pseudonym->prop('Visible'); - % $account .= $c->l("pse_LOCAL_ONLY") - % if (defined $visible && $visible eq "internal"); + % my $visible = $pseudonym->prop('Visible'); + % $account .= $c->l("pse_LOCAL_ONLY") + % if (defined $visible && $visible eq "internal"); %= t td => (class => "") => $pseudonym->key %= t td => (class => "") => $account - - + + % } - -
+ %=l 'pse_PSEUDONYM' + + %=l 'pse_USER_OR_GROUP' + + %=l 'ACTION' +
- %my ($actionModify, $actionRemove) = ' '; - %if ($modifiable eq 'yes') { - %my $modify_text = l('MODIFY'); # Localized text - %my $csrf_token = "TOKEN"; # CSRF token for security - %my $pseudonyms_entry_name = $pseudonym->key; # pseudonyms_entry name extracted from the data structure - %$actionModify = qq{ + + %my ($actionModify, $actionRemove) = ' '; + %if ($modifiable eq 'yes') { + %my $modify_text = l('MODIFY'); # Localized text + %my $csrf_token = "TOKEN"; # CSRF token for security + %my $pseudonyms_entry_name = $pseudonym->key; # pseudonyms_entry name extracted from the data structure + %$actionModify = qq{ % - % + % % - %}; - %} + %}; + %} - %if ($removable eq 'yes') { - %my $remove_text = l('REMOVE'); # Localized text - %my $csrf_token = "TOKEN"; # CSRF token for security - %my $pseudonyms_entry_name = $pseudonym->key; # pseudonyms_entry name extracted from the data structure - %$actionRemove = qq{ + %if ($removable eq 'yes') { + %my $remove_text = l('REMOVE'); # Localized text + %my $csrf_token = "TOKEN"; # CSRF token for security + %my $pseudonyms_entry_name = $pseudonym->key; # pseudonyms_entry name extracted from the data structure + %$actionRemove = qq{ % - % + % % - %}; - %} - <%= $c->render_to_string(inline => $actionModify) %> <%= $c->render_to_string(inline => $actionRemove) %> + %}; + %} + <%= $c->render_to_string(inline => $actionModify) %> <%= $c->render_to_string(inline => $actionRemove) %> -
- <%} %> -

- + + + <%} %> +

diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_pse_upd.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_pse_upd.html.ep index 11d58e1..1fce7c8 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_pse_upd.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_pse_upd.html.ep @@ -1,53 +1,56 @@ -
+
- % my $btn = l('SAVE'); + % my $btn = l('SAVE'); %= form_for '/pseudonyms2' => (method => 'POST') => begin -

-

- %=l 'pse_MODIFY_PSEUDONYM' -

-
- %=l 'pse_DESC_PSEUDONYM_NAME' -

+

+

+ %=l 'pse_MODIFY_PSEUDONYM' +

+
+ %=l 'pse_DESC_PSEUDONYM_NAME' +

-

- - %=l 'pse_PSEUDONYM_NAME', class => "" - - %= $pse_datas->{pseudonym}, class => "" - -

+

+ + %=l 'pse_PSEUDONYM_NAME', class => "" + + + %= $pse_datas->{pseudonym}, class => "" + +

-

- - %=l 'pse_SELECT_ACCOUNT', class => "" - - % param 'Account' => $pse_datas->{account} unless param 'Account'; - %= select_field 'Account' => $c->existing_accounts_list(), class => "" - -

+

+ + %=l 'pse_SELECT_ACCOUNT', class => "" + + + % param 'Account' => $pse_datas->{account} unless param 'Account'; + %= select_field 'Account' => $c->existing_accounts_list(), class => "" + +

%if ( $c->is_pseudonym_not_removable( $pse_datas->{pseudonym} ) ) { -

- - %=l 'pse_SELECT_INTERNAL', class => "" - - % param 'Internal' => $pse_datas->{internal} unless param 'Internal'; - %= select_field 'Internal' => [ [(l 'YES') => 'YES'], [(l 'NO') => 'NO'] ], class => "" - -

+

+ + %=l 'pse_SELECT_INTERNAL', class => "" + + + % param 'Internal' => $pse_datas->{internal} unless param 'Internal'; + %= select_field 'Internal' => [ [(l 'YES') => 'YES'], [(l 'NO') => 'NO'] ], class => "" + +

%} -

- %= submit_button "$btn", class => "" -

+

+ %= submit_button "$btn", class => "" +

- %= hidden_field 'trt' => $pse_datas->{trt} + %= hidden_field 'trt' => $pse_datas->{trt} %= hidden_field 'Pseudonym' => $pse_datas->{pseudonym} - + %end
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_quo_list.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_quo_list.html.ep index 02e1a1e..c1cfcf6 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_quo_list.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_quo_list.html.ep @@ -1,81 +1,83 @@ -
+
-

+

% my $modul = $c->render_to_string(inline => $c->l('quo_QUOTA_DESC')); - %= $modul - -

- %=l 'quo_CURRENT_USAGE_AND_SETTINGS' -

+ %= $modul + +

+ %=l 'quo_CURRENT_USAGE_AND_SETTINGS' +

-
- % my $numUsers = @$userAccounts; - % if ($numUsers == 0){ +
+ % my $numUsers = @$userAccounts; + % if ($numUsers == 0){ %=l 'ACCOUNT_USER_NONE' - % } else { + % } else { % my $limit = l('quo_LIMIT_WITH_GRACE_MB'); $limit =~ s#(graceX)#
$1#; - % my $absolute = l('quo_ABS_LIMIT_MB'); $absolute =~ s#(limitX)#
$1#; + % my $absolute = l('quo_ABS_LIMIT_MB'); $absolute =~ s#(limitX)#
$1#; % my $current = l('quo_CURRENT_USAGE'); $current =~ s#(usageX)#
$1#; - - - - - - - - - - +
- %=l 'ACCOUNT' - - %=l 'USER_NAME' - - %= $limit - - %= $absolute - - %= $current - - %=l 'ACTION' -
+ + + + + + + + + + + % foreach my $user (@$userAccounts) % { - % my $uid = getpwnam($user->key); + % my $uid = getpwnam($user->key); % unless ($uid) { - % warn($self->localise('COULD_NOT_GET_UID'),$user->key); - % next; - % } - % my $name = $user->prop("FirstName")." ".$user->prop("LastName"); - % my $dev = Quota::getqcarg('/home/e-smith/files'); - % my ($bc, $bs, $bh, $bt, $ic, $is, $ih, $it) = Quota::query($dev, $uid); + % warn($self->localise('COULD_NOT_GET_UID'),$user->key); + % next; + % } + % my $name = $user->prop("FirstName")." ".$user->prop("LastName"); + % my $dev = Quota::getqcarg('/home/e-smith/files'); + % my ($bc, $bs, $bh, $bt, $ic, $is, $ih, $it) = Quota::query($dev, $uid); %= t td => (class => "") => $user->key %= t td => (class => "") => $name %= t td => (class => "") => sprintf("%.2f", $bs / 1024 ) %= t td => (class => "") => sprintf("%.2f", $bh / 1024 ) %= t td => (class => "") => sprintf("%.2f", $bc / 1024 ) - - + %}; + <%= $c->render_to_string(inline => $actionModify) %> + + % } - -
+ %=l 'ACCOUNT' + + %=l 'USER_NAME' + + %= $limit + + %= $absolute + + %= $current + + %=l 'ACTION' +
- %my $modify_text = l('MODIFY'); # Localized text - %my $csrf_token = "TOKEN"; # CSRF token for security - %my $quota_user_name = $user->key; # quotas_entry name extracted from the data structure - %my $actionModify = qq{ + + %my $modify_text = l('MODIFY'); # Localized text + %my $csrf_token = "TOKEN"; # CSRF token for security + %my $quota_user_name = $user->key; # quotas_entry name extracted from the data structure + %my $actionModify = qq{ % - % + % % - %}; - <%= $c->render_to_string(inline => $actionModify) %> -
- <%} %> -

+ + + <%} %> +

%= hidden_field 'trt' => $quo_datas->{trt} diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_quo_upd.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_quo_upd.html.ep index 16704d2..40e0293 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_quo_upd.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_quo_upd.html.ep @@ -1,84 +1,87 @@ -
+
- % my $btn = l('SAVE'); + % my $btn = l('SAVE'); %= form_for '/quota2' => (method => 'POST') => begin -

-

- %=l 'quo_MODIFY_USER_TITLE' -

-

+

+

+ %=l 'quo_MODIFY_USER_TITLE' +

+

% my $userid = $quo_datas->{user}; % my $user = $quo_datas->{userRec}; - % my $uid = getpwnam($user->key); + % my $uid = getpwnam($user->key); % unless ($uid) { - % warn(l('COULD_NOT_GET_UID'),$user->key); - % next; - % } + % warn(l('COULD_NOT_GET_UID'),$user->key); + % next; + % } - % my $name = $user->prop("FirstName") . " " . $user->prop("LastName"); - % my $dev = Quota::getqcarg('/home/e-smith/files'); - % my ($bc, $bs, $bh, $bt, $ic, $is, $ih, $it) = Quota::query($dev, $uid); + % my $name = $user->prop("FirstName") . " " . $user->prop("LastName"); + % my $dev = Quota::getqcarg('/home/e-smith/files'); + % my ($bc, $bs, $bh, $bt, $ic, $is, $ih, $it) = Quota::query($dev, $uid); -

- %=l 'quo_USER' - %= "$name (\"$userid\")" - %=l 'quo_CURRENTLY_HAS' - %= $ic +

+ %=l 'quo_USER' + %= "$name (\"$userid\")" + %=l 'quo_CURRENTLY_HAS' + %= $ic %=l 'quo_FILES' - %=l 'quo_OCCUPYING' - %= $c->toMB($bc) - %=l 'quo_MEGABYTES' -

- -

- %=l 'quo_INSTRUCTIONS' -

+ %=l 'quo_OCCUPYING' + %= $c->toMB($bc) + %=l 'quo_MEGABYTES' +

+ +

+ %=l 'quo_INSTRUCTIONS' +

-

- - %=l 'quo_USER', class => "" - - %= $name, class => "" - -

+

+ + %=l 'quo_USER', class => "" + + + %= $name, class => "" + +

-

- - %=l 'quo_LIMIT_WITH_GRACE', class => "" - - % param 'Soft' => $quo_datas->{softlim} unless param 'Soft'; - %= text_field 'Soft', class => "" - -

+

+ + %=l 'quo_LIMIT_WITH_GRACE', class => "" + + + % param 'Soft' => $quo_datas->{softlim} unless param 'Soft'; + %= text_field 'Soft', class => "" + +

-

- - %=l 'quo_ABS_LIMIT', class => "" - - % param 'Hard' => $quo_datas->{hardlim} unless param 'Hard'; - %= text_field 'Hard', class => "" - -

+

+ + %=l 'quo_ABS_LIMIT', class => "" + + + % param 'Hard' => $quo_datas->{hardlim} unless param 'Hard'; + %= text_field 'Hard', class => "" + +

-

-

- %= submit_button "$btn", class => "" -

+

+

+ %= submit_button "$btn", class => "" +

- %= hidden_field 'trt' => $quo_datas->{trt} + %= hidden_field 'trt' => $quo_datas->{trt} %= hidden_field 'user' => $quo_datas->{user} - + % end
\ No newline at end of file diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_rma_pptp.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_rma_pptp.html.ep index 3c02029..7ddb8da 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_rma_pptp.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_rma_pptp.html.ep @@ -5,7 +5,8 @@
%=l 'rma_LABEL_PPTP' - + + % param 'PptpSessions' => $c->get_pptp_sessions unless param 'PptpSessions'; %= text_field 'PptpSessions' => $c->get_pptp_sessions(), class => "" diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_swt_theme.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_swt_theme.html.ep index c7d1d16..5024d79 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_swt_theme.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_swt_theme.html.ep @@ -1,14 +1,48 @@ + + +
- % my $btn = l('swt_THEME'); %= form_for $c->url_for('swttheme') => (method => 'POST') => begin - % my $value = $c->session->{'CurrentTheme'}; - % $value = session 'CurrentTheme'; + % my $value = $c->session->{'CurrentTheme'}; + % $value = session 'CurrentTheme'; - % param 'Theme' => $value unless param 'Theme'; - %= select_field 'Theme' => $c->theme_list(), class => "" - %= hidden_field 'From' => $c->tx->req->url - %= submit_button "$btn" - % end - + % param 'Theme' => $value unless param 'Theme'; + %= select_field 'Theme' => $c->theme_list(), class => "" + %= hidden_field 'From' => $c->tx->req->url + %= submit_button "$btn"
+ + + + + +%# my $value = $c->session->{'CurrentTheme'}; +% $value = session 'CurrentTheme'; +% my $formUrl = $c->url_for('swttheme'); +% param 'Theme' => $value unless param 'Theme'; +% my @themes = $c->theme_list(); + + + +
+
+
+ + + %= hidden_field 'From' => $c->tx->req->url +
+ +
+ +
+
+
+ + +% end \ No newline at end of file diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_user_menu.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_user_menu.html.ep deleted file mode 100644 index 8b02e22..0000000 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_user_menu.html.ep +++ /dev/null @@ -1,31 +0,0 @@ -% use SrvMngr qw( getNavigation ); -% my %nav = %{SrvMngr->getNavigation( $c->languages(), 'U' )}; - -
- Current User (<%= session 'username' %>) -
-% my $cc = 300; -% foreach my $h (sort { ($nav{$a}{'WEIGHT'}/$nav{$a}{'COUNT'}) -% <=> ($nav{$b}{'WEIGHT'}/$nav{$b}{'COUNT'}) } keys %nav) { - -% my ($classNew, $target, $href) = ''; -% foreach (sort { $a->{'WEIGHT'} <=> $b->{'WEIGHT'} } @{$nav{$h}{'DESCRIPTIONS'}}) { - -% next if ($_->{'MENUCAT'} ne 'U' ); # menu User - -% if ( $_->{'FILENAME'} =~ m/^2\// ) { -% $target = '_self'; -% (my $file2 = $_->{'FILENAME'}) =~ s|^2/||; -% $href = '/smanager/' . $file2; -% } else { -% $target = 'main'; -% $href = '/server-manager' . $_->{'FILENAME'}; -% } - -% $cc++; -% } - -% } - -
-
\ No newline at end of file diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_usr_del.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_usr_del.html.ep index efa1d96..105516e 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_usr_del.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_usr_del.html.ep @@ -1,28 +1,28 @@
- % my $btn = l('REMOVE'); + % my $btn = l('REMOVE'); %= form_for '/useraccountsd' => (method => 'POST') => begin -

-

- %=l 'usr_REMOVE_ACCOUNT_TITLE' -

- -
- %= $c->l('usr_REMOVE_DESC', $usr_datas->{user}, $usr_datas->{name} ); -
- %= $c->render_to_string(inline => $c->l('usr_REMOVE_DESC2')) -

+

+

+ %=l 'usr_REMOVE_ACCOUNT_TITLE' +

+ +
+ %= $c->l('usr_REMOVE_DESC', $usr_datas->{user}, $usr_datas->{name} ); +
+ %= $c->render_to_string(inline => $c->l('usr_REMOVE_DESC2')) +

-

-
- %= submit_button "$btn", class => "" -

+

+
+ %= submit_button "$btn", class => "" +

- %= hidden_field 'trt' => $usr_datas->{trt} - %= hidden_field 'user' => $usr_datas->{user} - %= hidden_field 'name' => $usr_datas->{name} - + %= hidden_field 'trt' => $usr_datas->{trt} + %= hidden_field 'user' => $usr_datas->{user} + %= hidden_field 'name' => $usr_datas->{name} + % end
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_usr_list.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_usr_list.html.ep index 92eaa6a..b736792 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_usr_list.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_usr_list.html.ep @@ -1,46 +1,47 @@ -
+
% my $btn = l('usr_ADD_USER'); %= form_for '/useraccounts' => (method => 'POST') => begin -

-
- %= submit_button "$btn", class => "" -

+

+
+ %= submit_button "$btn", class => "" +

% end -

- %= $c->render_to_string(inline => $c->l('usr_FIRSTPAGE_DESC')) -
-

- - % my $numUsers = @$users; - % if ($numUsers == 0){ +

+ %= $c->render_to_string(inline => $c->l('usr_FIRSTPAGE_DESC')) +
+

+ + % my $numUsers = @$users; + % if ($numUsers == 0){ %=l 'usr_NO_USER_ACCOUNTS' - % } else { - - - - - - - - + % } else { +
- %=l 'ACCOUNT' - - %=l 'USER_NAME' - - %=l 'usr_VPN_CLIENT_ACCESS' - - %=l 'usr_FORWARDING_ADDRESS' - - %=l 'ACTION' -
+ + + + + + + + - + % foreach my $user (@$users) { % my $username = $user->key(); @@ -59,99 +60,99 @@ %= t td => (class => "") => "$first $last" %= t td => (class => "") => $vpnaccess %= t td => (class => "") => $fwd - % my ($actionModify, $actionLock, $actionResetPw, $actionRemove,$actionroundcube) = ' '; - % my $modify_text = l('MODIFY'); # Localized text - % my $csrf_token = "TOKEN"; # CSRF token for security - % my $useraccounts_user_name = $user->key; # useraccountss_entry name extracted from the data structure - % my $password_text = l("PASSWORD_RESET"); - %if ($useraccounts_user_name eq 'admin') { - %$actionModify = qq{ - % - % - % - %}; - %$actionResetPw = qq{ - % - % - % - %}; - %} else { - %$actionModify = qq{ - % - % - % - %}; - %} - %if ($password_set ne 'yes') { - %$actionLock = l('ACCOUNT_LOCKED'); - %$actionResetPw = qq{ - % - % - % - %}; - %} elsif ($useraccounts_user_name ne 'admin') { - % my $lock_text = l('ACCOUNT LOCKED'); # Localized text - % my $csrf_token = "TOKEN"; # CSRF token for security - % my $useraccounts_user_name = $user->key; # useraccountss_entry name extracted from the data structure - %$actionLock = qq{ - % - % - % - %}; - %$actionResetPw = qq{ - % - % - % - %}; - %} - %if ( $removable eq 'yes' ) { - % my $remove_text = l('REMOVE'); # Localized text - % my $csrf_token = "TOKEN"; # CSRF token for security - %$actionRemove = qq{ - % - % - % - %}; - %} - - % my $thisdomain = $c->req->url->to_abs->host; - % my $roundcube_text = l('Webmail'); # Localized text - % $csrf_token = "TOKEN"; # CSRF token for security - % $useraccounts_user_name = $user->key; # useraccountss_entry name extracted from the data structure - % $actionroundcube = qq{ - % - % - % - %}; - - + % my ($actionModify, $actionLock, $actionResetPw, $actionRemove,$actionroundcube) = ' '; + % my $modify_text = l('MODIFY'); # Localized text + % my $csrf_token = "TOKEN"; # CSRF token for security + % my $useraccounts_user_name = $user->key; # useraccountss_entry name extracted from the data structure + % my $password_text = l("PASSWORD_RESET"); + %if ($useraccounts_user_name eq 'admin') { + %$actionModify = qq{ + % + % + % + %}; + %$actionResetPw = qq{ + % + % + % + %}; + %} else { + %$actionModify = qq{ + % + % + % + %}; + %} + %if ($password_set ne 'yes') { + %$actionLock = l('ACCOUNT_LOCKED'); + %$actionResetPw = qq{ + % + % + % + %}; + %} elsif ($useraccounts_user_name ne 'admin') { + % my $lock_text = l('ACCOUNT LOCKED'); # Localized text + % my $csrf_token = "TOKEN"; # CSRF token for security + % my $useraccounts_user_name = $user->key; # useraccountss_entry name extracted from the data structure + %$actionLock = qq{ + % + % + % + %}; + %$actionResetPw = qq{ + % + % + % + %}; + %} + %if ( $removable eq 'yes' ) { + % my $remove_text = l('REMOVE'); # Localized text + % my $csrf_token = "TOKEN"; # CSRF token for security + %$actionRemove = qq{ + % + % + % + %}; + %} + + % my $thisdomain = $c->req->url->to_abs->host; + % my $roundcube_text = l('Webmail'); # Localized text + % $csrf_token = "TOKEN"; # CSRF token for security + % $useraccounts_user_name = $user->key; # useraccountss_entry name extracted from the data structure + % $actionroundcube = qq{ + % + % + % + %}; + + % } - -
+ %=l 'ACCOUNT' + + %=l 'USER_NAME' + + %=l 'usr_VPN_CLIENT_ACCESS' + + %=l 'usr_FORWARDING_ADDRESS' + + %=l 'ACTION' +
- <%= $c->render_to_string(inline => $actionModify) %> - <%= $c->render_to_string(inline => $actionResetPw) %> - <%= $c->render_to_string(inline => $actionLock) %> - <%= $c->render_to_string(inline => $actionRemove) %> - <%= $c->render_to_string(inline => $actionroundcube) %> -
+ <%= $c->render_to_string(inline => $actionModify) %> + <%= $c->render_to_string(inline => $actionResetPw) %> + <%= $c->render_to_string(inline => $actionLock) %> + <%= $c->render_to_string(inline => $actionRemove) %> + <%= $c->render_to_string(inline => $actionroundcube) %> +
+ + - <%} %> + <%} %> %= hidden_field 'trt' => $usr_datas->{trt} diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_usr_lock.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_usr_lock.html.ep index 5822773..f4aeecd 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_usr_lock.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_usr_lock.html.ep @@ -1,28 +1,28 @@ -
+
- % my $btn = l('usr_LOCK'); + % my $btn = l('usr_LOCK'); %= form_for '/useraccountsd' => (method => 'POST') => begin -

-

- %=l 'usr_LOCK_ACCOUNT_TITLE' -

- -
- %= $c->l('usr_LOCK_DESC', $usr_datas->{user}, $usr_datas->{name} ); -
- %= $c->render_to_string(inline => $c->l('usr_LOCK_DESC2')) -

+

+

+ %=l 'usr_LOCK_ACCOUNT_TITLE' +

+ +
+ %= $c->l('usr_LOCK_DESC', $usr_datas->{user}, $usr_datas->{name} ); +
+ %= $c->render_to_string(inline => $c->l('usr_LOCK_DESC2')) +

-

-
- %= submit_button "$btn", class => "" -

+

+
+ %= submit_button "$btn", class => "" +

- %= hidden_field 'trt' => $usr_datas->{trt} - %= hidden_field 'user' => $usr_datas->{user} - %= hidden_field 'name' => $usr_datas->{name} - + %= hidden_field 'trt' => $usr_datas->{trt} + %= hidden_field 'user' => $usr_datas->{user} + %= hidden_field 'name' => $usr_datas->{name} + % end
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_usr_pwd.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_usr_pwd.html.ep index ebf7a74..d464483 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_usr_pwd.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_usr_pwd.html.ep @@ -1,44 +1,45 @@ -
+
- % my $btn = l('SAVE'); + % my $btn = l('SAVE'); %= form_for '/useraccountsd' => (method => 'POST') => begin -

-

- %=l 'RESET_PASSWORD_TITLE' -

- -
- %= $c->l('usr_RESET_DESC', $usr_datas->{user}, $usr_datas->{name} ); -
- %= l 'usr_RESET_DESC2' -

+

+

+ %=l 'RESET_PASSWORD_TITLE' +

+ +
+ %= $c->l('usr_RESET_DESC', $usr_datas->{user}, $usr_datas->{name} ); +
+ %= l 'usr_RESET_DESC2' +

-

- - %=l 'PASSWORD_NEW', class => "" - - %= password_field 'newPass', class => "", class="">'sme-password' - -

+

+ + %=l 'PASSWORD_NEW', class => "" + + %= password_field 'newPass', class => "", class="">'sme-password' + +

-

- - %=l 'PASSWORD_VERIFY_NEW', class => "" - - %= password_field 'newPassVerify', class => "", class="">'sme-password' - -

+

+ + %=l 'PASSWORD_VERIFY_NEW', class => "" + + + %= password_field 'newPassVerify', class => "", class="">'sme-password' + +

-

-

- %= submit_button "$btn", class => "" -

+

+

+ %= submit_button "$btn", class => "" +

- %= hidden_field 'trt' => $usr_datas->{trt} - %= hidden_field 'user' => $usr_datas->{user} - %= hidden_field 'name' => $usr_datas->{name} - + %= hidden_field 'trt' => $usr_datas->{trt} + %= hidden_field 'user' => $usr_datas->{user} + %= hidden_field 'name' => $usr_datas->{name} + % end
\ No newline at end of file diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_usr_pwds.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_usr_pwds.html.ep index 23bf9df..058f529 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_usr_pwds.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_usr_pwds.html.ep @@ -1,45 +1,48 @@ -
+
- % my $btn = l('SAVE'); + % my $btn = l('SAVE'); %= form_for '/useraccountsd' => (method => 'POST') => begin -

- %= l 'usr_SYSTEM_PASSWORD_DESCRIPTION' -

+

+ %= l 'usr_SYSTEM_PASSWORD_DESCRIPTION' +

-

- - %=l 'usr_CURRENT_SYSTEM_PASSWORD', class => "" - - %= password_field 'CurPass', class => "", class="">'sme-password' - -

+

+ + %=l 'usr_CURRENT_SYSTEM_PASSWORD', class => "" + + + %= password_field 'CurPass', class => "", class="">'sme-password' + +

-

- - %=l 'usr_NEW_SYSTEM_PASSWORD', class => "" - - %= password_field 'Pass', class => "", class="">'sme-password' - -

+

+ + %=l 'usr_NEW_SYSTEM_PASSWORD', class => "" + + + %= password_field 'Pass', class => "", class="">'sme-password' + +

-

- - %=l 'usr_NEW_SYSTEM_PASSWORD_VERIFY', class => "" - - %= password_field 'PassVerify', class => "", class="">'sme-password' - -

+

+ + %=l 'usr_NEW_SYSTEM_PASSWORD_VERIFY', class => "" + + + %= password_field 'PassVerify', class => "", class="">'sme-password' + +

-

-

- %= submit_button "$btn", class => "" -

+

+

+ %= submit_button "$btn", class => "" +

- %= hidden_field 'trt' => $usr_datas->{trt} - %= hidden_field 'user' => $usr_datas->{user} - %= hidden_field 'name' => $usr_datas->{name} - + %= hidden_field 'trt' => $usr_datas->{trt} + %= hidden_field 'user' => $usr_datas->{user} + %= hidden_field 'name' => $usr_datas->{name} + % end
\ No newline at end of file diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_usr_upd.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_usr_upd.html.ep index 4215a28..1f4db78 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_usr_upd.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_usr_upd.html.ep @@ -1,185 +1,195 @@ -
+
- - % my $btn = l('ADD'); + % my $btn = l('ADD'); %= form_for '/useraccountsd' => (method => 'POST') => begin -

-

- %=l 'usr_P2_TITLE' -

-
- %= $c->render_to_string(inline => l ('usr_CREATE_MODIFY_DESC')) -

+

+

+ %=l 'usr_P2_TITLE' +

+
+ %= $c->render_to_string(inline => l ('usr_CREATE_MODIFY_DESC')) +

-

- - %=l 'usr_ACCOUNT_NAME' - - % if ( $usr_datas->{trt} eq 'ADD' ) { - % param 'user' => $usr_datas->{user} unless param 'user'; - %= text_field 'user', class => "" - % } else { - % $btn = l('SAVE'); - %= $usr_datas->{user}, class => "" - % } - -

+

+ + %=l 'usr_ACCOUNT_NAME' + + + % if ( $usr_datas->{trt} eq 'ADD' ) { + % param 'user' => $usr_datas->{user} unless param 'user'; + %= text_field 'user', class => "" + % } else { + % $btn = l('SAVE'); + %= $usr_datas->{user}, class => "" + % } + +

-

- - %=l 'usr_FIRSTNAME' - - % param 'FirstName' => $usr_datas->{firstname} unless param 'FirstName'; - %= text_field 'FirstName', class => "" - -

-

- - %=l 'usr_LASTNAME' - - % param 'LastName' => $usr_datas->{lastname} unless param 'LastName'; - %= text_field 'LastName', class => "" - -

+

+ + %=l 'usr_FIRSTNAME' + + % param 'FirstName' => $usr_datas->{firstname} unless param 'FirstName'; + %= text_field 'FirstName', class => "" + +

+

+ + %=l 'usr_LASTNAME' + + + % param 'LastName' => $usr_datas->{lastname} unless param 'LastName'; + %= text_field 'LastName', class => "" + +

-

- - %=l 'usr_DEPARTMENT' - - % param 'Dept' => $usr_datas->{dept} unless param 'Dept'; - %= text_field 'Dept', class => "" - -

-

- - %=l 'usr_COMPANY' - - % param 'Company' => $usr_datas->{company} unless param 'Company'; - %= text_field 'Company', class => "" - -

-

- - %=l 'usr_STREET_ADDRESS' - - % param 'Street' => $usr_datas->{street} unless param 'Street'; - %= text_field 'Street', class => "" - -

-

- - %=l 'usr_CITY' - - % param 'City' => $usr_datas->{city} unless param 'City'; - %= text_field 'City', class => "" - -

-

- - %=l 'usr_PHONE_NUMBER' - - % param 'Phone' => $usr_datas->{phone} unless param 'Phone'; - %= text_field 'Phone', class => "" - -

-

- - %=l 'usr_EMAIL_DELIVERY' - - % param 'EmailForward' => $usr_datas->{emailforward} unless param 'EmailForward'; - %= select_field 'EmailForward' => $c->emailForward_list(), class => "" - -

-

- - %=l 'usr_FORWARDING_ADDRESS' - - % param 'ForwardAddress' => $usr_datas->{forwardaddress} unless param 'ForwardAddress'; - %= text_field 'ForwardAddress', class => "" - -

+

+ + %=l 'usr_DEPARTMENT' + + % param 'Dept' => $usr_datas->{dept} unless param 'Dept'; + %= text_field 'Dept', class => "" + +

+

+ + %=l 'usr_COMPANY' + + + % param 'Company' => $usr_datas->{company} unless param 'Company'; + %= text_field 'Company', class => "" + +

+

+ + %=l 'usr_STREET_ADDRESS' + + % param 'Street' => $usr_datas->{street} unless param 'Street'; + %= text_field 'Street', class => "" + +

+

+ + %=l 'usr_CITY' + + + % param 'City' => $usr_datas->{city} unless param 'City'; + %= text_field 'City', class => "" + +

+

+ + %=l 'usr_PHONE_NUMBER' + + + % param 'Phone' => $usr_datas->{phone} unless param 'Phone'; + %= text_field 'Phone', class => "" + +

+

+ + %=l 'usr_EMAIL_DELIVERY' + + + % param 'EmailForward' => $usr_datas->{emailforward} unless param 'EmailForward'; + %= select_field 'EmailForward' => $c->emailForward_list(), class => "" + +

+

+ + %=l 'usr_FORWARDING_ADDRESS' + + + % param 'ForwardAddress' => $usr_datas->{forwardaddress} unless param 'ForwardAddress'; + %= text_field 'ForwardAddress', class => "" + +

-

- - %=l 'usr_VPN_CLIENT_ACCESS' - - % param 'VPNClientAccess' => $usr_datas->{vpnclientaccess} unless param 'VPNClientAccess'; - %= select_field 'VPNClientAccess' => [[ (l 'NO') => 'no'], [ (l 'YES') => 'yes']], class => "" - -

+

+ + %=l 'usr_VPN_CLIENT_ACCESS' + + + % param 'VPNClientAccess' => $usr_datas->{vpnclientaccess} unless param 'VPNClientAccess'; + %= select_field 'VPNClientAccess' => [[ (l 'NO') => 'no'], [ (l 'YES') => 'yes']], class => "" + +

- % if ( $usr_datas->{trt} eq 'UPD' and $c->ipsec_for_acct eq 'OK' ) { - % my $btn2 = $c->l('DOWNLOAD'); - %= form_for '/useraccountso' => (method => 'POST') => begin -

- - %=l 'usr_LABEL_IPSECRW_DOWNLOAD' - - %= submit_button $btn2, class => "" - -

- %= hidden_field 'trt' => 'CRT' + % if ( $usr_datas->{trt} eq 'UPD' and $c->ipsec_for_acct eq 'OK' ) { + % my $btn2 = $c->l('DOWNLOAD'); + %= form_for '/useraccountso' => (method => 'POST') => begin +

+ + %=l 'usr_LABEL_IPSECRW_DOWNLOAD' + + + %= submit_button $btn2, class => "" + +

+ %= hidden_field 'trt' => 'CRT' %= hidden_field 'user' => $usr_datas->{user} - %end - % } + %end + % } - % my @groups = @{$c->get_groups()}; - % if ( @groups ) { -

- - %=l 'usr_GROUP_MEMBERSHIPS' - - - - - - + % my @groups = @{$c->get_groups()}; + % if ( @groups ) { +

+ + %=l 'usr_GROUP_MEMBERSHIPS' + + +

- %=l 'usr_MEMBER' - - %=l 'GROUP' - - %=l 'DESCRIPTION' -
+ + + + + % foreach my $g ( @groups) { - % my $user = $usr_datas->{user}; - % my $groupname = $g->key(); - % my $description = $g->prop('Description'); + % my $user = $usr_datas->{user}; + % my $groupname = $g->key(); + % my $description = $g->prop('Description'); % my $checked = ''; % if ( $user and $c->is_user_in_group($user, $groupname) ) { % $checked = 'checked'; % } - + %= t td => (class => "") => $groupname %= t td => (class => "") => "$description" - + % } - -
+ %=l 'usr_MEMBER' + + %=l 'GROUP' + + %=l 'DESCRIPTION' +
- % if ( $checked eq 'checked' ) { - - - %} else { - %= check_box 'groupMemberships' => $groupname - %} - + % if ( $checked eq 'checked' ) { + + + %} else { + %= check_box 'groupMemberships' => $groupname + %} +
-
-

- % } + + + +

+ % } -

-

- %= submit_button $btn, class => "" -

+

+

+ %= submit_button $btn, class => "" +

- %= hidden_field 'trt' => $usr_datas->{trt} - % if ( $usr_datas->{trt} eq 'UPD' ) { - %= hidden_field 'user' => $usr_datas->{user} - % } - + %= hidden_field 'trt' => $usr_datas->{trt} + % if ( $usr_datas->{trt} eq 'UPD' ) { + %= hidden_field 'user' => $usr_datas->{user} + % } + % end
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_usr_upds.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_usr_upds.html.ep index e57ef5c..45795cd 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_usr_upds.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_usr_upds.html.ep @@ -1,89 +1,96 @@ -
+
- % my $btn = l('SAVE'); + % my $btn = l('SAVE'); %= form_for '/useraccountsd' => (method => 'POST') => begin -

-

- %=l 'usr_MODIFY_ADMIN_TITLE' -


-

+

+

+ %=l 'usr_MODIFY_ADMIN_TITLE' +


+

-

- - %=l 'usr_ACCOUNT_NAME' - - % $btn = l('SAVE'); - %= $usr_datas->{user}, class => "" - -

+

+ + %=l 'usr_ACCOUNT_NAME' + + + % $btn = l('SAVE'); + %= $usr_datas->{user}, class => "" + +

-

- - %=l 'usr_FIRSTNAME' - - % param 'FirstName' => $usr_datas->{firstname} unless param 'FirstName'; - %= text_field 'FirstName', class => "" - -

-

- - %=l 'usr_LASTNAME' - - % param 'LastName' => $usr_datas->{lastname} unless param 'LastName'; - %= text_field 'LastName', class => "" - -

+

+ + %=l 'usr_FIRSTNAME' + + + % param 'FirstName' => $usr_datas->{firstname} unless param 'FirstName'; + %= text_field 'FirstName', class => "" + +

+

+ + %=l 'usr_LASTNAME' + + + % param 'LastName' => $usr_datas->{lastname} unless param 'LastName'; + %= text_field 'LastName', class => "" + +

-

- - %=l 'usr_EMAIL_DELIVERY' - - % param 'EmailForward' => $usr_datas->{emailforward} unless param 'EmailForward'; - %= select_field 'EmailForward' => $c->emailForward_list(), class => "" - -

-

- - %=l 'usr_FORWARDING_ADDRESS' - - % param 'ForwardAddress' => $usr_datas->{forwardaddress} unless param 'ForwardAddress'; - %= text_field 'ForwardAddress', class => "" - -

+

+ + %=l 'usr_EMAIL_DELIVERY' + + + % param 'EmailForward' => $usr_datas->{emailforward} unless param 'EmailForward'; + %= select_field 'EmailForward' => $c->emailForward_list(), class => "" + +

+

+ + %=l 'usr_FORWARDING_ADDRESS' + + + % param 'ForwardAddress' => $usr_datas->{forwardaddress} unless param 'ForwardAddress'; + %= text_field 'ForwardAddress', class => "" + +

-

- - %=l 'usr_VPN_CLIENT_ACCESS' - - % param 'VPNClientAccess' => $usr_datas->{vpnclientaccess} unless param 'VPNClientAccess'; - %= select_field 'VPNClientAccess' => [[ (l 'NO') => 'no'], [ (l 'YES') => 'yes']], class => "" - -

+

+ + %=l 'usr_VPN_CLIENT_ACCESS' + + + % param 'VPNClientAccess' => $usr_datas->{vpnclientaccess} unless param 'VPNClientAccess'; + %= select_field 'VPNClientAccess' => [[ (l 'NO') => 'no'], [ (l 'YES') => 'yes']], class => "" + +

- % if ( $c->ipsec_for_acct eq 'OK' ) { - % my $btn2 = $c->l('DOWNLOAD'); - %= form_for '/useraccountso' => (method => 'POST') => begin -

- - %=l 'usr_LABEL_IPSECRW_DOWNLOAD' - - %= submit_button $btn2, class => "" - -

- %= hidden_field 'trt' => 'CRT' + % if ( $c->ipsec_for_acct eq 'OK' ) { + % my $btn2 = $c->l('DOWNLOAD'); + %= form_for '/useraccountso' => (method => 'POST') => begin +

+ + %=l 'usr_LABEL_IPSECRW_DOWNLOAD' + + + %= submit_button $btn2, class => "" + +

+ %= hidden_field 'trt' => 'CRT' %= hidden_field 'user' => $usr_datas->{user} - %end - % } + %end + % } -

-
- %= submit_button $btn, class => "" -

+

+
+ %= submit_button $btn, class => "" +

- %= hidden_field 'trt' => $usr_datas->{trt} - %= hidden_field 'user' => $usr_datas->{user} - + %= hidden_field 'trt' => $usr_datas->{trt} + %= hidden_field 'user' => $usr_datas->{user} + % end
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/portforwarding.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/portforwarding.html.ep index 462a78e..f86608d 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/portforwarding.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/portforwarding.html.ep @@ -1,32 +1,32 @@ -% layout 'default', title => "Sme server 2 - Port Forwards"; +% layout 'AdminLTE', title => "Sme server 2 - Port Forwards"; % content_for 'module' => begin -
+
% if (config->{debug} == 1) { -

- %= dumper "".$c->current_route - %= dumper $c->stash("ret") - %= dumper $c->stash("portforwarding") - % my $ref = $pf_datas->{portforwarding}; - %= dumper $ref->{TCP}->[0]."" -

+

+ %= dumper "".$c->current_route + %= dumper $c->stash("ret") + %= dumper $c->stash("portforwarding") + % my $ref = $pf_datas->{portforwarding}; + %= dumper $ref->{TCP}->[0]."" +

% }

<%= $title%>

%= $modul % if ($pf_datas->{trt} eq 'ADD') { - %= include 'partials/_pf_add' + %= include 'partials/_pf_add' %} elsif ($pf_datas->{trt} eq 'ADD1') { - %= include 'partials/_pf_add' + %= include 'partials/_pf_add' %} elsif ($pf_datas->{trt} eq 'DEL') { - %= include 'partials/_pf_del' - %} elsif ($pf_datas->{trt} eq 'DEL1'){ - %= include 'partials/_pf_list' - %} else { - %= include 'partials/_pf_list' - %} + %= include 'partials/_pf_del' + %} elsif ($pf_datas->{trt} eq 'DEL1'){ + %= include 'partials/_pf_list' + %} else { + %= include 'partials/_pf_list' + %}
%end diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/printers.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/printers.html.ep index 63913a0..1b499df 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/printers.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/printers.html.ep @@ -1,32 +1,32 @@ -% layout 'default', title => "Sme server 2 - printers"; +% layout 'AdminLTE', title => "Sme server 2 - printers"; % content_for 'module' => begin
%if (config->{debug} == 1) { -

- %= dumper $c->current_route - %= dumper $prt_datas -

+

+ %= dumper $c->current_route + %= dumper $prt_datas +

%} % if ( stash 'error' ) { -
- %= $c->render_to_string(inline => stash 'error') -
+
+ %= $c->render_to_string(inline => stash 'error') +
%}

<%= $title%>

% if ($prt_datas->{trt} eq 'ADD') { - %= include 'partials/_prt_add' + %= include 'partials/_prt_add' %} elsif ($prt_datas->{trt} eq 'DEL') { - %= include 'partials/_prt_del' - %} elsif ($prt_datas->{trt} eq 'NET') { - %= include 'partials/_prt_net' - %} else { - %= include 'partials/_prt_list' - %} + %= include 'partials/_prt_del' + %} elsif ($prt_datas->{trt} eq 'NET') { + %= include 'partials/_prt_net' + %} else { + %= include 'partials/_prt_list' + %}
%end \ No newline at end of file diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/proxy.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/proxy.html.ep index 1235af6..af12aca 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/proxy.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/proxy.html.ep @@ -1,43 +1,43 @@ -% layout 'default', title => "Sme server 2 - proxy"; +% layout 'AdminLTE', title => "Sme server 2 - proxy"; % content_for 'module' => begin
%if (config->{debug} == 1) { -

(DBG)route: <%= $c->current_route %>
- (DBG)ht stat: <%= $prx_datas->{http_proxy_status}%>
- (DBG)sm stat: <%=$prx_datas->{smtp_proxy_status} %> -

+

(DBG)route: <%= $c->current_route %>
+ (DBG)ht stat: <%= $prx_datas->{http_proxy_status}%>
+ (DBG)sm stat: <%=$prx_datas->{smtp_proxy_status} %> +

%}

<%= $title %>


<%= $modul %> - <% my $btn = l('SAVE'); %> + <% my $btn = l('SAVE'); %> %= form_for 'proxy' => (method => 'POST') => begin -

- %=l 'prx_HTTP_PROXY_STATUS_DESCRIPTION' -

- - %=l 'prx_HTTP_PROXY_STATUS_LABEL' - - % param 'http_proxy_status' => $prx_datas->{http_proxy_status} unless param 'http_proxy_status'; - %= select_field 'http_proxy_status' => [[ (l 'ENABLED') => 'enabled'], [ (l 'DISABLED') => 'disabled']], class => "", id => "" - -

- %if ( $prx_datas->{smtp_proxy_status} ) { -

- %=l 'prx_SMTP_PROXY_STATUS_DESCRIPTION' -

- - %=l 'prx_SMTP_PROXY_STATUS_LABEL' - - % param 'smtp_proxy_status' => $prx_datas->{smtp_proxy_status} unless param 'smtp_proxy_status'; - %= select_field 'smtp_proxy_status' => [[ (l 'ENABLED') => 'transparent'], [ (l 'DISABLED') => 'disabled'], [ (l 'prx_BLOCKED') => 'blocked']], class => "", id => "", default => $prx_datas->{smtp_proxy_status} -

-
-

- %} - %= submit_button "$btn", class => "" +

+ %=l 'prx_HTTP_PROXY_STATUS_DESCRIPTION' +

+ + %=l 'prx_HTTP_PROXY_STATUS_LABEL' + + % param 'http_proxy_status' => $prx_datas->{http_proxy_status} unless param 'http_proxy_status'; + %= select_field 'http_proxy_status' => [[ (l 'ENABLED') => 'enabled'], [ (l 'DISABLED') => 'disabled']], class => "", id => "" + +

+ %if ( $prx_datas->{smtp_proxy_status} ) { +

+ %=l 'prx_SMTP_PROXY_STATUS_DESCRIPTION' +

+ + %=l 'prx_SMTP_PROXY_STATUS_LABEL' + + % param 'smtp_proxy_status' => $prx_datas->{smtp_proxy_status} unless param 'smtp_proxy_status'; + %= select_field 'smtp_proxy_status' => [[ (l 'ENABLED') => 'transparent'], [ (l 'DISABLED') => 'disabled'], [ (l 'prx_BLOCKED') => 'blocked']], class => "", id => "", default => $prx_datas->{smtp_proxy_status} +

+
+

+ %} + %= submit_button "$btn", class => "" % end
%end \ No newline at end of file diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/pseudonyms.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/pseudonyms.html.ep index ae3750c..6193c07 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/pseudonyms.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/pseudonyms.html.ep @@ -1,32 +1,32 @@ -% layout 'default', title => "Sme server 2 - pseudonyms"; +% layout 'AdminLTE', title => "Sme server 2 - pseudonyms"; % content_for 'module' => begin -
+
% if (config->{debug} == 1) { -

- %= dumper $c->current_route - %= dumper $pse_datas -

+

+ %= dumper $c->current_route + %= dumper $pse_datas +

% } % if ( stash 'error' ) { -
- %= $c->render_to_string(inline => stash 'error') -
+
+ %= $c->render_to_string(inline => stash 'error') +
%}

<%= $title%>

% if ($pse_datas->{trt} eq 'ADD') { - %= include 'partials/_pse_add' + %= include 'partials/_pse_add' %} elsif ($pse_datas->{trt} eq 'DEL') { - %= include 'partials/_pse_del' - %} elsif ($pse_datas->{trt} eq 'UPD') { - %= include 'partials/_pse_upd' - %} else { - %= include 'partials/_pse_list' - %} + %= include 'partials/_pse_del' + %} elsif ($pse_datas->{trt} eq 'UPD') { + %= include 'partials/_pse_upd' + %} else { + %= include 'partials/_pse_list' + %}
%end diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/qmailanalog.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/qmailanalog.html.ep index d4deb2a..3f12ad7 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/qmailanalog.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/qmailanalog.html.ep @@ -1,44 +1,44 @@ -% layout 'default', title => "Sme server 2 - qmailanalog"; +% layout 'AdminLTE', title => "Sme server 2 - qmailanalog"; % content_for 'module' => begin %= javascript '/js/qmailanalog.js'
%if (config->{debug} == 1) { -

- (DBG)route: <%= $c->current_route %>
-

+

+ (DBG)route: <%= $c->current_route %>
+

%}

<%= $title %>


<%= $modul %> - <% my $btn = l('qma_GENERATE_REPORT'); %> + <% my $btn = l('qma_GENERATE_REPORT'); %> %= form_for 'qmailanalog' => (method => 'POST') => begin -

- - %=l 'qma_REPORT_TYPE' - - - %= select_field 'report_type' => $c->reportType_list(), id => "" - -

+

+ + %=l 'qma_REPORT_TYPE' + + + %= select_field 'report_type' => $c->reportType_list(), id => "" + +

- -
- - %= label_for message_id => 'Message ID:' - - %= text_field 'message_id', placeholder => 'Enter Postfix Message ID', id => "" - -
+ +
+ + %= label_for message_id => 'Message ID:' + + %= text_field 'message_id', placeholder => 'Enter Postfix Message ID', id => "" + +
-
- - %= label_for email_address => 'Email Address:' - - %= email_field 'email_address', placeholder => 'Enter email address', id => "" - -
+
+ + %= label_for email_address => 'Email Address:' + + %= email_field 'email_address', placeholder => 'Enter email address', id => "" + +
- %= submit_button "$btn", class => "" + %= submit_button "$btn", class => "" % end
%end \ No newline at end of file diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/quota.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/quota.html.ep index fdc6d58..0c89726 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/quota.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/quota.html.ep @@ -1,27 +1,27 @@ -% layout 'default', title => "Sme server 2 - quota"; +% layout 'AdminLTE', title => "Sme server 2 - quota"; % content_for 'module' => begin -
+
% if (config->{debug} == 1) { -

- %= dumper $c->current_route - %= dumper $quo_datas -

+

+ %= dumper $c->current_route + %= dumper $quo_datas +

% } % if ( stash 'error' ) { -
- %= $c->render_to_string(inline => stash 'error') -
+
+ %= $c->render_to_string(inline => stash 'error') +
%}

<%= $title%>

% if ($quo_datas->{trt} eq 'UPD') { - %= include 'partials/_quo_upd' + %= include 'partials/_quo_upd' %} else { - %= include 'partials/_quo_list' + %= include 'partials/_quo_list' %}
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/reboot.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/reboot.html.ep index 32c8e1b..054dd11 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/reboot.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/reboot.html.ep @@ -1,13 +1,13 @@ -% layout 'default', title => "Sme server 2 - reboot"; +% layout 'AdminLTE', title => "Sme server 2 - reboot"; % content_for 'module' => begin
%if (config->{debug} == 1) { -

- (DBG)route: <%= $c->current_route %>
-

+

+ (DBG)route: <%= $c->current_route %>
+

%}

<%= $title %>

@@ -15,22 +15,22 @@ %= $modul - <% my $btn = l('PERFORM'); %> + <% my $btn = l('PERFORM'); %> %= form_for 'reboot' => (method => 'POST') => begin -

+

%= $c->render_to_string(inline => $c->l('rbo_DESCRIPTION'))

- - %=l 'rbo_LABEL_REBOOT' - - - %= select_field 'function' => $c->rebootFunction_list() - -


+ + %=l 'rbo_LABEL_REBOOT' + + + %= select_field 'function' => $c->rebootFunction_list() + +


- %= submit_button "$btn", class => "" + %= submit_button "$btn", class => "" % end diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/remoteaccess.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/remoteaccess.html.ep index 6e14478..f23507f 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/remoteaccess.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/remoteaccess.html.ep @@ -1,80 +1,86 @@ -% layout 'default', title => "Sme server 2 - remoteaccess"; +% layout 'AdminLTE', title => "Sme server 2 - remoteaccess"; % content_for 'module' => begin -
+
% if (config->{debug} == 1) { -

- %= dumper $c->current_route - %= dumper $rma_datas -

+

+ %= dumper $c->current_route + %= dumper $rma_datas +

% }

<%= $title%>

% if ( $notif ) { -
- - <%= $c->render_to_string(inline => $notif) %> - +
+ + <%= $c->render_to_string(inline => $notif) %> + %} - <% my $btn = l('SAVE'); %> + <% my $btn = l('SAVE'); %> %= form_for 'remoteaccess' => (method => 'POST') => begin % my $ipsec = $c->get_ipsecrw_status(); % if ( $ipsec ) { -

-

- %=l 'rma_TITLE_IPSECRW' -


+

+

+ %=l 'rma_TITLE_IPSECRW' +


- %=l 'rma_DESC_IPSECRW' -
+ %=l 'rma_DESC_IPSECRW' +
- - %=l 'rma_LABEL_IPSECRW_SESS' - - % param 'IpsecrwSess' => $c->get_ipsecrw_sessions unless param 'IpsecrwSess'; - %= text_field 'IpsecrwSess', class => "" - -
+ + %=l 'rma_LABEL_IPSECRW_SESS' + + + % param 'IpsecrwSess' => $c->get_ipsecrw_sessions unless param 'IpsecrwSess'; + %= text_field 'IpsecrwSess', class => "" + +
- %= $c->render_to_string(inline => $c->l('rma_DESC_IPSECRW_RESET')); -
- - %=l 'rma_LABEL_IPSECRW_RESET' - - %= check_box 'IpsecrwReset',class => "" - -

+ %= $c->render_to_string(inline => $c->l('rma_DESC_IPSECRW_RESET')); +
+ + %=l 'rma_LABEL_IPSECRW_RESET' + + + %= check_box 'IpsecrwReset',class => "" + +

- + %} - + -

- %= $c->l('rma_VALIDFROM_TITLE', $c->l('rma_REMOTE_MANAGEMENT')); -


- %=l 'rma_VALIDFROM_DESC' -

+

+ %= $c->l('rma_VALIDFROM_TITLE', $c->l('rma_REMOTE_MANAGEMENT')); +


+ %=l 'rma_VALIDFROM_DESC' +

% my @vals = $self->_get_valid_from(); % if (@vals) { - - - +
- %=l 'NETWORK' - - %=l 'SUBNET_MASK' - - %=l 'NUM_OF_HOSTS' - - %=l 'REMOVE' -
+ + + + + + % foreach my $val ( @vals ) % { @@ -86,126 +92,134 @@ %= t td => (class => "") => $mask %= t td => (class => "") => $numhosts - + % } - -
+ %=l 'NETWORK' + + %=l 'SUBNET_MASK' + + %=l 'NUM_OF_HOSTS' + + %=l 'REMOVE' +
'>
+ + - + % } else { -
+
%= l('rma_NO_ENTRIES_YET'); - +
%} - %=l 'rma_DESC_VALID_FROM_ENTRIES' -

- - %=l 'NETWORK' - - %= text_field 'ValidFromNetwork', class => "" - -
- - %=l 'rma_SUBNET_MASK' - - %= text_field 'ValidFromMask', class => "" - + %=l 'rma_DESC_VALID_FROM_ENTRIES' +

+ + %=l 'NETWORK' + + %= text_field 'ValidFromNetwork', class => "" + +
+ + %=l 'rma_SUBNET_MASK' + + + %= text_field 'ValidFromMask', class => "" + - + -

- %=l 'rma_TITLE_SSH' -


- %=l 'rma_DESC_SSH' -

- - %=l 'rma_LABEL_SSH' - - % param 'SshAccess' => $c->get_ssh_access() unless param 'SshAccess'; - %= select_field 'SshAccess' => $c->networkAccess_list(), class => "" - -
- - - %=l 'rma_LABEL_SSH_ADMIN' - - % param 'SshPermitRootLogin' => $rma_datas->{sshPermitRootLogin} unless param 'SshPermitRootLogin'; - %= select_field 'SshPermitRootLogin' => [[(l 'NO'), 'no'], [(l 'YES'), 'yes']], class => "" - -
+

+ %=l 'rma_TITLE_SSH' +


+ %=l 'rma_DESC_SSH' +

+ + %=l 'rma_LABEL_SSH' + + + % param 'SshAccess' => $c->get_ssh_access() unless param 'SshAccess'; + %= select_field 'SshAccess' => $c->networkAccess_list(), class => "" + +
+ + + %=l 'rma_LABEL_SSH_ADMIN' + + + % param 'SshPermitRootLogin' => $rma_datas->{sshPermitRootLogin} unless param 'SshPermitRootLogin'; + %= select_field 'SshPermitRootLogin' => [[(l 'NO'), 'no'], [(l 'YES'), 'yes']], class => "" + +
- - %=l 'rma_LABEL_SSH_PASSWORD_ACCESS' - - % param 'SshPasswordAuthentication' => $c->get_ssh_password_auth() unless param 'SshPasswordAuthentication'; - %= select_field 'SshPasswordAuthentication' => [[(l 'NO'), 'no'], [(l 'YES'), 'yes']], class => "" - -
+ + %=l 'rma_LABEL_SSH_PASSWORD_ACCESS' + + + % param 'SshPasswordAuthentication' => $c->get_ssh_password_auth() unless param 'SshPasswordAuthentication'; + %= select_field 'SshPasswordAuthentication' => [[(l 'NO'), 'no'], [(l 'YES'), 'yes']], class => "" + +
- - %=l 'rma_LABEL_SSH_PORT' - - % param 'SshTCPPort' => $c->get_ssh_port() unless param 'SshTCPPort'; - %= text_field 'SshTCPPort', class => "" - -
+ + %=l 'rma_LABEL_SSH_PORT' + + + % param 'SshTCPPort' => $c->get_ssh_port() unless param 'SshTCPPort'; + %= text_field 'SshTCPPort', class => "" + +
- + -

- %=l 'rma_TITLE_FTP_ACCESS' -


- %= $c->render_to_string(inline => $c->l('rma_DESC_FTP_ACCESS')); +

+ %=l 'rma_TITLE_FTP_ACCESS' +


+ %= $c->render_to_string(inline => $c->l('rma_DESC_FTP_ACCESS')); -
- - %=l 'rma_LABEL_FTP_ACCESS' - - % param 'FtpAccess' => $c->get_ftp_access() unless param 'FtpAccess'; - %= select_field 'FtpAccess' => $c->networkAccess_list(), class => "" - -
+
+ + %=l 'rma_LABEL_FTP_ACCESS' + + + % param 'FtpAccess' => $c->get_ftp_access() unless param 'FtpAccess'; + %= select_field 'FtpAccess' => $c->networkAccess_list(), class => "" + +
-
- %= $c->render_to_string(inline => $c->l('rma_DESC_FTP_LOGIN')); -
- - %=l 'rma_LABEL_FTP_LOGIN' - - % param 'FtpPasswordAccess' => $c->get_ftp_password_login_access() unless param 'FtpPasswordAccess'; - %= select_field 'FtpPasswordAccess' => $c->passwordLogin_list(), class => "" - -
+
+ %= $c->render_to_string(inline => $c->l('rma_DESC_FTP_LOGIN')); +
+ + %=l 'rma_LABEL_FTP_LOGIN' + + + % param 'FtpPasswordAccess' => $c->get_ftp_password_login_access() unless param 'FtpPasswordAccess'; + %= select_field 'FtpPasswordAccess' => $c->passwordLogin_list(), class => "" + +
% my $mode = $c->get_telnet_mode(); % if ( $mode ne 'off') { - + -

- %=l 'rma_TITLE_TELNET_ACCESS' -


+

+ %=l 'rma_TITLE_TELNET_ACCESS' +


- - %=l 'rma_DESC_TELNET_ACCESS' - -

+ + %=l 'rma_DESC_TELNET_ACCESS' + +

- - %=l 'rma_LABEL_TELNET_ACCESS' - - % param 'TelnetAccess' => $mode unless param 'TelnetAccess'; - %= select_field 'TelnetAccess' => $c->networkAccess_list(), class => "" - -
+ + %=l 'rma_LABEL_TELNET_ACCESS' + + + % param 'TelnetAccess' => $mode unless param 'TelnetAccess'; + %= select_field 'TelnetAccess' => $c->networkAccess_list(), class => "" + +
%} -
- %= submit_button "$btn", class => "" +
+ %= submit_button "$btn", class => "" % end diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/review.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/review.html.ep index 546c474..f444a49 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/review.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/review.html.ep @@ -1,4 +1,4 @@ -% layout 'default', title => 'Sme server 2 - Review'; +% layout 'AdminLTE', title => 'Sme server 2 - Review'; % content_for 'module' => begin
@@ -6,129 +6,129 @@ <%= $modul %>

%= form_for 'review' => begin - - %=l 'rvw_NETWORKING_PARAMS' -
- -

- %=l 'rvw_SERVER_MODE' - - %= $rvw_datas->{servermode} -

- -

- %=l 'rvw_LOCAL_IP_ADDRESS_SUBNET_MASK' - - %= $rvw_datas->{localip} -

- - % if ( $rvw_datas->{publicip} ) { -

- %=l 'rvw_INTERNET_VISIBLE_ADDRESS' - - %= $rvw_datas->{publicip} -

- % } - -

- %=l 'rvw_GATEWAY' - - %= $rvw_datas->{gateway} - %= $rvw_datas->{serveronly} -

- -

- %= $c->render_to_string( inline => $rvw_datas->{addlocalnetworks} ); -
-

- -

- - %=l 'rvw_DHCP_SERVER' - - - %= $rvw_datas->{dhcpserver} - -

+ + %=l 'rvw_NETWORKING_PARAMS' +
+ +

+ %=l 'rvw_SERVER_MODE' + + %= $rvw_datas->{servermode} +

+ +

+ %=l 'rvw_LOCAL_IP_ADDRESS_SUBNET_MASK' + + %= $rvw_datas->{localip} +

+ + % if ( $rvw_datas->{publicip} ) { +

+ %=l 'rvw_INTERNET_VISIBLE_ADDRESS' + + %= $rvw_datas->{publicip} +

+ % } + +

+ %=l 'rvw_GATEWAY' + + %= $rvw_datas->{gateway} + %= $rvw_datas->{serveronly} +

+ +

+ %= $c->render_to_string( inline => $rvw_datas->{addlocalnetworks} ); +
+

+ +

+ + %=l 'rvw_DHCP_SERVER' + + + %= $rvw_datas->{dhcpserver} + +

-

- %=l 'rvw_SERVER_NAMES' -
- -

- %=l 'rvw_DNS_SERVER' - - %= $rvw_datas->{dnsserver} -

- -

- %=l 'rvw_WEB_SERVER' - - %= $rvw_datas->{webserver} -

- -

- %=l 'rvw_PROXY_SERVER' - - %= $rvw_datas->{proxyserver} -

- -

- %=l 'rvw_FTP_SERVER' - - %= $rvw_datas->{ftpserver} -

+

+ %=l 'rvw_SERVER_NAMES' +
+ +

+ %=l 'rvw_DNS_SERVER' + + %= $rvw_datas->{dnsserver} +

+ +

+ %=l 'rvw_WEB_SERVER' + + %= $rvw_datas->{webserver} +

+ +

+ %=l 'rvw_PROXY_SERVER' + + %= $rvw_datas->{proxyserver} +

+ +

+ %=l 'rvw_FTP_SERVER' + + %= $rvw_datas->{ftpserver} +

-

- %=l 'rvw_SMTP_POP_AND_IMAP_MAIL_SERVERS' - - %= $rvw_datas->{smtpserver} -

+

+ %=l 'rvw_SMTP_POP_AND_IMAP_MAIL_SERVERS' + + %= $rvw_datas->{smtpserver} +

-

- %=l 'rvw_DOMAIN_INFORMATION' -
- -

- %=l 'rvw_PRIMARY_DOMAIN' - - %= $rvw_datas->{domainname} -

- - -

- %=l 'rvw_VIRTUAL_DOMAINS' - - - %= $rvw_datas->{virtualdomains} -

- - -

- %=l 'rvw_PRIMARY_WEB_SITE' - - %= $rvw_datas->{primarywebsite} -

- -

- %=l 'rvw_SERVER_MANAGER' - - %= $rvw_datas->{servermanager} -

- -

- %=l 'rvw_USER_PASSWORD_PANEL' - - %= $rvw_datas->{usermanager} -

- -

- %=l 'rvw_EMAIL_ADDRESSES' - - %= $rvw_datas->{emailaddresses} -

+

+ %=l 'rvw_DOMAIN_INFORMATION' +
+ +

+ %=l 'rvw_PRIMARY_DOMAIN' + + %= $rvw_datas->{domainname} +

+ + +

+ %=l 'rvw_VIRTUAL_DOMAINS' + + + %= $rvw_datas->{virtualdomains} +

+ + +

+ %=l 'rvw_PRIMARY_WEB_SITE' + + %= $rvw_datas->{primarywebsite} +

+ +

+ %=l 'rvw_SERVER_MANAGER' + + %= $rvw_datas->{servermanager} +

+ +

+ %=l 'rvw_USER_PASSWORD_PANEL' + + %= $rvw_datas->{usermanager} +

+ +

+ %=l 'rvw_EMAIL_ADDRESSES' + + %= $rvw_datas->{emailaddresses} +

% end diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/roundcube.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/roundcube.html.ep index b6e9ae7..db63b08 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/roundcube.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/roundcube.html.ep @@ -1,18 +1,18 @@ -% layout 'default', title => "Sme server 2 - roundcube"; +% layout 'AdminLTE', title => "Sme server 2 - roundcube"; % content_for 'module' => begin
% if (config->{debug} == 1) { -

- %= dumper $c->current_route -

+

+ %= dumper $c->current_route +

% } % if ( stash 'error' ) { -
- %= $c->render_to_string(inline => stash 'error') -
+
+ %= $c->render_to_string(inline => stash 'error') +
%}

<%=$title %>


If the Webmail panel does not appear after logging in, then please check your password.


@@ -20,20 +20,20 @@ % my $thisdomain = $c->req->url->to_abs->host; % my $url = $c->stash('modul'); % if (!$url) { - % $url = $thisdomain."/roundcube"; - %} + % $url = $thisdomain."/roundcube"; + %} % my $username = 'admin'; % if ($url =~ /[?&]_user=([^&]+)/) { - % $username = $1; - %} - % if (!($url =~ /https:/)) { + % $username = $1; + %} + % if (!($url =~ /https:/)) { % $url = 'https://' . $url; - %} + %}
- roundcube?_user=<%= $username %>"> - <%= $c->stash('title') %> not found -
+ roundcube?_user=<%= $username %>"> + <%= $c->stash('title') %> not found +
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/support.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/support.html.ep index dba1160..3c8d16b 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/support.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/support.html.ep @@ -1,4 +1,4 @@ -% layout 'default', title => 'Sme server 2 - Support'; +% layout 'AdminLTE', title => 'Sme server 2 - Support'; % content_for 'module' => begin
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/useraccounts.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/useraccounts.html.ep index 3e06367..ac6eb04 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/useraccounts.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/useraccounts.html.ep @@ -1,30 +1,36 @@ -% layout 'default', title => "Sme server 2 - useraccounts"; +% layout 'AdminLTE', title => "Sme server 2 - useraccounts"; % content_for 'module' => begin -
+ +%= include 'partials/_panel_card_top' +%= include 'partials/_panel_card_header' + +
+ + % if (config->{debug} == 1) { -

- %= dumper $c->current_route - %= dumper $usr_datas -

+

+ %= dumper $c->current_route + %= dumper $usr_datas +

% } -

<%= $title%>

+ % if ( $notif ) { -
- - <%= $c->render_to_string(inline => $notif) %> - +
+ + <%= $c->render_to_string(inline => $notif) %> + %} % if ($usr_datas->{trt} eq 'ADD' or $usr_datas->{trt} eq 'UPD') { - %= include 'partials/_usr_upd' + %= include 'partials/_usr_upd' %} elsif ($usr_datas->{trt} eq 'DEL') { - %= include 'partials/_usr_del' + %= include 'partials/_usr_del' %} elsif ($usr_datas->{trt} eq 'LCK') { - %= include 'partials/_usr_lock' + %= include 'partials/_usr_lock' %} elsif ($usr_datas->{trt} eq 'PWD') { %= include 'partials/_usr_pwd' %} elsif ($usr_datas->{trt} eq 'PWS') { @@ -36,5 +42,9 @@ %}
+ +%= include 'partials/_panel_card_footer' +%= include 'partials/_panel_card_bottom' + %end diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/userpassword.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/userpassword.html.ep index 1b93c8f..5a7944a 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/userpassword.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/userpassword.html.ep @@ -1,14 +1,14 @@ -% layout 'default', title => "User password"; +% layout 'AdminLTE', title => "User password"; % content_for 'module' => begin
% if (config->{debug} == 1) { -

- %= dumper $c->current_route - %= dumper $pwd_datas -

+

+ %= dumper $c->current_route + %= dumper $pwd_datas +

% }

@@ -16,60 +16,60 @@

% if ( stash 'error' ) { -
- %= $c->render_to_string(inline => stash 'error') -
+
+ %= $c->render_to_string(inline => stash 'error') +
%}

% my $btn = l('pwd_PASSWORD_CHANGE'); % my $url = '/userpassword'; - %= $c->render_to_string( inline => l('pwd_DESCRIPTION')); + %= $c->render_to_string( inline => l('pwd_DESCRIPTION')); % if ( $pwd_datas->{trt} eq 'RESET' ) { % $btn = l('pwd_PASSWORD_RESET'); % $url = '/userpasswordr'; - %= $c->render_to_string( inline => l('pwd_DESCRIPTION_RESET')); + %= $c->render_to_string( inline => l('pwd_DESCRIPTION_RESET')); % }

%= form_for $url => (method => 'POST') => begin -

- %= l 'pwd_YOUR_ACCOUNT' - - %= $pwd_datas->{Account} - - %= hidden_field 'User' => $pwd_datas->{Account} - %= hidden_field 'Trt' => $pwd_datas->{trt} - %= hidden_field 'jwt' => $pwd_datas->{jwt} -

+

+ %= l 'pwd_YOUR_ACCOUNT' + + %= $pwd_datas->{Account} + + %= hidden_field 'User' => $pwd_datas->{Account} + %= hidden_field 'Trt' => $pwd_datas->{trt} + %= hidden_field 'jwt' => $pwd_datas->{jwt} +

% if ( $pwd_datas->{trt} ne 'RESET' ) { -

- %= l 'pwd_PASSWORD_OLD' - - %= password_field 'Oldpass', class => "", class="">'sme-password' - -

+

+ %= l 'pwd_PASSWORD_OLD' + + %= password_field 'Oldpass', class => "", class="">'sme-password' + +

% } -

- %=l 'pwd_PASSWORD_NEW' - - %= password_field 'Pass', class => "", class="">'sme-password' - -

+

+ %=l 'pwd_PASSWORD_NEW' + + %= password_field 'Pass', class => "", class="">'sme-password' + +

-

- %=l 'pwd_PASSWORD_VERIFY_NEW' - - %= password_field 'Passverify', class => "", class="">'sme-password' - -

+

+ %=l 'pwd_PASSWORD_VERIFY_NEW' + + %= password_field 'Passverify', class => "", class="">'sme-password' + +

-

-
- %= submit_button "$btn", class => "" -

+

+
+ %= submit_button "$btn", class => "" +

% end diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/viewlogfiles.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/viewlogfiles.html.ep index 7a5d643..4bf9159 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/viewlogfiles.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/viewlogfiles.html.ep @@ -1,68 +1,68 @@ -% layout 'default', title => "Sme server 2 - viewlogfiles"; +% layout 'AdminLTE', title => "Sme server 2 - viewlogfiles"; % content_for 'module' => begin
%if (config->{debug} == 1) { -

- (DBG)route: <%= $c->current_route %>
-

+

+ (DBG)route: <%= $c->current_route %>
+

%}

<%= $title %>


<%= $notif %> - <% my $btn = l('NEXT'); %> + <% my $btn = l('NEXT'); %> %= form_for 'viewlogfiles' => (method => 'POST') => begin -

- %=l 'log_FIRSTPAGE_DESC' -
- - %=l 'log_LOG_FILE_SELECT_DESC' - - % param 'Filename' => 'messages'; - - %= select_field 'Filename' => $c->findlogFiles(), class => "" - -

+

+ %=l 'log_FIRSTPAGE_DESC' +
+ + %=l 'log_LOG_FILE_SELECT_DESC' + + % param 'Filename' => 'messages'; + + %= select_field 'Filename' => $c->findlogFiles(), class => "" + +

-

- %=l 'log_FILTER_PATTERN_DESC' -
- - %=l 'log_FILTER_PATTERN_LABEL' - - %= text_field 'Matchpattern', class => "" - -

+

+ %=l 'log_FILTER_PATTERN_DESC' +
+ + %=l 'log_FILTER_PATTERN_LABEL' + + %= text_field 'Matchpattern', class => "" + +

-

- %=l 'log_MATCH_PATTERN_DESC' -
- - %=l 'log_MATCH_PATTERN_LABEL' - - %= text_field 'Highlightpattern', class => "" - -

+

+ %=l 'log_MATCH_PATTERN_DESC' +
+ + %=l 'log_MATCH_PATTERN_LABEL' + + %= text_field 'Highlightpattern', class => "" + +

-

- %=l 'log_OP_DESC' -
- - %=l 'log_OP_LABEL' - - %if ($log_datas->{'default_op'} eq 'download') { - % param 'Operation' => 'download'; - %} - %= select_field 'Operation' => [[(l 'log_VIEW') => 'view'],[(l 'DOWNLOAD') => 'download']], class => "" - -

+

+ %=l 'log_OP_DESC' +
+ + %=l 'log_OP_LABEL' + + %if ($log_datas->{'default_op'} eq 'download') { + % param 'Operation' => 'download'; + %} + %= select_field 'Operation' => [[(l 'log_VIEW') => 'view'],[(l 'DOWNLOAD') => 'download']], class => "" + +

-

- %=l 'log_END_DESC' -

+

+ %=l 'log_END_DESC' +

- %= submit_button "$btn", class => "" + %= submit_button "$btn", class => "" % end
%end diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/viewlogfiles2.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/viewlogfiles2.html.ep index 12e84e3..a064bf5 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/viewlogfiles2.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/viewlogfiles2.html.ep @@ -1,14 +1,14 @@ -% layout 'default', title => 'Sme server 2 - View log files 2'; +% layout 'AdminLTE', title => 'Sme server 2 - View log files 2'; % content_for 'module' => begin
% if (config->{debug} == 1) { -

- (DBG)route: <%= $c->current_route %>
- (DBG)trt: <%= $log_datas->{trt} %>
-

+

+ (DBG)route: <%= $c->current_route %>
+ (DBG)trt: <%= $log_datas->{trt} %>
+

% }

<%= $title %>

@@ -19,12 +19,12 @@ <% my $btn = l('log_REFRESH'); %> %= form_for 'viewlogfilesr' => (method => 'POST') => begin - %= submit_button "$btn", class => "" - %= hidden_field 'trt' => $log_datas->{trt} - %= hidden_field 'Filename' => $log_datas->{filename} - %= hidden_field 'Matchpattern' => $log_datas->{matchpattern} - %= hidden_field 'Highlightpattern' => $log_datas->{highlightpattern} - %= hidden_field 'Operation' => $log_datas->{operation} + %= submit_button "$btn", class => "" + %= hidden_field 'trt' => $log_datas->{trt} + %= hidden_field 'Filename' => $log_datas->{filename} + %= hidden_field 'Matchpattern' => $log_datas->{matchpattern} + %= hidden_field 'Highlightpattern' => $log_datas->{highlightpattern} + %= hidden_field 'Operation' => $log_datas->{operation} % end
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/welcome.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/welcome.html.ep index c7ddd54..084acb0 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/welcome.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/welcome.html.ep @@ -1,4 +1,4 @@ -% layout 'default', title => 'Sme server 2 - IndexT'; +% layout 'AdminLTE', title => 'Sme server 2 - IndexT'; % content_for 'module' => begin
@@ -17,45 +17,45 @@ Abdo abigo aptent commoveo inhibeo molior nibh plaga pneum zelus. Conventio geni

%= l ('MESS_TEST','toto')

- %= link_to Initial => '/' + %= link_to Initial => '/'

- %= link_to Manual => '/manual' + %= link_to Manual => '/manual'

- %= link_to Welcome => '/welcome' - Accueil. + %= link_to Welcome => '/welcome' + Accueil.

-% use SrvMngr::Navigation2; -% my %nav = %{SrvMngr::navigation2->getNavigation( $c->languages() )}; - +% use SrvMngr::Navigation2; +% my %nav = %{SrvMngr::navigation2->getNavigation( $c->languages() )}; + -
+
% foreach my $h (sort { ($nav{$a}{'WEIGHT'}/$nav{$a}{'COUNT'}) -% <=> ($nav{$b}{'WEIGHT'}/$nav{$b}{'COUNT'}) } keys %nav) { -
- %= $h -
+% <=> ($nav{$b}{'WEIGHT'}/$nav{$b}{'COUNT'}) } keys %nav) { +
+ %= $h +
-% foreach (sort { $a->{'WEIGHT'} <=> $b->{'WEIGHT'} } @{$nav{$h}{'DESCRIPTIONS'}}) { -% my ($target, $classNew) = ( $_->{'FILENAME'} =~ m/^2\// ) ? -% ('_self',' accent') : -% ('main','') ; +% foreach (sort { $a->{'WEIGHT'} <=> $b->{'WEIGHT'} } @{$nav{$h}{'DESCRIPTIONS'}}) { +% my ($target, $classNew) = ( $_->{'FILENAME'} =~ m/^2\// ) ? +% ('_self',' accent') : +% ('main','') ; -% my $href = '/server-manager' . $_->{'FILENAME'}; - +% my $href = '/server-manager' . $_->{'FILENAME'}; + % $c++; -% } +% } % } diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/whatever.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/whatever.html.ep index 3db8a2f..e1e603e 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/whatever.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/whatever.html.ep @@ -1,4 +1,4 @@ -% layout 'default', title => 'Sme server 2 - Whatever D'; +% layout 'AdminLTE', title => 'Sme server 2 - Whatever D'; % content_for 'module' => begin @@ -10,7 +10,7 @@
dev

- %= link_to Welcome => '/' + %= link_to Welcome => '/'

diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/workgroup.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/workgroup.html.ep index 27ad691..882df96 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/workgroup.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/workgroup.html.ep @@ -1,65 +1,65 @@ -% layout 'default', title => "Sme server 2 - workgroup"; +% layout 'AdminLTE', title => "Sme server 2 - workgroup"; % content_for 'module' => begin
%if (config->{debug} == 1) { -

- (DBG)route: <%= $c->current_route %>
- (DBG)pdc: <%= $wkg_datas->{ServerRole}%>
- (DBG)roam: <%= $wkg_datas->{RoamingProfiles}%>
-

+

+ (DBG)route: <%= $c->current_route %>
+ (DBG)pdc: <%= $wkg_datas->{ServerRole}%>
+ (DBG)roam: <%= $wkg_datas->{RoamingProfiles}%>
+

%}

<%= $title %>


<%= $modul %> - <% my $btn = l('SAVE'); + <% my $btn = l('SAVE'); %> %= form_for 'workgroup' => (method => 'POST') => begin -

- %=l 'wkg_DESC_WORKGROUP', class => "" -

- - %=l 'wkg_LABEL_WORKGROUP', class => "" - - %= text_field 'Workgroup' => $wkg_datas->{Workgroup}, class => "" , pattern=>".{1,15}", title=>"Limited to 15 characters by the NETBIOS" - -

-

- %=l 'wkg_DESC_SERVERNAME', class => "" -

- - %=l 'wkg_LABEL_SERVERNAME', class => "" - - %= text_field 'ServerName' => $wkg_datas->{ServerName}, class => "" - -

-

+

+ %=l 'wkg_DESC_WORKGROUP', class => "" +

+ + %=l 'wkg_LABEL_WORKGROUP', class => "" + + %= text_field 'Workgroup' => $wkg_datas->{Workgroup}, class => "" , pattern=>".{1,15}", title=>"Limited to 15 characters by the NETBIOS" + +

+

+ %=l 'wkg_DESC_SERVERNAME', class => "" +

+ + %=l 'wkg_LABEL_SERVERNAME', class => "" + + %= text_field 'ServerName' => $wkg_datas->{ServerName}, class => "" + +

+

%= $c->render_to_string(inline => l 'wkg_DESC_PDC') -
- - %=l 'wkg_LABEL_PDC', class => "" - - % param 'ServerRole' => $wkg_datas->{ServerRole} unless param 'ServerRole'; - %= select_field 'ServerRole' => [[ (l 'YES') => 'PDC'], [ (l 'NO') => 'WS']], class => "" - -

-

+
+ + %=l 'wkg_LABEL_PDC', class => "" + + % param 'ServerRole' => $wkg_datas->{ServerRole} unless param 'ServerRole'; + %= select_field 'ServerRole' => [[ (l 'YES') => 'PDC'], [ (l 'NO') => 'WS']], class => "" + +

+

%= $c->render_to_string(inline => l 'wkg_DESC_ROAM') -
- - %=l 'wkg_LABEL_ROAM', class => "" - - % param 'RoamingProfiles' => $wkg_datas->{RoamingProfiles} unless param 'RoamingProfiles'; - %= select_field 'RoamingProfiles' => [[ (l 'YES') => 'yes'], [ (l 'NO') => 'no']], class => "" - -

-

-
- %= submit_button "$btn", class => "" -

+
+ + %=l 'wkg_LABEL_ROAM', class => "" + + % param 'RoamingProfiles' => $wkg_datas->{RoamingProfiles} unless param 'RoamingProfiles'; + %= select_field 'RoamingProfiles' => [[ (l 'YES') => 'yes'], [ (l 'NO') => 'no']], class => "" + +

+

+
+ %= submit_button "$btn", class => "" +

% end
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/yum.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/yum.html.ep index 304b33d..0e375e2 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/yum.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/yum.html.ep @@ -1,97 +1,97 @@ -% layout 'default', title => "Sme server 2 - yum"; +% layout 'AdminLTE', title => "Sme server 2 - yum"; % content_for 'module' => begin
% if (config->{debug} == 1) { -

- %= dumper $c->current_route - %= dumper $yum_datas -

+

+ %= dumper $c->current_route + %= dumper $yum_datas +

% }

<%= $title%>

% if ( $notif ) { -
- %= $notif - +
+ %= $notif + %} % if ( $c->is_empty('updates') ) { -

- %=l 'yum_TITLE_UPTODATE' -

- %=l 'yum_DESC_UPTODATE' -

+

+ %=l 'yum_TITLE_UPTODATE' +

+ %=l 'yum_DESC_UPTODATE' +

%} % if ( $c->non_empty('updates') ) { -

- %=l 'yum_TITLE_UPDATES_AVAILABLE' -

- %=l 'yum_DESC_UPDATES_AVAILABLE' -

+

+ %=l 'yum_TITLE_UPDATES_AVAILABLE' +

+ %=l 'yum_DESC_UPDATES_AVAILABLE' +

- %= form_for 'yum' => (method => 'POST') => begin - %= hidden_field 'trt' => 'UPDT' - %= submit_button $c->l('yum_BUTTON_INSTALL_UPDATES'), class => "" - % end + %= form_for 'yum' => (method => 'POST') => begin + %= hidden_field 'trt' => 'UPDT' + %= submit_button $c->l('yum_BUTTON_INSTALL_UPDATES'), class => "" + % end %} % if ( $c->non_empty('available') ) { - %= form_for 'yum' => (method => 'POST') => begin -
- %= hidden_field 'trt' => 'INST' - %= submit_button $c->l('yum_BUTTON_INSTALL_AVAILABLE'), class => "" - % end + %= form_for 'yum' => (method => 'POST') => begin +
+ %= hidden_field 'trt' => 'INST' + %= submit_button $c->l('yum_BUTTON_INSTALL_AVAILABLE'), class => "" + % end %} % if ( $c->non_empty('installed') ) { - %= form_for 'yum' => (method => 'POST') => begin -
- %= hidden_field 'trt' => 'REMO' - %= submit_button $c->l('yum_BUTTON_REMOVE'), class => "" - % end + %= form_for 'yum' => (method => 'POST') => begin +
+ %= hidden_field 'trt' => 'REMO' + %= submit_button $c->l('yum_BUTTON_REMOVE'), class => "" + % end %} %= form_for 'yum' => (method => 'POST') => begin -

- %=l 'yum_LABEL_YUM_STATUS' - - %= $c->get_status('status', 'localise') -

+

+ %=l 'yum_LABEL_YUM_STATUS' + + %= $c->get_status('status', 'localise') +

-

- %=l 'yum_LABEL_YUM_PACKAGEFUNCTIONS' - - %= $c->get_status('PackageFunctions', 'localise') -

+

+ %=l 'yum_LABEL_YUM_PACKAGEFUNCTIONS' + + %= $c->get_status('PackageFunctions', 'localise') +

-

- %=l 'yum_LABEL_YUM_DELTARPMPROCESS' - - %= $c->get_status('DeltaRpmProcess', 'localise') -

+

+ %=l 'yum_LABEL_YUM_DELTARPMPROCESS' + + %= $c->get_status('DeltaRpmProcess', 'localise') +

-

- %=l 'yum_LABEL_YUM_DOWNLOADONLY' - - %= $c->get_status('DownloadOnly', 'localise') -

+

+ %=l 'yum_LABEL_YUM_DOWNLOADONLY' + + %= $c->get_status('DownloadOnly', 'localise') +

-

- %=l 'yum_LABEL_YUM_AUTOINSTALLUPDATES' - - %= $c->get_status('AutoInstallUpdates', 'localise') -

+

+ %=l 'yum_LABEL_YUM_AUTOINSTALLUPDATES' + + %= $c->get_status('AutoInstallUpdates', 'localise') +

- %= hidden_field 'trt' => 'CONF' -
- %= submit_button $c->l('yum_BUTTON_CONFIGURATION'), class => "" + %= hidden_field 'trt' => 'CONF' +
+ %= submit_button $c->l('yum_BUTTON_CONFIGURATION'), class => "" % end diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/yumconfig.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/yumconfig.html.ep index 24784a3..8fe3b84 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/yumconfig.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/yumconfig.html.ep @@ -1,86 +1,86 @@ -% layout 'default', title => "Sme server 2 - yum_config"; +% layout 'AdminLTE', title => "Sme server 2 - yum_config"; % content_for 'module' => begin
% if (config->{debug} == 1) { -

- %= dumper $c->current_route - %= dumper $yum_datas -

+

+ %= dumper $c->current_route + %= dumper $yum_datas +

% }

<%= $title%>

% if ( $notif ) { -
- %= $notif -
+
+ %= $notif +
%} %= form_for 'yumd' => (method => 'POST') => begin -

- %=l 'yum_LABEL_YUM_STATUS' - - % param 'yum_check4updates' => $c->get_status('check4updates') unless param 'yum_check4updates'; - %= select_field 'yum_check4updates' => $c->get_check_freq_opt() -

+

+ %=l 'yum_LABEL_YUM_STATUS' + + % param 'yum_check4updates' => $c->get_status('check4updates') unless param 'yum_check4updates'; + %= select_field 'yum_check4updates' => $c->get_check_freq_opt() +

-
- %=l 'yum_DESC_YUM_PACKAGEFUNCTIONS' +
+ %=l 'yum_DESC_YUM_PACKAGEFUNCTIONS' -

- %=l 'yum_LABEL_YUM_PACKAGEFUNCTIONS' - - % param 'yum_PackageFunctions' => $c->get_status('PackageFunctions') unless param 'yum_PackageFunctions'; - %= select_field 'yum_PackageFunctions' => [[ $c->l('DISABLED') => 'disabled'], [ $c->l('ENABLED') => 'enabled']] -

+

+ %=l 'yum_LABEL_YUM_PACKAGEFUNCTIONS' + + % param 'yum_PackageFunctions' => $c->get_status('PackageFunctions') unless param 'yum_PackageFunctions'; + %= select_field 'yum_PackageFunctions' => [[ $c->l('DISABLED') => 'disabled'], [ $c->l('ENABLED') => 'enabled']] +

-
- %=l 'yum_DESC_ENABLED_REPOSITORIES' +
+ %=l 'yum_DESC_ENABLED_REPOSITORIES' -

- %=l 'yum_LABEL_ENABLED_REPOSITORIES' - - % param 'SelectedRepositories' => $c->get_repository_current_options() unless param 'SelectedRepositories'; - %= select_field 'SelectedRepositories' => $c->get_repository_options2(), class => "", multiple => '1' -

+

+ %=l 'yum_LABEL_ENABLED_REPOSITORIES' + + % param 'SelectedRepositories' => $c->get_repository_current_options() unless param 'SelectedRepositories'; + %= select_field 'SelectedRepositories' => $c->get_repository_options2(), class => "", multiple => '1' +

-
- %=l 'yum_DESC_YUM_DELTARPMPROCESS' +
+ %=l 'yum_DESC_YUM_DELTARPMPROCESS' -

- %=l 'yum_LABEL_YUM_DELTARPMPROCESS' - - % param 'yum_DeltaRpmProcess' => $c->get_status('DeltaRpmProcess') unless param 'yum_DeltaRpmProcess'; - %= select_field 'yum_DeltaRpmProcess' => [[ $c->l('DISABLED') => 'disabled'], [ $c->l('ENABLED') => 'enabled']] -

+

+ %=l 'yum_LABEL_YUM_DELTARPMPROCESS' + + % param 'yum_DeltaRpmProcess' => $c->get_status('DeltaRpmProcess') unless param 'yum_DeltaRpmProcess'; + %= select_field 'yum_DeltaRpmProcess' => [[ $c->l('DISABLED') => 'disabled'], [ $c->l('ENABLED') => 'enabled']] +

-
- %=l 'yum_DESC_YUM_DOWNLOADONLY' +
+ %=l 'yum_DESC_YUM_DOWNLOADONLY' -

- %=l 'yum_LABEL_YUM_DOWNLOADONLY' - - % param 'yum_DownloadOnly' => $c->get_status('DownloadOnly') unless param 'yum_DownloadOnly'; - %= select_field 'yum_DownloadOnly' => [[ $c->l('DISABLED') => 'disabled'], [ $c->l('ENABLED') => 'enabled']] -

+

+ %=l 'yum_LABEL_YUM_DOWNLOADONLY' + + % param 'yum_DownloadOnly' => $c->get_status('DownloadOnly') unless param 'yum_DownloadOnly'; + %= select_field 'yum_DownloadOnly' => [[ $c->l('DISABLED') => 'disabled'], [ $c->l('ENABLED') => 'enabled']] +

-
- %=l 'yum_DESC_YUM_AUTOINSTALLUPDATES' +
+ %=l 'yum_DESC_YUM_AUTOINSTALLUPDATES' -

- %=l 'yum_LABEL_YUM_AUTOINSTALLUPDATES' - - % param 'yum_AutoInstallUpdates' => $c->get_status('AutoInstallUpdates') unless param 'yum_AutoInstallUpdates'; - %= select_field 'yum_AutoInstallUpdates' => [[ $c->l('DISABLED') => 'disabled'], [ $c->l('ENABLED') => 'enabled']] -

+

+ %=l 'yum_LABEL_YUM_AUTOINSTALLUPDATES' + + % param 'yum_AutoInstallUpdates' => $c->get_status('AutoInstallUpdates') unless param 'yum_AutoInstallUpdates'; + %= select_field 'yum_AutoInstallUpdates' => [[ $c->l('DISABLED') => 'disabled'], [ $c->l('ENABLED') => 'enabled']] +

- %= hidden_field 'trt' => 'CONF' -
+ %= hidden_field 'trt' => 'CONF' +
- %= submit_button $c->l('SAVE'), class => "" + %= submit_button $c->l('SAVE'), class => "" % end diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/yuminstall.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/yuminstall.html.ep index 00baed2..37f3819 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/yuminstall.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/yuminstall.html.ep @@ -1,54 +1,54 @@ -% layout 'default', title => "Sme server 2 - yum_install"; +% layout 'AdminLTE', title => "Sme server 2 - yum_install"; % content_for 'module' => begin
% if (config->{debug} == 1) { -

- %= dumper $c->current_route - %= dumper $yum_datas -

+

+ %= dumper $c->current_route + %= dumper $yum_datas +

% }

<%= $title%>

% if ( $notif ) { -
- %= $notif -
+
+ %= $notif +
%} -
+
%= form_for 'yumd' => (method => 'POST') => begin - %=l 'yum_HEADER_AVAILABLE_SOFTWARE' -

+ %=l 'yum_HEADER_AVAILABLE_SOFTWARE' +

% if ($c->non_empty('available','group')) { - %=l 'yum_DESC_AVAILABLE_GROUPS' -

- %=l 'yum_LABEL_AVAILABLE_GROUPS' - - % param 'SelectedGroups' => $c->get_names2('updates','group') unless param 'SelectedGroups'; - %= select_field 'SelectedGroups' => $c->get_options2('available', 'group'), class => "", multiple => "1" -

+ %=l 'yum_DESC_AVAILABLE_GROUPS' +

+ %=l 'yum_LABEL_AVAILABLE_GROUPS' + + % param 'SelectedGroups' => $c->get_names2('updates','group') unless param 'SelectedGroups'; + %= select_field 'SelectedGroups' => $c->get_options2('available', 'group'), class => "", multiple => "1" +

%} -
+
% if ($c->non_empty('available','packages')) { - %=l 'yum_DESC_AVAILABLE_PACKAGES' -

- %=l 'yum_LABEL_AVAILABLE_PACKAGES' - - % param 'SelectedPackages' => $c->get_names2('updates','package') unless param 'SelectedPackages'; - %= select_field 'SelectedPackages' => $c->get_options2('available', 'package'), class => "", multiple => "1" -

+ %=l 'yum_DESC_AVAILABLE_PACKAGES' +

+ %=l 'yum_LABEL_AVAILABLE_PACKAGES' + + % param 'SelectedPackages' => $c->get_names2('updates','package') unless param 'SelectedPackages'; + %= select_field 'SelectedPackages' => $c->get_options2('available', 'package'), class => "", multiple => "1" +

%} - %= hidden_field 'trt' => 'INST' -

+ %= hidden_field 'trt' => 'INST' +

- %= submit_button $c->l('yum_INSTALL_SOFTWARE'), class => "" + %= submit_button $c->l('yum_INSTALL_SOFTWARE'), class => "" % end diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/yumlogfile.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/yumlogfile.html.ep index 03a49b5..2e8f6e4 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/yumlogfile.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/yumlogfile.html.ep @@ -1,4 +1,4 @@ -% layout 'default', title => "Sme server 2 - yum_logfile"; +% layout 'AdminLTE', title => "Sme server 2 - yum_logfile"; % content_for 'refresh' => begin @@ -8,30 +8,30 @@
% if (config->{debug} == 1) { -

- %= dumper $c->current_route - %= dumper $yum_datas -

+

+ %= dumper $c->current_route + %= dumper $yum_datas +

% }

<%= $title%>

% if ( $notif ) { -
- %= $notif -
+
+ %= $notif +
%} %= form_for 'yum' => (method => 'POST') => begin -

Please Wait - Yum Running (<%= $c->get_yum_status_page() %>)

+

Please Wait - Yum Running (<%= $c->get_yum_status_page() %>)

- <%= $c->render_to_string(inline => $c->format_yum_log()) %> + <%= $c->render_to_string(inline => $c->format_yum_log()) %> - %= hidden_field 'trt' => 'LOGF' -
+ %= hidden_field 'trt' => 'LOGF' +
% end diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/yumpostupg.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/yumpostupg.html.ep index 76a2645..9a44dac 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/yumpostupg.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/yumpostupg.html.ep @@ -1,41 +1,44 @@ -% layout 'default', title => "Sme server 2 - yum_update"; +% layout 'AdminLTE', title => "Sme server 2 - yum_update"; % content_for 'module' => begin -
+
% if (config->{debug} == 1) { -

- %= dumper $c->current_route - %= dumper $yum_datas -

+

+ %= dumper $c->current_route + %= dumper $yum_datas +

% }

<%= $title%>

% if ( $notif ) { -
- %= $notif -
+
+
+ %= $notif +
%} -
+
+
<% my $btn = l('NEXT'); %> %= $c->render_to_string( inline => l 'yum_UPDATE_SUCCESS' ) % if ( $yum_datas->{reconf} eq 'yes' ) { - %= $c->render_to_string( inline => l 'yum_HEADER_POSTUPGRADE_REQUIRED' ) - <% $btn = l('RECONFIGURE'); %> + %= $c->render_to_string( inline => l 'yum_HEADER_POSTUPGRADE_REQUIRED' ) + <% $btn = l('RECONFIGURE'); %> % } -

+
+
%= form_for 'yumd' => (method => 'POST') => begin - <%= $c->render_to_string(inline => $c->show_yum_log()) %> + <%= $c->render_to_string(inline => $c->show_yum_log()) %> - %= hidden_field 'trt' => 'PSTU' - %= hidden_field 'reconf' => $yum_datas->{reconf} -
+ %= hidden_field 'trt' => 'PSTU' + %= hidden_field 'reconf' => $yum_datas->{reconf} +
- %= submit_button "$btn", class => "" + %= submit_button "$btn", class => "" % end diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/yumremove.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/yumremove.html.ep index 5fa796d..a70147a 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/yumremove.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/yumremove.html.ep @@ -1,53 +1,58 @@ -% layout 'default', title => "Sme server 2 - yum_update"; +% layout 'AdminLTE', title => "Sme server 2 - yum_update"; % content_for 'module' => begin -
+
% if (config->{debug} == 1) { -

- %= dumper $c->current_route - %= dumper $yum_datas -

+

+ %= dumper $c->current_route + %= dumper $yum_datas +

% } - +

<%= $title%>


- + % if ( $notif ) { -
- %= $notif -
+
+ %= $notif +
%} %= form_for 'yumd' => (method => 'POST') => begin - %=l 'yum_HEADER_INSTALLED_SOFTWARE' + %=l 'yum_HEADER_INSTALLED_SOFTWARE' -
+
% if ($c->non_empty('installed','group')) { - %=l 'yum_DESC_INSTALLED_GROUPS' -

- %=l 'yum_LABEL_INSTALLED_GROUPS' - - %= select_field 'SelectedGroups' => $c->get_options2('installed', 'group'), class => "", multiple => "1" -

+ %=l 'yum_DESC_INSTALLED_GROUPS' +

+ + %=l 'yum_LABEL_INSTALLED_GROUPS' + + + %= select_field 'SelectedGroups' => $c->get_options2('installed', 'group'), class => "", multiple => "1" +

%} -
+
% if ($c->non_empty('installed','packages')) { - %=l 'yum_DESC_INSTALLED_PACKAGES' -

- %=l 'yum_LABEL_INSTALLED_PACKAGES' - - %= select_field 'SelectedPackages' => $c->get_options2('installed', 'package'), class => "", multiple => "1" -

+ %=l 'yum_DESC_INSTALLED_PACKAGES' +

+ + %=l 'yum_LABEL_INSTALLED_PACKAGES' + + + %= select_field 'SelectedPackages' => $c->get_options2('installed', 'package'), class => "", multiple => "1" + +

%} - + - %= hidden_field 'trt' => 'REMO' -
+ %= hidden_field 'trt' => 'REMO' +
- %= submit_button $c->l('REMOVE'), class => "" + %= submit_button $c->l('REMOVE'), class => "" % end diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/yumupdate.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/yumupdate.html.ep index b8f95f8..15ece5a 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/yumupdate.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/yumupdate.html.ep @@ -1,40 +1,41 @@ -% layout 'default', title => "Sme server 2 - yum_update"; +% layout 'AdminLTE', title => "Sme server 2 - yum_update"; % content_for 'module' => begin -
+
% if (config->{debug} == 1) { -

- %= dumper $c->current_route - %= dumper $yum_datas -

+

+ %= dumper $c->current_route + %= dumper $yum_datas +

% } - +

<%= $title%>

% if ( $notif ) { -
- %= $notif -
+
+ %= $notif +
%} %= form_for 'yumd' => (method => 'POST') => begin - %=l 'yum_DESC_AVAILABLE_UPDATES' + %=l 'yum_DESC_AVAILABLE_UPDATES' -

- %=l 'yum_LABEL_AVAILABLE_UPDATES' - - % param 'SelectedPackages' => $c->get_names2('updates','package') unless param 'SelectedPackages'; - %= select_field 'SelectedPackages' => $c->get_options2('updates', 'package'), class => "", multiple => "1" -

+

+ %=l 'yum_LABEL_AVAILABLE_UPDATES' + + + % param 'SelectedPackages' => $c->get_names2('updates','package') unless param 'SelectedPackages'; + %= select_field 'SelectedPackages' => $c->get_options2('updates', 'package'), class => "", multiple => "1" +

- %= hidden_field 'trt' => 'UPDT' -
+ %= hidden_field 'trt' => 'UPDT' +
- %= submit_button $c->l('yum_INSTALL_UPDATES'), class => "" + %= submit_button $c->l('yum_INSTALL_UPDATES'), class => "" % end diff --git a/smeserver-manager-AdminLTE.spec b/smeserver-manager-AdminLTE.spec index 4b2243d..19f0539 100644 --- a/smeserver-manager-AdminLTE.spec +++ b/smeserver-manager-AdminLTE.spec @@ -1,6 +1,6 @@ %define name smeserver-manager-AdminLTE %define version 11.0.0 -%define release 1 +%define release 2 Summary: AdminLTE is an html framework for admin consoles - this rpm adds it to smeserver manager2 Name: %{name} Version: %{version} @@ -26,7 +26,13 @@ AdminLTE is an html framework for admin consoles wget https://github.com/ColorlibHQ/AdminLTE/archive/master.zip %changelog -* Tue Mar 25 2025 Brian Read 0.1.4-4.sme +* Tue Apr 15 2025 John Crisp 11.0.0-2.sme +- Start to build templates with AdminLTE +- Split the basic template into sections to make it easier to manage +- Cleanup existign main templates +- Rename some partials more logically + +* Tue Mar 25 2025 Brian Read 11.0.0-1.sme - New version for AdminLTE integration with no class or ids %prep