Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add settings page #1106

Merged
merged 3 commits into from
Jun 1, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,23 @@ To use our build system and run our documentation locally, you'll need a copy of
3. [Install Ruby](https://www.ruby-lang.org/en/documentation/installation/) - the recommended version is [2.5.5](https://cache.ruby-lang.org/pub/ruby/2.5/ruby-2.5.5.tar.gz).
4. [Install Bundler](https://bundler.io) with `gem install bundler` and finally run `bundle install`. It will install all Ruby dependencies, such as [Jekyll and plugins](https://jekyllrb.com).

**OSX users**:
0. NPM ```npm install```
1. install Ruby (2.5.* recommended)
```brew install ruby @2.5```
2. install bundler
```gem install bundler```
3. install
```bundle install```
- if bundler get any errors try
```
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
```
4. Run NPM
```npm run start```


**Windows users**:

1. [Install Git](https://git-scm.com/download/win) in `C:\Program Files\git\bin` directory and run `npm config set script-shell "C:\\Program Files\git\bin\bash.exe"` to change the default shell.
Expand Down
4 changes: 4 additions & 0 deletions src/pages/_data/menu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,10 @@ extra:
wizard:
title: Wizard
url: wizard.html
settings:
title: Settings
url: settings.html
badge: New

layout:
icon: layout-2
Expand Down
17 changes: 17 additions & 0 deletions src/pages/_includes/layout/headers/page-header-settings.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<div class="page-header mb-3">
<div class="row align-items-center mw-100">
<div class="col">
<div class="mb-1">
{% include ui/breadcrumb.html pages="Administration,Settings" %}
</div>
<h2 class="page-title">
<span class="text-truncate">Settings</span>
</h2>
</div>
<div class="col-auto">
<div class="btn-list">
{% include ui/button.html color="primary" text="Save Settings" %}
</div>
</div>
</div>
</div>
27 changes: 27 additions & 0 deletions src/pages/settings.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
layout: default
title: Settings
---
{% include layout/headers/page-header-settings.html %}
<div class="row">
<div class="col-4 px-4">
{% assign items = "Account,Preferences,Privacy Settings, Theme,Audience and visibility,App Development" | split: "," %}
<div class="list-group list-group-transparent mb-3 ml-3">
{% for item in items %}
<a class="list-group-item list-group-item-action d-flex align-items-center{% if forloop.first %} active{% endif %}"
href="#">
{{ item }}
<small class="text-muted ms-auto">{{ forloop.index | random_number: 11, 200 }}</small>
</a>
{% endfor %}
</div>
</div>
<div class="col-8">
<div class="row">
<div class="col-12">
{% include cards/form/layout.html horizontal=true title="Account" %}
</div>
</div>
</div>
</div>