-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d040d61
commit 0245e5e
Showing
1 changed file
with
24 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,27 @@ | ||
<!--User profile--> | ||
<p>User: {{request.user.username}}</p> | ||
<p>Domain: {{domain}}</p> | ||
<!--End user profile--> | ||
|
||
<!--User domains--> | ||
{% with domains=request.user.get_owned_domains %} | ||
{% for domain in domains %} | ||
<p>{{domain.name}} {{domain.name}}</p> | ||
{% endfor %} | ||
{% endwith %} | ||
<!--End user domains--> | ||
|
||
<!--Mail messages--> | ||
{% if request.domain_obj %} | ||
{{request.domain_obj.name}} | ||
{% with emails=request.domain_obj.get_emails %} | ||
{% for email in emails %} | ||
<p>{{email.sender}} {{email.message}}</p> | ||
{% endfor %} | ||
{% endwith %} | ||
{% endif %} | ||
<!--End mail messages--> | ||
|
||
<!--Messages or notification--> | ||
<!-- Messages --> | ||
{% for message in messages %} | ||
<p>{{message.tags}} {{message}}</p> | ||
<p>{{ message.tag }} {{ message }}</p> | ||
{% endfor %} | ||
<!--End messages--> | ||
|
||
<!-- | ||
/domain/[ | ||
messages -> get messages -> GET -> ?domain ?categories ?id | ||
messages/clear -> clear messages -> GET -> ?domain ?categories ?id | ||
messages/create -> create message -> POST -> ?domain ?categories | ||
messages/download -> download message -> GET -> ?domain ?categories ?id | ||
] | ||
--> | ||
<br/> | ||
|
||
{% if domain %} | ||
<p>Domain: {{ domain.name }}</p> | ||
{% with users=domain.get_virtual_users %} | ||
<form method="post"> | ||
<p>password is encrypt u can only change password</p> | ||
{% csrf_token %} | ||
<label for="email">Select Email:</label> | ||
<select id="email" name="email"> | ||
{% for user in users %} | ||
{% if forloop.first %} | ||
<option value="{{ user.email }}" selected>{{ user.email }}</option> | ||
{% else %} | ||
<option value="{{ user.email }}">{{ user.email }}</option> | ||
{% endif %} | ||
{% endfor %} | ||
</select> | ||
<input type="password" name="password"/> | ||
<button type="submit">Submit</button> | ||
</form> | ||
{% endwith %} | ||
{% endif %} |