Skip to content

Commit

Permalink
[support] Supported service list and admin mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
yoneyan committed Mar 31, 2024
1 parent 34e4640 commit af30268
Show file tree
Hide file tree
Showing 16 changed files with 687 additions and 162 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ venv/
__pycache__/
*.py[cod]
*$py.class
dsbd/develop_settings.py
dsbd/*_settings.py
*.sqlite3
2 changes: 2 additions & 0 deletions dsbd/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ def _import_ldap_group_type(group_type_name):
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = os.environ.get('DEBUG', 'false').lower() == 'true'

ADMIN_MODE = os.environ.get('ADMIN_MODE', 'false').lower() == 'true'

ALLOWED_HOSTS = os.environ.get('ALLOWED_HOSTS', '*').split(' ')
CSRF_TRUSTED_ORIGINS = os.environ.get('CSRF_TRUSTED_ORIGINS', 'http://localhost:8000').split(' ')

Expand Down
141 changes: 141 additions & 0 deletions dsbd/templates/menu.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
{% extends 'base2.html' %}
{% block content %}
<section class="py-5 text-center container">
<div class="row py-lg-5">
<div class="col-lg-6 col-md-8 mx-auto">
<h1 class="fw-light">Welcome</h1>
<p class="lead text-body-secondary">AS59105 Service Online</p>
</div>
</div>
</section>

<div class="album py-5 bg-body-tertiary">
<div class="container">

<div class="row row-cols-1 row-cols-sm-2 row-cols-md-3 g-3">
<div class="col">
<div class="card shadow-sm">
<div class="card-body">
<h4 class="card-text">サービス情報一覧</h4>
<p class="card-text">サービス情報一覧はこちらから</p>
<div class="d-flex justify-content-between align-items-center">
<div class="btn-group">
<a type="button" class="btn btn-sm btn-outline-secondary" href="/service">View</a>
</div>
</div>
</div>
</div>
</div>
<div class="col">
<div class="card shadow-sm">
<div class="card-body">
<h4 class="card-text">チケットシステム</h4>
<p class="card-text">チケット作成・返事などはこちらから</p>
<div class="d-flex justify-content-between align-items-center">
<div class="btn-group">
<a type="button" class="btn btn-sm btn-outline-secondary" href="/ticket">View</a>
</div>
</div>
</div>
</div>
</div>
<div class="col">
<div class="card shadow-sm">
<div class="card-body">
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
<div class="d-flex justify-content-between align-items-center">
<div class="btn-group">
<button type="button" class="btn btn-sm btn-outline-secondary">View</button>
<button type="button" class="btn btn-sm btn-outline-secondary">Edit</button>
</div>
<small class="text-body-secondary">9 mins</small>
</div>
</div>
</div>
</div>

<div class="col">
<div class="card shadow-sm">
<div class="card-body">
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
<div class="d-flex justify-content-between align-items-center">
<div class="btn-group">
<button type="button" class="btn btn-sm btn-outline-secondary">View</button>
<button type="button" class="btn btn-sm btn-outline-secondary">Edit</button>
</div>
<small class="text-body-secondary">9 mins</small>
</div>
</div>
</div>
</div>
<div class="col">
<div class="card shadow-sm">
<div class="card-body">
<h4 class="card-text">グループ情報・関連設定</h4>
<p class="card-text">グループ情報変更や権限変更などの各種グループ設定はこちらから</p>
<div class="d-flex justify-content-between align-items-center">
<div class="btn-group">
<a type="button" class="btn btn-sm btn-outline-secondary" href="/group">View</a>
</div>
</div>
</div>
</div>
</div>
<div class="col">
<div class="card shadow-sm">
<div class="card-body">
<h4 class="card-text">ユーザ情報・関連設定</h4>
<p class="card-text">ユーザ関連設定や二段階認証・パスワード変更などはこちらから</p>
<div class="d-flex justify-content-between align-items-center">
<div class="btn-group">
<a type="button" class="btn btn-sm btn-outline-secondary" href="/profile">View</a>
</div>
</div>
</div>
</div>
</div>

<div class="col">
<div class="card shadow-sm">
<div class="card-body">
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
<div class="d-flex justify-content-between align-items-center">
<div class="btn-group">
<button type="button" class="btn btn-sm btn-outline-secondary">View</button>
<button type="button" class="btn btn-sm btn-outline-secondary">Edit</button>
</div>
<small class="text-body-secondary">9 mins</small>
</div>
</div>
</div>
</div>
<div class="col">
<div class="card shadow-sm">
<div class="card-body">
<h4 class="card-text">Feedback</h4>
<p class="card-text">本ダッシュボードシステムのフィードバックはこちらから</p>
<div class="d-flex justify-content-between align-items-center">
<div class="btn-group">
<a type="button" class="btn btn-sm btn-outline-secondary" href="/feedback">View</a>
</div>
</div>
</div>
</div>
</div>
<div class="col">
<div class="card shadow-sm">
<div class="card-body">
<h4 class="card-text">GitHub</h4>
<p class="card-text">本ダッシュボードシステムのGitHub Repoはこちらから</p>
<div class="d-flex justify-content-between align-items-center">
<div class="btn-group">
<a type="button" class="btn btn-sm btn-outline-secondary" href="https://github.com/homenoc/dsbd" target="_blank">View</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

{% endblock content %}
Loading

0 comments on commit af30268

Please sign in to comment.