mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/16978] convert file to twig
PHPBB3-16978
This commit is contained in:
parent
a3c67c18f1
commit
5b4a955b65
1 changed files with 100 additions and 74 deletions
|
@ -1,84 +1,110 @@
|
||||||
<fieldset class="fields1">
|
<fieldset class="fields1">
|
||||||
<!-- IF not S_SHOW_DRAFTS -->
|
{% if not S_SHOW_DRAFTS %}
|
||||||
|
|
||||||
<!-- IF S_GROUP_OPTIONS -->
|
{% if S_GROUP_OPTIONS %}
|
||||||
<div class="column2">
|
<div class="column2">
|
||||||
<label for="group_list"><strong>{L_TO_ADD_GROUPS}{L_COLON}</strong></label><br />
|
<label for="group_list"><strong>{{ lang('TO_ADD_GROUPS') }}{{ lang('COLON') }}</strong></label><br />
|
||||||
<select name="group_list[]" id="group_list" multiple="multiple" size="3" class="inputbox">{S_GROUP_OPTIONS}</select><br />
|
<select name="group_list[]" id="group_list" multiple="multiple" size="3" class="inputbox">{{ S_GROUP_OPTIONS }}</select><br />
|
||||||
</div>
|
</div>
|
||||||
<!-- ENDIF -->
|
{% endif %}
|
||||||
<!-- IF S_ALLOW_MASS_PM -->
|
{% if S_ALLOW_MASS_PM %}
|
||||||
<div class="column1">
|
<div class="column1">
|
||||||
<!-- IF not S_EDIT_POST -->
|
{% if not S_EDIT_POST %}
|
||||||
<dl class="pmlist">
|
<dl class="pmlist">
|
||||||
<dt><label><strong>{L_TO_ADD_MASS}{L_COLON}</strong><textarea id="username_list" name="username_list" class="inputbox" cols="50" rows="2" tabindex="1"></textarea></label></dt>
|
<dt><label><strong>{{ lang('TO_ADD_MASS') }}{{ lang('COLON') }}</strong><textarea id="username_list" name="username_list" class="inputbox" cols="50" rows="2" tabindex="1"></textarea></label></dt>
|
||||||
<dd class="recipients">
|
|
||||||
<input type="submit" name="add_to" value="{L_ADD}" class="button1 button button-form-bold" tabindex="1" />
|
|
||||||
<input type="submit" name="add_bcc" value="{L_ADD_BCC}" class="button1 button button-form-bold" tabindex="1" />
|
|
||||||
<!-- EVENT posting_pm_header_find_username_before -->
|
|
||||||
<span><a href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false;">{L_FIND_USERNAME}</a></span>
|
|
||||||
<!-- EVENT posting_pm_header_find_username_after -->
|
|
||||||
</dd>
|
|
||||||
</dl>
|
|
||||||
<!-- ENDIF -->
|
|
||||||
</div>
|
|
||||||
<!-- IF .to_recipient or .bcc_recipient --><hr /><!-- ENDIF -->
|
|
||||||
<div class="column1">
|
|
||||||
<!-- IF .to_recipient -->
|
|
||||||
<dl>
|
|
||||||
<dt><label>{L_TO_MASS}{L_COLON}</label></dt>
|
|
||||||
<dd class="recipients">
|
<dd class="recipients">
|
||||||
<ul class="recipients">
|
<input type="submit" name="add_to" value="{{ lang('ADD') }}" class="button1 button button-form-bold" tabindex="1" />
|
||||||
<!-- BEGIN to_recipient -->
|
<input type="submit" name="add_bcc" value="{{ lang('ADD_BCC') }}" class="button1 button button-form-bold" tabindex="1" />
|
||||||
<li>
|
{% EVENT posting_pm_header_find_username_before %}
|
||||||
<!-- IF not S_EDIT_POST --><input type="submit" name="remove_{to_recipient.TYPE}[{to_recipient.UG_ID}]" value="x" class="button1 button button-form-bold" /><!-- ENDIF -->
|
<span><a href="{{ U_FIND_USERNAME }}" onclick="find_username(this.href); return false;">{{ lang('FIND_USERNAME') }}</a></span>
|
||||||
<!-- IF to_recipient.IS_GROUP --><a href="{to_recipient.U_VIEW}" style="color: {{ to_recipient.COLOUR }}"><strong>{to_recipient.NAME}</strong></a><!-- ELSE -->{to_recipient.NAME_FULL}<!-- ENDIF -->
|
{% EVENT posting_pm_header_find_username_after %}
|
||||||
</li>
|
|
||||||
<!-- END to_recipient -->
|
|
||||||
</ul>
|
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<!-- ENDIF -->
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<!-- IF .bcc_recipient -->
|
{% if .to_recipient or .bcc_recipient %}
|
||||||
<div class="column2">
|
<hr />
|
||||||
|
{% endif %}
|
||||||
|
<div class="column1">
|
||||||
|
{% if .to_recipient %}
|
||||||
|
<dl>
|
||||||
|
<dt><label>{{ lang('TO_MASS') }}{{ lang('COLON') }}</label></dt>
|
||||||
|
<dd class="recipients">
|
||||||
|
<ul class="recipients">
|
||||||
|
{% for to_recipient in .to_recipient %}
|
||||||
|
<li>
|
||||||
|
{% if not S_EDIT_POST %}
|
||||||
|
<input type="submit" name="remove_{to_recipient.TYPE}[{to_recipient.UG_ID}]" value="x" class="button1 button button-form-bold" />
|
||||||
|
{% endif %}
|
||||||
|
{% if to_recipient.IS_GROUP %}
|
||||||
|
<a href="{{ to_recipient.U_VIEW }}" style="color: {{ to_recipient.COLOUR }}"><strong>{{ to_recipient.NAME }}</strong></a>
|
||||||
|
{% else %}
|
||||||
|
{{ to_recipient.NAME_FULL }}
|
||||||
|
{% endif %}
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
{% if .bcc_recipient %}
|
||||||
|
<div class="column2">
|
||||||
|
<dl>
|
||||||
|
<dt><label>{{ lang('BCC') }}{{ lang('COLON') }}</label></dt>
|
||||||
|
<dd class="recipients">
|
||||||
|
<ul class="recipients">
|
||||||
|
{% for bcc_recipient in .bcc_recipient %}
|
||||||
|
<li>
|
||||||
|
{% if not S_EDIT_POST %}
|
||||||
|
<input type="submit" name="remove_{{ bcc_recipient.TYPE }}[{{ bcc_recipient.UG_ID }}]" value="x" class="button1 button button-form-bold" />
|
||||||
|
{% endif %}
|
||||||
|
{% if bcc_recipient.IS_GROUP %}
|
||||||
|
<a href="{{ bcc_recipient.U_VIEW }}" style="color: {{ bcc_recipient.COLOUR }}"><strong>{{ bcc_recipient.NAME }}</strong></a>
|
||||||
|
{% else %}
|
||||||
|
{{ bcc_recipient.NAME_FULL }}
|
||||||
|
{% endif %}
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
{% else %}
|
||||||
|
<div class="column1">
|
||||||
<dl>
|
<dl>
|
||||||
<dt><label>{L_BCC}{L_COLON}</label></dt>
|
<dt>
|
||||||
<dd class="recipients">
|
<label for="username_list">{{ lang('TO_ADD') }}{{ lang('COLON') }}</label>
|
||||||
<ul class="recipients">
|
{% if not S_EDIT_POST %}
|
||||||
<!-- BEGIN bcc_recipient -->
|
<br /><span><a href="{{ U_FIND_USERNAME }}" onclick="find_username(this.href); return false">{{ lang('FIND_USERNAME') }}</a></span>
|
||||||
<li>
|
{% endif %}
|
||||||
<!-- IF not S_EDIT_POST --><input type="submit" name="remove_{bcc_recipient.TYPE}[{bcc_recipient.UG_ID}]" value="x" class="button1 button button-form-bold" /><!-- ENDIF -->
|
</dt>
|
||||||
<!-- IF bcc_recipient.IS_GROUP --><a href="{bcc_recipient.U_VIEW}" style="color: {{ bcc_recipient.COLOUR }}"><strong>{bcc_recipient.NAME}</strong></a><!-- ELSE -->{bcc_recipient.NAME_FULL}<!-- ENDIF -->
|
{% if not S_EDIT_POST %}
|
||||||
</li>
|
<dd>
|
||||||
<!-- END bcc_recipient -->
|
<input class="inputbox" type="text" name="username_list" id="username_list" size="20" value="" /> <input type="submit" name="add_to" value="{{ lang('ADD') }}" class="button1 button button-form-bold" />
|
||||||
</ul>
|
</dd>
|
||||||
</dd>
|
{% endif %}
|
||||||
|
{% if .to_recipient %}
|
||||||
|
<dd class="recipients">
|
||||||
|
<ul class="recipients">
|
||||||
|
{% for to_recipient in .to_recipient %}
|
||||||
|
<li>
|
||||||
|
{% if to_recipient.IS_GROUP %}
|
||||||
|
<a href="{{ to_recipient.U_VIEW }}"><strong>{{ to_recipient.NAME }}</strong></a>
|
||||||
|
{% else %}
|
||||||
|
{{ to_recipient.NAME_FULL }}
|
||||||
|
{% endif %}
|
||||||
|
{% if not S_EDIT_POST %}
|
||||||
|
<input type="submit" name="remove_{{ to_recipient.TYPE }}[{{ to_recipient.UG_ID }}]" value="x" class="button1 button button-form-bold" />
|
||||||
|
{% endif %}
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
{% endif %}
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
<!-- ENDIF -->
|
{% endif %}
|
||||||
<!-- ELSE -->
|
{% endif %}
|
||||||
<div class="column1">
|
</fieldset>
|
||||||
<dl>
|
|
||||||
<dt><label for="username_list">{L_TO_ADD}{L_COLON}</label><!-- IF not S_EDIT_POST --><br /><span><a href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false">{L_FIND_USERNAME}</a></span><!-- ENDIF --></dt>
|
|
||||||
<!-- IF not S_EDIT_POST -->
|
|
||||||
<dd><input class="inputbox" type="text" name="username_list" id="username_list" size="20" value="" /> <input type="submit" name="add_to" value="{L_ADD}" class="button1 button button-form-bold" /></dd>
|
|
||||||
<!-- ENDIF -->
|
|
||||||
<!-- IF .to_recipient -->
|
|
||||||
<dd class="recipients">
|
|
||||||
<ul class="recipients">
|
|
||||||
<!-- BEGIN to_recipient -->
|
|
||||||
<li>
|
|
||||||
<!-- IF to_recipient.IS_GROUP --><a href="{to_recipient.U_VIEW}"><strong>{to_recipient.NAME}</strong></a><!-- ELSE -->{to_recipient.NAME_FULL}<!-- ENDIF -->
|
|
||||||
<!-- IF not S_EDIT_POST --><input type="submit" name="remove_{to_recipient.TYPE}[{to_recipient.UG_ID}]" value="x" class="button1 button button-form-bold" /><!-- ENDIF -->
|
|
||||||
</li>
|
|
||||||
<!-- END to_recipient -->
|
|
||||||
</ul>
|
|
||||||
</dd>
|
|
||||||
<!-- ENDIF -->
|
|
||||||
</dl>
|
|
||||||
</div>
|
|
||||||
<!-- ENDIF -->
|
|
||||||
|
|
||||||
<!-- ENDIF -->
|
|
||||||
</fieldset>
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue