Skip to content
GitLab
    • Explore Projects Groups Snippets
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • C customization simpleSAMLphp
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • m4lab_tv1
  • customization simpleSAMLphp
  • Merge requests
  • !38
An error occurred while fetching the assigned milestone of the selected merge_request.

added twig loginuserpass

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Wolfgang Knopki requested to merge templates into testing 4 years ago
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 1
  • Wolfgang Knopki @knopkiwg merged 4 years ago

    merged

  • Wolfgang Knopki @knopkiwg mentioned in commit 88efa930 4 years ago

    mentioned in commit 88efa930

  • Loading
  • You're only seeing other activity in the feed. To add a comment, switch to one of the following options.
Please register or sign in to reply
Compare
  • testing (base)

and
  • latest version
    e366d436
    1 commit, 4 years ago

1 file
+ 9
- 125

    Preferences

    File browser
    Compare changes
mymodule/themes/fancytheme/core/loginuserpass.twig
+ 9
- 125
  • View file @ e366d436

  • Edit in single-file editor

  • Open in Web IDE


{ % set pagetitle = 'Enter your username and password'|trans %}
{% extends "@mymodule/base.twig" %}
{% extends "@mymodule/base.twig" %}
{% block postload %}
{% block postload %}
@@ -7,129 +5,15 @@
@@ -7,129 +5,15 @@
{% endblock %}
{% endblock %}
{% block content %}
{% block content %}
{%- if not isProduction %}
<div class="message-box warning">
{% trans %}You are now accessing a pre-production system. This authentication setup
{#- #} is for testing and pre-production verification only. If someone sent you
{#- #} a link that pointed you here, and you are not <i>a tester</i> you
{#- #} probably got the wrong link, and should <b>not be here</b>.{% endtrans %}
</div>
{% endif -%}
{% if errorcode -%}
<div class="pure-g">
<div class="pure-u-1">
<div class="message-box error">
{% set errtitles = errorcodes['title'] %}
{% set errtitle = errtitles[errorcode] %}
<h3>{{ errtitle|trans(errorparams) }}</h3>
{% set errdescs = errorcodes['descr'] %}
<div class="login-clean" style="background-color: rgb(234,234,234);">
{% set errdesc = errdescs[errorcode] %}
<form method="post">
<h2 class="sr-only">Login Form</h2>
<p>{{ errdesc|trans(errorparams) }}</p>
<div class="illustration"><img src="/img/M4_LAB_LOGO.png" width="130"></div>
<div class="form-group"><input id="username" class="form-control" type="email" name="username" placeholder="E-Mail-Adresse"></div>
</div>
<div class="form-group"><input id="password" class="form-control" type="password" name="password" placeholder="Passwort"></div><a class="text-right forgot" href="/account/forgotPwd">Passwort vergessen?</a>
 
<div class="form-group"><button class="btn btn-primary btn-block" type="submit" style="background-color: #8a348b;"><strong>Anmelden</strong></button><a class="btn btn-primary btn-block" type="" style="background-color: rgb(234,234,234);color: rgb(0,0,0);" href="/account/registration"><strong>Neues Benutzerkonto anlegen</strong></a></div>
 
</form>
</div>
</div>
</div>
{%- endif %}
<h1>{{ 'Enter your username and password'|trans }} einself</h1>
<p>{{ 'A service has requested you to authenticate yourself. Please enter your username and password in the form below.'|trans }}</p>
<br>
<div class="center">
<form class="pure-form pure-form-aligned center-form" action="?" method="post" name="f">
<div class="form-align">
<div class="pure-control-group">
<label for="username">{{ 'Username'|trans }}</label>
<input id="username" {{ forceUsername ? 'disabled' }} placeholder="{{ username }}" type="text" name="username" class="edge"
{%- if not forceUsername %} tabindex="1" value="{{ username }}" autocomplete="username" {% endif %}
{%- if not forceUsername and not username %} autofocus {% endif %} >
{% if rememberUsernameEnabled and not forceUsername -%}
</div>
<div class="pure-controls pure-form-message">
<label for="remember_username" class="pure-checkbox">
<input id="remember_username" type="checkbox" tabindex="4"
{{ rememberUsernameChecked ? 'checked' }} name="remember_username" value="Yes">
<small>{{ 'Remember my username'|trans }}</small>
</label>
{%- endif %}
</div>
<div class="pure-control-group">
<label for="password">{{ 'Password'|trans}}</label>
<input id="password" type="password" tabindex="2" name="password" class="edge" autocomplete="current-password"
{%- if forceUsername or username %} autofocus {% endif %} >
{% if rememberMeEnabled -%}
</div>
<div class="pure-controls pure-form-message">
<label for="remember_me" class="pure-checkbox">
<input id="remember_me" type="checkbox" tabindex="5"
{{ rememberMeChecked ? 'checked="checked"' }} name="remember_me" value="Yes">
<small>{{ 'Remember me'|trans }}</small>
</label>
{%- endif %}
</div>
{% if organizations is defined -%}
<div class="pure-control-group">
<label for="organization">{{ 'Organization'|trans }}</label>
<div class="pure-select right pure-input-1-2 pure-input-sm-1-1">
<select name="organization" class="selectize" id="organization" tabindex="3">
{{ selectedOrg ?: null }}
{%- for id, orgDesc in organizations -%}
{% if id == selectedOrg -%}
{%- set selected = 'selected="selected"' %}
{%- else -%}
{% set selected = '' -%}
{% endif -%}
{% if orgDesc -%}
<option value="{{ id }}" {{ selected }}>{{ orgDesc|trans }}</option>
{% endif -%}
{% endfor %}
</select>
</div>
{% if rememberOrganizationEnabled is defined -%}
<div class="pure-controls pure-form-message">
<label for="remember_organization" class="pure-checkbox">
<input type="checkbox" id="remember_organization" tabindex="5" name="remember_organization" value="Yes"
{{ rememberOrganizationChecked ? 'checked="checked"' }} >
<small>{{ 'Remember my organization'|trans }}</small>
</label>
</div>
{%- endif %}
</div> <!--pure-control-group-->
{%- endif %}
</div> <!-- form-align-->
<br><br>
{%- for name, value in stateparams %}
<input type="hidden" name="{{ name }}" value="{{ value }}">
{%- endfor %}
<button class="pure-button pure-button-red pure-input-1-2 pure-input-sm-1-1 right" id="submit_button"
type="submit" tabindex="6" data-processing="{% trans %}Processing...{% endtrans %}">
{% trans %}Login{% endtrans %}
</button>
</form>
</div><!--center-->
{% if links -%}
<ul>
{% for link in links -%}
<li><a href="{{ link.href }}">{{ link['text']|trans }}</a></li>
{% endfor %}
</ul>
{%- endif %}
<br><br>
<div class="pure-form-message">
<strong>{{ 'Help! I don\'t remember my password.'|trans }}</strong>
<p>{{ 'Without your username and password you cannot authenticate yourself for access to the service. There may be someone that can help you. Consult the help desk at your organization!'|trans }}</p>
</div>
{% endblock %}
{% endblock %}
Assignee
Wolfgang Knopki's avatar
Wolfgang Knopki
Assign to
0 Reviewers
None
Request review from
Labels
0
None
0
None
    Assign labels
  • Manage project labels

Milestone
No milestone
None
None
Time tracking
No estimate or time spent
Lock merge request
Unlocked
0
0 participants
Reference:
Source branch: templates

Menu

Explore Projects Groups Snippets

Dies ist die Gitlab-Instanz des Transferportals der Hochschule für Technik Stuttgart. Hier geht es zurück zum Portal