mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-03-18 02:00:16 +01:00
Fix createUser template to match v2.4.4 - remove Home Directory section and user_filters load
- Removed {% load user_filters %} which is not needed in v2.4.4
- Removed Home Directory selection section (not in v2.4.4)
- Changed securityLevels to use direct Django template rendering instead of JSON encoding
- Template now matches GitHub v2.4.4 exactly
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
{% extends "baseTemplate/index.html" %}
|
||||
{% load i18n %}
|
||||
{% load user_filters %}
|
||||
{% block title %}{% trans "Create New User - CyberPanel" %}{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
@@ -343,21 +342,6 @@
|
||||
<p class="help-text">{% trans "Choose the security level for this account" %}</p>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="form-label">{% trans "Home Directory" %}</label>
|
||||
<select ng-model="selectedHomeDirectory" class="form-control" ng-change="updateHomeDirectoryInfo()">
|
||||
<option value="">{% trans "Auto-select (Best Available)" %}</option>
|
||||
<option ng-repeat="dir in homeDirectories" value="{$ dir.id $}">
|
||||
{$ dir.name $} ({$ dir.path $}) - {$ dir.available_space | filesize $} available
|
||||
</option>
|
||||
</select>
|
||||
<p class="help-text">{% trans "Choose the home directory for this user's files" %}</p>
|
||||
<div ng-show="selectedHomeDirectoryInfo" class="alert alert-info" style="margin-top: 10px;">
|
||||
<strong>{$ selectedHomeDirectoryInfo.name $}:</strong> {$ selectedHomeDirectoryInfo.description || 'No description available' $}<br>
|
||||
<small>Available Space: {$ selectedHomeDirectoryInfo.available_space | filesize $} | Users: {$ selectedHomeDirectoryInfo.user_count $}</small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group" style="margin-top: 2rem;">
|
||||
<button type="button" ng-click="createUserFunc()" class="btn-primary">
|
||||
<i class="fa fa-user-plus"></i> {% trans "Create User" %}
|
||||
|
||||
Reference in New Issue
Block a user