mirror of
https://github.com/Xevion/v1.xevion.dev.git
synced 2025-12-10 02:09:02 -06:00
api
This commit is contained in:
@@ -127,7 +127,7 @@ Color = Bulma Color Type of the Message Box
|
||||
<div class="navbar-text">Login</div>
|
||||
</a>
|
||||
<a class="navbar-item" href="{{ url_for('register') }}">
|
||||
<span class="navbar-fa-icon fas fa-clipboard-list"></span>
|
||||
<span class="navbar-fa-icon fas fa-pen"></span>
|
||||
<div class="navbar-text">Register</div>
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
@@ -8,10 +8,12 @@
|
||||
</p>
|
||||
<ul class="menu-list">
|
||||
<li><a href="{{ url_for('dashboard') }}" {% if dashboard_home_active %}class="is-active"{% endif %}>Home</a></li>
|
||||
<li><a href="{{ url_for('profile_settings') }}" {% if profile_settings_active %}class="is-active"{% endif %}>Profile Settings</a></li>
|
||||
</ul>
|
||||
<p class="menu-label">
|
||||
Settings
|
||||
</p>
|
||||
<ul class="menu-list">
|
||||
|
||||
<li><a href="{{ url_for('profile_settings') }}" {% if profile_settings_active %}class="is-active"{% endif %}>Profile Settings</a></li>
|
||||
</ul>
|
||||
<p class="menu-label">
|
||||
Administration
|
||||
@@ -28,7 +30,8 @@
|
||||
</ul>
|
||||
</aside>
|
||||
</div>
|
||||
<div class="column">
|
||||
<div class="column"></div>
|
||||
<div class="column is-two-thirds">
|
||||
{% block dashboard_body %}
|
||||
|
||||
{% endblock dashboard_body %}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
{{ super() }}
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
$('form').submit(function (e) {
|
||||
$('#form-ajax').submit(function (e) {
|
||||
var url = "{{ url_for('profile_settings_submit') }}"; // send the form data here.
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
@@ -26,17 +26,43 @@
|
||||
})
|
||||
});
|
||||
</script>
|
||||
<style type="text/css">
|
||||
.tab-left {
|
||||
padding-left: 3rem;
|
||||
}
|
||||
</style>
|
||||
{% endblock head %}
|
||||
{% block dashboard_body %}
|
||||
<section>
|
||||
<h1 class="title">Profile Settings</h1>
|
||||
<form action="" method="POST" novalidate>
|
||||
<form class="form-ajax" action="" method="POST" novalidate>
|
||||
{{ form.hidden_tag() }}
|
||||
<div class="field">
|
||||
{{ form.show_email.label }}
|
||||
{{ form.show_email(class="_input") }}
|
||||
<div class="field tab-left">
|
||||
<h4 class="title is-4">{{ form.show_email.label }}</h4>
|
||||
{{ form.show_email() }}
|
||||
</div>
|
||||
{{ form.submit }}
|
||||
|
||||
{{ form.hidden_tag() }}
|
||||
<h4 class="title is-4">{{ form.profile_picture_file.label }}</h4>
|
||||
{{ form.profile_picture_file(class="") }}
|
||||
<div class="field tab-left">
|
||||
<div class="file">
|
||||
<label class="file-label">
|
||||
<!-- -->
|
||||
<span class="file-cta">
|
||||
<span class="file-icon">
|
||||
<i class="fas fa-upload"></i>
|
||||
</span>
|
||||
<span class="file-label">
|
||||
Choose a file…
|
||||
</span>
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{{ form.submit(class="button is-danger") }}
|
||||
</form>
|
||||
</section>
|
||||
{% endblock dashboard_body %}
|
||||
Reference in New Issue
Block a user