1
0
mirror of https://github.com/typemill/typemill.git synced 2025-01-17 21:38:25 +01:00

i18n: twig file adjustment for roles and rights

This commit is contained in:
severoiuliano@gmail.com 2020-07-21 20:56:57 +02:00
parent 2ecd173d0c
commit 8b06e817d5
3 changed files with 8 additions and 8 deletions

View File

@ -18,7 +18,7 @@
<div class="relative w-100 bn br1 bg-tm-green white pa3 ma0 tc"><svg class="icon icon-upload baseline"><use xlink:href="#icon-upload"></use></svg> {{ __('Upload an image') }}</div>
</div>
<div class="dib w-100 mt3">
<label>Image URL</label>
<label>{{ __('Image URL') }}</label>
<div class="flex">
<button class="function-delete-img w-10 bg-tm-gray bn hover-bg-tm-red hover-white">x</button>
<input class="function-img-url w-90 mbfix" type="text" name="{{ itemName }}[{{ field.name }}]" value="{{ settings[object][itemName][field.name] }}" readonly>
@ -69,7 +69,7 @@
<select id="{{ itemName }}[{{ field.name }}]" name="{{ itemName }}[{{ field.name }}]"{{ field.getAttributeValues() }}{{ field.getAttributes() }}>
{% for value,label in options %}
<option value="{{ value }}" {{ (value == field.getAttributeValue('value')) ? ' selected' : '' }}>{{ label }}</option>
<option value="{{ value }}" {{ (value == field.getAttributeValue('value')) ? ' selected' : '' }}>{{ __(label) }}</option>
{% endfor %}
</select>

View File

@ -14,10 +14,10 @@
<ul class="userlist">
<li class="row header">
<ul>
<li class="col username">Username
</li><li class="col userrole">Role
</li><li class="col email">E-Mail
</li><li class="col edit">Edit</li>
<li class="col username">{{ __('Username') }}</li>
<li class="col userrole">{{ __('Role') }}</li>
<li class="col email">{{ __('E-Mail') }}</li>
<li class="col edit">{{ __('Edit') }}</li>
</ul>
</li>
{% for user in userdata %}
@ -25,7 +25,7 @@
<li class="row">
<ul>
<li class="col username">{{ user.username }}
</li><li class="col userrole">{{ user.userrole }}
</li><li class="col userrole">{{ __(user.userrole) }}
</li><li class="col email">{{ user.email }}
</li><li class="col edit"><a href="{{ path_for('user.show', {'username' : user.username }) }}">{{ __('edit') }}</a></li>
</ul>

View File

@ -27,7 +27,7 @@
<label for="userrole">{{ __('Role') }} <abbr title="{{ __('required') }}">*</abbr></label>
<select name="userrole" required>
{% for role in userrole %}
<option value="{{ role }}"{% if (role == old.userrole) %} selected{% endif %}>{{ role }}</option>
<option value="{{ role }}"{% if (role == old.userrole) %} selected{% endif %}>{{ __(role) }}</option>
{% endfor %}
</select>
{% if errors.userrole %}