Updated profile and form templates

This commit is contained in:
Pedro Moreno 2023-02-21 22:03:51 +01:00
parent 0106b9073e
commit c0cad33ac4
2 changed files with 93 additions and 13 deletions

View file

@ -1,4 +1,40 @@
{% extends 'partials/base.html.twig' %}
{% block stylesheets %}
{{ parent() }}
{% set styles %}
#user-register .buttons {
display: flex;
flex-wrap: nowrap;
align-content: center;
justify-content: flex-start;
align-items: center;
margin: 1em 0;
}
#user-register .button {
margin: 0 1em;
}
#user-register .button:first-child {
margin: 0;
}
@media screen and (max-width: 480px) {
#user-register .buttons {
flex-direction: column;
}
#user-register .button {
width: 100%;
margin: 1em 0;
}
}
{% endset %}
{% do assets.addInlineCss(styles) %}
{% endblock %}
{% block menu %}
{% include 'partials/sidebar_right.html.twig' %}
{% endblock %}
{% block content %}
<article class="post">
<header>

View file

@ -0,0 +1,44 @@
{% extends 'partials/base.html.twig' %}
{% block stylesheets %}
{{ parent() }}
{% set styles %}
#user-profile .buttons {
display: flex;
flex-wrap: nowrap;
align-content: center;
justify-content: flex-start;
align-items: center;
margin: 1em 0;
}
#user-profile .button {
margin: 0 1em;
}
#user-profile .button:first-child {
margin: 0;
}
@media screen and (max-width: 480px) {
#user-profile .buttons {
flex-direction: column;
}
#user-profile .button {
width: 100%;
margin: 1em 0;
}
}
{% endset %}
{% do assets.addInlineCss(styles) %}
{% endblock %}
{% do form.setAllData(grav.user.toArray) %}
{% block menu %}
{% include 'partials/sidebar_right.html.twig' %}
{% endblock %}
{% block content %}
{% include 'partials/messages.html.twig' %}
{{ page.content|raw }}
{% include 'forms/form.html.twig' %}
{% endblock %}