mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-10 07:16:15 +01:00
281 lines
8.0 KiB
HTML
281 lines
8.0 KiB
HTML
{% extends "baseTemplate/index.html" %}
|
|
{% load i18n %}
|
|
{% block title %}{% trans "Install Joomla - CyberPanel" %}{% endblock %}
|
|
{% block content %}
|
|
|
|
{% load static %}
|
|
{% get_current_language as LANGUAGE_CODE %}
|
|
<!-- Current language: {{ LANGUAGE_CODE }} -->
|
|
|
|
<style>
|
|
/* Joomla Installation Page Styles with Dark Mode Support */
|
|
.container {
|
|
background: var(--bg-primary, #f0f0ff);
|
|
min-height: 100vh;
|
|
padding: 20px;
|
|
}
|
|
|
|
#page-title {
|
|
text-align: center;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
#page-title h2 {
|
|
color: var(--text-primary, #2f3640);
|
|
font-size: 32px;
|
|
font-weight: 700;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
#page-title p {
|
|
color: var(--text-secondary, #8893a7);
|
|
font-size: 16px;
|
|
}
|
|
|
|
.panel {
|
|
background: var(--bg-secondary, white);
|
|
border-radius: 12px;
|
|
box-shadow: 0 2px 8px var(--shadow-color, rgba(0,0,0,0.08));
|
|
border: 1px solid var(--border-color, #e8e9ff);
|
|
margin: 0 auto;
|
|
max-width: 800px;
|
|
}
|
|
|
|
.panel-body {
|
|
padding: 30px;
|
|
}
|
|
|
|
.title-hero {
|
|
color: var(--text-primary, #2f3640);
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
margin-bottom: 30px;
|
|
text-align: center;
|
|
}
|
|
|
|
.example-box-wrapper {
|
|
background: transparent;
|
|
}
|
|
|
|
.form-horizontal.bordered-row {
|
|
background: transparent;
|
|
border: none;
|
|
box-shadow: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 25px;
|
|
}
|
|
|
|
.control-label {
|
|
font-weight: 600;
|
|
color: var(--text-primary, #2f3640);
|
|
font-size: 14px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.form-control {
|
|
background: var(--bg-secondary, white);
|
|
border: 1px solid var(--border-color, #e8e9ff);
|
|
border-radius: 8px;
|
|
padding: 12px 16px;
|
|
font-size: 14px;
|
|
color: var(--text-primary, #2f3640);
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.form-control:focus {
|
|
outline: none;
|
|
border-color: var(--accent-color, #5b5fcf);
|
|
box-shadow: 0 0 0 3px var(--accent-focus, rgba(91,95,207,0.1));
|
|
}
|
|
|
|
.btn {
|
|
border-radius: 8px;
|
|
font-weight: 600;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--accent-color, #5b5fcf);
|
|
border: 1px solid var(--accent-color, #5b5fcf);
|
|
color: var(--text-on-accent, white);
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: var(--accent-hover, #4b4fbf);
|
|
border-color: var(--accent-hover, #4b4fbf);
|
|
color: var(--text-on-accent, white);
|
|
box-shadow: 0 2px 4px var(--accent-shadow, rgba(91,95,207,0.3));
|
|
}
|
|
|
|
.btn-lg {
|
|
padding: 12px 24px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.progress {
|
|
background: var(--border-color, #e8e9ff);
|
|
border-radius: 8px;
|
|
height: 12px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.progress-bar {
|
|
background: var(--accent-color, #5b5fcf);
|
|
border-radius: 8px;
|
|
color: var(--text-on-accent, white);
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: width 0.4s ease;
|
|
}
|
|
|
|
.alert {
|
|
padding: 15px;
|
|
border-radius: 8px;
|
|
margin-bottom: 20px;
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.alert-success {
|
|
background: var(--success-bg, #d1fae5);
|
|
border: 1px solid var(--success-border, #6ee7b7);
|
|
color: var(--success-text, #065f46);
|
|
}
|
|
|
|
.alert-danger {
|
|
background: var(--danger-bg, #fee2e2);
|
|
border: 1px solid var(--danger-border, #fca5a5);
|
|
color: var(--danger-text, #991b1b);
|
|
}
|
|
|
|
.text-center {
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
|
|
<div class="container">
|
|
<div id="page-title">
|
|
<h2>{% trans "Install Joomla" %}</h2>
|
|
<p>{% trans "One-click Joomla Install!" %}</p>
|
|
</div>
|
|
|
|
|
|
<div ng-controller="installJoomlaCTRL" class="panel">
|
|
<div class="panel-body">
|
|
<h3 class="title-hero">
|
|
<span id="domainNamePage">{{ domainName }}</span> - {% trans "Installation Details" %} <img ng-hide="wpInstallLoading" src="{% static 'images/loading.gif' %}">
|
|
</h3>
|
|
<div class="example-box-wrapper">
|
|
|
|
|
|
<form name="websiteCreationForm" action="/" id="createPackages" class="form-horizontal bordered-row">
|
|
|
|
<div ng-hide="installationDetailsForm" class="form-group">
|
|
|
|
<label class="col-sm-3 control-label">{% trans "Site Name" %}</label>
|
|
<div class="col-sm-6">
|
|
<input type="text" class="form-control" ng-model="siteName">
|
|
</div>
|
|
</div>
|
|
|
|
<div ng-hide="installationDetailsForm" class="form-group">
|
|
<label class="col-sm-3 control-label">{% trans "Login User" %}</label>
|
|
<div class="col-sm-6">
|
|
<input placeholder="admin" type="text" class="form-control" ng-model="adminUser" readonly>
|
|
</div>
|
|
</div>
|
|
|
|
<div ng-hide="installationDetailsForm" class="form-group">
|
|
<label class="col-sm-3 control-label">{% trans "Login Password" %}</label>
|
|
<div class="col-sm-6">
|
|
<input type="password" class="form-control" ng-model="adminPassword" required>
|
|
</div>
|
|
</div>
|
|
|
|
<div ng-hide="installationDetailsForm" class="form-group">
|
|
<label class="col-sm-3 control-label">{% trans "Database Prefix" %}</label>
|
|
<div class="col-sm-6">
|
|
<input type="text" class="form-control" ng-model="databasePrefix" readonly>
|
|
</div>
|
|
</div>
|
|
|
|
<div ng-hide="installationDetailsForm" class="form-group">
|
|
<label class="col-sm-3 control-label">{% trans "Path" %}</label>
|
|
<div class="col-sm-6">
|
|
<input placeholder="Leave emtpy to install in website home directory. (Without preceding slash)" type="text" class="form-control" ng-model="installPath">
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div ng-hide="installationDetailsForm" class="form-group">
|
|
<label class="col-sm-3 control-label"></label>
|
|
<div class="col-sm-4">
|
|
<button type="button" ng-click="installJoomla()" class="btn btn-primary btn-lg btn-block">{% trans "Install Now" %}</button>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div ng-hide="installationProgress" class="form-group">
|
|
<label class="col-sm-2 control-label"></label>
|
|
<div class="col-sm-7">
|
|
|
|
<div class="alert alert-success text-center">
|
|
<h2>{$ currentStatus $}</h2>
|
|
</div>
|
|
|
|
<div class="progress">
|
|
<div id="installProgress" class="progress-bar" role="progressbar" aria-valuenow="70" aria-valuemin="0" aria-valuemax="100" style="width:0%">
|
|
<span class="sr-only">70% Complete</span>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div ng-hide="installationFailed" class="alert alert-danger">
|
|
<p>{% trans "Installation failed. Error message:" %} {$ errorMessage $}</p>
|
|
</div>
|
|
|
|
<div ng-hide="installationSuccessfull" class="alert alert-success">
|
|
<p>{% trans "Installation successful. Visit:" %} {$ installationURL $}</p>
|
|
</div>
|
|
|
|
|
|
|
|
<div ng-hide="couldNotConnect" class="alert alert-danger">
|
|
<p>{% trans "Could not connect to server. Please refresh this page." %}</p>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div ng-hide="installationProgress" class="form-group">
|
|
<label class="col-sm-3 control-label"></label>
|
|
<div class="col-sm-4">
|
|
<button type="button" ng-disabled="goBackDisable" ng-click="goBack()" class="btn btn-primary btn-lg btn-block">{% trans "Go Back" %}</button>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</form>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
{% endblock %} |