Commit 31f44cc5 authored by Stefan Busemann's avatar Stefan Busemann
Browse files

[TASK] move templates file to project extension for localization

parent 30af9787
Pipeline #6580 passed with stages
in 2 minutes and 47 seconds
<hr/>
<f:link.action action="edit" arguments="{user:user}" class="btn btn-primary" >Edit your profile</f:link.action>
<f:if condition="{settings.features.enablePublicProfile}">
<f:if condition="{user.publicProfile}">
<f:then>
<f:link.action class="btn alert-danger" action="changeProfileVisibility" arguments="{user:user}">Hide profile</f:link.action>
</br>
<span>
Your profile page is currently active. Your Url is:</br>
<f:uri.page addQueryString="true" absolute="true" />
</span>
</f:then>
<f:else>
<f:link.action class="btn alert-success" action="changeProfileVisibility" arguments="{user:user}">Make profile public</f:link.action>
<span>Your profile page is hidden</span>
</f:else>
</f:if>
</f:if>
</br>
<hr />
<h3>Your privacy settings</h3>
<table>
<thead>
<td>show your data to </td>
<td>Everyone</td>
<td>Community</td>
<td>Teams</td>
</thead>
<f:for each="{privacySettings}" as="privacySetting" key="privacySettingValue">
<tr>
<td>{privacySettingValue}</td>
<td>{f:if(condition:privacySetting.public, then: 'Yes', else: 'No')}</td>
<td>{f:if(condition:privacySetting.authenticated, then: 'Yes', else: 'No')}</td>
<td>{f:if(condition:privacySetting.groups, then: 'Yes', else: 'No')}</td>
</tr>
</f:for>
</table>
<f:link.action class="btn btn-secondary" action="privacyEdit" arguments="{user:user}">Edit privacy settings</f:link.action>
<section class="container">
<f:form action="privacyUpdate" objectName="user" object="{user}">
<h1>My privacy settings</h1>
<p>You can control, which data are shown to whom:</p>
<ul>
<li><strong>everyone</strong>: Everyone in the web</li>
<li><strong>community</strong>: Everyone who is logged in with a typo3.org user account</li>
<li><strong>teams</strong>: Only the members of the teams, you are belonging to</li>
</ul>
<table class="table table-striped">
<thead>
<td>show your data to</td>
<td>everyone</td>
<td>community</td>
<td>teams</td>
</thead>
<f:for each="{privacySettings}" as="privacySetting" key="privacySettingValue">
<tr>
<td>{privacySettingValue}</td>
<td>
<f:form.checkbox
checked="{privacySetting.public}"
value="1"
id="userprofile_{privacySettingValue}_public"
name="privacy[{privacySettingValue}][public]" />
</td>
<td>
<f:form.checkbox
checked="{privacySetting.authenticated}"
value="1"
id="userprofile_{privacySettingValue}_authenticated"
name="privacy[{privacySettingValue}][authenticated]" />
</td>
<td>
<f:form.checkbox
checked="{privacySetting.groups}"
value="1"
id="userprofile_{privacySettingValue}_groups"
name="privacy[{privacySettingValue}][groups]" />
</td>
</tr>
</f:for>
</table>
<f:form.submit value="Update" class="btn btn-success">Update</f:form.submit>
</f:form>
</section>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment