Files
CyberPanel/websiteFunctions/templates/websiteFunctions/WPCreate.html

419 lines
21 KiB
HTML
Raw Normal View History

2022-05-13 14:09:36 +05:00
{% extends "baseTemplate/index.html" %}
{% load i18n %}
2022-06-05 12:46:02 +05:00
{% block title %}{% trans "Deploy WordPress - CyberPanel" %}{% endblock %}
2022-05-13 14:09:36 +05:00
{% block content %}
{% load static %}
{% get_current_language as LANGUAGE_CODE %}
<!-- Current language: {{ LANGUAGE_CODE }} -->
2022-11-16 13:47:30 +05:00
<style>
.switch {
2022-11-16 18:52:39 +05:00
margin-top: 0px;
margin-left: 12px;
2022-11-16 13:47:30 +05:00
position: relative;
display: inline-block;
width: 32px;
height: 19px;
2022-11-16 16:24:21 +05:00
border-radius: 10%;
2022-11-16 13:47:30 +05:00
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
2022-11-16 16:24:21 +05:00
border-radius: 10%;
2022-11-16 13:47:30 +05:00
}
.slider:before {
position: absolute;
content: "";
height: 11px;
width: 12px;
left: 4px;
bottom: 4px;
background-color: white;
-webkit-transition: .4s;
transition: .4s;
2022-11-16 16:24:21 +05:00
border-radius: 20%;
2022-11-16 13:47:30 +05:00
}
input:checked + .slider {
background-color: #2196F3;
}
input:focus + .slider {
box-shadow: 0 0 1px #2196F3;
}
input:checked + .slider:before {
-webkit-transform: translateX(12px);
-ms-transform: translateX(12px);
transform: translateX(12px);
}
2022-11-16 18:52:39 +05:00
.help_test_domain {
background-color: black;
2022-11-17 13:58:46 +05:00
padding: 10px;
2022-11-16 18:52:39 +05:00
display: none;
2022-11-17 13:58:46 +05:00
opacity: 0.7;
position: absolute;
z-index: 9;
text-align: justify;
2022-11-16 18:52:39 +05:00
}
#help:hover + .help_test_domain {
display: block;
display: inline-block;
color: white;
font-weight: lighter;
font-size: small;
border-radius: 5px;
width: 200px;
2022-11-17 13:58:46 +05:00
{#height: auto;#}
2022-11-16 18:52:39 +05:00
}
2022-11-16 13:47:30 +05:00
</style>
2022-05-13 14:09:36 +05:00
<div class="container">
<div id="page-title">
<h2>{% trans "Create Wordpress Site" %}</h2>
<p>{% trans "On this page you can launch, list, modify and delete websites from your server." %}</p>
</div>
2022-05-19 17:38:21 +05:00
<div ng-controller="createWordpress" class="panel">
2022-05-13 14:09:36 +05:00
<div class="panel-body">
<h3 class="content-box-header">
{% trans "Website Details" %} <img ng-hide="webSiteCreationLoading"
src="{% static 'images/loading.gif' %}">
</h3>
<div class="example-box-wrapper">
<form name="websiteCreationForm" action="/" id="createPackages"
class="form-horizontal bordered-row panel-body">
<div ng-hide="installationDetailsForm" class="form-group">
<label class="col-sm-3 control-label">{% trans "Select Package" %}</label>
<div class="col-sm-6">
<select ng-model="packageForWebsite" class="form-control">
{% for items in packageList %}
<option>{{ items }}</option>
{% endfor %}
</select>
</div>
</div>
<div ng-hide="installationDetailsForm" class="form-group">
<label class="col-sm-3 control-label">{% trans "Select Owner" %}</label>
<div class="col-sm-6">
<select ng-model="websiteOwner" class="form-control">
{% for items in owernList %}
<option>{{ items }}</option>
{% endfor %}
</select>
</div>
</div>
<div ng-hide="installationDetailsForm" class="form-group">
<label class="col-sm-3 control-label">{% trans "Title" %}</label>
<div class="col-sm-6">
<input type="text" name="WPtitle" class="form-control" ng-model="WPtitle" required>
</div>
</div>
<div ng-hide="installationDetailsForm" class="form-group">
2023-05-23 22:38:35 +05:00
<label class="col-sm-3 control-label">{% trans "Domain Name" %}</label>
<div class="col-sm-6">
<input name="dom" type="text" class="form-control" ng-model="domainNameCreate"
placeholder="{% trans "Do not enter WWW, it will be auto created!" %}" required>
2022-11-16 13:47:30 +05:00
</div>
2023-05-23 22:38:35 +05:00
<div ng-show="websiteCreationForm.dom.$error.pattern"
class="current-pack">{% trans "Invalid Domain (Note: You don't need to add 'http' or 'https')" %}</div>
</div>
2022-11-16 13:47:30 +05:00
2023-07-24 16:03:19 +05:00
<div ng-hide="installationDetailsForm" class="form-group">
<label class="col-sm-3 control-label">{% trans "Additional Features" %}</label>
<label class="col-sm-3 control-label"></label>
<div class="col-sm-9">
<div class="checkbox">
<label>
{% if test_domain_data %}
<input ng-model="apacheBackend" type="checkbox" value="">
2024-09-27 15:42:17 +05:00
OpenLiteSpeed + Apache (Backend) (For Ubuntu 22, AlmaLinux 8 and AlmaLinux 9.)
2023-07-24 16:03:19 +05:00
{% else %}
<input ng-model="apacheBackend" type="checkbox" value="" disabled>
OpenLiteSpeed + Apache (Backend) (For Ubuntu 22 and AlmaLinux 8) - <strong><a href="https://go.cyberpanel.net/ApacheRev">Premium Feature</a> <i class="p fa fa-external-link btn-icon"></i></strong>
{% endif %}
</label>
</div>
</div>
</div>
2022-06-11 15:56:12 +05:00
2023-05-23 22:38:35 +05:00
{# My Work #}
{# <div ng-hide="installationDetailsForm" class="form-group">#}
{# <label class="col-sm-3 control-label"#}
{# style="margin-bottom: 15px">{% trans "Test Domain" %}</label>#}
{# <label class="switch">#}
{# <input type="checkbox" checked id="myCheck" onclick="checkbox_function()"#}
{# style="margin-top: 10px">#}
{# <span class="slider"></span>#}
{# </label>#}
{# <label id="help">#}
{# <svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" style="padding-top: 10px"#}
{# preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24">#}
{# <path fill="currentColor"#}
{# d="M12 6a3.939 3.939 0 0 0-3.934 3.934h2C10.066 8.867 10.934 8 12 8s1.934.867 1.934 1.934c0 .598-.481 1.032-1.216 1.626a9.208 9.208 0 0 0-.691.599c-.998.997-1.027 2.056-1.027 2.174V15h2l-.001-.633c.001-.016.033-.386.441-.793c.15-.15.339-.3.535-.458c.779-.631 1.958-1.584 1.958-3.182A3.937 3.937 0 0 0 12 6zm-1 10h2v2h-2z"/>#}
{# <path fill="currentColor"#}
{# d="M12 2C6.486 2 2 6.486 2 12s4.486 10 10 10s10-4.486 10-10S17.514 2 12 2zm0 18c-4.411 0-8-3.589-8-8s3.589-8 8-8s8 3.589 8 8s-3.589 8-8 8z"/>#}
{# </svg>#}
{##}
{# </label>#}
{# <label class="help_test_domain">#}
{# The test domain allows you to deploy websites without the need to add DNS records, it#}
{# allows you to create staging environments, deploy test websites, and much more...#}
{##}
{# </label>#}
{##}
{##}
{# <br><br>#}
{##}
{##}
{# <div id="Test_Domain" class="tabcontent" style="border: none;margin-left: 10px; position: relative">#}
{# <div ng-hide="installationDetailsForm" class="form-group"#}
{# ng-if="{{ test_domain_data }} == 1 ">#}
{# <label class="col-sm-3 control-label">{% trans "Domain Name" %}</label>#}
{# <div class="col-sm-6">#}
{# <div class="input-group bootstrap-touchspin">#}
{# <span#}
{# class="input-group-addon bootstrap-touchspin-prefix"#}
{# style="display: none;"></span>#}
{# <input id="TestDomainNameCreate"#}
{# class="form-control"#}
{# type="text" value=""#}
{# name="touchspin-demo-1"#}
{# style="display: block;"#}
{# placeholder="{% trans "Enter Subdomain Here" %}">#}
{##}
{# <span style="width: 48%" class="input-group-btn">#}
{# <input id="Part2_domainNameCreate" class="form-control"#}
{# type="text" name="Part2_domainNameCreate"#}
{# style="display: block;color: black;font-weight: bold;color: black;opacity: 1"#}
{# placeholder=".{{ Randam_String }}.cyberpanel.website"#}
{# value=".{{ Randam_String }}.cyberpanel.website" readonly></span>#}
{# </div>#}
{# </div>#}
{# <div ng-show="websiteCreationForm.dom.$error.pattern"#}
{# class="current-pack">{% trans "Invalid Domain (Note: You don't need to add 'http' or 'https')" %}</div>#}
{# </div>#}
{# <div ng-if="{{ test_domain_data }} == 0 ">#}
{# <center>Looks like you have not subscribed to temporary domain feature,<a#}
{# href="https://go.cyberpanel.net/TempDomain">click here</a>#}
{# for more details.#}
{# </center>#}
{# </div>#}
{# </div>#}
{##}
{# <div id="Own_Domain" class="tabcontent"#}
{# style="border: none;display: none;margin-left: 10px;position: relative">#}
{##}
{# <div ng-hide="installationDetailsForm" class="form-group">#}
{# <label class="col-sm-3 control-label">{% trans "Domain Name" %}</label>#}
{# <div class="col-sm-6">#}
{# <div class="input-group bootstrap-touchspin">#}
{# <span#}
{# class="input-group-addon bootstrap-touchspin-prefix"#}
{# style="display: none;"></span>#}
{# <input ng-model="own_domainNameCreate" id="touchspin-demo-1"#}
{# class="form-control"#}
{# type="text" value=""#}
{# name="touchspin-demo-1"#}
{# style="display: block;"#}
{# placeholder="{% trans "Do not enter WWW, it will be auto created!" %}">#}
{# <span class="input-group-addon bootstrap-touchspin-postfix">/</span>#}
{# <span style="width: 25%" class="input-group-btn">#}
{# <input id="touchspin-demo-1" class="form-control"#}
{# placeholder="{% trans "Leave empty for default" %}"#}
{# type="text" value="Leave empty for default"#}
{# name="touchspin-demo-1" ng-model="installPath"#}
{# style="display: block;"></span>#}
{##}
{# </div>#}
{# </div>#}
{# <div ng-show="websiteCreationForm.dom.$error.pattern"#}
{# class="current-pack">{% trans "Invalid Domain (Note: You don't need to add 'http' or 'https')" %}</div>#}
{# </div>#}
{# </div>#}
{##}
{# </div>#}
2022-11-16 13:47:30 +05:00
{# My Work End#}
{# #}
2022-05-19 17:38:21 +05:00
<div ng-hide="installationDetailsForm" class="form-group">
2022-05-13 14:09:36 +05:00
<label class="col-sm-3 control-label">{% trans "Username" %}</label>
<div class="col-sm-6">
<input name="Username" type="text" class="form-control" ng-model="WPUsername"
required>
</div>
<div ng-show="websiteCreationForm.dom.$error.pattern"
class="current-pack">{% trans "Invalid Domain (Note: You don't need to add 'http' or 'https')" %}</div>
</div>
<div ng-hide="installationDetailsForm" class="form-group">
<label class="col-sm-3 control-label">{% trans "Email" %}</label>
<div class="col-sm-6">
<input type="email" name="email" class="form-control" ng-model="adminEmail" required>
</div>
<div ng-show="websiteCreationForm.email.$error.email"
class="current-pack">{% trans "Invalid Email" %}</div>
</div>
2022-05-19 17:38:21 +05:00
<div ng-hide="installationDetailsForm" class="form-group">
2022-05-13 14:09:36 +05:00
<label class="col-sm-3 control-label">{% trans "Password" %}</label>
<div class="col-sm-6">
<input name="password" type="password" class="form-control" ng-model="WPPassword"
required>
</div>
<div ng-show="websiteCreationForm.dom.$error.pattern"
class="current-pack">{% trans "Invalid Domain (Note: You don't need to add 'http' or 'https')" %}</div>
</div>
<div ng-hide="installationDetailsForm" class="form-group">
<label class="col-sm-3 control-label">{% trans "Select WP Version" %}</label>
<div class="col-sm-6">
2022-05-19 17:38:21 +05:00
<select ng-model="WPVersions" class="form-control">
{% for wp in WPVersions %}
<option>{{ wp }}</option>
{% endfor %}
</select>
</div>
</div>
<div ng-hide="installationDetailsForm" class="form-group">
<label class="col-sm-3 control-label">{% trans "Plugin/Theme" %}</label>
<div class="col-sm-6">
2022-06-05 12:46:02 +05:00
<select ng-model="pluginbucket" class="form-control">
2022-05-19 17:38:21 +05:00
<option value="-1" selected>Select Plugin Bucket</option>
{% for wp in Plugins %}
<option value="{{ wp.id }}">{{ wp.Name }}</option>
2022-05-13 14:09:36 +05:00
{% endfor %}
</select>
2022-05-19 17:38:21 +05:00
</div>
</div>
<div ng-hide="installationDetailsForm" class="form-group">
<label class="col-sm-3 control-label">{% trans "Automatic Updates" %}</label>
<div class="col-sm-6">
<select ng-model="autoupdates" class="form-control">
<option>Disabled</option>
2022-06-02 14:35:41 +05:00
<option>All minor and major</option>
2022-05-19 17:38:21 +05:00
<option>Minor and Security Updates</option>
</select>
</div>
</div>
<div ng-hide="installationDetailsForm" class="form-group">
<label class="col-sm-3 control-label">{% trans "Plugins Updates" %}</label>
<div class="col-sm-6">
<select ng-model="pluginupdates" class="form-control">
<option>Enabled</option>
<option>Disabled</option>
</select>
2022-05-13 14:09:36 +05:00
</div>
</div>
2022-05-19 17:38:21 +05:00
<div ng-hide="installationDetailsForm" class="form-group">
<label class="col-sm-3 control-label">{% trans "Themes Updates" %}</label>
<div class="col-sm-6">
<select ng-model="themeupdates" class="form-control">
<option>Enabled</option>
<option>Disabled</option>
</select>
</div>
</div>
2022-05-13 14:09:36 +05:00
<div ng-hide="installationDetailsForm" class="form-group">
<label class="col-sm-3 control-label"></label>
<div class="col-sm-4">
2022-06-11 15:56:12 +05:00
<button type="button" ng-click="createWordPresssite()"
2022-05-13 14:09:36 +05:00
class="btn btn-primary btn-lg">{% trans "Create Website" %}</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="errorMessageBox" class="alert alert-danger">
<p>{% trans "Error message:" %} {$ errorMessage $}</p>
</div>
<div ng-hide="success" class="alert alert-success">
<p>{% trans "Website succesfully created." %}</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">{% trans "Go Back" %}</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
{% endblock %}