mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
Better view of guilds (new buttons, table look and feel)
This commit is contained in:
parent
8bae67d9ef
commit
8115cc5ecc
2
system/templates/buttons.view.html.twig
Normal file
2
system/templates/buttons.view.html.twig
Normal file
@ -0,0 +1,2 @@
|
||||
{% set button_name = 'View' %}
|
||||
{% include('buttons.base.html.twig') %}
|
@ -13,7 +13,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<table class="Table3" cellpadding="0" cellspacing="0">
|
||||
<table class="Table3">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
@ -22,11 +22,15 @@
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="TableShadowContainerRightTop">
|
||||
<div class="TableShadowRightTop" style="background-image:url({{ template_path }}/images/content/table-shadow-rt.gif);"></div>
|
||||
</div>
|
||||
<div class="TableContentAndRightShadow" style="background-image:url({{ template_path }}/images/content/table-shadow-rm.gif);">
|
||||
<div class="TableContentContainer">
|
||||
<table class="TableContent" width="100%">
|
||||
<tbody>
|
||||
{% if guilds|length > 0 %}
|
||||
<tr bgcolor="{{ config.vdarkborder }}">
|
||||
<tr bgcolor="{{ config.darkborder }}">
|
||||
<td width="64"><b>Logo</b></td>
|
||||
<td><b>Description</b></td>
|
||||
<td width="12%"><b> </b></td>
|
||||
@ -55,11 +59,9 @@
|
||||
<table border="0" cellspacing="0" cellpadding="0" width="100%">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="border:0px;">
|
||||
<td style="border:0;">
|
||||
<form action="{{ guild.link }}" method="post">
|
||||
<button name="View" alt="View" class="btn btn-secondary" src="{{ template_path }}/images/global/buttons/sbutton_view.gif" style="width: 100%; height: 20px;">
|
||||
View
|
||||
</button>
|
||||
{{ include('buttons.view.html.twig') }}
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
@ -69,7 +71,7 @@
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<tr bgcolor="{{ config.lightborder }}">
|
||||
<tr bgcolor="{{ config.darkborder }}">
|
||||
<td valign="top">
|
||||
<b>Create Guild</b>
|
||||
<br/>
|
||||
@ -79,12 +81,12 @@
|
||||
{% if logged %}
|
||||
<td>
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
||||
<form action="?subtopic=guilds&action=create" method=post>
|
||||
<tr>
|
||||
<td>
|
||||
<button name="Create Guild" alt="Create Guild" class="btn btn-secondary" style="width: 100%; height: 20px;">Create Guild</button>
|
||||
</td>
|
||||
</tr>
|
||||
<form action="?subtopic=guilds&action=create" method="post">
|
||||
<form action="?subtopic=guilds&action=create" method="post">
|
||||
{% set button_name = 'Found Guild' %}
|
||||
{% set button_image = '_sbutton_foundguild' %}
|
||||
{% include('buttons.base.html.twig') %}
|
||||
</form>
|
||||
</form>
|
||||
</table>
|
||||
</td>
|
||||
@ -94,6 +96,13 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="TableShadowContainer">
|
||||
<div class="TableBottomShadow" style="background-image:url(https://static.tibia.com/images/global/content/table-shadow-bm.gif);">
|
||||
<div class="TableBottomLeftShadow" style="background-image:url({{ template_path }}/images/content/table-shadow-bl.gif);"></div>
|
||||
<div class="TableBottomRightShadow" style="background-image:url({{ template_path }}/images/content/table-shadow-br.gif);"></div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -117,22 +126,17 @@
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
{% if logged %}
|
||||
<form action="?subtopic=guilds&action=create" method=post>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="image" name="Create Guild" alt="Create Guild" src="{{ template_path }}/images/global/buttons/sbutton_createguild.png" border=0 style="width: 120px; height: 18px;">
|
||||
</td>
|
||||
</tr>
|
||||
No guild found that suits your needs?
|
||||
<form action="?subtopic=guilds&action=create" method="post">
|
||||
{% set button_name = 'Found Guild' %}
|
||||
{% set button_image = '_sbutton_foundguild' %}
|
||||
{% include('buttons.base.html.twig') %}
|
||||
</form>
|
||||
{% else %}
|
||||
<b>Before you can create guild you must login.</b>
|
||||
<br/>
|
||||
<form action="?subtopic=accountmanagement&redirect={{ getLink('guilds') }}" method=post>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="image" name="Login" alt="Login" src="{{ template_path }}/images/global/buttons/sbutton_login.gif" border=0 style="width: 120px; height: 18px;">
|
||||
</td>
|
||||
</tr>
|
||||
<form action="?subtopic=accountmanagement&redirect={{ getLink('guilds') }}" method="post">
|
||||
{% include('buttons.login.html.twig') %}
|
||||
</form>
|
||||
{% endif %}
|
||||
</tbody>
|
||||
@ -142,9 +146,9 @@
|
||||
<br/>
|
||||
If you have any problem with guilds try:
|
||||
<br/>
|
||||
<a href="?subtopic=guilds&action=cleanup_players">Cleanup players</a> - can\'t join guild/be invited? Can\'t create guild? Try cleanup players.
|
||||
<a href="?subtopic=guilds&action=cleanup_players">Cleanup players</a> - can't join guild/be invited? Can't create guild? Try cleanup players.
|
||||
<br/>
|
||||
<a href="?subtopic=guilds&action=cleanup_guilds">Cleanup guilds</a> - made guild, you are a leader, but you are not on players list? Cleanup guilds!';
|
||||
<a href="?subtopic=guilds&action=cleanup_guilds">Cleanup guilds</a> - made guild, you are a leader, but you are not on players list? Cleanup guilds!
|
||||
{% endif %}
|
||||
</td>
|
||||
|
||||
|
@ -297,13 +297,17 @@
|
||||
{% if isVice %}
|
||||
<form action="?subtopic=guilds&action=invite&guild={{ guild_name|url_encode }}" method="post">
|
||||
<td>
|
||||
<input type="image" name="Invite Player" alt="Invite Player" src="{{ template_path }}/images/global/buttons/sbutton_inviteplayer.png" style="width: 120px; height: 20px;">
|
||||
{% set button_name = 'Invite Character' %}
|
||||
{% set button_image = '_sbutton_invitecharacter' %}
|
||||
{% include('buttons.base.html.twig') %}
|
||||
</td>
|
||||
</form>
|
||||
|
||||
<form action="?subtopic=guilds&action=change_rank&guild={{ guild_name|url_encode }}" method="post">
|
||||
<td>
|
||||
<input type="image" name="Change Rank" alt="Change Rank" src="{{ template_path }}/images/global/buttons/sbutton_changerank.png" style="width: 120px; height: 20px;">
|
||||
{% set button_name = 'Edit Ranks' %}
|
||||
{% set button_image = '_sbutton_editranks' %}
|
||||
{% include('buttons.base.html.twig') %}
|
||||
</td>
|
||||
</form>
|
||||
{% endif %}
|
||||
@ -311,7 +315,9 @@
|
||||
{% if players_from_account_in_guild|length > 0 %}
|
||||
<form action="?subtopic=guilds&action=leave_guild&guild={{ guild_name|url_encode }}" method="post">
|
||||
<td>
|
||||
<input type="image" name="Leave Guild" alt="Leave Guild" src="{{ template_path }}/images/global/buttons/sbutton_leaveguild.png" style="width: 120px; height: 20px;">
|
||||
{% set button_name = 'Leave Guild' %}
|
||||
{% set button_image = '_sbutton_leaveguild' %}
|
||||
{% include('buttons.base.html.twig') %}
|
||||
</td>
|
||||
</form>
|
||||
{% endif %}
|
||||
|
3
templates/tibiacom/buttons.view.html.twig
Normal file
3
templates/tibiacom/buttons.view.html.twig
Normal file
@ -0,0 +1,3 @@
|
||||
{% set button_name = 'View' %}
|
||||
{% set button_image = '_sbutton_view' %}
|
||||
{% include('buttons.base.html.twig') %}
|
Loading…
x
Reference in New Issue
Block a user