Skip to content

Commit 2121986

Browse files
committed
remove "system preferences" dialog
1 parent 6c99588 commit 2121986

File tree

2 files changed

+1
-51
lines changed

2 files changed

+1
-51
lines changed

assets/templates_src/internal/layout/header.html

Lines changed: 1 addition & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -80,47 +80,4 @@ <h4 class="modal-title">Change notifications settings</h4>
8080
</div>
8181
</form>
8282
</div>
83-
</div>
84-
85-
{% verbatim %}
86-
{% if CurrentUser.IsSuperuser %}
87-
<div class="modal fade" id="systemSettings" tabindex="-1" role="dialog">
88-
<div class="modal-dialog" role="document">
89-
<form method="post" action="/system/update-settings/">
90-
<div class="modal-content">
91-
<div class="modal-header">
92-
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
93-
<h4 class="modal-title">System settings</h4>
94-
</div>
95-
<div class="modal-body">
96-
<div class="form-group">
97-
<label for="message-text" class="control-label">app host:</label>
98-
<input type="text" name="app_host" data-title="Field is required" class="form-control" required>
99-
</div>
100-
<div class="form-group">
101-
<label for="message-text" class="control-label">smtp address:</label>
102-
<input type="text" name="smtp_address" placeholder="host:port" class="form-control">
103-
</div>
104-
<div class="form-group">
105-
<label for="message-text" class="control-label">smtp username:</label>
106-
<input type="text" name="smtp_username" class="form-control">
107-
</div>
108-
<div class="form-group">
109-
<label for="message-text" class="control-label">smtp password:</label>
110-
<input type="password" name="smtp_password" class="form-control">
111-
</div>
112-
<div class="form-group">
113-
<label for="message-text" class="control-label">telegram token:</label>
114-
<input type="text" name="telegram_token" class="form-control">
115-
</div>
116-
</div>
117-
<div class="modal-footer">
118-
<button type="button" class="btn btn-default" data-dismiss="modal">close</button>
119-
<button type="submit" class="btn btn-primary">save</button>
120-
</div>
121-
</div>
122-
</form>
123-
</div>
124-
</div>
125-
{% endif %}
126-
{% endverbatim %}
83+
</div>

assets/templates_src/internal/layout/menu.html

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,6 @@
88
<li{% if page == "users"%} class="active" {% endif %}>
99
<a href="/users/"><i class="fa fa-users"></i> <span>Users</span></a>
1010
</li>
11-
{% verbatim %}
12-
{% if CurrentUser.IsSuperuser %}
13-
<li>
14-
<a href="#" data-toggle="modal" data-target="#systemSettings"><i class="fa fa-cogs"></i> <span>Settings</span></a>
15-
</li>
16-
{% endif %}
17-
{% endverbatim %}
1811
</ul>
1912
</section>
2013
</aside>

0 commit comments

Comments
 (0)