mirror of https://github.com/IoTcat/PyOne.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
2.6 KiB
60 lines
2.6 KiB
{%extends 'admin/layout.html'%} |
|
|
|
{%block content%} |
|
<div class="mdui-container-fluid"> |
|
|
|
<div class="mdui-typo"> |
|
<h1> 基本设置 <small>设置PyOne基本参数</small></h1> |
|
</div> |
|
<form action="{{url_for('admin.setting')}}" method="POST"> |
|
<div class="mdui-textfield"> |
|
<h4>网站名称</h4> |
|
<input class="mdui-textfield-input" type="text" name="title" value="{{title}}"/> |
|
</div> |
|
|
|
<div class="mdui-textfield"> |
|
<h4>缓存过期时间(秒)</h4> |
|
<input class="mdui-textfield-input" type="text" name="downloadUrl_timeout" value="{{downloadUrl_timeout}}"/> |
|
</div> |
|
|
|
<div class="mdui-textfield"> |
|
<h4>防盗链设置(不限制,则设置:no-referrer;仅限3pp.me调用,则设置:3pp.me;可调用域名通过英文逗号分隔)</h4> |
|
<input class="mdui-textfield-input" type="text" name="allow_site" value="{{allow_site}}"/> |
|
</div> |
|
|
|
<div class="mdui-textfield"> |
|
<h4>统计代码</h4> |
|
<input class="mdui-textfield-input" type="text" name="tj_code" value="{{tj_code}}"/> |
|
</div> |
|
|
|
<div class="mdui-textfield"> |
|
<h4>修改后台密码(如果不修改,则无需输入)</h4> |
|
<input class="mdui-textfield-input" type="password" name="password1" placeholder="请输入新密码" /> |
|
<input class="mdui-textfield-input" type="password" name="password2" placeholder="请再次输入新密码" /> |
|
</div> |
|
|
|
<div class="mdui-textfield"> |
|
<h4>网盘信息编辑</h4> |
|
{%for user in get_od_user()%} |
|
{%if user[1]!='添加网盘'%} |
|
<div class="mdui-panel" mdui-panel> |
|
<div class="mdui-panel-item"> |
|
<div class="mdui-panel-item-header">{{user[1]}}</div> |
|
<div class="mdui-panel-item-body"> |
|
<h5>显示名称</h5> |
|
<input class="mdui-textfield-input" type="text" name="other_name[{{user[0]}}]" placeholder="请输入显示名称" value="{{user[1]}}" /> |
|
<h5>分享目录</h5> |
|
<input class="mdui-textfield-input" type="text" name="share_path[{{user[0]}}]" placeholder="请输入分享目录" value="{{user[3]}}" /> |
|
</div> |
|
</div> |
|
</div> |
|
{%endif%} |
|
{%endfor%} |
|
</div> |
|
|
|
<button type="submit" class="mdui-btn mdui-color-theme-accent mdui-ripple mdui-float-right"> |
|
<i class="mdui-icon material-icons"></i> 保存 |
|
</button> |
|
</form> |
|
</div> |
|
{%endblock content%}
|
|
|