forked from Github-Mirrors/canaille
Renamed fomanticui.html in form.html
This commit is contained in:
parent
9ac7b4808f
commit
d9f591a73e
18 changed files with 38 additions and 38 deletions
|
@ -1,5 +1,5 @@
|
|||
{% extends theme('base.html') %}
|
||||
{% import 'macro/fomanticui.html' as sui %}
|
||||
{% import 'macro/form.html' as fui %}
|
||||
|
||||
{%- block title -%}
|
||||
{%- trans -%}About Canaille{%- endtrans -%}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{% extends theme('base.html') %}
|
||||
{% import 'macro/fomanticui.html' as sui %}
|
||||
{% import 'macro/form.html' as fui %}
|
||||
|
||||
{% block content %}
|
||||
<div class="loginform">
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{% extends theme('base.html') %}
|
||||
{% import 'macro/fomanticui.html' as sui %}
|
||||
{% import 'macro/form.html' as fui %}
|
||||
|
||||
{%- block title -%}
|
||||
{%- trans -%}Forgotten password{%- endtrans -%}
|
||||
|
@ -32,7 +32,7 @@
|
|||
>
|
||||
|
||||
{{ form.hidden_tag() if form.hidden_tag }}
|
||||
{{ sui.render_field(form.login, icon="user") }}
|
||||
{{ fui.render_field(form.login, icon="user") }}
|
||||
|
||||
<div class="ui right aligned container">
|
||||
<div class="ui stackable buttons">
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{% extends theme('base.html') %}
|
||||
{% import 'macro/fomanticui.html' as sui %}
|
||||
{% import 'macro/form.html' as fui %}
|
||||
{% import "macro/table.html" as table %}
|
||||
|
||||
{%- block title -%}
|
||||
|
@ -73,8 +73,8 @@
|
|||
class="ui form"
|
||||
>
|
||||
{{ form.hidden_tag() if form.hidden_tag }}
|
||||
{{ sui.render_field(form.display_name) }}
|
||||
{{ sui.render_field(form.description) }}
|
||||
{{ fui.render_field(form.display_name) }}
|
||||
{{ fui.render_field(form.description) }}
|
||||
|
||||
{% if not edited_group %}
|
||||
<div class="ui info visible message">
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{% extends theme('base.html') %}
|
||||
{% import 'macro/fomanticui.html' as fui %}
|
||||
{% import 'macro/form.html' as fui %}
|
||||
|
||||
{%- block title -%}
|
||||
{%- trans %}Invite a user{% endtrans -%}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{% extends theme('base.html') %}
|
||||
{% import 'macro/flask.html' as flask %}
|
||||
{% import 'macro/fomanticui.html' as sui %}
|
||||
{% import 'macro/form.html' as fui %}
|
||||
|
||||
{% block container %}
|
||||
<div class="ui container">
|
||||
|
@ -31,10 +31,10 @@
|
|||
>
|
||||
|
||||
{{ form.hidden_tag() if form.hidden_tag }}
|
||||
{% block login_field scoped %}{{ sui.render_field(form.login, icon="user", noindicator=true, class="autofocus") }}{% endblock %}
|
||||
{% block login_field scoped %}{{ fui.render_field(form.login, icon="user", noindicator=true, class="autofocus") }}{% endblock %}
|
||||
|
||||
{% if "password" in form %}
|
||||
{% block password_field scoped %}{{ sui.render_field(form.password, icon="key", noindicator=true) }}{% endblock %}
|
||||
{% block password_field scoped %}{{ fui.render_field(form.password, icon="key", noindicator=true) }}{% endblock %}
|
||||
{% endif %}
|
||||
|
||||
<div class="ui right aligned container">
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{% extends theme('base.html') %}
|
||||
{% import 'macro/fomanticui.html' as sui %}
|
||||
{% import 'macro/form.html' as fui %}
|
||||
|
||||
{%- block title -%}
|
||||
{%- trans %}Emails{% endtrans -%}
|
||||
|
@ -45,8 +45,8 @@
|
|||
{% endtrans %}
|
||||
</div>
|
||||
|
||||
{% call sui.render_form(form) %}
|
||||
{{ sui.render_fields(form) }}
|
||||
{% call fui.render_form(form) %}
|
||||
{{ fui.render_fields(form) }}
|
||||
<div class="ui right aligned container">
|
||||
<div class="ui stackable buttons">
|
||||
<input type="submit" class="ui primary button" value="{{ _("Send") }}">
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{% extends theme('base.html') %}
|
||||
{% import 'macro/fomanticui.html' as sui %}
|
||||
{% import 'macro/form.html' as fui %}
|
||||
|
||||
{%- block title -%}
|
||||
{%- trans %}View an authorization{% endtrans -%}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{% extends theme('base.html') %}
|
||||
{% import 'macro/fomanticui.html' as sui %}
|
||||
{% import 'macro/form.html' as fui %}
|
||||
|
||||
{%- block title -%}
|
||||
{%- trans %}Add a client{% endtrans -%}
|
||||
|
@ -36,6 +36,6 @@
|
|||
{% trans %}Add a client{% endtrans %}
|
||||
</h2>
|
||||
|
||||
{{ sui.render_form(form, _("Confirm")) }}
|
||||
{{ fui.render_form(form, _("Confirm")) }}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{% extends theme('base.html') %}
|
||||
{% import 'macro/fomanticui.html' as sui %}
|
||||
{% import 'macro/form.html' as fui %}
|
||||
|
||||
{%- block title -%}
|
||||
{%- trans %}Edit a client{% endtrans -%}
|
||||
|
@ -94,7 +94,7 @@
|
|||
class="ui form"
|
||||
>
|
||||
|
||||
{{ sui.render_fields(form) }}
|
||||
{{ fui.render_fields(form) }}
|
||||
|
||||
<div class="ui right aligned container">
|
||||
<div class="ui stackable buttons">
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{% extends theme('base.html') %}
|
||||
{% import 'macro/fomanticui.html' as sui %}
|
||||
{% import 'macro/form.html' as fui %}
|
||||
|
||||
{%- block title -%}
|
||||
{%- trans %}Token details{% endtrans -%}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{% extends theme('base.html') %}
|
||||
{% import 'macro/fomanticui.html' as sui %}
|
||||
{% import 'macro/form.html' as fui %}
|
||||
|
||||
{% block content %}
|
||||
<div class="ui segment">
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{% extends theme('base.html') %}
|
||||
{% import 'macro/flask.html' as flask %}
|
||||
{% import 'macro/fomanticui.html' as sui %}
|
||||
{% import 'macro/form.html' as fui %}
|
||||
|
||||
{% block container %}
|
||||
<div class="ui container">
|
||||
|
@ -31,7 +31,7 @@
|
|||
>
|
||||
|
||||
{{ form.hidden_tag() if form.hidden_tag }}
|
||||
{{ sui.render_field(form.password, icon="key", noindicator=true, class="autofocus") }}
|
||||
{{ fui.render_field(form.password, icon="key", noindicator=true, class="autofocus") }}
|
||||
|
||||
<div class="ui right aligned container">
|
||||
<div class="ui stackable buttons">
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{% extends theme('base.html') %}
|
||||
{% import 'macro/fomanticui.html' as sui %}
|
||||
{% import 'macro/form.html' as fui %}
|
||||
|
||||
{%- block title -%}
|
||||
{%- trans %}User creation{% endtrans -%}
|
||||
|
@ -30,7 +30,7 @@
|
|||
{% endblock %}
|
||||
|
||||
{% macro render_field(field, noindicator=false) %}
|
||||
{{ sui.render_field(field, **kwargs) }}
|
||||
{{ fui.render_field(field, **kwargs) }}
|
||||
{% endmacro %}
|
||||
|
||||
{% block content %}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{% extends theme('base.html') %}
|
||||
{% import 'macro/fomanticui.html' as sui %}
|
||||
{% import 'macro/form.html' as fui %}
|
||||
|
||||
{%- block title -%}
|
||||
{% if not edited_user %}
|
||||
|
@ -32,15 +32,15 @@
|
|||
{% macro render_field(field, noindicator=false) %}
|
||||
{% set lock_indicator = field.render_kw and ("readonly" in field.render_kw or "disabled" in field.render_kw) %}
|
||||
{% if not edited_user %}
|
||||
{{ sui.render_field(field, **kwargs) }}
|
||||
{{ fui.render_field(field, **kwargs) }}
|
||||
{% elif edited_user.uid == user.uid or lock_indicator or noindicator %}
|
||||
{{ sui.render_field(field, **kwargs) }}
|
||||
{{ fui.render_field(field, **kwargs) }}
|
||||
{% elif field.name in edited_user.write %}
|
||||
{{ sui.render_field(field, **kwargs) }}
|
||||
{{ fui.render_field(field, **kwargs) }}
|
||||
{% elif field.name in edited_user.read %}
|
||||
{{ sui.render_field(field, indicator_icon="eye", indicator_text=_("This user cannot edit this field"), **kwargs) }}
|
||||
{{ fui.render_field(field, indicator_icon="eye", indicator_text=_("This user cannot edit this field"), **kwargs) }}
|
||||
{% else %}
|
||||
{{ sui.render_field(field, indicator_icon="eye slash", indicator_text=_("This user cannot see this field"), **kwargs) }}
|
||||
{{ fui.render_field(field, indicator_icon="eye slash", indicator_text=_("This user cannot see this field"), **kwargs) }}
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{% extends theme('base.html') %}
|
||||
{% import 'macro/fomanticui.html' as sui %}
|
||||
{% import 'macro/form.html' as fui %}
|
||||
|
||||
{%- block title -%}
|
||||
{% if user.uid == edited_user.uid %}
|
||||
|
@ -30,13 +30,13 @@
|
|||
{% macro render_field(field, noindicator=false) %}
|
||||
{% set lock_indicator = field.render_kw and ("readonly" in field.render_kw or "disabled" in field.render_kw) %}
|
||||
{% if edited_user.uid == user.uid or lock_indicator or noindicator %}
|
||||
{{ sui.render_field(field, **kwargs) }}
|
||||
{{ fui.render_field(field, **kwargs) }}
|
||||
{% elif field.name in edited_user.write %}
|
||||
{{ sui.render_field(field, **kwargs) }}
|
||||
{{ fui.render_field(field, **kwargs) }}
|
||||
{% elif field.name in edited_user.read %}
|
||||
{{ sui.render_field(field, indicator_icon="eye", indicator_text=_("This user cannot edit this field"), **kwargs) }}
|
||||
{{ fui.render_field(field, indicator_icon="eye", indicator_text=_("This user cannot edit this field"), **kwargs) }}
|
||||
{% else %}
|
||||
{{ sui.render_field(field, indicator_icon="eye slash", indicator_text=_("This user cannot see this field"), **kwargs) }}
|
||||
{{ fui.render_field(field, indicator_icon="eye slash", indicator_text=_("This user cannot see this field"), **kwargs) }}
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{% extends theme('base.html') %}
|
||||
{% import 'macro/fomanticui.html' as sui %}
|
||||
{% import 'macro/form.html' as fui %}
|
||||
|
||||
{% block content %}
|
||||
<div class="loginform">
|
||||
|
@ -13,7 +13,7 @@
|
|||
</h3>
|
||||
|
||||
<div class="ui attached clearing segment">
|
||||
{{ sui.render_form(form, _("Password reset"), action=url_for("account.reset", uid=uid, hash=hash)) }}
|
||||
{{ fui.render_form(form, _("Password reset"), action=url_for("account.reset", uid=uid, hash=hash)) }}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in a new issue